| | 1 | /* |
| | 2 | Theme Name: Twenty Fourteen |
| | 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 General Typography |
| | 19 | --------------------------------------------------------------*/ |
| | 20 | |
| | 21 | .edit-post-visual-editor .editor-block-list__block, |
| | 22 | .edit-post-visual-editor .editor-block-list__block p, |
| | 23 | .editor-default-block-appender input[type="text"].editor-default-block-appender__content { |
| | 24 | line-height: 1.5; |
| | 25 | } |
| | 26 | |
| | 27 | .edit-post-visual-editor .editor-block-list__block { |
| | 28 | color: #2b2b2b; |
| | 29 | } |
| | 30 | |
| | 31 | .editor-post-title__block .editor-post-title__input { |
| | 32 | font-family: Lato, sans-serif; |
| | 33 | font-size: 33px; |
| | 34 | font-weight: 300; |
| | 35 | line-height: 1.0909090909; |
| | 36 | text-transform: uppercase; |
| | 37 | } |
| | 38 | |
| | 39 | /* Headers */ |
| | 40 | |
| | 41 | .wp-block-freeform.block-library-rich-text__tinymce h1 { |
| | 42 | font-size: 26px; |
| | 43 | } |
| | 44 | |
| | 45 | .wp-block-freeform.block-library-rich-text__tinymce h2 { |
| | 46 | font-size: 24px; |
| | 47 | } |
| | 48 | |
| | 49 | .wp-block-freeform.block-library-rich-text__tinymce h3 { |
| | 50 | font-size: 22px; |
| | 51 | } |
| | 52 | |
| | 53 | .wp-block-freeform.block-library-rich-text__tinymce h4 { |
| | 54 | font-size: 20px; |
| | 55 | } |
| | 56 | |
| | 57 | .wp-block-freeform.block-library-rich-text__tinymce h5 { |
| | 58 | font-size: 18px; |
| | 59 | } |
| | 60 | |
| | 61 | .wp-block-freeform.block-library-rich-text__tinymce h6 { |
| | 62 | font-size: 16px; |
| | 63 | } |
| | 64 | |
| | 65 | /*-------------------------------------------------------------- |
| | 66 | 2.0 General Block Styles |
| | 67 | --------------------------------------------------------------*/ |
| | 68 | |
| | 69 | /* Main column width */ |
| | 70 | |
| | 71 | body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block, |
| | 72 | body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender, |
| | 73 | body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block { |
| | 74 | max-width: 504px; /* 474 + 30 for editor block padding */ |
| | 75 | } |
| | 76 | |
| | 77 | /* Link styles */ |
| | 78 | |
| | 79 | .edit-post-visual-editor a, |
| | 80 | .editor-block-list__block a, |
| | 81 | .wp-block-freeform.block-library-rich-text__tinymce a { |
| | 82 | color: #24890d; |
| | 83 | } |
| | 84 | |
| | 85 | /* List styles */ |
| | 86 | |
| | 87 | .wp-block-freeform.block-library-rich-text__tinymce li { |
| | 88 | line-height: 1.5; |
| | 89 | } |
| | 90 | |
| | 91 | .edit-post-visual-editor ul:not(.wp-block-gallery), |
| | 92 | .editor-block-list__block ul:not(.wp-block-gallery), |
| | 93 | .block-library-list ul, |
| | 94 | .edit-post-visual-editor ol, |
| | 95 | .editor-block-list__block ol, |
| | 96 | .block-library-list ol { |
| | 97 | margin: 0 0 1.6em 1.3333em; |
| | 98 | padding: 0; |
| | 99 | } |
| | 100 | |
| | 101 | .block-library-list .editor-rich-text__tinymce { |
| | 102 | padding: 0; |
| | 103 | } |
| | 104 | |
| | 105 | .edit-post-visual-editor ul:not(.wp-block-gallery), |
| | 106 | .editor-block-list__block ul:not(.wp-block-gallery), |
| | 107 | .block-library-list ul { |
| | 108 | list-style: disc; |
| | 109 | } |
| | 110 | |
| | 111 | .edit-post-visual-editor ol, |
| | 112 | .editor-block-list__block ol, |
| | 113 | .block-library-list ol { |
| | 114 | list-style: decimal; |
| | 115 | } |
| | 116 | |
| | 117 | .edit-post-visual-editor ul:not(.wp-block-gallery) li > ul, |
| | 118 | .editor-block-list__block ul:not(.wp-block-gallery) li > ul, |
| | 119 | .block-library-list li > ul, |
| | 120 | .edit-post-visual-editor li > ol, |
| | 121 | .editor-block-list__block li > ol, |
| | 122 | .block-library-list li > ol { |
| | 123 | margin-bottom: 0; |
| | 124 | } |
| | 125 | |
| | 126 | .wp-block-freeform.block-library-rich-text__tinymce li, |
| | 127 | .editor-block-list__block li { |
| | 128 | margin-bottom: 0; |
| | 129 | } |
| | 130 | |
| | 131 | .rtl .edit-post-visual-editor ul:not(.wp-block-gallery), |
| | 132 | .rtl .editor-block-list__block ul:not(.wp-block-gallery), |
| | 133 | .rtl .block-library-list ul, |
| | 134 | .rtl .edit-post-visual-editor ol, |
| | 135 | .rtl .editor-block-list__block ol, |
| | 136 | .rtl .block-library-list ol { |
| | 137 | margin-left: 0; |
| | 138 | margin-right: 1.3333em; |
| | 139 | } |
| | 140 | |
| | 141 | /* Code */ |
| | 142 | |
| | 143 | .wp-block-freeform.block-library-rich-text__tinymce code { |
| | 144 | background: transparent; |
| | 145 | } |
| | 146 | |
| | 147 | |
| | 148 | /* Captions */ |
| | 149 | |
| | 150 | [class^="wp-block-"] figcaption, |
| | 151 | [class^="wp-block-"] figcaption.editor-rich-text__tinymce.mce-content-body { |
| | 152 | font-size: 12px; |
| | 153 | font-style: italic; |
| | 154 | line-height: 1.5; |
| | 155 | margin: 9px 0 0; |
| | 156 | } |
| | 157 | |
| | 158 | /* Tables */ |
| | 159 | |
| | 160 | .edit-post-visual-editor .editor-block-list__block table, |
| | 161 | .edit-post-visual-editor .editor-block-list__block table th, |
| | 162 | .edit-post-visual-editor .editor-block-list__block table td { |
| | 163 | border: 1px solid rgba(0, 0, 0, 0.1); |
| | 164 | font-size: 14px; |
| | 165 | line-height: 1.2857142857; |
| | 166 | } |
| | 167 | |
| | 168 | .edit-post-visual-editor .editor-block-list__block table { |
| | 169 | border-collapse: separate; |
| | 170 | border-spacing: 0; |
| | 171 | border-width: 1px 0 0 1px; |
| | 172 | margin-bottom: 24px; |
| | 173 | width: 100%; |
| | 174 | } |
| | 175 | |
| | 176 | .edit-post-visual-editor .editor-block-list__block table th { |
| | 177 | border-width: 0 1px 1px 0; |
| | 178 | font-weight: 700; |
| | 179 | text-align: left; |
| | 180 | text-transform: uppercase; |
| | 181 | } |
| | 182 | |
| | 183 | .edit-post-visual-editor .editor-block-list__block table td { |
| | 184 | border-width: 0 1px 1px 0; |
| | 185 | } |
| | 186 | |
| | 187 | .rtl .edit-post-visual-editor .editor-block-list__block table th { |
| | 188 | text-align: right; |
| | 189 | } |
| | 190 | |
| | 191 | /* Quotes */ |
| | 192 | |
| | 193 | .wp-block-freeform.block-library-rich-text__tinymce blockquote { |
| | 194 | border-left: 0; |
| | 195 | border-right: 0; |
| | 196 | padding-left: 0; |
| | 197 | padding-right: 0; |
| | 198 | } |
| | 199 | |
| | 200 | .wp-block-freeform.block-library-rich-text__tinymce blockquote p { |
| | 201 | font-size: 19px; |
| | 202 | } |
| | 203 | |
| | 204 | /* Tables */ |
| | 205 | |
| | 206 | .editor-block-list__block .wp-block-table th, |
| | 207 | .editor-block-list__block .wp-block-table td { |
| | 208 | padding: 0; |
| | 209 | } |
| | 210 | |
| | 211 | /*-------------------------------------------------------------- |
| | 212 | 3.0 Blocks - Common Blocks |
| | 213 | --------------------------------------------------------------*/ |
| | 214 | |
| | 215 | /* Paragraph */ |
| | 216 | |
| | 217 | p.has-drop-cap:not(:focus)::first-letter { |
| | 218 | font-size: 5em; |
| | 219 | } |
| | 220 | |
| | 221 | /* Image */ |
| | 222 | |
| | 223 | .wp-block-image { |
| | 224 | margin-bottom: 24px; |
| | 225 | max-width: 800px; |
| | 226 | } |
| | 227 | |
| | 228 | .wp-block-image figcaption { |
| | 229 | text-align: left; |
| | 230 | } |
| | 231 | |
| | 232 | @media screen and (min-width: 810px) { |
| | 233 | [data-type="core/image"][data-align="left"] .editor-block-list__block-edit { |
| | 234 | clear: left; |
| | 235 | margin-left: -198px; /* 30px wider than front-end, to account for editor tool spacing */ |
| | 236 | } |
| | 237 | |
| | 238 | [data-type="core/image"][data-align="right"] .editor-block-list__block-edit { |
| | 239 | clear: right; |
| | 240 | margin-right: -198px; /* 30px wider than front-end, to account for editor tool spacing */ |
| | 241 | } |
| | 242 | } |
| | 243 | |
| | 244 | .rtl .wp-block-image figcaption { |
| | 245 | text-align: right; |
| | 246 | } |
| | 247 | |
| | 248 | /* Gallery */ |
| | 249 | |
| | 250 | .editor-block-list__block .wp-block-gallery { |
| | 251 | margin-left: 0; |
| | 252 | margin-right: 0; |
| | 253 | } |
| | 254 | |
| | 255 | /* Quote */ |
| | 256 | |
| | 257 | .editor-block-list__block .wp-block-quote p { |
| | 258 | font-size: 19px; |
| | 259 | } |
| | 260 | |
| | 261 | .wp-block-quote:not(.is-large):not(.is-style-large) { |
| | 262 | border-left: 0; |
| | 263 | border-right: 0; |
| | 264 | padding-left: 0; |
| | 265 | padding-right: 0; |
| | 266 | } |
| | 267 | |
| | 268 | .wp-block-quote.is-large, |
| | 269 | .wp-block-quote.is-style-large { |
| | 270 | padding: 0; |
| | 271 | } |
| | 272 | |
| | 273 | .wp-block-quote.is-large p, |
| | 274 | .wp-block-quote.is-style-large p { |
| | 275 | font-size: 24px; |
| | 276 | line-height: 1.6; |
| | 277 | } |
| | 278 | |
| | 279 | .wp-block-quote .wp-block-quote__citation { |
| | 280 | color: #2b2b2b; |
| | 281 | font-size: 16px; |
| | 282 | font-weight: 400; |
| | 283 | margin-top: 0; |
| | 284 | } |
| | 285 | |
| | 286 | .wp-block-quote.alignleft .wp-block-quote__citation, |
| | 287 | .wp-block-quote.alignright .wp-block-quote__citation { |
| | 288 | display: inline-block; |
| | 289 | margin-bottom: 17px; |
| | 290 | } |
| | 291 | |
| | 292 | @media screen and (min-width: 1200px) { |
| | 293 | .editor-block-list__block .wp-block-quote.alignleft, |
| | 294 | .editor-block-list__block .wp-block-quote.alignright { |
| | 295 | width: -webkit-calc(50% + 130px); |
| | 296 | width: calc(50% + 130px); |
| | 297 | } |
| | 298 | |
| | 299 | .editor-block-list__block .wp-block-quote.alignleft { |
| | 300 | clear: left; |
| | 301 | margin-left: -168px; |
| | 302 | } |
| | 303 | |
| | 304 | .editor-block-list__block .wp-block-quote.alignright { |
| | 305 | clear: right; |
| | 306 | margin-right: -168px; |
| | 307 | } |
| | 308 | } |
| | 309 | |
| | 310 | /* Cover Image */ |
| | 311 | |
| | 312 | .wp-block-cover-image.aligncenter { |
| | 313 | display: flex; |
| | 314 | } |
| | 315 | |
| | 316 | /* File */ |
| | 317 | |
| | 318 | .wp-block-file .wp-block-file__textlink { |
| | 319 | color: #24890d; |
| | 320 | text-decoration: underline; |
| | 321 | } |
| | 322 | |
| | 323 | .wp-block-file .wp-block-file__button { |
| | 324 | background-color: #24890d; |
| | 325 | border: 0; |
| | 326 | border-radius: 2px; |
| | 327 | color: #fff; |
| | 328 | font-size: 12px; |
| | 329 | font-weight: 700; |
| | 330 | line-height: 15px; |
| | 331 | padding: 10px 30px 11px; |
| | 332 | text-transform: uppercase; |
| | 333 | vertical-align: bottom; |
| | 334 | } |
| | 335 | |
| | 336 | /*-------------------------------------------------------------- |
| | 337 | 4.0 Blocks - Formatting |
| | 338 | --------------------------------------------------------------*/ |
| | 339 | |
| | 340 | /* Code */ |
| | 341 | |
| | 342 | .wp-block-code { |
| | 343 | border: 0; |
| | 344 | padding: 0; |
| | 345 | } |
| | 346 | |
| | 347 | /* Pullquote */ |
| | 348 | |
| | 349 | .wp-block-pullquote { |
| | 350 | border: 0; |
| | 351 | margin: 0; |
| | 352 | } |
| | 353 | |
| | 354 | .wp-block-pullquote .wp-block-pullquote__citation { |
| | 355 | color: #2b2b2b; |
| | 356 | font-size: 16px; |
| | 357 | font-weight: 400; |
| | 358 | margin-top: 0; |
| | 359 | text-transform: none; |
| | 360 | } |
| | 361 | |
| | 362 | .wp-block-pullquote.alignleft blockquote > .editor-rich-text p, |
| | 363 | .wp-block-pullquote.alignright blockquote > .editor-rich-text p { |
| | 364 | font-size: 20px; |
| | 365 | } |
| | 366 | |
| | 367 | @media screen and (min-width: 810px) { |
| | 368 | .editor-block-list__block .wp-block-pullquote.alignleft { |
| | 369 | margin-left: -168px; |
| | 370 | } |
| | 371 | |
| | 372 | .editor-block-list__block .wp-block-pullquote.alignright { |
| | 373 | margin-right: -168px; |
| | 374 | } |
| | 375 | } |
| | 376 | |
| | 377 | /*-------------------------------------------------------------- |
| | 378 | 5.0 Blocks - Layout Elements |
| | 379 | --------------------------------------------------------------*/ |
| | 380 | |
| | 381 | /* Buttons */ |
| | 382 | |
| | 383 | .wp-block-button .wp-block-button__link { |
| | 384 | background-color: #24890d; |
| | 385 | border: 0; |
| | 386 | border-radius: 2px; |
| | 387 | color: #fff; |
| | 388 | font-size: 12px; |
| | 389 | font-weight: 700; |
| | 390 | line-height: 15px; |
| | 391 | padding: 10px 30px 11px; |
| | 392 | text-transform: uppercase; |
| | 393 | vertical-align: bottom; |
| | 394 | } |
| | 395 | |
| | 396 | /*-------------------------------------------------------------- |
| | 397 | 6.0 Blocks - Widgets |
| | 398 | --------------------------------------------------------------*/ |
| | 399 | |
| | 400 | /* Archives, Categories & Latest Posts */ |
| | 401 | |
| | 402 | .wp-block-archives li a, |
| | 403 | .wp-block-categories__list li a, |
| | 404 | .wp-block-latest-posts li a { |
| | 405 | text-decoration: underline; |
| | 406 | } |
| | 407 | |
| | 408 | /* Latest Comments */ |
| | 409 | |
| | 410 | .editor-block-list__block ol.wp-block-latest-comments, |
| | 411 | .rtl .editor-block-list__block ol.wp-block-latest-comments { |
| | 412 | margin: 0; |
| | 413 | padding: 0; |
| | 414 | } |
| | 415 | |
| | 416 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt, |
| | 417 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta { |
| | 418 | margin-left: 60px; |
| | 419 | } |
| | 420 | |
| | 421 | .wp-block-latest-comments .avatar, .wp-block-latest-comments__comment-avatar { |
| | 422 | border-radius: 0; |
| | 423 | border: 1px solid rgba(0, 0, 0, 0.1); |
| | 424 | padding: 2px; |
| | 425 | } |
| | 426 | |
| | 427 | .wp-block-latest-comments__comment, |
| | 428 | .wp-block-latest-comments__comment-excerpt, |
| | 429 | .wp-block-latest-comments__comment-excerpt p { |
| | 430 | font-size: 16px; |
| | 431 | } |
| | 432 | |
| | 433 | .editor-block-list__block .wp-block-latest-comments__comment-meta a, |
| | 434 | .editor-block-list__block .wp-block-latest-comments__comment-meta a:visited { |
| | 435 | color: #2b2b2b; |
| | 436 | font-weight: 900; |
| | 437 | text-decoration: none; |
| | 438 | } |
| | 439 | |
| | 440 | .wp-block-latest-comments__comment-date { |
| | 441 | text-transform: uppercase; |
| | 442 | } |
| | 443 | |
| | 444 | .wp-block-latest-comments .wp-block-latest-comments__comment { |
| | 445 | border-top: 1px solid rgba(0, 0, 0, 0.1); |
| | 446 | margin-bottom: 24px; |
| | 447 | padding-top: 24px; |
| | 448 | } |
| | 449 | |
| | 450 | /* Latest Posts */ |
| | 451 | |
| | 452 | .edit-post-visual-editor .editor-block-list__block .wp-block-latest-posts.is-grid { |
| | 453 | list-style: none; |
| | 454 | margin-left: 0; |
| | 455 | margin-right: 0; |
| | 456 | } |