| 1 | /* |
| 2 | Theme Name: Twenty Eleven |
| 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 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 25 | font-size: 15px; |
| 26 | font-size: 300; |
| 27 | line-height: 1.625; |
| 28 | } |
| 29 | |
| 30 | .edit-post-visual-editor .editor-block-list__block { |
| 31 | color: #333; |
| 32 | } |
| 33 | |
| 34 | .editor-post-title__block .editor-post-title__input { |
| 35 | color: #000; |
| 36 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 37 | font-size: 36px; |
| 38 | line-height: 48px; |
| 39 | } |
| 40 | |
| 41 | .edit-post-visual-editor h1, |
| 42 | .wp-block-freeform.block-library-rich-text__tinymce h1, |
| 43 | .edit-post-visual-editor h2, |
| 44 | .wp-block-freeform.block-library-rich-text__tinymce h2 { |
| 45 | font-size: 15px; |
| 46 | margin: 0 0 0.8125em; |
| 47 | } |
| 48 | |
| 49 | .edit-post-visual-editor h3, |
| 50 | .wp-block-freeform.block-library-rich-text__tinymce h3 { |
| 51 | font-size: 10px; |
| 52 | font-weight: 300; |
| 53 | letter-spacing: 0.1em; |
| 54 | line-height: 2.6em; |
| 55 | text-transform: uppercase; |
| 56 | } |
| 57 | |
| 58 | .edit-post-visual-editor h4, |
| 59 | .wp-block-freeform.block-library-rich-text__tinymce h4, |
| 60 | .edit-post-visual-editor h5, |
| 61 | .wp-block-freeform.block-library-rich-text__tinymce h5, |
| 62 | .edit-post-visual-editor h6, |
| 63 | .wp-block-freeform.block-library-rich-text__tinymce h6 { |
| 64 | font-size: 15px; |
| 65 | font-weight: 300; |
| 66 | line-height: 1.625; |
| 67 | } |
| 68 | |
| 69 | /*-------------------------------------------------------------- |
| 70 | 2.0 General Block Styles |
| 71 | --------------------------------------------------------------*/ |
| 72 | |
| 73 | /* Main column width */ |
| 74 | |
| 75 | body.gutenberg-editor-page .edit-post-visual-editor .editor-post-title__block, |
| 76 | body.gutenberg-editor-page .edit-post-visual-editor .editor-default-block-appender, |
| 77 | body.gutenberg-editor-page .edit-post-visual-editor .editor-block-list__block { |
| 78 | max-width: 614px; |
| 79 | } |
| 80 | |
| 81 | /* Link styles */ |
| 82 | |
| 83 | .edit-post-visual-editor a, |
| 84 | .editor-block-list__block a, |
| 85 | .wp-block-freeform.block-library-rich-text__tinymce a { |
| 86 | color: #1982d1; |
| 87 | } |
| 88 | |
| 89 | /* List styles */ |
| 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.editor-rich-text__tinymce, |
| 94 | .edit-post-visual-editor ol, |
| 95 | .editor-block-list__block ol, |
| 96 | .block-library-list ol.editor-rich-text__tinymce { |
| 97 | margin: 0 0 1.625em 2.5em; |
| 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 | .edit-post-visual-editor .editor-block-list__block ul:not(.wp-block-gallery), |
| 107 | .block-library-list ul { |
| 108 | list-style-type: square; |
| 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 ol ol, |
| 118 | .editor-block-list__block ol ol, |
| 119 | .block-library-list ol ol { |
| 120 | list-style: upper-alpha; |
| 121 | } |
| 122 | |
| 123 | .edit-post-visual-editor ol ol ol, |
| 124 | .editor-block-list__block ol ol ol, |
| 125 | .block-library-list ol ol ol { |
| 126 | list-style: lower-roman; |
| 127 | } |
| 128 | |
| 129 | .edit-post-visual-editor ol ol ol ol, |
| 130 | .editor-block-list__block ol ol ol ol, |
| 131 | .block-library-list ol ol ol ol { |
| 132 | list-style: lower-alpha; |
| 133 | } |
| 134 | |
| 135 | .edit-post-visual-editor ul:not(.wp-block-gallery) li > ul, |
| 136 | .editor-block-list__block ul:not(.wp-block-gallery) li > ul, |
| 137 | .block-library-list .editor-rich-text__tinymce li > ul, |
| 138 | .edit-post-visual-editor li > ol, |
| 139 | .editor-block-list__block li > ol, |
| 140 | .block-library-list .editor-rich-text__tinymce li > ol, |
| 141 | .wp-block-freeform.block-library-rich-text__tinymce li, |
| 142 | .editor-block-list__block li { |
| 143 | margin-bottom: 0; |
| 144 | } |
| 145 | |
| 146 | .rtl .edit-post-visual-editor ul:not(.wp-block-gallery), |
| 147 | .rtl .editor-block-list__block ul:not(.wp-block-gallery), |
| 148 | .rtl .block-library-list ul, |
| 149 | .rtl .edit-post-visual-editor ol, |
| 150 | .rtl .editor-block-list__block ol, |
| 151 | .rtl .block-library-list ol { |
| 152 | margin-left: 0; |
| 153 | margin-right: 1.3333em; |
| 154 | } |
| 155 | |
| 156 | /* Captions */ |
| 157 | |
| 158 | [class^="wp-block-"] figcaption { |
| 159 | font-family: Georgia, serif; |
| 160 | font-size: 12px; |
| 161 | } |
| 162 | |
| 163 | [class^="wp-block-"]:not(.wp-block-gallery) figcaption { |
| 164 | color: #666; |
| 165 | margin-bottom: 1.625em; |
| 166 | max-width: 96%; |
| 167 | max-width: calc( 100% - 18px ); |
| 168 | padding: 3px 0 5px 40px; |
| 169 | position: relative; |
| 170 | text-align: left; |
| 171 | } |
| 172 | |
| 173 | [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before { |
| 174 | color: #666; |
| 175 | content: '\2014'; |
| 176 | font-size: 14px; |
| 177 | font-style: normal; |
| 178 | font-weight: bold; |
| 179 | margin-right: 5px; |
| 180 | position: absolute; |
| 181 | left: 10px; |
| 182 | top: 0; |
| 183 | } |
| 184 | |
| 185 | .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption { |
| 186 | padding-left: 0; |
| 187 | padding-right: 40px; |
| 188 | text-align: right; |
| 189 | } |
| 190 | |
| 191 | .rtl [class^="wp-block-"]:not(.wp-block-gallery) figcaption:before { |
| 192 | left: 0; |
| 193 | margin-left: 5px; |
| 194 | margin-right: 0; |
| 195 | right: 10px; |
| 196 | } |
| 197 | |
| 198 | /* Quote */ |
| 199 | |
| 200 | .wp-block-freeform.block-library-rich-text__tinymce blockquote { |
| 201 | border: 0; |
| 202 | font-style: italic; |
| 203 | margin: 0 3em; |
| 204 | padding: 0; |
| 205 | } |
| 206 | |
| 207 | .wp-block-freeform.block-library-rich-text__tinymce blockquote p { |
| 208 | font-family: Georgia, "Bitstream Charter", serif; |
| 209 | font-size: 15px; |
| 210 | font-weight: normal; |
| 211 | } |
| 212 | |
| 213 | .wp-block-freeform.block-library-rich-text__tinymce blockquote cite { |
| 214 | color: #666; |
| 215 | font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 216 | font-weight: 300; |
| 217 | letter-spacing: 0.05em; |
| 218 | text-transform: uppercase; |
| 219 | } |
| 220 | |
| 221 | /* Code */ |
| 222 | |
| 223 | .wp-block-freeform.block-library-rich-text__tinymce code { |
| 224 | background: transparent; |
| 225 | } |
| 226 | |
| 227 | /*-------------------------------------------------------------- |
| 228 | 3.0 Blocks - Common Blocks |
| 229 | --------------------------------------------------------------*/ |
| 230 | |
| 231 | /* Paragraph */ |
| 232 | |
| 233 | p.has-drop-cap:not(:focus)::first-letter { |
| 234 | font-size: 5em; |
| 235 | margin-top: 0.1em; |
| 236 | } |
| 237 | |
| 238 | /* Gallery */ |
| 239 | |
| 240 | .editor-block-list__block .wp-block-gallery { |
| 241 | margin: 0 0 1.625em; |
| 242 | } |
| 243 | |
| 244 | .wp-block-gallery figcaption { |
| 245 | margin-bottom: 0; |
| 246 | max-width: 100%; |
| 247 | } |
| 248 | |
| 249 | .wp-block-gallery .blocks-gallery-item img { |
| 250 | border: 0; |
| 251 | padding: 0; |
| 252 | } |
| 253 | |
| 254 | /* Quote */ |
| 255 | |
| 256 | .wp-block-quote { |
| 257 | font-family: Georgia, "Bitstream Charter", serif; |
| 258 | font-style: italic; |
| 259 | font-weight: normal; |
| 260 | margin: 0 3em; |
| 261 | padding: 0; |
| 262 | } |
| 263 | |
| 264 | .wp-block-quote:not(.is-large):not(.is-style-large) { |
| 265 | border: 0; |
| 266 | padding-left: 0; |
| 267 | padding-right: 0; |
| 268 | } |
| 269 | |
| 270 | .wp-block-quote .wp-block-quote__citation.editor-rich-text__tinymce.mce-content-body { |
| 271 | color: #666; |
| 272 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
| 273 | font-weight: 300; |
| 274 | letter-spacing: 0.05em; |
| 275 | text-transform: uppercase; |
| 276 | } |
| 277 | |
| 278 | .wp-block-quote.is-large p, |
| 279 | .wp-block-quote.is-style-large p { |
| 280 | font-size: 20px; |
| 281 | } |
| 282 | |
| 283 | .wp-block-quote.is-large .wp-block-quote__citation, |
| 284 | .wp-block-quote.is-style-large .wp-block-quote__citation { |
| 285 | font-size: 16px; |
| 286 | } |
| 287 | |
| 288 | |
| 289 | /* Cover Image */ |
| 290 | |
| 291 | .edit-post-visual-editor .editor-block-list__block .wp-block-cover-image p.wp-block-cover-image-text { |
| 292 | font-size: 30px; |
| 293 | line-height: 37.5px; |
| 294 | } |
| 295 | |
| 296 | /* File */ |
| 297 | |
| 298 | .wp-block-file .wp-block-file__textlink { |
| 299 | color: #1982d1; |
| 300 | } |
| 301 | |
| 302 | .wp-block-file .wp-block-file__button { |
| 303 | background: #222; |
| 304 | border: none; |
| 305 | -moz-border-radius: 3px; |
| 306 | border-radius: 3px; |
| 307 | -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); |
| 308 | -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); |
| 309 | box-shadow: 0px 1px 2px rgba(0,0,0,0.3); |
| 310 | color: #eee; |
| 311 | cursor: pointer; |
| 312 | font-size: 15px; |
| 313 | line-height: 24px; |
| 314 | padding: 5px 22px; |
| 315 | text-shadow: 0 -1px 0 rgba(0,0,0,0.3); |
| 316 | } |
| 317 | |
| 318 | /*-------------------------------------------------------------- |
| 319 | 4.0 Blocks - Formatting |
| 320 | --------------------------------------------------------------*/ |
| 321 | |
| 322 | /* Code */ |
| 323 | |
| 324 | .wp-block-code { |
| 325 | background: transparent; |
| 326 | border: 0; |
| 327 | padding: 0; |
| 328 | } |
| 329 | |
| 330 | /* Pullquote */ |
| 331 | |
| 332 | .edit-post-visual-editor .editor-block-list__block .wp-block-pullquote p { |
| 333 | font-family: Georgia, "Bitstream Charter", serif; |
| 334 | font-style: italic; |
| 335 | font-weight: normal; |
| 336 | } |
| 337 | |
| 338 | /* Table */ |
| 339 | |
| 340 | .editor-block-list__block .wp-block-table th, |
| 341 | .editor-block-list__block .wp-block-table td { |
| 342 | padding: 0; |
| 343 | } |
| 344 | |
| 345 | .wp-block-table__cell-content { |
| 346 | padding: 6px; |
| 347 | } |
| 348 | |
| 349 | .rtl .editor-block-list__block .wp-block-table th, |
| 350 | .rtl .editor-block-list__block .wp-block-table td, |
| 351 | .rtl .editor-block-list__block th, |
| 352 | .rtl .editor-block-list__block td { |
| 353 | text-align: right; |
| 354 | } |
| 355 | |
| 356 | |
| 357 | /*-------------------------------------------------------------- |
| 358 | 5.0 Blocks - Layout Elements |
| 359 | --------------------------------------------------------------*/ |
| 360 | |
| 361 | /* Buttons */ |
| 362 | |
| 363 | .wp-block-button .wp-block-button__link { |
| 364 | background: #222; |
| 365 | border: none; |
| 366 | -moz-border-radius: 3px; |
| 367 | border-radius: 3px; |
| 368 | -webkit-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); |
| 369 | -moz-box-shadow: 0px 1px 2px rgba(0,0,0,0.3); |
| 370 | box-shadow: 0px 1px 2px rgba(0,0,0,0.3); |
| 371 | color: #eee; |
| 372 | cursor: pointer; |
| 373 | font-size: 15px; |
| 374 | line-height: 24px; |
| 375 | margin: 20px 0; |
| 376 | padding: 5px 22px; |
| 377 | text-shadow: 0 -1px 0 rgba(0,0,0,0.3); |
| 378 | } |
| 379 | |
| 380 | /*-------------------------------------------------------------- |
| 381 | 6.0 Blocks - Widgets |
| 382 | --------------------------------------------------------------*/ |
| 383 | |
| 384 | /* Latest Comments */ |
| 385 | |
| 386 | .wp-block-latest-comments { |
| 387 | margin: 0; |
| 388 | padding: 0; |
| 389 | } |
| 390 | |
| 391 | .wp-block-latest-comments .avatar, |
| 392 | .wp-block-latest-comments__comment-avatar { |
| 393 | -moz-border-radius: 3px; |
| 394 | border-radius: 3px; |
| 395 | -webkit-box-shadow: 0 1px 2px #ccc; |
| 396 | -moz-box-shadow: 0 1px 2px #ccc; |
| 397 | box-shadow: 0 1px 2px #ccc; |
| 398 | padding: 0; |
| 399 | } |
| 400 | |
| 401 | .wp-block-latest-comments__comment, |
| 402 | .wp-block-latest-comments__comment-excerpt, |
| 403 | .wp-block-latest-comments__comment-excerpt p { |
| 404 | font-size: 15px; |
| 405 | } |
| 406 | |
| 407 | .wp-block-latest-comments__comment-excerpt p:last-child { |
| 408 | margin-bottom: 0; |
| 409 | } |
| 410 | |
| 411 | .wp-block-latest-comments__comment-meta, |
| 412 | .wp-block-latest-comments__comment-date { |
| 413 | color: #666; |
| 414 | font-size: 12px; |
| 415 | line-height: 2.2em; |
| 416 | } |
| 417 | |
| 418 | .wp-block-latest-comments__comment-meta a { |
| 419 | font-weight: bold; |
| 420 | } |
| 421 | |
| 422 | .wp-block-latest-comments .wp-block-latest-comments__comment { |
| 423 | -moz-border-radius: 3px; |
| 424 | border-radius: 3px; |
| 425 | margin: 0 0 2.625em; |
| 426 | position: relative; |
| 427 | } |
| 428 | |
| 429 | /* Latest Posts */ |
| 430 | |
| 431 | .edit-post-visual-editor .editor-block-list__block .wp-block-latest-posts.is-grid { |
| 432 | list-style: none; |
| 433 | margin-left: 0; |
| 434 | margin-right: 0; |
| 435 | } |