Ticket #45041: 45041.1.patch
| File 45041.1.patch, 22.2 KB (added by , 8 years ago) |
|---|
-
src/wp-content/themes/twentythirteen/css/blocks.css
1 /* 2 Theme Name: Twenty Thirteen 3 Description: Used to style Gutenberg Blocks. 4 */ 5 6 /*-------------------------------------------------------------- 7 >>> TABLE OF CONTENTS: 8 ---------------------------------------------------------------- 9 1.0 Block Alignments 10 2.0 General Block Styles 11 3.0 Blocks - Common Blocks 12 4.0 Blocks - Formatting 13 5.0 Blocks - Layout Elements 14 6.0 Blocks - Widgets 15 7.0 Blocks - Colors 16 --------------------------------------------------------------*/ 17 18 /*-------------------------------------------------------------- 19 1.0 Block Alignments 20 --------------------------------------------------------------*/ 21 22 .content-area { 23 overflow-x: hidden; /* prevents side-scrolling caused by use of vw */ 24 } 25 26 .alignfull, 27 .alignwide { 28 clear: both; 29 } 30 31 body:not(.sidebar) .alignwide { 32 margin-left: calc(25% - 25vw); 33 margin-right: calc(25% - 25vw); 34 width: auto; 35 max-width: 1600px; 36 } 37 38 body:not(.sidebar) .alignfull { 39 margin-left: calc(50% - 50vw); 40 margin-right: calc(50% - 50vw); 41 width: auto; 42 max-width: 1600px; 43 } 44 45 /* Make non image-based blocks a bit narrower, so they don't get cut off. */ 46 body:not(.sidebar) .wp-block-columns.alignfull, 47 body:not(.sidebar) .wp-block-audio.alignfull, 48 body:not(.sidebar) .wp-block-table.alignfull, 49 body:not(.sidebar) .wp-block-latest-comments.alignfull { 50 margin-left: calc(50% - 48vw); 51 margin-right: calc(50% - 48vw); 52 } 53 54 @media (max-width: 999px) { 55 body.sidebar .alignwide { 56 margin-left: calc(25% - 25vw); 57 margin-right: calc(25% - 25vw); 58 width: auto; 59 max-width: 1600px; 60 } 61 62 body.sidebar .alignfull { 63 margin-left: calc(50% - 50vw); 64 margin-right: calc(50% - 50vw); 65 width: auto; 66 max-width: 1600px; 67 } 68 69 /* Make non image-based blocks a bit narrower, so they don't get cut off. */ 70 body.sidebar .wp-block-columns.alignfull, 71 body.sidebar .wp-block-audio.alignfull, 72 body.sidebar .wp-block-table.alignfull, 73 body.sidebar .wp-block-latest-comments.alignfull { 74 margin-left: calc(50% - 48vw); 75 margin-right: calc(50% - 48vw); 76 } 77 } 78 79 /* Make sure the full and wide blocks still stay in Twenty Thirteen's wide container */ 80 81 @media (min-width: 1600px) { 82 body:not(.sidebar) .alignfull { 83 margin-left: calc(50% - 800px); 84 margin-right: calc(50% - 800px); 85 width: auto; 86 max-width: 1000%; 87 } 88 89 body:not(.sidebar) .wp-block-gallery.alignfull { 90 margin-left: calc(50% - 808px); /* Adjust for gallery margins */ 91 margin-right: calc(50% - 808px); 92 width: auto; 93 max-width: 1000%; 94 } 95 } 96 97 /*-------------------------------------------------------------- 98 2.0 General Block Styles 99 --------------------------------------------------------------*/ 100 101 /* Captions */ 102 103 [class^="wp-block-"] figcaption, 104 [class^="wp-block-"] figcaption.editor-rich-text__tinymce.mce-content-body { 105 color: #220e10; 106 font-size: 18px; 107 font-style: italic; 108 font-weight: 300; 109 line-height: 1.5; 110 margin: 0 0 24px; 111 } 112 113 /*-------------------------------------------------------------- 114 3.0 Blocks - Common Blocks 115 --------------------------------------------------------------*/ 116 117 /* Paragraph */ 118 119 p.has-drop-cap:not(:focus)::first-letter { 120 font-size: 5em; 121 } 122 123 /* Gallery */ 124 125 .wp-block-gallery { 126 margin-bottom: 24px; 127 } 128 129 .wp-block-gallery figcaption { 130 margin-bottom: 0; 131 } 132 133 /* Quote */ 134 135 .wp-block-quote { 136 margin: 24px 40px; 137 padding: 0; 138 } 139 140 .wp-block-quote:not(.is-large):not(.is-style-large) { 141 border-left: 0; 142 border-right: 0; 143 padding-left: 0; 144 padding-right: 0; 145 } 146 147 .wp-block-quote cite { 148 color: inherit; 149 font-size: 16px; 150 font-style: italic; 151 } 152 153 /* Audio */ 154 155 .wp-block-audio audio { 156 display: block; 157 width: 100%; 158 } 159 160 /* Cover Image */ 161 162 .wp-block-cover-image.aligncenter { 163 clear: both; 164 display: flex; 165 } 166 167 /* File */ 168 169 .wp-block-file .wp-block-file__button { 170 background: #e05d22; /* Old browsers */ 171 background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ 172 background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ 173 border: none; 174 border-bottom: 3px solid #b93207; 175 border-radius: 2px; 176 color: #fff; 177 display: inline-block; 178 font-size: 16px; 179 padding: 11px 24px 10px; 180 text-decoration: none; 181 } 182 183 .wp-block-file .wp-block-file__button:hover, 184 .wp-block-file .wp-block-file__button:focus { 185 background: #ed6a31; /* Old browsers */ 186 background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome 10+, Safari 5.1+ */ 187 background: linear-gradient(to bottom, #ed6a31 0%, #e55627 100%); /* W3C */ 188 color: #fff; 189 outline: none; 190 } 191 192 .wp-block-file .wp-block-file__button:active { 193 background: #d94412; /* Old browsers */ 194 background: -webkit-linear-gradient(top, #d94412 0%, #e05d22 100%); /* Chrome 10+, Safari 5.1+ */ 195 background: linear-gradient(to bottom, #d94412 0%, #e05d22 100%); /* W3C */ 196 border: none; 197 border-top: 3px solid #b93207; 198 padding: 10px 24px 11px; 199 } 200 201 /*-------------------------------------------------------------- 202 4.0 Blocks - Formatting 203 --------------------------------------------------------------*/ 204 205 /* Code */ 206 207 .wp-block-code { 208 background-color: transparent; 209 border: 0; 210 padding: 0; 211 } 212 213 /* Pullquote */ 214 215 .wp-block-pullquote { 216 border: 0; 217 padding: 0.5em 0; 218 } 219 220 .wp-block-pullquote__citation, 221 .wp-block-pullquote cite, 222 .wp-block-pullquote footer { 223 color: #141412; 224 } 225 226 /* Table */ 227 228 .wp-block-table { 229 border-bottom: 1px solid #ededed; 230 border-collapse: collapse; 231 border-spacing: 0; 232 font-size: 14px; 233 line-height: 2; 234 margin: 0 0 20px; 235 width: 100%; 236 } 237 238 .wp-block-table th { 239 border: 0; 240 font-weight: bold; 241 text-transform: uppercase; 242 } 243 244 .wp-block-table td { 245 border: 0; 246 border-top: 1px solid #ededed; 247 } 248 249 /*-------------------------------------------------------------- 250 5.0 Blocks - Layout Elements 251 --------------------------------------------------------------*/ 252 253 /* Buttons */ 254 255 .wp-block-button .wp-block-button__link { 256 background: #e05d22; /* Old browsers */ 257 background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ 258 background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ 259 border: none; 260 border-bottom: 3px solid #b93207; 261 border-radius: 2px; 262 color: #fff; 263 display: inline-block; 264 font-size: 16px; 265 padding: 11px 24px 10px; 266 text-decoration: none; 267 } 268 269 .wp-block-button .wp-block-button__link:hover, 270 .wp-block-button .wp-block-button__link:focus { 271 background: #ed6a31; /* Old browsers */ 272 background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome 10+, Safari 5.1+ */ 273 background: linear-gradient(to bottom, #ed6a31 0%, #e55627 100%); /* W3C */ 274 color: #fff; 275 outline: none; 276 } 277 278 .wp-block-button .wp-block-button__link:active { 279 background: #d94412; /* Old browsers */ 280 background: -webkit-linear-gradient(top, #d94412 0%, #e05d22 100%); /* Chrome 10+, Safari 5.1+ */ 281 background: linear-gradient(to bottom, #d94412 0%, #e05d22 100%); /* W3C */ 282 border: none; 283 border-top: 3px solid #b93207; 284 padding: 10px 24px 11px; 285 } 286 287 /* Separator */ 288 289 .wp-block-separator { 290 border: 0; 291 max-width: 100px; 292 } 293 294 .wp-block-separator.is-style-wide { 295 max-width: 100%; 296 } 297 298 /*-------------------------------------------------------------- 299 6.0 Blocks - Widgets 300 --------------------------------------------------------------*/ 301 302 /* Comments */ 303 304 .wp-block-latest-comments { 305 margin: 0; 306 padding: 0; 307 } 308 309 .wp-block-latest-comments .avatar, 310 .wp-block-latest-comments__comment-avatar { 311 border-radius: 0; 312 } 313 314 .wp-block-latest-comments__comment, 315 .wp-block-latest-comments__comment-excerpt, 316 .wp-block-latest-comments__comment-excerpt p { 317 font-size: 16px; 318 } 319 320 .wp-block-latest-comments__comment-excerpt p:last-child { 321 margin-bottom: 0; 322 } 323 324 .wp-block-latest-comments__comment-date { 325 font-size: 16px; 326 } 327 328 .wp-block-latest-comments .wp-block-latest-comments__comment { 329 background: url(../images/dotted-line.png) repeat-x left top; 330 margin-bottom: 0; 331 padding: 24px 0; 332 } 333 334 /*-------------------------------------------------------------- 335 7.0 Blocks - Colors 336 --------------------------------------------------------------*/ 337 338 .has-dark-grey-color { 339 color: #141412; 340 } 341 342 .has-dark-grey-background-color { 343 background-color: #141412; 344 } 345 346 .has-red-color { 347 color: #bc360a; 348 } 349 350 .has-red-background-color { 351 background-color: #bc360a; 352 } 353 354 .has-medium-orange-color { 355 color: #db572f; 356 } 357 358 .has-medium-orange-background-color { 359 background-color: #db572f; 360 } 361 362 .has-light-orange-color { 363 color: #ea9629; 364 } 365 366 .has-light-orange-background-color { 367 background-color: #ea9629; 368 } 369 370 .has-yellow-color { 371 color: #fbca3c; 372 } 373 374 .has-yellow-background-color { 375 background-color: #fbca3c; 376 } 377 378 .has-white-color { 379 color: #fff; 380 } 381 382 .has-white-background-color { 383 background-color: #fff; 384 } 385 386 .has-dark-brown-color { 387 color: #220e10; 388 } 389 390 .has-dark-brown-background-color { 391 background-color: #220e10; 392 } 393 394 .has-medium-brown-color { 395 color: #722d19; 396 } 397 398 .has-medium-brown-background-color { 399 background-color: #722d19; 400 } 401 402 .has-light-brown-color { 403 color: #eadaa6; 404 } 405 406 .has-light-brown-background-color { 407 background-color: #eadaa6; 408 } 409 410 .has-beige-color { 411 color: #e8e5ce; 412 } 413 414 .has-brown-background-color { 415 background-color: #e8e5ce; 416 } 417 418 .has-off-white-color { 419 color: #f7f5e7; 420 } 421 422 .has-off-white-background-color { 423 background-color: #f7f5e7; 424 } -
src/wp-content/themes/twentythirteen/css/editor-blocks.css
1 /* 2 Theme Name: Twenty Thirteen 3 Description: Used to style Gutenberg Blocks in the editor. 4 */ 5 6 /*-------------------------------------------------------------- 7 >>> TABLE OF CONTENTS: 8 ---------------------------------------------------------------- 9 1.0 General Typography 10 2.0 General Block Styles 11 3.0 Blocks - Common Blocks 12 4.0 Blocks - Formatting 13 5.0 Blocks - Layout Elements 14 6.0 Blocks - Widgets 15 --------------------------------------------------------------*/ 16 17 /*-------------------------------------------------------------- 18 1.0 Block Alignments 19 --------------------------------------------------------------*/ 20 21 .editor-block-list__layout .editor-block-list__block[data-align="full"] > .editor-block-list__block-edit figure { 22 width: auto; 23 } 24 25 /*-------------------------------------------------------------- 26 1.0 General Typography 27 --------------------------------------------------------------*/ 28 29 .edit-post-visual-editor .editor-block-list__block, 30 .edit-post-visual-editor .editor-block-list__block p, 31 .editor-default-block-appender input[type="text"].editor-default-block-appender__content { 32 font-family: "Source Sans Pro", Helvetica, sans-serif; 33 font-size: 16px; 34 font-weight: 400; 35 line-height: 1.5; 36 } 37 38 .edit-post-visual-editor .editor-block-list__block { 39 color: #141412; 40 } 41 42 .editor-post-title__block .editor-post-title__input { 43 font-family: Bitter, Georgia, serif; 44 font-size: 48px; 45 font-weight: 300; 46 line-height: 1.0909090909; 47 margin-bottom: 12px; 48 margin: 0 0 12px 0; 49 } 50 51 /*-------------------------------------------------------------- 52 2.0 General Block Styles 53 --------------------------------------------------------------*/ 54 55 /* Main column width */ 56 57 .edit-post-visual-editor .editor-post-title__block, 58 .edit-post-visual-editor .editor-default-block-appender, 59 .edit-post-visual-editor .editor-block-list__block { 60 max-width: 634px; /* 604 + 30 for editor block padding */ 61 } 62 63 .edit-post-visual-editor .wp-block-columns .editor-block-list__block { 64 max-width: 100%; 65 } 66 67 /* Link styles */ 68 69 .edit-post-visual-editor a, 70 .editor-block-list__block a, 71 .wp-block-freeform.block-library-rich-text__tinymce a { 72 color: #bc360a; 73 } 74 75 /* List styles */ 76 77 .edit-post-visual-editor ul:not(.wp-block-gallery), 78 .editor-block-list__block ul:not(.wp-block-gallery), 79 .block-library-list ul, 80 .edit-post-visual-editor ol, 81 .editor-block-list__block ol, 82 .block-library-list ol { 83 margin: 16px 0; 84 padding: 0 0 0 40px; 85 } 86 87 .block-library-list .editor-rich-text__tinymce { 88 padding: 0 0 0 40px; 89 } 90 91 .edit-post-visual-editor ul:not(.wp-block-gallery), 92 .edit-post-visual-editor .editor-block-list__block ul:not(.wp-block-gallery), 93 .block-library-list ul { 94 list-style-type: square; 95 } 96 97 .edit-post-visual-editor ol, 98 .editor-block-list__block ol, 99 .block-library-list ol { 100 list-style: decimal; 101 } 102 103 .edit-post-visual-editor ul:not(.wp-block-gallery) li > ul, 104 .editor-block-list__block ul:not(.wp-block-gallery) li > ul, 105 .block-library-list li > ul, 106 .edit-post-visual-editor li > ol, 107 .editor-block-list__block li > ol, 108 .block-library-list li > ol { 109 margin: 0; 110 } 111 112 .edit-post-visual-editor ul:not(.wp-block-gallery) li, 113 .editor-block-list__block ul:not(.wp-block-gallery) li, 114 .edit-post-visual-editor ol li, 115 .editor-block-list__block ol li, 116 .block-library-list li { 117 margin-bottom: 0; 118 } 119 120 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery), 121 .rtl .editor-block-list__block ul:not(.wp-block-gallery), 122 .rtl .block-library-list ul, 123 .rtl .edit-post-visual-editor ol, 124 .rtl .editor-block-list__block ol, 125 .rtl .block-library-list ol { 126 padding-left: 0; 127 padding-right: 40px; 128 } 129 130 .rtl .block-library-list .editor-rich-text__tinymce { 131 padding-left: 0; 132 padding-right: 40px; 133 } 134 135 136 /* Quote */ 137 138 .wp-block-freeform.block-library-rich-text__tinymce blockquote { 139 border-left: 0; 140 border-right: 0; 141 font-style: italic; 142 margin: 24px 40px; 143 padding-left: 0; 144 padding-right: 0; 145 } 146 147 .wp-block-freeform.block-library-rich-text__tinymce blockquote p { 148 font-size: 24px; 149 font-weight: 300; 150 } 151 152 /* Table */ 153 154 .rtl .editor-block-list__block table th, 155 .rtl .editor-block-list__block table td { 156 text-align: right; 157 } 158 159 /* Code */ 160 161 .wp-block-freeform.block-library-rich-text__tinymce code { 162 background: transparent; 163 } 164 165 /* Captions */ 166 167 [class^="wp-block-"] figcaption, 168 [class^="wp-block-"] figcaption.editor-rich-text__tinymce.mce-content-body { 169 color: #220e10; 170 font-size: 18px; 171 font-style: italic; 172 font-weight: 300; 173 line-height: 1.5; 174 margin: 0 0 24px; 175 } 176 177 /*-------------------------------------------------------------- 178 3.0 Blocks - Common Blocks 179 --------------------------------------------------------------*/ 180 181 /* Paragraph */ 182 183 p.has-drop-cap:not(:focus)::first-letter { 184 font-size: 5em; 185 } 186 187 /* Gallery */ 188 189 .edit-post-visual-editor .wp-block-gallery { 190 margin-bottom: 24px; 191 padding: 0; 192 } 193 194 .wp-block-gallery figcaption, 195 .wp-block-gallery figcaption.editor-rich-text__tinymce.mce-content-body { 196 color: #fff; 197 font-size: 13px; 198 margin-bottom: 0; 199 } 200 201 /* Quote */ 202 203 .wp-block-quote { 204 font-style: italic; 205 margin: 24px 40px; 206 padding: 0; 207 } 208 209 .editor-block-list__block .wp-block-quote p { 210 font-size: 24px; 211 font-weight: 300; 212 } 213 214 .wp-block-quote:not(.is-large):not(.is-style-large) { 215 border-left: 0; 216 border-right: 0; 217 padding-left: 0; 218 padding-right: 0; 219 } 220 221 .wp-block-quote .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body { 222 color: inherit; 223 font-size: 16px; 224 font-style: italic; 225 text-transform: uppercase; 226 } 227 228 /* Cover Image */ 229 230 .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text { 231 font-size: 32px; 232 line-height: 1.25; 233 } 234 235 /* File */ 236 237 .wp-block-file .wp-block-file__textlink { 238 color: #bc360a; 239 } 240 241 .wp-block-file .wp-block-file__button { 242 background: #e05d22; /* Old browsers */ 243 background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ 244 background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ 245 border: none; 246 border-bottom: 3px solid #b93207; 247 border-radius: 2px; 248 color: #fff; 249 display: inline-block; 250 font-size: 16px; 251 line-height: 24px; 252 padding: 11px 24px 10px; 253 text-decoration: none; 254 } 255 256 /*-------------------------------------------------------------- 257 4.0 Blocks - Formatting 258 --------------------------------------------------------------*/ 259 260 /* Code */ 261 262 .wp-block-code { 263 border: 0; 264 padding: 0; 265 } 266 267 /* Custom HTML */ 268 269 .wp-block-html .CodeMirror-lines pre { 270 background-color: inherit; 271 border: inherit; 272 font-size: inherit; 273 line-height: inherit; 274 margin: inherit; 275 padding: inherit; 276 } 277 278 /* Pullquote */ 279 280 .edit-post-visual-editor .wp-block-pullquote { 281 border: 0; 282 padding: 0.5em 0; 283 } 284 285 .edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p { 286 font-weight: 300; 287 } 288 289 .edit-post-visual-editor .wp-block-pullquote__citation, 290 .edit-post-visual-editor .wp-block-pullquote cite, 291 .edit-post-visual-editor .wp-block-pullquote footer { 292 color: #141412; 293 font-size: 16px; 294 } 295 296 /* Table */ 297 298 .wp-block-table { 299 border-bottom: 1px solid #ededed; 300 border-collapse: collapse; 301 border-spacing: 0; 302 font-size: 14px; 303 line-height: 2; 304 margin: 0 0 20px; 305 width: 100%; 306 } 307 308 .wp-block-table th { 309 border: 0; 310 font-weight: bold; 311 text-transform: uppercase; 312 } 313 314 .editor-block-list__block .wp-block-table td { 315 border: 0; 316 border-top: 1px solid #ededed; 317 padding: 0; 318 } 319 320 /*-------------------------------------------------------------- 321 5.0 Blocks - Layout Elements 322 --------------------------------------------------------------*/ 323 324 /* Buttons */ 325 326 .wp-block-button .wp-block-button__link { 327 background: #e05d22; /* Old browsers */ 328 background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ 329 background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ 330 border: none; 331 border-bottom: 3px solid #b93207; 332 border-radius: 2px; 333 color: #fff; 334 display: inline-block; 335 font-size: 16px; 336 line-height: 24px; 337 padding: 11px 24px 10px; 338 text-decoration: none; 339 } 340 341 /* Separator */ 342 343 .editor-block-list__block hr.wp-block-separator { 344 margin-left: auto; 345 margin-right: auto; 346 } 347 348 /*-------------------------------------------------------------- 349 6.0 Blocks - Widgets 350 --------------------------------------------------------------*/ 351 352 /* Comments */ 353 354 .editor-block-list__block .wp-block-latest-comments { 355 margin: 0; 356 padding: 0; 357 } 358 359 .wp-block-latest-comments .avatar, 360 .wp-block-latest-comments__comment-avatar { 361 border-radius: 0; 362 } 363 364 .wp-block-latest-comments__comment, 365 .wp-block-latest-comments__comment-excerpt, 366 .wp-block-latest-comments__comment-excerpt p { 367 font-size: 16px; 368 } 369 370 .wp-block-latest-comments__comment-excerpt p:last-child { 371 margin-bottom: 0; 372 } 373 374 .wp-block-latest-comments__comment-date { 375 font-size: 16px; 376 } 377 378 .wp-block-latest-comments .wp-block-latest-comments__comment { 379 background: url(../images/dotted-line.png) repeat-x left top; 380 margin-bottom: 0; 381 padding: 24px 0; 382 } -
src/wp-content/themes/twentythirteen/functions.php
74 74 */ 75 75 add_editor_style( array( 'css/editor-style.css', 'genericons/genericons.css', twentythirteen_fonts_url() ) ); 76 76 77 // Load regular editor styles into the new block-based editor. 78 add_theme_support( 'editor-styles' ); 79 80 // Load default block styles. 81 add_theme_support( 'wp-block-styles' ); 82 83 // Add support for full and wide align images. 84 add_theme_support( 'align-wide' ); 85 86 // Add support for custom color scheme. 87 add_theme_support( 'editor-color-palette', array( 88 array( 89 'name' => __( 'Dark Grey', 'twentythirteen' ), 90 'slug' => 'dark-grey', 91 'color' => '#141412', 92 ), 93 array( 94 'name' => __( 'Red', 'twentythirteen' ), 95 'slug' => 'red', 96 'color' => '#bc360a', 97 ), 98 array( 99 'name' => __( 'Medium Orange', 'twentythirteen' ), 100 'slug' => 'medium-orange', 101 'color' => '#db572f', 102 ), 103 array( 104 'name' => __( 'Light Orange', 'twentythirteen' ), 105 'slug' => 'light-orange', 106 'color' => '#ea9629', 107 ), 108 array( 109 'name' => __( 'Yellow', 'twentythirteen' ), 110 'slug' => 'yellow', 111 'color' => '#fbca3c', 112 ), 113 array( 114 'name' => __( 'White', 'twentythirteen' ), 115 'slug' => 'white', 116 'color' => '#fff', 117 ), 118 array( 119 'name' => __( 'Dark Brown', 'twentythirteen' ), 120 'slug' => 'dark-brown', 121 'color' => '#220e10', 122 ), 123 array( 124 'name' => __( 'Medium Brown', 'twentythirteen' ), 125 'slug' => 'medium-brown', 126 'color' => '#722d19', 127 ), 128 array( 129 'name' => __( 'Light Brown', 'twentythirteen' ), 130 'slug' => 'light-brown', 131 'color' => '#eadaa6', 132 ), 133 array( 134 'name' => __( 'Beige', 'twentythirteen' ), 135 'slug' => 'beige', 136 'color' => '#e8e5ce', 137 ), 138 array( 139 'name' => __( 'Off-white', 'twentythirteen' ), 140 'slug' => 'off-white', 141 'color' => '#f7f5e7', 142 ), 143 ) ); 144 77 145 // Adds RSS feed links to <head> for posts and comments. 78 146 add_theme_support( 'automatic-feed-links' ); 79 147 … … 184 252 // Loads our main stylesheet. 185 253 wp_enqueue_style( 'twentythirteen-style', get_stylesheet_uri(), array(), '2013-07-18' ); 186 254 255 // Theme block stylesheet. 256 wp_enqueue_style( 'twentythirteen-block-style', get_theme_file_uri( '/css/blocks.css' ), array( 'twentythirteen-style' ), '1.0' ); 257 187 258 // Loads the Internet Explorer specific stylesheet. 188 259 wp_enqueue_style( 'twentythirteen-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentythirteen-style' ), '2013-07-18' ); 189 260 wp_style_add_data( 'twentythirteen-ie', 'conditional', 'lt IE 9' ); … … 216 287 add_filter( 'wp_resource_hints', 'twentythirteen_resource_hints', 10, 2 ); 217 288 218 289 /** 290 * Enqueue editor styles for Gutenberg 291 * 292 * @since Twenty Thirteen 2.5 293 */ 294 function twentythirteen_block_editor_styles() { 295 // Block styles. 296 wp_enqueue_style( 'twentythirteen-block-editor-style', get_template_directory_uri() . '/css/editor-blocks.css' ); 297 // Add custom fonts. 298 wp_enqueue_style( 'twentythirteen-fonts', twentythirteen_fonts_url(), array(), null ); 299 } 300 add_action( 'enqueue_block_editor_assets', 'twentythirteen_block_editor_styles' ); 301 302 /** 219 303 * Filter the page title. 220 304 * 221 305 * Creates a nicely formatted and more specific title element text for output