-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor-style.css
204 lines (173 loc) · 4.68 KB
/
editor-style.css
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
/* CSS Costum for previsualition on gutenberg */
/* Imports */
/* vars */
:root {
--font1: 'Rubik', sans-serif;
--font2: Georgia, 'Times New Roman', Times, serif;
--font3: 'Frank Ruhl Libre', serif;
}
/* Set global width for all Gutenberg blocks - this should be the same as your article width */
.wp-block {
max-width: calc(100% - 341px);
}
/* Main typography elements */
/* Sans Serif font for headers */
.has-medium-font-size,
.editor-block-list__layout .editor-block-list__block p,
.rich-text.block-editor-rich-text__editable.wp-block-paragraph,
.block-editor-block-list__layout.is-root-container,
ul, ol {
font-family: var(--font2);
}
.editor-block-list__layout .editor-block-list__block,
.editor-post-title__block .editor-post-title__input,
h1.rich-text.block-editor-rich-text__editable,
h2.rich-text.block-editor-rich-text__editable,
h3.rich-text.block-editor-rich-text__editable,
h4.rich-text.block-editor-rich-text__editable,
h5.rich-text.block-editor-rich-text__editable,
h6.rich-text.block-editor-rich-text__editable,
#post-title-0,
table {
font-family: var(--font1);
}
/* Monospace font for code */
pre, code, kbd, tt, var {
font-family: Consolas, "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, "Courier New", Courier, monospace;
}
/* Format post images */
.wp-block-image img {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
border-radius: 4px;
}
/* Format image captions */
.wp-block-image figcaption,
figcaption {
margin-top: 0;
color: #666;
font-size: 0.9rem;
text-align: center;
}
/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
#post-title-0 {
letter-spacing: -1px;
padding: 5px 0;
font-weight: 700;
}
@media only screen and (min-width: 992px) {
#post-title-0 {
font-size: 40px;
line-height: 45px;
}
}
@media only screen and (min-width: 768px) {
#post-title-0 {
padding-top: 10px;
font-size: 35px;
line-height: 40px;
}
}
h2.rich-text.block-editor-rich-text__editable {
padding: 15px 0;
font-weight: 700;
font-size: 25px;
line-height: 30px;
margin-top: 0;
margin-bottom: 0;
}
h3.rich-text.block-editor-rich-text__editable {
margin-top: 2em;
font-size: 1.5em;
}
h4.rich-text.block-editor-rich-text__editable {
font-size: 1.3em;
}
h5.rich-text.block-editor-rich-text__editable {
font-size: 1.1em;
}
h6.rich-text.block-editor-rich-text__editable {
font-size: 1em;
}
p.rich-text.block-editor-rich-text__editable {
font-size: 18px;
line-height: 25px;
padding: 15px 0;
margin-top: 0;
margin-bottom: 0;
}
p.rich-text.block-editor-rich-text__editable:first-child {
padding-top: 0;
}
/* Format code blocks */
pre {
background: #f3f3f3;
border-radius: 4px;
margin-bottom: 1.6em;
max-width: 100%;
overflow: auto;
padding: 1.6em;
white-space: pre-wrap;
max-height: 650px;
}
/* Format inline code blocks */
code, kbd, tt, var {
background: #f3f3f3;
padding: 2px 7px 2px 7px;
border-radius: 4px;
}
/* Format blockquotes */
.wp-block-quote {
margin-left: 2em;
margin-bottom: 2rem;
margin-top: 2rem;
padding: .4rem .8rem;
border-left: .35rem solid #1565C0;
color: #666;
font-style: italic;
}
/* Format the cite text in blockquotes */
dfn, cite, i {
font-style: italic;
font-size: 0.8em;
}
/* Links & buttons */
a,
a:visited,
article a,
p.feature-credit a,
p.feature-credit a:visited,
.menu-items a {
color: #1565C0;
text-decoration: none;
}
a:hover,
a:focus,
a:active,
article a:hover,
article a:focus,
article a:active,
p.feature-credit a:hover,
p.feature-credit a:active,
.menu-items a:hover,
.menu-items a:active {
text-decoration: underline;
}
a:focus {
outline: thin dotted;
}
a:hover, a:active {
outline: 0;
}
/* Standard WordPress button block */
.rich-text.block-editor-rich-text__editable.wp-block-button__link,
.rich-text.block-editor-rich-text__editable.wp-block-button__link:visited {
background: red;
color: white;
}
.rich-text.block-editor-rich-text__editable.wp-block-button__link:hover,
.rich-text.block-editor-rich-text__editable.wp-block-button__link:focus,
.rich-text.block-editor-rich-text__editable.wp-block-button__link:active {
background: #333;
}