-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Components: Extract a reusable post title component
- Loading branch information
1 parent
1709207
commit d6af47f
Showing
9 changed files
with
75 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 1 addition & 10 deletions
11
editor/post-permalink/style.scss → editor/components/post-permalink/style.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
.editor-post-title { | ||
position: relative; | ||
padding: 5px 0; | ||
|
||
h1 { | ||
border: 1px solid transparent; | ||
font-size: $editor-font-size; | ||
transition: 0.2s outline; | ||
margin-top: 0; | ||
margin-bottom: 0; | ||
padding: $block-padding; | ||
} | ||
|
||
&:hover h1 { | ||
border: 1px solid $light-gray-500; | ||
transition: 0.2s outline; | ||
} | ||
|
||
&.is-selected h1 { | ||
border: 1px solid $light-gray-500; | ||
transition: 0.2s outline; | ||
} | ||
} | ||
|
||
textarea.editor-post-title__input { | ||
display: block; | ||
font-size: 2em; | ||
font-family: $editor-font; | ||
line-height: $default-line-height; | ||
outline: none; | ||
border: none; | ||
box-shadow: none; | ||
width: 100%; | ||
padding: 5px 0; | ||
margin: 0; | ||
|
||
&:focus { | ||
outline: none; | ||
box-shadow: none; | ||
} | ||
} | ||
|
||
.editor-post-title .editor-post-permalink { | ||
position: absolute; | ||
top: -34px; | ||
left: 0; | ||
right: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.