-
-
Notifications
You must be signed in to change notification settings - Fork 842
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move TextEditor styles to common (#2661)
Now that TextEditor js component is shared, it only makes sense to also have its styles shared
- Loading branch information
Showing
3 changed files
with
50 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.TextEditor .TextEditor-editor { | ||
border-radius: 0; | ||
padding: 0 0 10px; | ||
border: 0; | ||
resize: none; | ||
color: @text-color; | ||
font-size: 14px; | ||
line-height: 1.7; | ||
|
||
&, &:focus, &[disabled] { | ||
background: none; | ||
border: 0; | ||
} | ||
|
||
@media @phone { | ||
font-size: 16px; // minimum font-size required to prevent page zoom on focus in iOS 10 | ||
} | ||
} | ||
.TextEditor-controls { | ||
margin: 0; | ||
padding: 10px 0; | ||
list-style-type: none; | ||
overflow-x: auto; | ||
white-space: nowrap; | ||
|
||
li { | ||
display: inline-block; | ||
margin-right: 10px; | ||
} | ||
} | ||
.TextEditor-toolbar { | ||
.Button--icon { | ||
width: 28px; | ||
} | ||
} | ||
|
||
@media @tablet-up { | ||
.TextEditor-controls { | ||
margin: 0 -20px 0 -105px; | ||
padding: 10px 20px; | ||
border-top: 1px solid @control-bg; | ||
|
||
.fullScreen & { | ||
margin: 0; | ||
border-top: 0; | ||
padding: 20px 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