Make WordPress Core

Ticket #45044: 45044.1.patch

File 45044.1.patch, 24.8 KB (added by laurelfulford, 7 years ago)
  • src/wp-content/themes/twentysixteen/css/blocks.css

     
     1/*
     2Theme Name: Twenty Sixteen
     3Description: Used to style Gutenberg Blocks.
     4*/
     5
     6/*--------------------------------------------------------------
     7>>> TABLE OF CONTENTS:
     8----------------------------------------------------------------
     91.0 General Block Styles
     102.0 Blocks - Common Blocks
     113.0 Blocks - Formatting
     124.0 Blocks - Layout Elements
     135.0 Blocks - Widgets
     146.0 Blocks - Colors
     15--------------------------------------------------------------*/
     16
     17/*--------------------------------------------------------------
     181.0 General Block Styles
     19--------------------------------------------------------------*/
     20
     21/* Captions */
     22
     23[class^="wp-block-"] figcaption {
     24        color: #686868;
     25        font-style: italic;
     26        line-height: 1.6153846154;
     27        padding-top: 0.5384615385em;
     28}
     29
     30/*--------------------------------------------------------------
     312.0 Blocks - Common Blocks
     32--------------------------------------------------------------*/
     33
     34/* Paragraph */
     35
     36p.has-drop-cap:not(:focus)::first-letter {
     37        font-size: 5em;
     38}
     39
     40/* Gallery */
     41
     42.wp-block-gallery {
     43        margin-bottom: 1.75em;
     44}
     45
     46/* Quote */
     47
     48.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
     49.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
     50        border-left: none;
     51        padding-left: 0;
     52}
     53
     54.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
     55.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright {
     56        border-right: none;
     57        padding-right: 0;
     58}
     59
     60.wp-block-quote cite {
     61        color: #1a1a1a;
     62        display: block;
     63        font-size: 16px;
     64        font-size: 1rem;
     65        line-height: 1.75;
     66}
     67
     68.wp-block-quote cite:before {
     69        content: "\2014\00a0";
     70}
     71
     72/* Audio */
     73
     74.wp-block-audio audio {
     75        display: block;
     76        width: 100%;
     77}
     78
     79/* File */
     80
     81.wp-block-file .wp-block-file__button {
     82        background: #1a1a1a;
     83        border: 0;
     84        border-radius: 2px;
     85        color: #fff;
     86        font-family: Montserrat, "Helvetica Neue", sans-serif;
     87        font-weight: 700;
     88        letter-spacing: 0.046875em;
     89        line-height: 1;
     90        padding: 0.84375em 0.875em 0.78125em;
     91        text-transform: uppercase;
     92}
     93
     94.wp-block-file .wp-block-file__button:hover,
     95.wp-block-file .wp-block-file__button:focus {
     96        background: #007acc;
     97}
     98
     99.wp-block-file .wp-block-file__button:focus {
     100        outline: thin dotted;
     101        outline-offset: -4px;
     102}
     103
     104.rtl .wp-block-file * + .wp-block-file__button {
     105        margin-left: 0.75em;
     106        margin-right: 0;
     107}
     108
     109/*--------------------------------------------------------------
     1103.0 Blocks - Formatting Blocks
     111--------------------------------------------------------------*/
     112
     113/* Code */
     114
     115.wp-block-code {
     116        border: 0;
     117        font-family: Inconsolata, monospace;
     118        font-size: 16px;
     119        font-size: 1rem;
     120        line-height: 1.75;
     121        padding: 0;
     122}
     123
     124/* Pullquote */
     125
     126.wp-block-pullquote {
     127        border-width: 4px;
     128}
     129
     130.wp-block-pullquote blockquote {
     131        border-left: 0;
     132        margin: 0;
     133        padding: 0;
     134}
     135
     136.rtl .wp-block-pullquote blockquote {
     137        border-right: 0;
     138}
     139
     140.wp-block-pullquote p {
     141        color: #686868;
     142        font-size: 19px;
     143        font-size: 1.1875rem;
     144}
     145
     146.wp-block-pullquote cite {
     147        color: #1a1a1a;
     148        display: block;
     149        font-size: 16px;
     150        font-size: 1rem;
     151        font-style: none;
     152        line-height: 1.75;
     153        text-transform: none;
     154}
     155
     156.wp-block-pullquote cite:before {
     157        content: "\2014\00a0";
     158}
     159
     160/* Table */
     161
     162.wp-block-table,
     163.wp-block-table th,
     164.wp-block-table td {
     165        border: 1px solid #d1d1d1;
     166}
     167
     168.wp-block-table {
     169        border-collapse: separate;
     170        border-spacing: 0;
     171        border-width: 1px 0 0 1px;
     172        margin: 0 0 1.75em;
     173        table-layout: fixed;
     174        width: 100%;
     175}
     176
     177.wp-block-table th,
     178.wp-block-table td {
     179        font-weight: normal;
     180        padding: 0.4375em;
     181        text-align: left;
     182}
     183
     184.wp-block-table th {
     185        border-width: 0 1px 1px 0;
     186        font-weight: 700;
     187}
     188
     189.wp-block-table td {
     190        border-width: 0 1px 1px 0;
     191}
     192
     193.rtl .wp-block-table th,
     194.rtl .wp-block-table td {
     195        text-align: right;
     196}
     197
     198/*--------------------------------------------------------------
     1994.0 Blocks - Layout Elements
     200--------------------------------------------------------------*/
     201
     202/* Buttons */
     203
     204.wp-block-button .wp-block-button__link {
     205        background: #1a1a1a;
     206        border: 0;
     207        border-radius: 2px;
     208        color: #fff;
     209        font-family: Montserrat, "Helvetica Neue", sans-serif;
     210        font-weight: 700;
     211        letter-spacing: 0.046875em;
     212        line-height: 1;
     213        padding: 0.84375em 0.875em 0.78125em;
     214        text-transform: uppercase;
     215}
     216
     217.wp-block-button .wp-block-button__link:hover,
     218.wp-block-button .wp-block-button__link:focus {
     219        background: #007acc;
     220}
     221
     222.wp-block-button .wp-block-button__link:focus {
     223        outline: thin dotted;
     224        outline-offset: -4px;
     225}
     226
     227/* Seperator */
     228
     229hr.wp-block-separator {
     230        border: 0;
     231}
     232
     233.wp-block-separator {
     234        margin-left: auto;
     235        margin-right: auto;
     236        max-width: 100px;
     237}
     238
     239.wp-block-separator.is-style-wide {
     240        max-width: 100%;
     241}
     242
     243/*--------------------------------------------------------------
     2445.0 Blocks - Widget Blocks
     245--------------------------------------------------------------*/
     246
     247/* Comments */
     248
     249.wp-block-latest-comments__comment-meta a {
     250        box-shadow: none;
     251        font-weight: 700;
     252}
     253
     254.wp-block-latest-comments__comment-date {
     255        color: #686868;
     256        font-family: Montserrat, "Helvetica Neue", sans-serif;
     257        font-size: 13px;
     258        font-size: 0.8125rem;
     259        line-height: 1.6153846154;
     260}
     261
     262.wp-block-latest-comments .wp-block-latest-comments__comment {
     263        border-top: 1px solid #d1d1d1;
     264        margin-bottom: 0;
     265        padding: 1.75em 0;
     266}
     267
     268.wp-block-latest-comments__comment-excerpt p:last-child {
     269        margin-bottom: 0;
     270}
     271
     272/*--------------------------------------------------------------
     2736.0 Blocks - Colors
     274--------------------------------------------------------------*/
     275
     276.has-dark-gray-color {
     277        color: #1a1a1a;
     278}
     279
     280.has-dark-gray-background-color {
     281        background-color: #1a1a1a;
     282}
     283
     284.has-medium-gray-color {
     285        color: #686868;
     286}
     287
     288.has-medium-gray-background-color {
     289        background-color: #686868;
     290}
     291
     292.has-light-gray-color {
     293        color: #e5e5e5;
     294}
     295
     296.has-light-gray-background-color {
     297        background-color: #e5e5e5;
     298}
     299
     300.has-white-color {
     301        color: #fff;
     302}
     303
     304.has-white-background-color {
     305        background-color: #fff;
     306}
     307
     308.has-blue-gray-color {
     309        color: #4d545c;
     310}
     311
     312.has-blue-gray-background-color {
     313        background-color: #4d545c;
     314}
     315
     316.has-bright-blue-color {
     317        color: #007acc;
     318}
     319
     320.has-bright-blue-background-color {
     321        background-color: #007acc;
     322}
     323
     324.has-light-blue-color {
     325        color: #9adffd;
     326}
     327
     328.has-light-blue-background-color {
     329        background-color: #9adffd;
     330}
     331
     332.has-dark-brown-color {
     333        color: #402b30;
     334}
     335
     336.has-dark-brown-background-color {
     337        background-color: #402b30;
     338}
     339
     340.has-medium-brown-color {
     341        color: #774e24;
     342}
     343
     344.has-medium-brown-background-color {
     345        background-color: #774e24;
     346}
     347
     348.has-dark-red-color {
     349        color: #640c1f;
     350}
     351
     352.has-dark-red-background-color {
     353        background-color: #640c1f;
     354}
     355
     356.has-bright-red-color {
     357        color: #ff675f;
     358}
     359
     360.has-bright-red-background-color {
     361        background-color: #ff675f;
     362}
     363
     364.has-yellow-color {
     365        color: #ffef8e;
     366}
     367
     368.has-yellow-background-color {
     369        background-color: #ffef8e;
     370}
  • src/wp-content/themes/twentysixteen/css/editor-blocks.css

     
     1/*
     2Theme Name: Twenty Sixteen
     3Description: Used to style Gutenberg 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 - Layout Elements
     146.0 Blocks - Widgets
     157.0 Blocks - Embeds
     16--------------------------------------------------------------*/
     17
     18/*--------------------------------------------------------------
     191.0 General Typography
     20--------------------------------------------------------------*/
     21
     22.edit-post-visual-editor .editor-block-list__block,
     23.editor-default-block-appender input[type="text"].editor-default-block-appender__content {
     24        color: #1a1a1a;
     25        font-family: Merriweather, Georgia, serif;
     26        font-size: 16px;
     27        font-size: 1rem;
     28        line-height: 1.75;
     29}
     30
     31.edit-post-visual-editor .editor-block-list__block {
     32        color: #1a1a1a;
     33}
     34
     35.editor-post-title__block .editor-post-title__input {
     36        font-family: Montserrat, "Helvetica Neue", sans-serif;
     37        font-size: 28px;
     38        font-size: 1.75rem;
     39        font-weight: 700;
     40        line-height: 1.25;
     41        margin-bottom: 1em;
     42}
     43
     44.edit-post-visual-editor h1 {
     45        font-size: 28px;
     46        font-size: 1.75rem;
     47        line-height: 1.25;
     48        margin-top: 2em;
     49        margin-bottom: 1em;
     50}
     51
     52.edit-post-visual-editor h2 {
     53        font-size: 23px;
     54        font-size: 1.4375rem;
     55        line-height: 1.2173913043;
     56        margin-top: 2.4347826087em;
     57        margin-bottom: 1.2173913043em;
     58}
     59
     60.edit-post-visual-editor h3 {
     61        font-size: 19px;
     62        font-size: 1.1875rem;
     63        line-height: 1.1052631579;
     64        margin-top: 2.9473684211em;
     65        margin-bottom: 1.4736842105em;
     66}
     67
     68.edit-post-visual-editor h4,
     69.edit-post-visual-editor h5,
     70.edit-post-visual-editor h6 {
     71        font-size: 16px;
     72        font-size: 1rem;
     73        line-height: 1.3125;
     74        margin-top: 3.5em;
     75        margin-bottom: 1.75em;
     76}
     77
     78.edit-post-visual-editor h4 {
     79        letter-spacing: 0.140625em;
     80        text-transform: uppercase;
     81}
     82
     83.edit-post-visual-editor h6 {
     84        font-style: italic;
     85}
     86
     87.edit-post-visual-editor h1,
     88.edit-post-visual-editor h2,
     89.edit-post-visual-editor h3,
     90.edit-post-visual-editor h4,
     91.edit-post-visual-editor h5,
     92.edit-post-visual-editor h6 {
     93        font-weight: 900;
     94}
     95
     96@media screen and (min-width: 61.5625em) {
     97        .edit-post-visual-editor h1 {
     98                font-size: 33px;
     99                font-size: 2.0625rem;
     100                line-height: 1.2727272727;
     101                margin-top: 1.696969697em;
     102                margin-bottom: 0.8484848485em;
     103        }
     104
     105        .edit-post-visual-editor h2 {
     106                font-size: 28px;
     107                font-size: 1.75rem;
     108                line-height: 1.25;
     109                margin-top: 2em;
     110                margin-bottom: 1em;
     111        }
     112
     113        .edit-post-visual-editor h3 {
     114                font-size: 23px;
     115                font-size: 1.4375rem;
     116                line-height: 1.2173913043;
     117                margin-top: 2.4347826087em;
     118                margin-bottom: 1.2173913043em;
     119        }
     120
     121        .edit-post-visual-editor h4 {
     122                letter-spacing: 0.131578947em;
     123        }
     124
     125        .edit-post-visual-editor h4,
     126        .edit-post-visual-editor h5,
     127        .edit-post-visual-editor h6 {
     128                font-size: 19px;
     129                font-size: 1.1875rem;
     130                line-height: 1.1052631579;
     131                margin-top: 2.9473684211em;
     132                margin-bottom: 1.473684211em;
     133        }
     134}
     135
     136.edit-post-visual-editor h1:first-child,
     137.edit-post-visual-editor h2:first-child,
     138.edit-post-visual-editor h3:first-child,
     139.edit-post-visual-editor h4:first-child,
     140.edit-post-visual-editor h5:first-child,
     141.edit-post-visual-editor h6:first-child {
     142        margin-top: 0;
     143}
     144
     145.edit-post-visual-editor p {
     146        margin: 0 0 1.75em;
     147}
     148
     149.edit-post-visual-editor blockquote p {
     150        margin-bottom: 1.4736842105em;
     151}
     152
     153@media screen and (min-width: 44.375em) {
     154        .editor-post-title__block .editor-post-title__input {
     155                font-size: 33px;
     156                font-size: 2.0625rem;
     157                line-height: 1.2727272727;
     158                margin-bottom: 0.8484848485em;
     159        }
     160}
     161
     162@media screen and (min-width: 61.5625em) {
     163        .editor-post-title__block .editor-post-title__input {
     164                font-size: 40px;
     165                font-size: 2.5rem;
     166                line-height: 1.225;
     167                margin-bottom: 1.05em;
     168        }
     169}
     170
     171/*--------------------------------------------------------------
     1722.0 General Block Styles
     173--------------------------------------------------------------*/
     174
     175/* Main column width */
     176
     177body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block,
     178body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender,
     179body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block {
     180        max-width: 630px; /* 600px + 30px for padding; should be 840px for pages */
     181}
     182
     183body.gutenberg-editor-page .edit-post-visual-editor .wp-block-columns .editor-block-list__block {
     184        width: auto;
     185}
     186
     187/* Link styles */
     188
     189.edit-post-visual-editor a,
     190.editor-block-list__block a,
     191.wp-block-freeform.block-library-rich-text__tinymce a {
     192        color: #007acc;
     193}
     194
     195/* List styles */
     196
     197.edit-post-visual-editor ul:not(.wp-block-gallery),
     198.editor-block-list__block ul:not(.wp-block-gallery),
     199.block-library-list ul,
     200.edit-post-visual-editor ol,
     201.editor-block-list__block ol,
     202.block-library-list ol {
     203        margin: 0 0 1.75em 1.25em;
     204        padding: 0;
     205}
     206
     207.edit-post-visual-editor ul:not(.wp-block-gallery),
     208.editor-block-list__block ul:not(.wp-block-gallery),
     209.block-library-list ul {
     210        list-style: disc;
     211}
     212
     213.edit-post-visual-editor ol,
     214.editor-block-list__block ol,
     215.block-library-list ol {
     216        list-style: decimal;
     217        margin-left: 1.5em;
     218}
     219
     220.edit-post-visual-editor ul:not(.wp-block-gallery) li,
     221.editor-block-list__block ul:not(.wp-block-gallery) li,
     222.edit-post-visual-editor ol li,
     223.editor-block-list__block ol li,
     224.block-library-list li {
     225        margin-bottom: 0;
     226}
     227
     228.edit-post-visual-editor ul:not(.wp-block-gallery) li > ul,
     229.editor-block-list__block ul:not(.wp-block-gallery) li > ul,
     230.block-library-list li > ul,
     231.edit-post-visual-editor li > ol,
     232.editor-block-list__block li > ol,
     233.block-library-list li > ol {
     234        margin-bottom: 0;
     235}
     236
     237.rtl .edit-post-visual-editor ul:not(.wp-block-gallery),
     238.rtl .editor-block-list__block ul:not(.wp-block-gallery),
     239.rtl .block-library-list ul,
     240.rtl .edit-post-visual-editor ol,
     241.rtl .editor-block-list__block ol,
     242.rtl .block-library-list ol {
     243        margin-left: 0;
     244        margin-right: 1.25em;
     245        padding: 0;
     246}
     247
     248.rtl .edit-post-visual-editor ol,
     249.rtl .editor-block-list__block ol,
     250.rtl .block-library-list ol {
     251        margin-left: 1.5em;
     252        margin-right: 1.5em;
     253}
     254
     255/* Quotes */
     256
     257.rtl .editor-block-list__block blockquote {
     258        border-left: 0;
     259        padding-left: 0;
     260}
     261
     262/* Captions */
     263
     264[class^="wp-block-"] figcaption {
     265        color: #686868;
     266        font-style: italic;
     267        line-height: 1.6153846154;
     268        padding-top: 0.5384615385em;
     269}
     270
     271/*--------------------------------------------------------------
     2723.0 Blocks - Common Blocks
     273--------------------------------------------------------------*/
     274
     275/* Paragraph */
     276
     277.wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
     278        font-size: 5em;
     279        line-height: 0.68;
     280        margin: 0.05em 0.1em 0 0;
     281        text-transform: uppercase;
     282        font-style: normal;
     283}
     284
     285.rtl .wp-block-paragraph.has-drop-cap:not(:focus)::first-letter {
     286        margin: 0.05em 0 0 0.1em;
     287}
     288
     289/* Quote */
     290
     291.wp-block-quote {
     292        border: 0 solid #1a1a1a;
     293        border-left-width: 4px;
     294        color: #686868;
     295        font-style: italic;
     296        line-height: 1.4736842105;
     297        margin: 0 0 1.4736842105em;
     298        overflow: hidden;
     299        padding: 0 0 0 1.263157895em;
     300}
     301
     302.wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
     303.wp-block-quote:not(.is-large):not(.is-style-large).alignright {
     304        border-left: 0;
     305        padding-left: 0;
     306}
     307
     308.editor-block-list__block .wp-block-quote p {
     309        font-size: 19px;
     310        font-size: 1.1875rem;
     311        margin-bottom: 1.4736842105em;
     312}
     313
     314.wp-block-quote__citation {
     315        color: #1a1a1a;
     316        display: block;
     317        font-size: 16px;
     318        font-size: 1rem;
     319        line-height: 1.75;
     320}
     321
     322.wp-block-quote__citation:before {
     323        content: "\2014\00a0";
     324}
     325
     326.wp-block-quote em,
     327.wp-block-quote i,
     328.wp-block-quote__citation:before {
     329        font-style: normal;
     330}
     331
     332.wp-block-quote strong,
     333.wp-block-quote b {
     334        font-weight: 400;
     335}
     336
     337.wp-block-quote > :last-child {
     338        margin-bottom: 0;
     339}
     340
     341.wp-block-quote.alignleft {
     342        margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
     343}
     344
     345.wp-block-quote.alignright {
     346        margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
     347}
     348
     349.wp-block-quote.aligncenter {
     350        margin-bottom: 1.473684211em;
     351}
     352
     353.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignleft,
     354.rtl .wp-block-quote:not(.is-large):not(.is-style-large).alignright  {
     355        border-right: 0;
     356        padding-right: 0;
     357}
     358
     359@media screen and (min-width: 44.375em) {
     360        .wp-block-quote.alignleft,
     361        .wp-block-quote.alignright {
     362                border-width: 4px 0 0 0;
     363                padding: 0.9473684211em 0 0;
     364                width: -webkit-calc(50% - 0.736842105em);
     365                width: calc(50% - 0.736842105em);
     366        }
     367
     368        .wp-block-quote:not(.alignleft):not(.alignright) {
     369                margin-left: -1.473684211em;
     370        }
     371
     372        .rtl .wp-block-quote:not(.alignleft):not(.alignright) {
     373                margin-left: 0;
     374                margin-right: -1.473684211em;
     375        }
     376}
     377
     378@media screen and (min-width: 80em) {
     379        .editor-block-list__block .wp-block-quote.alignleft {
     380                margin-left: -40%;
     381                width: -webkit-calc(60% - 1.4736842105em);
     382                width: calc(60% - 1.4736842105em);
     383        }
     384}
     385
     386/* File */
     387
     388.wp-block-file__textlink {
     389        box-shadow: 0 1px 0 0 currentColor;
     390        color: #007acc;
     391}
     392
     393.wp-block-file .wp-block-file__button {
     394        background: #1a1a1a;
     395        border: 0;
     396        border-radius: 2px;
     397        color: #fff;
     398        font-family: Montserrat, "Helvetica Neue", sans-serif;
     399        font-weight: 700;
     400        letter-spacing: 0.046875em;
     401        line-height: 1;
     402        padding: 0.84375em 0.875em 0.78125em;
     403        text-transform: uppercase;
     404}
     405
     406/*--------------------------------------------------------------
     4074.0 Blocks - Formatting
     408--------------------------------------------------------------*/
     409
     410/* Code */
     411
     412.wp-block-code {
     413        border: 0;
     414        padding: 0.125em 0.25em;
     415}
     416
     417/* Classic */
     418
     419.wp-block-freeform.block-library-rich-text__tinymce blockquote {
     420        border: 0 solid #1a1a1a;
     421        border-left-width: 4px;
     422        color: #686868;
     423        font-style: italic;
     424        line-height: 1.4736842105;
     425        margin: 0 0 1.4736842105em;
     426        overflow: hidden;
     427        padding: 0 0 0 1.263157895em;
     428}
     429
     430.editor-block-list__block .wp-block-freeform.block-library-rich-text__tinymce blockquote:not(.alignleft):not(.alignright) {
     431        margin-left: 0;
     432}
     433
     434.wp-block-freeform.block-library-rich-text__tinymce blockquote p {
     435        font-size: 19px;
     436        font-size: 1.1875rem;
     437}
     438
     439.wp-block-freeform.block-library-rich-text__tinymce blockquote cite {
     440        color: #1a1a1a;
     441        display: block;
     442        font-size: 16px;
     443        font-size: 1rem;
     444        font-style: normal;
     445        line-height: 1.75;
     446}
     447
     448.wp-block-freeform.block-library-rich-text__tinymce blockquote cite:before {
     449        content: "\2014\00a0";
     450}
     451
     452.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
     453        margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
     454}
     455
     456.wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
     457        margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
     458}
     459
     460.wp-block-freeform.block-library-rich-text__tinymce blockquote.aligncenter {
     461        margin-bottom: 1.473684211em;
     462}
     463
     464@media screen and (min-width: 44.375em) {
     465        .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft,
     466        .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
     467                border-width: 4px 0 0 0;
     468                padding: 0.9473684211em 0 0;
     469                width: -webkit-calc(50% - 0.736842105em);
     470                width: calc(50% - 0.736842105em);
     471        }
     472}
     473
     474.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote {
     475        border-left-width: 0;
     476        border-right-width: 4px;
     477        overflow: hidden;
     478        padding-left: 0;
     479        padding-right: 1.263157895em;
     480}
     481
     482.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignleft {
     483        float: left;
     484}
     485
     486.rtl .wp-block-freeform.block-library-rich-text__tinymce .alignright {
     487        float: right;
     488}
     489
     490.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignleft {
     491        margin: 0.3157894737em 0 1.473684211em 1.4736842105em;
     492}
     493
     494.rtl .wp-block-freeform.block-library-rich-text__tinymce blockquote.alignright {
     495        margin: 0.3157894737em 1.4736842105em 1.473684211em 0;
     496}
     497
     498
     499/* Custom HTML */
     500
     501.wp-block-html .CodeMirror-lines pre {
     502        background-color: inherit;
     503        border: inherit;
     504        font-size: inherit;
     505        line-height: inherit;
     506        margin-bottom: inherit;
     507        padding: inherit;
     508}
     509
     510/* Pullquote */
     511
     512.editor-block-list__block .wp-block-pullquote blockquote {
     513        border: 0;
     514        margin: 0;
     515        padding: 0;
     516}
     517
     518.wp-block-pullquote blockquote > .editor-rich-text p {
     519        color: #686868;
     520        font-size: 19px;
     521        font-size: 1.1875rem;
     522}
     523
     524.wp-block-pullquote .wp-block-pullquote__citation {
     525        color: #1a1a1a;
     526        display: block;
     527        font-size: 16px;
     528        font-size: 1rem;
     529        font-style: italic;
     530        line-height: 1.75;
     531        text-transform: none;
     532}
     533
     534.wp-block-pullquote .wp-block-pullquote__citation:before {
     535        content: "\2014\00a0";
     536}
     537
     538/* Table */
     539
     540.editor-block-list__block table.wp-block-table th,
     541.editor-block-list__block table.wp-block-table td {
     542        padding: 0;
     543}
     544
     545.rtl .wp-block-table th,
     546.rtl .wp-block-table td {
     547        text-align: right;
     548}
     549
     550/*--------------------------------------------------------------
     5515.0 Blocks - Layout Elements
     552--------------------------------------------------------------*/
     553
     554/* Buttons */
     555.wp-block-button .wp-block-button__link {
     556        background: #1a1a1a;
     557        border: 0;
     558        border-radius: 2px;
     559        color: #fff;
     560        font-family: Montserrat, "Helvetica Neue", sans-serif;
     561        font-weight: 700;
     562        letter-spacing: 0.046875em;
     563        line-height: 1;
     564        padding: 0.84375em 0.875em 0.78125em;
     565        text-transform: uppercase;
     566}
     567
     568/*--------------------------------------------------------------
     5696.0 Blocks - Widgets
     570--------------------------------------------------------------*/
     571
     572/* Comments */
     573
     574.editor-block-list__block .wp-block-latest-comments__comment-meta a {
     575        box-shadow: none;
     576        font-weight: 700;
     577        text-decoration: none;
     578}
     579
     580.wp-block-latest-comments__comment-date {
     581        color: #686868;
     582        font-family: Montserrat, "Helvetica Neue", sans-serif;
     583        font-size: 13px;
     584        font-size: 0.8125rem;
     585        line-height: 1.6153846154;
     586}
     587
     588.wp-block-latest-comments .wp-block-latest-comments__comment {
     589        border-top: 1px solid #d1d1d1;
     590        margin-bottom: 0;
     591        padding: 1.75em 0;
     592}
     593
     594.wp-block-latest-comments__comment-excerpt p:last-child {
     595        margin-bottom: 0;
     596}
  • src/wp-content/themes/twentysixteen/functions.php

     
    124124         */
    125125        add_editor_style( array( 'css/editor-style.css', twentysixteen_fonts_url() ) );
    126126
     127        // Load regular editor styles into the new block-based editor.
     128        add_theme_support( 'editor-styles' );
     129
     130        // Load default block styles.
     131        add_theme_support( 'wp-block-styles' );
     132
     133        // Add support for custom color scheme.
     134        add_theme_support( 'editor-color-palette', array(
     135                array(
     136                        'name'  => __( 'Dark Gray', 'twentysixteen' ),
     137                        'slug'  => 'dark-gray',
     138                        'color' => '#1a1a1a',
     139                ),
     140                array(
     141                        'name'  => __( 'Medium Gray', 'twentysixteen' ),
     142                        'slug'  => 'medium-gray',
     143                        'color' => '#686868',
     144                ),
     145                array(
     146                        'name'  => __( 'Light Gray', 'twentysixteen' ),
     147                        'slug'  => 'light-gray',
     148                        'color' => '#e5e5e5',
     149                ),
     150                array(
     151                        'name'  => __( 'White', 'twentysixteen' ),
     152                        'slug'  => 'white',
     153                        'color' => '#fff',
     154                ),
     155                array(
     156                        'name'  => __( 'Blue Gray', 'twentysixteen' ),
     157                        'slug'  => 'blue-gray',
     158                        'color' => '#4d545c',
     159                ),
     160                array(
     161                        'name'  => __( 'Bright Blue', 'twentysixteen' ),
     162                        'slug'  => 'bright-blue',
     163                        'color' => '#007acc',
     164                ),
     165                array(
     166                        'name'  => __( 'Light Blue', 'twentysixteen' ),
     167                        'slug'  => 'light-blue',
     168                        'color' => '#9adffd',
     169                ),
     170                array(
     171                        'name'  => __( 'Dark Brown', 'twentysixteen' ),
     172                        'slug'  => 'dark-brown',
     173                        'color' => '#402b30',
     174                ),
     175                array(
     176                        'name'  => __( 'Medium Brown', 'twentysixteen' ),
     177                        'slug'  => 'medium-brown',
     178                        'color' => '#774e24',
     179                ),
     180                array(
     181                        'name'  => __( 'Dark Red', 'twentysixteen' ),
     182                        'slug'  => 'dark-red',
     183                        'color' => '#640c1f',
     184                ),
     185                array(
     186                        'name'  => __( 'Bright Red', 'twentysixteen' ),
     187                        'slug'  => 'bright-red',
     188                        'color' => '#ff675f',
     189                ),
     190                array(
     191                        'name'  => __( 'Yellow', 'twentysixteen' ),
     192                        'slug'  => 'yellow',
     193                        'color' => '#ffef8e',
     194                ),
     195        ) );
     196
    127197        // Indicate widget sidebars can use selective refresh in the Customizer.
    128198        add_theme_support( 'customize-selective-refresh-widgets' );
    129199}
     
    252322        // Theme stylesheet.
    253323        wp_enqueue_style( 'twentysixteen-style', get_stylesheet_uri() );
    254324
     325        // Theme block stylesheet.
     326        wp_enqueue_style( 'twentysixteen-block-style', get_theme_file_uri( '/css/blocks.css' ), array( 'twentysixteen-style' ), '1.0' );
     327
    255328        // Load the Internet Explorer specific stylesheet.
    256329        wp_enqueue_style( 'twentysixteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentysixteen-style' ), '20160816' );
    257330        wp_style_add_data( 'twentysixteen-ie', 'conditional', 'lt IE 10' );
     
    288361add_action( 'wp_enqueue_scripts', 'twentysixteen_scripts' );
    289362
    290363/**
     364 * Enqueue editor styles for Gutenberg
     365 *
     366 * @since Twenty Sixteen 1.6
     367 */
     368function twentysixteen_block_editor_styles() {
     369        // Block styles.
     370        wp_enqueue_style( 'twentysixteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' );
     371        // Add custom fonts.
     372        wp_enqueue_style( 'twentysixteen-fonts', twentysixteen_fonts_url(), array(), null );
     373}
     374add_action( 'enqueue_block_editor_assets', 'twentysixteen_block_editor_styles' );
     375
     376/**
    291377 * Adds custom classes to the array of body classes.
    292378 *
    293379 * @since Twenty Sixteen 1.0
     
    427513        $args['largest']  = 1;
    428514        $args['smallest'] = 1;
    429515        $args['unit']     = 'em';
    430         $args['format']   = 'list'; 
     516        $args['format']   = 'list';
    431517
    432518        return $args;
    433519}