Make WordPress Core

source: trunk/src/wp-content/themes/twentyten/editor-blocks.css @ 55978

Last change on this file since 55978 was 55978, checked in by audrasjb, 13 months ago

Twenty Ten: Improve Pullquote block line height for better readability.

Props melchoyce, sabernhardt, ugyensupport, Heiko_Mamerow, pooja1210.
Fixes #52546.

  • Property svn:eol-style set to native
File size: 8.4 KB
Line 
1/*
2Theme Name: Twenty Ten
3Description: Used to style blocks in the editor.
4*/
5
6/*--------------------------------------------------------------
7>>> TABLE OF CONTENTS:
8----------------------------------------------------------------
91.0 General Typography
102.0 General Block Styles
113.0 Blocks - Common Blocks
124.0 Blocks - Formatting
135.0 Blocks - Widgets
146.0 Blocks - Colors
15--------------------------------------------------------------*/
16
17/*--------------------------------------------------------------
181.0 General Typography
19--------------------------------------------------------------*/
20
21.edit-post-visual-editor .editor-block-list__block,
22.edit-post-visual-editor .editor-block-list__block p,
23.editor-default-block-appender textarea.editor-default-block-appender__content {
24        font-size: 16px;
25}
26
27.editor-default-block-appender textarea.editor-default-block-appender__content {
28        font-family: Georgia, "Bitstream Charter", serif;
29}
30
31.edit-post-visual-editor .editor-block-list__block .mce-content-body,
32.wp-block-freeform.block-library-rich-text__tinymce p,
33.wp-block-freeform.block-library-rich-text__tinymce li {
34        line-height: 1.5;
35}
36
37.edit-post-visual-editor .editor-block-list__block {
38        color: #1a1a1a;
39}
40
41.editor-post-title__block .editor-post-title__input {
42        color: #000;
43        font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
44        font-size: 21px;
45        font-weight: bold;
46        line-height: 1.3em;
47}
48
49.edit-post-visual-editor .editor-block-list__block h1 {
50        font-size: 32px;
51}
52
53.edit-post-visual-editor .editor-block-list__block h2 {
54        font-size: 24px;
55}
56
57.edit-post-visual-editor .editor-block-list__block h3 {
58        font-size: 19px;
59}
60
61.edit-post-visual-editor .editor-block-list__block h4 {
62        font-size: 16px;
63}
64
65.edit-post-visual-editor .editor-block-list__block h5 {
66        font-size: 13px;
67}
68
69.edit-post-visual-editor .editor-block-list__block h6 {
70        font-size: 11px;
71}
72
73/*--------------------------------------------------------------
742.0 General Block Styles
75--------------------------------------------------------------*/
76
77/* Main column width */
78
79.wp-block {
80        max-width: 670px; /* 640px + 30px to account for padding */
81}
82
83/* Link styles */
84
85.edit-post-visual-editor a,
86.editor-block-list__block a,
87.wp-block-freeform.block-library-rich-text__tinymce a {
88        color: #0066cc;
89}
90
91/* List styles */
92
93.edit-post-visual-editor ul:not(.wp-block-gallery),
94.editor-block-list__block ul:not(.wp-block-gallery),
95.block-library-list ul,
96.edit-post-visual-editor ol,
97.editor-block-list__block ol,
98.block-library-list ol.editor-rich-text__tinymce {
99        padding: 0;
100}
101
102.edit-post-visual-editor ul:not(.wp-block-gallery),
103.editor-block-list__block ul:not(.wp-block-gallery),
104.block-library-list ul {
105        list-style: square;
106}
107
108.edit-post-visual-editor ol,
109.editor-block-list__block ol,
110.block-library-list ol {
111        list-style: decimal;
112        margin-left: 1.5em;
113}
114
115.edit-post-visual-editor ul:not(.wp-block-gallery) li,
116.editor-block-list__block ul:not(.wp-block-gallery) li,
117.edit-post-visual-editor ol li,
118.editor-block-list__block ol li,
119.block-library-list li {
120        margin-bottom: 0;
121}
122
123.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
124.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
125.block-library-list li > ul,
126.edit-post-visual-editor li > ol,
127.editor-block-list__block li > ol,
128.block-library-list li > ol {
129        margin-bottom: 0;
130}
131
132.rtl .editor-styles-wrapper ul ul,
133.rtl .editor-styles-wrapper ol ol,
134.rtl .editor-styles-wrapper ul ol,
135.rtl .editor-styles-wrapper ol ul {
136        margin-left: 0;
137        margin-right: 1.5em;
138}
139
140.wp-block-freeform.block-library-rich-text__tinymce ul,
141.wp-block-freeform.block-library-rich-text__tinymce ol {
142        padding-left: 1.5em;
143}
144
145.rtl .wp-block-freeform.block-library-rich-text__tinymce ul,
146.rtl .wp-block-freeform.block-library-rich-text__tinymce ol {
147        padding: 0;
148}
149
150/* Caption styles */
151
152[class^="wp-block-"] figcaption {
153        color: #777;
154        font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
155}
156
157/* Code styles */
158
159.wp-block-freeform.block-library-rich-text__tinymce code {
160        background: transparent;
161}
162
163/* Quote styles */
164
165.wp-block-freeform.block-library-rich-text__tinymce blockquote {
166        border: 0;
167        padding: 0 3em;
168}
169
170/* Table styles */
171
172.editor-block-list__block tr th,
173.editor-block-list__block tr th a {
174        font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
175}
176
177/* Definition List styles */
178
179.editor-block-list__block dd {
180        margin-left: 0;
181        margin-right: 0;
182}
183
184/*--------------------------------------------------------------
1853.0 Blocks - Common Blocks
186--------------------------------------------------------------*/
187
188/* Paragraph */
189
190p.has-drop-cap:not(:focus)::first-letter {
191        font-size: 5em;
192        margin-top: 0.1em;
193}
194
195/* Image */
196
197.wp-block-image {
198        margin-bottom: 20px;
199}
200
201.wp-block-image figcaption {
202        display: block;
203        margin: -7px 0 0;
204        padding: 9px 9px 1.0em;
205        text-align: center;
206}
207
208/* Gallery */
209
210.editor-block-list__block .wp-block-gallery {
211        margin: 0 0 24px;
212}
213
214/* Quote */
215
216.wp-block-quote {
217        border: 0;
218        padding: 0 3em;
219}
220
221.wp-block-quote:not(.is-large):not(.is-style-large) {
222        border: 0;
223        padding: 0 3em;
224}
225
226.wp-block-quote .wp-block-quote__citation {
227        font-size: 16px;
228        font-weight: 600;
229}
230
231.wp-block-quote.is-large .wp-block-quote__citation,
232.wp-block-quote.is-style-large .wp-block-quote__citation  {
233        font-size: 18px;
234}
235
236/* Cover */
237
238.wp-block-cover-image-text,
239.wp-block-cover-text {
240        font-size: 32px;
241}
242
243/* File */
244
245.wp-block-file .wp-block-file__textlink .editor-rich-text__tinymce {
246        color: #0066cc;
247        font-size: 16px;
248        text-decoration: underline;
249}
250
251/*--------------------------------------------------------------
2524.0 Blocks - Formatting
253--------------------------------------------------------------*/
254
255/* Code */
256
257.wp-block-code {
258        border: 0;
259        padding: 0;
260}
261
262/* Pullquote */
263
264.wp-block-pullquote {
265        font-size: 1em;
266}
267
268.wp-block-pullquote blockquote > p.rich-text,
269.wp-block-pullquote blockquote > .editor-rich-text p {
270        font-size: 1.5em;
271        line-height: 1.3;
272}
273
274.wp-block-pullquote .wp-block-pullquote__citation {
275        color: inherit;
276        font-size: inherit;
277        font-weight: 600;
278        text-transform: none;
279}
280
281/* Table */
282
283.wp-block-table tr:nth-child(odd) td {
284        background: #f2f7fc;
285}
286
287.wp-block-table th .wp-block-table__cell-content {
288        color: #777;
289        font-family: "Helvetica Neue", Arial, Helvetica, "Nimbus Sans L", sans-serif;
290}
291
292.editor-block-list__block .wp-block-table tr td {
293        padding-bottom: 0;
294        padding-top: 0;
295}
296
297/*--------------------------------------------------------------
2985.0 Blocks - Widgets
299--------------------------------------------------------------*/
300
301/* Latest Comments */
302
303.editor-block-list__block .wp-block-latest-comments {
304        margin: 0 0 24px;
305}
306
307.rtl .edit-post-visual-editor .wp-block-latest-comments {
308        margin-right: 0;
309}
310
311/* Latest Posts */
312
313.edit-post-visual-editor .editor-block-list__block .wp-block-latest-posts.is-grid {
314        list-style: none;
315        margin-left: 0;
316        margin-right: 0;
317}
318
319.edit-post-visual-editor .wp-block-latest-posts.is-grid li {
320        margin-bottom: 1em;
321}
322
323/*--------------------------------------------------------------
3246.0 Blocks - Colors
325--------------------------------------------------------------*/
326
327:root .editor-styles-wrapper .has-blue-color,
328:root .editor-styles-wrapper .has-blue-color:visited {
329        color: #0066cc;
330}
331
332:root .editor-styles-wrapper .has-blue-background-color,
333:root .editor-styles-wrapper .has-blue-background-color:visited {
334        background-color: #0066cc;
335}
336
337:root .editor-styles-wrapper .has-black-color,
338:root .editor-styles-wrapper .has-black-color:visited {
339        color: #000;
340}
341
342:root .editor-styles-wrapper .has-black-background-color,
343:root .editor-styles-wrapper .has-black-background-color:visited {
344        background-color: #000;
345}
346
347:root .editor-styles-wrapper .has-medium-gray-color,
348:root .editor-styles-wrapper .has-medium-gray-color:visited {
349        color: #666;
350}
351
352:root .editor-styles-wrapper .has-medium-gray-background-color,
353:root .editor-styles-wrapper .has-medium-gray-background-color:visited {
354        background-color: #666;
355}
356
357:root .editor-styles-wrapper .has-light-gray-color,
358:root .editor-styles-wrapper .has-light-gray-color:visited {
359        color: #f1f1f1;
360}
361
362:root .editor-styles-wrapper .has-light-gray-background-color,
363:root .editor-styles-wrapper .has-light-gray-background-color:visited {
364        background-color: #f1f1f1;
365}
366
367:root .editor-styles-wrapper .has-white-color,
368:root .editor-styles-wrapper .has-white-color:visited {
369        color: #fff;
370}
371
372:root .editor-styles-wrapper .has-white-background-color,
373:root .editor-styles-wrapper .has-white-background-color:visited {
374        background-color: #fff;
375}
Note: See TracBrowser for help on using the repository browser.