-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathstyle.scss
124 lines (102 loc) · 2.32 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
.editor-text-editor__formatting {
background: $white;
border-bottom: 1px solid $light-gray-500;
min-height: $admin-sidebar-width-collapsed;
top: $admin-bar-height-big + $header-height;
left: 0;
right: 0;
display: flex;
flex-direction: row;
flex-wrap: wrap;
button {
height: 30px;
border: none;
background: none;
padding: 0 8px;
margin: 3px 4px;
text-align: center;
cursor: pointer;
font-family: $editor-html-font;
color: $dark-gray-500;
border: 1px solid transparent;
}
button:first-child {
margin-left: 0;
}
button:hover {
border: 1px solid $dark-gray-500;
}
button:focus {
outline: none;
}
@include break-small() {
position: fixed;
.editor-layout.is-sidebar-opened & {
margin-right: $sidebar-width;
}
}
}
.editor-text-editor__formatting .editor-text-editor__bold {
font-weight: bold;
}
.editor-text-editor__formatting .editor-text-editor__italic {
font-style: italic;
}
.editor-text-editor__formatting .editor-text-editor__link {
text-decoration: underline;
color: $blue-medium;
}
.editor-text-editor__formatting .editor-text-editor__del {
text-decoration:line-through;
}
.auto-fold .editor-text-editor__formatting {
@include break-medium() {
left: $admin-sidebar-width-collapsed;
top: $admin-bar-height + $header-height;
}
@include break-large() {
left: $admin-sidebar-width;
}
}
.folded .editor-text-editor__formatting {
left: $admin-sidebar-width-collapsed;
}
.editor-text-editor {
display: block;
padding-top: 60px;
padding-bottom: 0;
margin: 0;
width: 100%;
border: none;
outline: none;
box-shadow: none;
resize: none;
overflow: hidden;
font-family: $editor-html-font;
line-height: 150%;
transition: padding .2s linear;
@include break-small() {
padding-top: 60px + $admin-bar-height-big;
}
@include break-medium() {
padding-top: 60px + $admin-bar-height;
}
&:focus {
box-shadow: none;
}
}
/* Use padding to center text in the textarea, this allows you to click anywhere to focus it */
$text-editor-max-width: 760px;
.editor-text-editor {
padding-left: 20px;
padding-right: 20px;
@include break-large() {
padding-left: calc( 50% - #{ $text-editor-max-width / 2 } );
padding-right: calc( 50% - #{ $text-editor-max-width / 2 } );
}
}
.editor-text-editor__formatting-group {
width: 100%;
max-width: $text-editor-max-width;
margin: 0 auto;
}