Ticket #45041: 45041.2.patch
| File 45041.2.patch, 22.6 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.is-large p, 148 .wp-block-quote.is-style-large p { 149 font-size: 28px; 150 } 151 152 .wp-block-quote cite { 153 color: inherit; 154 font-size: inherit; 155 font-style: italic; 156 } 157 158 /* Audio */ 159 160 .wp-block-audio audio { 161 display: block; 162 width: 100%; 163 } 164 165 /* Cover Image */ 166 167 .wp-block-cover-image.aligncenter { 168 clear: both; 169 display: flex; 170 } 171 172 /* File */ 173 174 .wp-block-file .wp-block-file__button { 175 background: #e05d22; /* Old browsers */ 176 background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ 177 background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ 178 border: none; 179 border-bottom: 3px solid #b93207; 180 border-radius: 2px; 181 color: #fff; 182 display: inline-block; 183 font-size: 16px; 184 padding: 11px 24px 10px; 185 text-decoration: none; 186 } 187 188 .wp-block-file .wp-block-file__button:hover, 189 .wp-block-file .wp-block-file__button:focus { 190 background: #ed6a31; /* Old browsers */ 191 background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome 10+, Safari 5.1+ */ 192 background: linear-gradient(to bottom, #ed6a31 0%, #e55627 100%); /* W3C */ 193 color: #fff; 194 outline: none; 195 } 196 197 .wp-block-file .wp-block-file__button:active { 198 background: #d94412; /* Old browsers */ 199 background: -webkit-linear-gradient(top, #d94412 0%, #e05d22 100%); /* Chrome 10+, Safari 5.1+ */ 200 background: linear-gradient(to bottom, #d94412 0%, #e05d22 100%); /* W3C */ 201 border: none; 202 border-top: 3px solid #b93207; 203 padding: 10px 24px 11px; 204 } 205 206 /*-------------------------------------------------------------- 207 4.0 Blocks - Formatting 208 --------------------------------------------------------------*/ 209 210 /* Code */ 211 212 .wp-block-code { 213 background-color: transparent; 214 border: 0; 215 padding: 0; 216 } 217 218 /* Pullquote */ 219 220 .wp-block-pullquote { 221 border: 0; 222 padding: 0.5em 0; 223 } 224 225 .wp-block-pullquote__citation, 226 .wp-block-pullquote cite, 227 .wp-block-pullquote footer { 228 color: #141412; 229 } 230 231 /* Table */ 232 233 .wp-block-table { 234 border-bottom: 1px solid #ededed; 235 border-collapse: collapse; 236 border-spacing: 0; 237 font-size: 14px; 238 line-height: 2; 239 margin: 0 0 20px; 240 width: 100%; 241 } 242 243 .wp-block-table th { 244 border: 0; 245 font-weight: bold; 246 text-transform: uppercase; 247 } 248 249 .wp-block-table td { 250 border: 0; 251 border-top: 1px solid #ededed; 252 } 253 254 /*-------------------------------------------------------------- 255 5.0 Blocks - Layout Elements 256 --------------------------------------------------------------*/ 257 258 /* Buttons */ 259 260 .wp-block-button .wp-block-button__link { 261 background: #e05d22; /* Old browsers */ 262 background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ 263 background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ 264 border: none; 265 border-bottom: 3px solid #b93207; 266 border-radius: 2px; 267 color: #fff; 268 display: inline-block; 269 font-size: 16px; 270 padding: 11px 24px 10px; 271 text-decoration: none; 272 } 273 274 .wp-block-button .wp-block-button__link:hover, 275 .wp-block-button .wp-block-button__link:focus { 276 background: #ed6a31; /* Old browsers */ 277 background: -webkit-linear-gradient(top, #ed6a31 0%, #e55627 100%); /* Chrome 10+, Safari 5.1+ */ 278 background: linear-gradient(to bottom, #ed6a31 0%, #e55627 100%); /* W3C */ 279 color: #fff; 280 outline: none; 281 } 282 283 .wp-block-button .wp-block-button__link:active { 284 background: #d94412; /* Old browsers */ 285 background: -webkit-linear-gradient(top, #d94412 0%, #e05d22 100%); /* Chrome 10+, Safari 5.1+ */ 286 background: linear-gradient(to bottom, #d94412 0%, #e05d22 100%); /* W3C */ 287 border: none; 288 border-top: 3px solid #b93207; 289 padding: 10px 24px 11px; 290 } 291 292 /* Separator */ 293 294 .wp-block-separator { 295 border: 0; 296 max-width: 100px; 297 } 298 299 .wp-block-separator.is-style-wide { 300 max-width: 100%; 301 } 302 303 /*-------------------------------------------------------------- 304 6.0 Blocks - Widgets 305 --------------------------------------------------------------*/ 306 307 /* Latest Comments */ 308 309 .wp-block-latest-comments { 310 margin: 0; 311 padding: 0; 312 } 313 314 .wp-block-latest-comments .avatar, 315 .wp-block-latest-comments__comment-avatar { 316 border-radius: 0; 317 } 318 319 .wp-block-latest-comments__comment, 320 .wp-block-latest-comments__comment-excerpt, 321 .wp-block-latest-comments__comment-excerpt p { 322 font-size: 16px; 323 } 324 325 .wp-block-latest-comments__comment-excerpt p:last-child { 326 margin-bottom: 0; 327 } 328 329 .wp-block-latest-comments__comment-date { 330 font-size: 16px; 331 } 332 333 .wp-block-latest-comments .wp-block-latest-comments__comment { 334 background: url(../images/dotted-line.png) repeat-x left top; 335 margin-bottom: 0; 336 padding: 24px 0; 337 } 338 339 /*-------------------------------------------------------------- 340 7.0 Blocks - Colors 341 --------------------------------------------------------------*/ 342 343 .has-dark-gray-color { 344 color: #141412; 345 } 346 347 .has-dark-gray-background-color { 348 background-color: #141412; 349 } 350 351 .has-red-color { 352 color: #bc360a; 353 } 354 355 .has-red-background-color { 356 background-color: #bc360a; 357 } 358 359 .has-medium-orange-color { 360 color: #db572f; 361 } 362 363 .has-medium-orange-background-color { 364 background-color: #db572f; 365 } 366 367 .has-light-orange-color { 368 color: #ea9629; 369 } 370 371 .has-light-orange-background-color { 372 background-color: #ea9629; 373 } 374 375 .has-yellow-color { 376 color: #fbca3c; 377 } 378 379 .has-yellow-background-color { 380 background-color: #fbca3c; 381 } 382 383 .has-white-color { 384 color: #fff; 385 } 386 387 .has-white-background-color { 388 background-color: #fff; 389 } 390 391 .has-dark-brown-color { 392 color: #220e10; 393 } 394 395 .has-dark-brown-background-color { 396 background-color: #220e10; 397 } 398 399 .has-medium-brown-color { 400 color: #722d19; 401 } 402 403 .has-medium-brown-background-color { 404 background-color: #722d19; 405 } 406 407 .has-light-brown-color { 408 color: #eadaa6; 409 } 410 411 .has-light-brown-background-color { 412 background-color: #eadaa6; 413 } 414 415 .has-beige-color { 416 color: #e8e5ce; 417 } 418 419 .has-brown-background-color { 420 background-color: #e8e5ce; 421 } 422 423 .has-off-white-color { 424 color: #f7f5e7; 425 } 426 427 .has-off-white-background-color { 428 background-color: #f7f5e7; 429 } -
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 2.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 3.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 /* Link styles */ 64 65 .edit-post-visual-editor a, 66 .editor-block-list__block a, 67 .wp-block-freeform.block-library-rich-text__tinymce a { 68 color: #bc360a; 69 } 70 71 /* List styles */ 72 73 .edit-post-visual-editor ul:not(.wp-block-gallery), 74 .editor-block-list__block ul:not(.wp-block-gallery), 75 .block-library-list ul, 76 .edit-post-visual-editor ol, 77 .editor-block-list__block ol, 78 .block-library-list ol { 79 margin: 16px 0; 80 padding: 0 0 0 40px; 81 } 82 83 .block-library-list .editor-rich-text__tinymce { 84 padding: 0 0 0 40px; 85 } 86 87 .edit-post-visual-editor ul:not(.wp-block-gallery), 88 .edit-post-visual-editor .editor-block-list__block ul:not(.wp-block-gallery), 89 .block-library-list ul { 90 list-style-type: square; 91 } 92 93 .edit-post-visual-editor ol, 94 .editor-block-list__block ol, 95 .block-library-list ol { 96 list-style: decimal; 97 } 98 99 .edit-post-visual-editor ul:not(.wp-block-gallery) li > ul, 100 .editor-block-list__block ul:not(.wp-block-gallery) li > ul, 101 .block-library-list li > ul, 102 .edit-post-visual-editor li > ol, 103 .editor-block-list__block li > ol, 104 .block-library-list li > ol { 105 margin: 0; 106 } 107 108 .edit-post-visual-editor ul:not(.wp-block-gallery) li, 109 .editor-block-list__block ul:not(.wp-block-gallery) li, 110 .edit-post-visual-editor ol li, 111 .editor-block-list__block ol li, 112 .block-library-list li { 113 margin-bottom: 0; 114 } 115 116 .rtl .edit-post-visual-editor ul:not(.wp-block-gallery), 117 .rtl .editor-block-list__block ul:not(.wp-block-gallery), 118 .rtl .block-library-list ul, 119 .rtl .edit-post-visual-editor ol, 120 .rtl .editor-block-list__block ol, 121 .rtl .block-library-list ol { 122 padding-left: 0; 123 padding-right: 40px; 124 } 125 126 .rtl .block-library-list .editor-rich-text__tinymce { 127 padding-left: 0; 128 padding-right: 40px; 129 } 130 131 /* Quote */ 132 133 .wp-block-freeform.block-library-rich-text__tinymce blockquote { 134 border-left: 0; 135 border-right: 0; 136 font-style: italic; 137 margin: 24px 40px; 138 padding-left: 0; 139 padding-right: 0; 140 } 141 142 .wp-block-freeform.block-library-rich-text__tinymce blockquote p { 143 font-size: 24px; 144 font-weight: 300; 145 } 146 147 /* Table */ 148 149 .rtl .editor-block-list__block table th, 150 .rtl .editor-block-list__block table td { 151 text-align: right; 152 } 153 154 /* Code */ 155 156 .wp-block-freeform.block-library-rich-text__tinymce code { 157 background: transparent; 158 } 159 160 /* Captions */ 161 162 [class^="wp-block-"] figcaption, 163 [class^="wp-block-"] figcaption.editor-rich-text__tinymce.mce-content-body { 164 color: #220e10; 165 font-size: 18px; 166 font-style: italic; 167 font-weight: 300; 168 line-height: 1.5; 169 margin: 0 0 24px; 170 } 171 172 /*-------------------------------------------------------------- 173 4.0 Blocks - Common Blocks 174 --------------------------------------------------------------*/ 175 176 /* Paragraph */ 177 178 p.has-drop-cap:not(:focus)::first-letter { 179 font-size: 5em; 180 } 181 182 /* Gallery */ 183 184 .edit-post-visual-editor .wp-block-gallery { 185 margin-bottom: 24px; 186 padding: 0; 187 } 188 189 .wp-block-gallery figcaption, 190 .wp-block-gallery figcaption.editor-rich-text__tinymce.mce-content-body { 191 color: #fff; 192 font-size: 13px; 193 margin-bottom: 0; 194 } 195 196 /* Quote */ 197 198 .wp-block-quote { 199 font-style: italic; 200 margin: 24px 40px; 201 padding: 0; 202 } 203 204 .editor-block-list__block .wp-block-quote p { 205 font-size: 24px; 206 font-weight: 300; 207 } 208 209 .wp-block-quote:not(.is-large):not(.is-style-large) { 210 border-left: 0; 211 border-right: 0; 212 padding-left: 0; 213 padding-right: 0; 214 } 215 216 .wp-block-quote .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body { 217 color: inherit; 218 font-size: 16px; 219 font-style: italic; 220 text-transform: uppercase; 221 } 222 223 .wp-block-quote.is-large p, 224 .wp-block-quote.is-style-large p { 225 font-size: 28px; 226 } 227 228 .wp-block-quote.is-large .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body, 229 .wp-block-quote.is-style-large .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body { 230 font-size: 18px; 231 } 232 233 /* Cover Image */ 234 235 .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text { 236 font-size: 32px; 237 line-height: 1.25; 238 } 239 240 /* File */ 241 242 .wp-block-file .wp-block-file__textlink { 243 color: #bc360a; 244 } 245 246 .wp-block-file .wp-block-file__button { 247 background: #e05d22; /* Old browsers */ 248 background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ 249 background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ 250 border: none; 251 border-bottom: 3px solid #b93207; 252 border-radius: 2px; 253 color: #fff; 254 display: inline-block; 255 font-size: 16px; 256 line-height: 24px; 257 padding: 11px 24px 10px; 258 text-decoration: none; 259 } 260 261 /*-------------------------------------------------------------- 262 5.0 Blocks - Formatting 263 --------------------------------------------------------------*/ 264 265 /* Code */ 266 267 .wp-block-code { 268 border: 0; 269 padding: 0; 270 } 271 272 /* Pullquote */ 273 274 .edit-post-visual-editor .wp-block-pullquote { 275 border: 0; 276 padding: 0.5em 0; 277 } 278 279 .edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p { 280 font-weight: 300; 281 } 282 283 .edit-post-visual-editor .wp-block-pullquote__citation, 284 .edit-post-visual-editor .wp-block-pullquote cite, 285 .edit-post-visual-editor .wp-block-pullquote footer { 286 color: #141412; 287 font-size: 16px; 288 } 289 290 /* Table */ 291 292 .wp-block-table { 293 border-bottom: 1px solid #ededed; 294 border-collapse: collapse; 295 border-spacing: 0; 296 font-size: 14px; 297 line-height: 2; 298 margin: 0 0 20px; 299 width: 100%; 300 } 301 302 .wp-block-table th { 303 border: 0; 304 font-weight: bold; 305 text-transform: uppercase; 306 } 307 308 .editor-block-list__block .wp-block-table td { 309 border: 0; 310 border-top: 1px solid #ededed; 311 padding: 0; 312 } 313 314 /*-------------------------------------------------------------- 315 6.0 Blocks - Layout Elements 316 --------------------------------------------------------------*/ 317 318 /* Buttons */ 319 320 .wp-block-button .wp-block-button__link { 321 background: #e05d22; /* Old browsers */ 322 background: -webkit-linear-gradient(top, #e05d22 0%, #d94412 100%); /* Chrome 10+, Safari 5.1+ */ 323 background: linear-gradient(to bottom, #e05d22 0%, #d94412 100%); /* W3C */ 324 border: none; 325 border-bottom: 3px solid #b93207; 326 border-radius: 2px; 327 color: #fff; 328 display: inline-block; 329 font-size: 16px; 330 line-height: 24px; 331 padding: 11px 24px 10px; 332 text-decoration: none; 333 } 334 335 /* Separator */ 336 337 .editor-block-list__block hr.wp-block-separator { 338 margin-left: auto; 339 margin-right: auto; 340 } 341 342 /*-------------------------------------------------------------- 343 7.0 Blocks - Widgets 344 --------------------------------------------------------------*/ 345 346 /* Latest Comments */ 347 348 .editor-block-list__block .wp-block-latest-comments { 349 margin: 0; 350 padding: 0; 351 } 352 353 .wp-block-latest-comments .avatar, 354 .wp-block-latest-comments__comment-avatar { 355 border-radius: 0; 356 } 357 358 .wp-block-latest-comments__comment, 359 .wp-block-latest-comments__comment-excerpt, 360 .wp-block-latest-comments__comment-excerpt p { 361 font-size: 16px; 362 } 363 364 .wp-block-latest-comments__comment-excerpt p:last-child { 365 margin-bottom: 0; 366 } 367 368 .wp-block-latest-comments__comment-date { 369 font-size: 16px; 370 } 371 372 .wp-block-latest-comments .wp-block-latest-comments__comment { 373 background: url(../images/dotted-line.png) repeat-x left top; 374 margin-bottom: 0; 375 padding: 24px 0; 376 } 377 378 /* Latest Posts */ 379 380 .edit-post-visual-editor .editor-block-list__block .wp-block-latest-posts.is-grid { 381 list-style-type: none; 382 margin-left: 0; 383 margin-right: 0; 384 } 385 386 .edit-post-visual-editor .wp-block-latest-posts.is-grid li { 387 margin-bottom: 1em; 388 } -
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 Gray', 'twentythirteen' ), 90 'slug' => 'dark-gray', 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_template_directory_uri() . '/css/blocks.css', array( 'twentythirteen-style' ), '2018-10-18' ); 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