Overview
Comment: | Add initial CSS and logo |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
cef7a4031c8c06d98da518560dfee28f |
User & Date: | joel on 2018-08-05 22:10:20 |
Other Links: | manifest | tags |
Context
2018-08-06
| ||
15:51 | Add versioned ignore-glob setting check-in: c95e2a80 user: joel tags: trunk | |
2018-08-05
| ||
22:10 | Add initial CSS and logo check-in: cef7a403 user: joel tags: trunk | |
19:13 | A bit more explanation on the home wiki page check-in: e0378931 user: joel tags: trunk | |
Changes
Added web-extra/font.css version [ff6adf1f].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | @font-face { font-family: 'Fabiol'; src: url('LDFabiolPro-Regular.woff2') format('woff2'), url('LDFabiolPro-Regular.woff') format('woff'); font-style: normal; font-weight: 400; } @font-face { font-family: 'Fabiol'; src: url('LDFabiolPro-Italic.woff2') format('woff2'), url('LDFabiolPro-Italic.woff') format('woff'); font-style: italic; font-weight: 400; } @font-face { font-family: 'Fabiol'; src: url('LDFabiolPro-Bold.woff2') format('woff2'), url('LDFabiolPro-Bold.woff') format('woff'); font-style: bold; font-weight: 700; } @font-face { font-family: 'Triplicate T4c'; src: url('Triplicate-T4c.woff') format('woff'); font-style: normal; font-weight: 400; } @font-face { font-family: 'Triplicate T4c'; src: url('Triplicate-T4c-italic.woff') format('woff'); font-style: italic; font-weight: 400; } |
Added web-extra/logo.png version [7eef207b].
cannot compute difference between binary files
Added web-extra/martin.css.pp version [da2f0e11].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 | #lang pollen/pre /* Welcome to my CSS File! I have named it `martin.css`, after Martin Pale. So here, broadly, is the approach we are taking here: 1. The site shall look decent and readable even when CSS is unavailable. 2. There's a vertical rhythm of ◊x-lineheight[1] that everything follows. 3. Define the mobile (smallest screen) layout first... [Lines 026-???] ...then do some dynamic type sizing on screens 768px+ wide [Lines ???-???] 4. If CSS Grid support is detected, we'll do some nice-looking [Lines ???-???] layout on screens 768px+ wide. */ @import url('font.css'); @import url('normalize.css'); /* Let us first address the matter of font size in different screen sizes. */ /* Mobile portrait screens will see a minimum 18px font. */ html { font-size: 18px; } /* Start increasing type size dynamically at screen widths of 768px */ @media only screen and (min-width: 768px) { html { font-size: 2.3vw; } } /* Top out at 23px for screens up to 800px TALL */ @media only screen and (min-width: 1000px) and (max-height: 800px) { html { font-size: 23px; } /* = 2.3% of 1000px (min-width) */ } /* Top out at 26px for screens 801px-1000px TALL */ @media only screen and (min-width: 1130px) and (min-height: 801px) and (max-height: 1000px) { html { font-size: 26px; } /* = 2.3% of 1130px (min-width) */ } /* For screens taller than 1000 px, top out at 32px */ @media only screen and (min-width: 1400px) and (min-height: 1001px) { html { font-size: 32px; } /* = 2.3% of 1400px (min-width) */ } ◊; Since line height is used in so many places... ◊(define LINEHEIGHT 1.3) ◊(define lineheight (string-append (number->string LINEHEIGHT) "rem")) ◊(define (x-lineheight multiple) (string-append (real->decimal-string (* LINEHEIGHT multiple) 2) "rem")) ◊(define (derive-lineheight lines #:per-lines per) (string-append (real->decimal-string (/ (* LINEHEIGHT per) lines) 3) "rem")) ◊(define color-bodytext "#2a3d45") ◊; Japanese indigo, baby ◊(define color-pagehead "#a29555") ◊; Faded gold ◊(define color-link "#ab2a23") ◊(define color-linkhover "#c14337") ◊(define color-xrefmark "#c14337") ◊(define color-background "#f7f7f7") ◊(define color-linkbackground "#f7f7f7") ◊(define body-font "Fabiol, serif") ◊(define mono-font "'Triplicate T4c', monospace") /* **** 1. Mobile-first layout *** 1.1 All Pages 1.2 Front page 1.3 Individual post body markup 1.4 Journal views (article listings) */ @media screen { body { margin: 0; background: ◊color-background; /* Typography: `line-height` is important! All verticle rhythm based on this value. */ line-height: ◊lineheight; font-family: ◊body-font; font-feature-settings: "calt" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; color: ◊color-bodytext; /* Japanese Indigo, baby */ } /* This is used to hide certain punctuation and things as long as CSS is available. Turn off CSS and voila: stuff appears. */ .x { display: none; } .hist p { font-variant-alternates: historical-forms; } .nonhist { font-variant-alternates: normal; } /* <main> is the white box of content with the flat-looking drop shadow. */ main { background: white; margin: 0; padding: ◊x-lineheight[0.5] ◊x-lineheight[1]; } main>header { text-align: center; } main>header h1 { font-size: ◊x-lineheight[1.5]; line-height: ◊x-lineheight[2]; margin: 0 0 ◊x-lineheight[0.5] 0; font-weight: normal; font-feature-settings: "smcp" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; text-transform: lowercase; color: ◊color-pagehead; } /* Links. Generally, we want them colored that weird springy green, underlines only when hovered, thanks. I read somewhere years ago that you should specify styling for links in the following order: Link, Visited, Hover, Active. → Remember the mnemonic: Lord Vader Has Arrived. Not sure if that's relevant advice any more but I still follow it. It can't hurt. */ a:link, a:visited { /* [L]ord [V]ader… */ color: ◊color-link; text-decoration: none; } a:hover, a:active { /* …[H]as [A]rrived */ color: ◊color-linkhover; background: ◊color-linkbackground; } /* On mobile, an <ARTICLE> is just a box. Later we'll do fancy stuff if grid support is detected. */ article { margin: 0 0 ◊x-lineheight[1] 0; } /* Here's my thing these days about article titles: they shouldn't be required. When you write in a paper journal, do you think of a title for every entry? No! You just write the date. The date is the heading. Makes sense. But, this means I've had to think long and hard about how to present two different types of articles (those with titles AND dates, and those with just a date for the title). For now: By default, the title-less article is assumed to be the norm. On these, we use <H1> to show the date in italics. */ article>h1 { font-size: ◊x-lineheight[1]; line-height: ◊x-lineheight[1]; margin: 0 0 ◊x-lineheight[1] 0; font-style: italic; font-weight: normal; } /* If you DO add an actual, formal title to an article, we’ll put it in small caps (Fabiol comes with some really nice small caps). */ article>h1.entry-title { margin: 0 0 0 0; font-feature-settings: "smcp" on; text-transform: none; font-style: normal; line-height: 1.7rem; } /* This <SPAN> class is used in titles for Notes appended to earlier articles */ h1.entry-title .cross-reference { font-feature-settings: "scmp" off, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; font-style: italic; text-transform: none; } /* I want my *title* permlinks not to be green or underlined. Just your basic raven black, dark green on hover. Normally with links, you _don’t_ want to rely on hovers to differentiate them, because there’s no way to “hover” a link with your finger when using a smartphone. But these are titles. Everyone knows titles are clickable. But we’ll also put a little green leaf glyph in the margin to help people figure it out. */ /* `a.rel-bookmark` is only used in individual article or ‘journal’ views, not in listings; see the design docs. */ a.rel-bookmark:link, /* Lord */ a.rel-bookmark:visited { /* Vader */ text-decoration: none; background: none; color: ◊color-bodytext; } a.rel-bookmark:hover, /* Has */ a.rel-bookmark:active { /* Arrived */ text-decoration: none; background: #f1f1f1; color: #006400; } /* Here's where we add the minty fresh maple leaf glyph. */ a.rel-bookmark::after { content: '\f894'; margin-left: 4px; font-style: normal; color: #809102; } a.rel-bookmark.note-permlink::after { content: '-'; /* NB: this is not a hyphen! It is a U+002D glyph, the Unicode “minus sign” */ margin-left: 4px; } a.rel-bookmark:hover::after { color: #aaba16; } a.cross-reference:link, a.cross-reference:visited { color: ◊color-bodytext; } a.cross-reference::before { content: '☞\00a0'; /* Non-breaking space */ font-style: normal; color: ◊color-xrefmark; } p.time { margin: 0 0 ◊x-lineheight[1] 0; } footer.article-info { margin: ◊x-lineheight[1] 0; text-align: center; font-feature-settings: "smcp" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; text-transform: lowercase; letter-spacing: 0; color: #888; } footer.article-info::before { content: "☞\00a0"; } p.time::before { content: none; } p.time { font-size: ◊x-lineheight[0.75]; line-height: ◊x-lineheight[1]; font-feature-settings: "scmp" off, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; text-transform: none; font-style: italic; } article>:last-child::after { content: '\f88d'; /* Round glyph */ color: ◊color-bodytext; font-size: ◊x-lineheight[1]; line-height: ◊x-lineheight[1]; text-align: center; display: block; margin: ◊x-lineheight[1] 0; } p { margin: 0; text-indent: 0; } p + p { text-indent: 1em; } section.entry-content blockquote { font-size: ◊x-lineheight[0.7]; line-height: ◊derive-lineheight[7 #:per-lines 6]; } section.entry-content h2 { font-size: 1.2rem; font-style: italic; margin: ◊x-lineheight[1] 0; font-weight: normal; } .caps, .small-caps { font-feature-settings: "smcp" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; font-style: normal; } .caps { text-transform: lowercase; font-size: 1.1em; } p.newthought { margin-top: ◊x-lineheight[2]; text-indent: 0; } section.entry-content ul, section.entry-content ol { margin: ◊x-lineheight[0.5] 0 ◊x-lineheight[0.5] 0; padding: 0; } section.entry-content li { margin: 0; padding: 0; text-indent: 0; } code { font-size: 0.75rem; font-family: ◊mono-font; } pre { line-height: ◊derive-lineheight[7 #:per-lines 6]; max-width: 100%; overflow-x: auto; tab-size: 4; } pre code { border: 0; background: none; font-style: italic; font-size: 0.75rem; } pre.verse { font-family: ◊body-font; font-size: 1rem; line-height: ◊x-lineheight[1]; width: auto; margin: ◊x-lineheight[1] auto; display: table; white-space: pre-wrap; /* Whitespace is preserved by the browser. Text will wrap when necessary, and on line breaks */ } section.entry-content figure { margin: ◊x-lineheight[1] 0; padding: 0; } figure>a { margin: 0; padding: 0; font-family: arial, sans-serif; } figure img { max-width: 100%; } figcaption { font-size: 0.8rem; line-height: 0.8rem; margin-bottom: 0.3rem; text-align: left; } dl { margin: ◊x-lineheight[1] 0; } dl.dialogue dt { font-feature-settings: "smcp" on, "liga" on, "clig" on, "dlig" on, "kern" on, "onum" on, "pnum" on; font-style: normal; text-transform: lowercase; } section.entry-content p.signoff { margin-top: ◊x-lineheight[1]; font-size: 1.2rem; } section.footnotes { margin-top: ◊x-lineheight[1]; font-size: 0.9rem; line-height: ◊derive-lineheight[7 #:per-lines 6]; } section.footnotes hr { border: 0; background: ◊color-bodytext; height: 1px; margin: 0; width: 75%; text-align: left; } section.footnotes ol { margin: ◊x-lineheight[0.5] 0 0 0; } /* ******* (Mobile first) Journal View styling ******* */ section.article-listing h2 { font-weight: normal; font-style: italic; font-size: ◊x-lineheight[1]; margin: 0 0 ◊x-lineheight[0.5] 0; } section.article-listing h2::before { content: '§\00a0'; font-family: ◊body-font; font-style: normal; color: #d0d0d0; } section.article-listing aside { margin-bottom: ◊x-lineheight[1]; font-style: italic; } ul.article-list { margin: 0; padding: 0; } ul.article-list li { list-style-type: none; display: block; margin: 0; padding: 0; margin-bottom: ◊x-lineheight[1]; } ul.article-list li>a { display: block; } div.article-list-date { color: #999; } div.article-list-title { font-size: 1.2rem; } /* End of mobile-first typography and layout */ } /* Here’s where we start getting funky for any viewport wider than mobile portrait. An iPhone 6 is 667px wide in landscape mode, so that’s our breakpoint. */ @media only screen and (min-width: 667px) { main { box-shadow: 0.4em 0.4em 10px #e3e3e3; margin: 2em auto; /*border: solid 1px #ccc; */ padding-left: 1rem; padding-right: 1rem; width: 30rem; max-width: 90%; } @supports (grid-area: auto) { main { width: 42rem; } main>header { display: grid; grid-template-columns: 9rem 12fr 1fr; grid-column-gap: 0; grid-template-areas: "logo masthead ."; align-items: center; text-align: left; margin-bottom: ◊x-lineheight[2]; } header img.logo { grid-area: logo; height: ◊x-lineheight[3]; max-height: 103px; width: auto; justify-self: end; margin-right: 1rem; } main>header h1 { grid-area: masthead; margin: 0; line-height: 1em; } article { display: grid; grid-template-columns: 8rem 7fr 1fr; grid-template-rows: auto auto auto; grid-template-areas: "corner title title" "margin main ."; align-items: start; /* Puts everything at the top */ margin-bottom: 0; grid-column-gap: 1rem; } article>h1 { grid-area: margin; font-size: 1.1rem; text-align: right; /* padding-right: 1rem; */ color: ◊color-bodytext; } article>h1.entry-title { grid-area: title; font-size: ◊x-lineheight[1]; text-align: left; padding-right: 0; margin-bottom: 0.9rem; } p.time { grid-area: corner; text-align: right; font-size: 1.1rem; line-height: 1.7rem; } footer.article-info { padding-top: 0.09rem; grid-area: margin; text-align: right; font-size: 0.8rem; line-height: ◊derive-lineheight[4 #:per-lines 3]; margin: 0; } section.entry-content { grid-area: main; } section.entry-content:first-child { margin-top: 0 !important; } article>:last-child::after { content: none; margin 0; display: none; } section.entry-content::after { content: '\f88d'; color: ◊color-bodytext; font-size: ◊x-lineheight[1]; line-height: ◊x-lineheight[1]; text-align: center; display: block; margin: ◊x-lineheight[1] 0; } section.entry-content figure { display: grid; width: calc(112.5% + 8rem); margin-left: -8rem; grid-template-columns: 7rem 1fr; grid-column-gap: 1rem; grid-template-areas: "margin main"; } section.entry-content figure img { grid-area: main; } section.entry-content figure figcaption { grid-area: margin; text-align: right; align-self: end; } /* ******* (Grid support) Journal View styling ******* */ section.article-listing { display: grid; grid-template-columns: 8rem 7fr 1fr; grid-template-rows: auto auto auto; grid-template-areas: ". title title" "margin main ."; align-items: start; /* Puts everything at the top */ margin-bottom: 0; grid-column-gap: 1rem; } section.article-listing>h2 { grid-area: title; } section.article-listing>aside { grid-area: margin; font-size: 0.8rem; line-height: ◊derive-lineheight[4 #:per-lines 3]; text-align: right; color: #6b6b6b; } ul.article-list { grid-area: main; } } } |
Added web-extra/normalize.css version [52bbe8f4].
> > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 | /*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */ /* Document ========================================================================== */ /** * 1. Correct the line height in all browsers. * 2. Prevent adjustments of font size after orientation changes in * IE on Windows Phone and in iOS. */ html { line-height: 1.15; /* 1 */ -ms-text-size-adjust: 100%; /* 2 */ -webkit-text-size-adjust: 100%; /* 2 */ } /* Sections ========================================================================== */ /** * Remove the margin in all browsers (opinionated). */ body { margin: 0; } /** * Add the correct display in IE 9-. */ article, aside, footer, header, nav, section { display: block; } /** * Correct the font size and margin on `h1` elements within `section` and * `article` contexts in Chrome, Firefox, and Safari. */ h1 { font-size: 2em; margin: 0.67em 0; } /* Grouping content ========================================================================== */ /** * Add the correct display in IE 9-. * 1. Add the correct display in IE. */ figcaption, figure, main { /* 1 */ display: block; } /** * Add the correct margin in IE 8. */ figure { margin: 1em 40px; } /** * 1. Add the correct box sizing in Firefox. * 2. Show the overflow in Edge and IE. */ hr { box-sizing: content-box; /* 1 */ height: 0; /* 1 */ overflow: visible; /* 2 */ } /** * 1. Correct the inheritance and scaling of font size in all browsers. * 2. Correct the odd `em` font sizing in all browsers. */ pre { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } /* Text-level semantics ========================================================================== */ /** * 1. Remove the gray background on active links in IE 10. * 2. Remove gaps in links underline in iOS 8+ and Safari 8+. */ a { background-color: transparent; /* 1 */ -webkit-text-decoration-skip: objects; /* 2 */ } /** * 1. Remove the bottom border in Chrome 57- and Firefox 39-. * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. */ abbr[title] { border-bottom: none; /* 1 */ text-decoration: underline; /* 2 */ text-decoration: underline dotted; /* 2 */ } /** * Prevent the duplicate application of `bolder` by the next rule in Safari 6. */ b, strong { font-weight: inherit; } /** * Add the correct font weight in Chrome, Edge, and Safari. */ b, strong { font-weight: bolder; } /** * Ensure line heights are consistent */ strong, em, b, i { line-height: 0.1em; } /** * 1. Correct the inheritance and scaling of font size in all browsers. * 2. Correct the odd `em` font sizing in all browsers. */ code, kbd, samp { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } /** * Add the correct font style in Android 4.3-. */ dfn { font-style: italic; } /** * Add the correct background and color in IE 9-. */ mark { background-color: #ff0; color: #000; } /** * Add the correct font size in all browsers. */ small { font-size: 80%; } /** * Prevent `sub` and `sup` elements from affecting the line height in * all browsers. */ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } /* Embedded content ========================================================================== */ /** * Add the correct display in IE 9-. */ audio, video { display: inline-block; } /** * Add the correct display in iOS 4-7. */ audio:not([controls]) { display: none; height: 0; } /** * Remove the border on images inside links in IE 10-. */ img { border-style: none; } /** * Hide the overflow in IE. */ svg:not(:root) { overflow: hidden; } /* Forms ========================================================================== */ /** * 1. Change the font styles in all browsers (opinionated). * 2. Remove the margin in Firefox and Safari. */ button, input, optgroup, select, textarea { font-family: sans-serif; /* 1 */ font-size: 100%; /* 1 */ line-height: 1.15; /* 1 */ margin: 0; /* 2 */ } /** * Show the overflow in IE. * 1. Show the overflow in Edge. */ button, input { /* 1 */ overflow: visible; } /** * Remove the inheritance of text transform in Edge, Firefox, and IE. * 1. Remove the inheritance of text transform in Firefox. */ button, select { /* 1 */ text-transform: none; } /** * 1. Prevent a WebKit bug where (2) destroys native `audio` and `video` * controls in Android 4. * 2. Correct the inability to style clickable types in iOS and Safari. */ button, html [type="button"], /* 1 */ [type="reset"], [type="submit"] { -webkit-appearance: button; /* 2 */ } /** * Remove the inner border and padding in Firefox. */ button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } /** * Restore the focus styles unset by the previous rule. */ button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; } /** * Correct the padding in Firefox. */ fieldset { padding: 0.35em 0.75em 0.625em; } /** * 1. Correct the text wrapping in Edge and IE. * 2. Correct the color inheritance from `fieldset` elements in IE. * 3. Remove the padding so developers are not caught out when they zero out * `fieldset` elements in all browsers. */ legend { box-sizing: border-box; /* 1 */ color: inherit; /* 2 */ display: table; /* 1 */ max-width: 100%; /* 1 */ padding: 0; /* 3 */ white-space: normal; /* 1 */ } /** * 1. Add the correct display in IE 9-. * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. */ progress { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ } /** * Remove the default vertical scrollbar in IE. */ textarea { overflow: auto; } /** * 1. Add the correct box sizing in IE 10-. * 2. Remove the padding in IE 10-. */ [type="checkbox"], [type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ } /** * Correct the cursor style of increment and decrement buttons in Chrome. */ [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } /** * 1. Correct the odd appearance in Chrome and Safari. * 2. Correct the outline style in Safari. */ [type="search"] { -webkit-appearance: textfield; /* 1 */ outline-offset: -2px; /* 2 */ } /** * Remove the inner padding and cancel buttons in Chrome and Safari on macOS. */ [type="search"]::-webkit-search-cancel-button, [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } /** * 1. Correct the inability to style clickable types in iOS and Safari. * 2. Change font properties to `inherit` in Safari. */ ::-webkit-file-upload-button { -webkit-appearance: button; /* 1 */ font: inherit; /* 2 */ } /* Interactive ========================================================================== */ /* * Add the correct display in IE 9-. * 1. Add the correct display in Edge, IE, and Firefox. */ details, /* 1 */ menu { display: block; } /* * Add the correct display in all browsers. */ summary { display: list-item; } /* Scripting ========================================================================== */ /** * Add the correct display in IE 9-. */ canvas { display: inline-block; } /** * Add the correct display in IE. */ template { display: none; } /* Hidden ========================================================================== */ /** * Add the correct display in IE 10-. */ [hidden] { display: none; } |