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