| 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 | } |
| 226 | |
| 227 | @media screen and (min-width: 810px) { |
| 228 | .wp-block-image.alignleft { |
| 229 | clear: left; |
| 230 | margin-left: -168px; |
| 231 | } |
| 232 | |
| 233 | .wp-block-image.alignright { |
| 234 | clear: right; |
| 235 | margin-left: -168px; |
| 236 | } |
| 237 | } |
| 238 | |
| 239 | /* Gallery */ |
| 240 | |
| 241 | .editor-block-list__block .wp-block-gallery { |
| 242 | margin-left: 0; |
| 243 | margin-right: 0; |
| 244 | } |
| 245 | |
| 246 | /* Quote */ |
| 247 | |
| 248 | .editor-block-list__block .wp-block-quote p { |
| 249 | font-size: 19px; |
| 250 | } |
| 251 | |
| 252 | .wp-block-quote:not(.is-large):not(.is-style-large) { |
| 253 | border-left: 0; |
| 254 | border-right: 0; |
| 255 | padding-left: 0; |
| 256 | padding-right: 0; |
| 257 | } |
| 258 | |
| 259 | .wp-block-quote.is-large, |
| 260 | .wp-block-quote.is-style-large { |
| 261 | padding: 0; |
| 262 | } |
| 263 | |
| 264 | .wp-block-quote.is-large p, |
| 265 | .wp-block-quote.is-style-large p { |
| 266 | font-size: 24px; |
| 267 | line-height: 1.6; |
| 268 | } |
| 269 | |
| 270 | .wp-block-quote .wp-block-quote__citation { |
| 271 | color: #2b2b2b; |
| 272 | font-size: 16px; |
| 273 | font-weight: 400; |
| 274 | margin-top: 0; |
| 275 | } |
| 276 | |
| 277 | .wp-block-quote.alignleft .wp-block-quote__citation, |
| 278 | .wp-block-quote.alignright .wp-block-quote__citation { |
| 279 | display: inline-block; |
| 280 | margin-bottom: 17px; |
| 281 | } |
| 282 | |
| 283 | @media screen and (min-width: 1200px) { |
| 284 | .editor-block-list__block .wp-block-quote.alignleft, |
| 285 | .editor-block-list__block .wp-block-quote.alignright { |
| 286 | width: -webkit-calc(50% + 130px); |
| 287 | width: calc(50% + 130px); |
| 288 | } |
| 289 | |
| 290 | .editor-block-list__block .wp-block-quote.alignleft { |
| 291 | clear: left; |
| 292 | margin-left: -168px; |
| 293 | } |
| 294 | |
| 295 | .editor-block-list__block .wp-block-quote.alignright { |
| 296 | clear: right; |
| 297 | margin-right: -168px; |
| 298 | } |
| 299 | } |
| 300 | |
| 301 | /* Cover Image */ |
| 302 | |
| 303 | .wp-block-cover-image.aligncenter { |
| 304 | display: flex; |
| 305 | } |
| 306 | |
| 307 | /* File */ |
| 308 | |
| 309 | .wp-block-file .wp-block-file__textlink { |
| 310 | color: #24890d; |
| 311 | text-decoration: underline; |
| 312 | } |
| 313 | |
| 314 | .wp-block-file .wp-block-file__button { |
| 315 | background-color: #24890d; |
| 316 | border: 0; |
| 317 | border-radius: 2px; |
| 318 | color: #fff; |
| 319 | font-size: 12px; |
| 320 | font-weight: 700; |
| 321 | line-height: 15px; |
| 322 | padding: 10px 30px 11px; |
| 323 | text-transform: uppercase; |
| 324 | vertical-align: bottom; |
| 325 | } |
| 326 | |
| 327 | /*-------------------------------------------------------------- |
| 328 | 4.0 Blocks - Formatting |
| 329 | --------------------------------------------------------------*/ |
| 330 | |
| 331 | /* Code */ |
| 332 | |
| 333 | .wp-block-code { |
| 334 | border: 0; |
| 335 | padding: 0; |
| 336 | } |
| 337 | |
| 338 | /* Pullquote */ |
| 339 | |
| 340 | .wp-block-pullquote { |
| 341 | border: 0; |
| 342 | margin: 0; |
| 343 | } |
| 344 | |
| 345 | .wp-block-pullquote .wp-block-pullquote__citation { |
| 346 | color: #2b2b2b; |
| 347 | font-size: 16px; |
| 348 | font-weight: 400; |
| 349 | margin-top: 0; |
| 350 | text-transform: none; |
| 351 | } |
| 352 | |
| 353 | /*-------------------------------------------------------------- |
| 354 | 5.0 Blocks - Layout Elements |
| 355 | --------------------------------------------------------------*/ |
| 356 | |
| 357 | /* Buttons */ |
| 358 | |
| 359 | .wp-block-button .wp-block-button__link { |
| 360 | background-color: #24890d; |
| 361 | border: 0; |
| 362 | border-radius: 2px; |
| 363 | color: #fff; |
| 364 | font-size: 12px; |
| 365 | font-weight: 700; |
| 366 | line-height: 15px; |
| 367 | padding: 10px 30px 11px; |
| 368 | text-transform: uppercase; |
| 369 | vertical-align: bottom; |
| 370 | } |
| 371 | |
| 372 | /*-------------------------------------------------------------- |
| 373 | 6.0 Blocks - Widgets |
| 374 | --------------------------------------------------------------*/ |
| 375 | |
| 376 | /* Archives, Categories & Latest Posts */ |
| 377 | |
| 378 | .wp-block-archives li a, |
| 379 | .wp-block-categories__list li a, |
| 380 | .wp-block-latest-posts li a { |
| 381 | text-decoration: underline; |
| 382 | } |
| 383 | |
| 384 | /* Latest Comments */ |
| 385 | |
| 386 | .editor-block-list__block ol.wp-block-latest-comments, |
| 387 | .rtl .editor-block-list__block ol.wp-block-latest-comments { |
| 388 | margin: 0; |
| 389 | padding: 0; |
| 390 | } |
| 391 | |
| 392 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-excerpt, |
| 393 | .has-avatars .wp-block-latest-comments__comment .wp-block-latest-comments__comment-meta { |
| 394 | margin-left: 60px; |
| 395 | } |
| 396 | |
| 397 | .wp-block-latest-comments .avatar, .wp-block-latest-comments__comment-avatar { |
| 398 | border-radius: 0; |
| 399 | border: 1px solid rgba(0, 0, 0, 0.1); |
| 400 | padding: 2px; |
| 401 | } |
| 402 | |
| 403 | .wp-block-latest-comments__comment, |
| 404 | .wp-block-latest-comments__comment-excerpt, |
| 405 | .wp-block-latest-comments__comment-excerpt p { |
| 406 | font-size: 16px; |
| 407 | } |
| 408 | |
| 409 | .editor-block-list__block .wp-block-latest-comments__comment-meta a, |
| 410 | .editor-block-list__block .wp-block-latest-comments__comment-meta a:visited { |
| 411 | color: #2b2b2b; |
| 412 | font-weight: 900; |
| 413 | text-decoration: none; |
| 414 | } |
| 415 | |
| 416 | .wp-block-latest-comments__comment-date { |
| 417 | text-transform: uppercase; |
| 418 | } |
| 419 | |
| 420 | .wp-block-latest-comments .wp-block-latest-comments__comment { |
| 421 | border-top: 1px solid rgba(0, 0, 0, 0.1); |
| 422 | margin-bottom: 24px; |
| 423 | padding-top: 24px; |
| 424 | } |
| 425 | |
| 426 | /* Latest Posts */ |
| 427 | |
| 428 | .wp-block-latest-posts.is-grid { |
| 429 | list-style: none; |
| 430 | margin-left: 0; |
| 431 | margin-right: 0; |
| 432 | } |