style.scss 11.3 KB
Newer Older
1
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600|Roboto:400,500,700|Roboto+Mono:400');
Eugen Rochko's avatar
Eugen Rochko committed
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
@import url('https://unpkg.com/ionicons@4.2.0/dist/css/ionicons.min.css');

$white:    #fff   ; // color5
$lightest: #d9e1e8; // color2
$lighter:  #9baec8; // color3
$darkest:  #1F232B; // color1
$black:    #000   ; // color8
$darker:   lighten($darkest, 34%);

$vibrant:  #2b90d9; // color4
$error:    #df405a; // color6
$success:  #79bd9a; // color7

$transition-in: 100ms linear;
$transition-out: 250ms linear;

$content-width: 800px;

/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
  box-sizing: border-box;
  text-rendering: optimizelegibility;
  font-feature-settings: "kern";
  text-size-adjust: none;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

a {
  outline: 0;
}

body {
  box-sizing: border-box;
  font-family: 'Roboto', sans-serif;
  text-rendering: optimizeLegibility;
  background-color: $darkest;
  color: $lighter;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
}

.container {
  max-width: $content-width;
  margin: 0 auto;
Eugen Rochko's avatar
Eugen Rochko committed
96 97 98 99

  @media screen and (max-width: 600px) {
    padding: 0 20px;
  }
Eugen Rochko's avatar
Eugen Rochko committed
100 101 102 103 104 105 106 107
}

.navbar {
  padding-top: 15px;
  margin-bottom: 90px;
  display: flex;
  justify-content: space-between;

Eugen Rochko's avatar
Eugen Rochko committed
108 109 110
  @media screen and (max-width: 600px) {
    flex-wrap: wrap;
    justify-content: center;
111
    margin-bottom: 15px;
Eugen Rochko's avatar
Eugen Rochko committed
112 113
  }

Eugen Rochko's avatar
Eugen Rochko committed
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
  ul {
    list-style: none;

    li {
      display: inline-block;
      vertical-align: bottom;
    }

    a {
      display: flex;
      justify-content: center;
      align-items: center;

      color: $lighter;
      text-decoration: none;
      padding: 12px 14px;
      line-height: 32px;
      transition: color $transition-out;
      font-family: 'Montserrat', sans-serif;
      font-weight: 600;
      font-size: 14px;

      &.active, &:hover {
        color: $lightest;
        transition: color $transition-in;
      }

      &.brand {
        color: $white;

        img {
          width: auto;
          height: 32px;
          opacity: 1;
          position: relative;
          mix-blend-mode: normal;
          top: 4px;
          left: -10px;
        }

        &:hover {
          border-bottom-color: transparent;

          img {
            opacity: 1;
          }
        }
      }
    }

    li:first-child a {
      padding-left: 0;
    }

    li:last-child a {
      padding-right: 0;
    }
  }
}

.brand {
  display: inline-block;
  position: relative;
  z-index: 2;

  &::before {
    content: "";
    display: block;
Eugen Rochko's avatar
Eugen Rochko committed
182
    background: url('elephant.svg');
Eugen Rochko's avatar
Eugen Rochko committed
183 184 185 186 187 188 189
    position: absolute;
    width: 393px;
    height: 176px;
    z-index: -1;
    top: -21px;
    left: -28px;
    pointer-events: none;
Eugen Rochko's avatar
Eugen Rochko committed
190 191 192 193

    @media screen and (max-width: 600px) {
      display: none;
    }
Eugen Rochko's avatar
Eugen Rochko committed
194 195 196 197 198 199 200 201 202 203 204
  }

  &:hover {
    &::before {
      top: -20px;
    }
  }
}

.intro {
  text-align: center;
205
  padding: 20px 0 90px;
Eugen Rochko's avatar
Eugen Rochko committed
206 207 208

  img {
    display: block;
Eugen Rochko's avatar
Eugen Rochko committed
209 210
    max-width: 140px;
    height: auto;
211
    margin: 0 auto 30px;
Eugen Rochko's avatar
Eugen Rochko committed
212 213 214 215 216 217 218 219
  }

  h1 {
    font-size: 42px;
    font-weight: 500;
    color: $lightest;
    line-height: 1;
  }
Eugen Rochko's avatar
Eugen Rochko committed
220 221

  @media screen and (max-width: 600px) {
222
    padding: 0 0 40px;
Eugen Rochko's avatar
Eugen Rochko committed
223 224 225 226 227

    h1 {
      font-size: 28px;
    }
  }
Eugen Rochko's avatar
Eugen Rochko committed
228 229 230 231 232 233 234 235 236 237 238 239 240 241
}

.thumbnail-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;

  li {
    box-sizing: border-box;
    width: 50%;
    flex: 0 0 auto;
    padding: 0 15px;
    margin-bottom: 30px;

Eugen Rochko's avatar
Eugen Rochko committed
242 243 244 245
    @media screen and (max-width: 600px) {
      width: 100%;
    }

Eugen Rochko's avatar
Eugen Rochko committed
246
    .cover {
247
      display: flex;
Eugen Rochko's avatar
Eugen Rochko committed
248 249 250
      background: lighten($darkest, 4%);
      border-radius: 4px 4px 0 0;
      width: 100%;
251 252
      height: auto;
      min-height: 220px;
Eugen Rochko's avatar
Eugen Rochko committed
253 254 255
      text-decoration: none;
      font-weight: 600;
      background-size: cover;
256 257 258 259 260
      justify-content: center;

      @media screen and (max-width: 600px) {
        min-height: 125px;
      }
Eugen Rochko's avatar
Eugen Rochko committed
261 262 263
    }

    .overlay {
264
      align-self: center;
Eugen Rochko's avatar
Eugen Rochko committed
265 266 267
    }

    h2 {
Eugen Rochko's avatar
Eugen Rochko committed
268 269
      color: #fff;
      text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.35);
Eugen Rochko's avatar
Eugen Rochko committed
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
      text-align: center;
      font-size: 26px;
      line-height: 1.58;
      padding: 20px;
    }

    .article-information {
      padding: 20px;
      background: lighten($darkest, 8%);
      border-radius: 0 0 4px 4px;
      font-size: 16px;
      letter-spacing: -.003em;
      line-height: 1.58;

      .author {
        float: left;

        strong {
          font-weight: 600;
          color: $darker;
        }

        a {
          text-decoration: none;
          color: inherit;

          i {
            font-weight: initial;
          }
        }
      }

      time {
        float: right;
        color: $darker;
      }

      .summary {
        margin-top: 46px;
        clear: both;
        height: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
Eugen Rochko's avatar
Eugen Rochko committed
313 314 315 316

        a {
          color: lighten($vibrant, 18%);
        }
Eugen Rochko's avatar
Eugen Rochko committed
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
      }
    }
  }
}

.related-articles {
  margin-top: 30px;
}

.article {
  main {
    max-width: 600px;
    margin: 0 auto;
  }

  h1 {
    font-size: 36px;
    line-height: 1.08;
    font-weight: 600;
    color: $lightest;
    padding-top: 35px;
    margin-left: -2.63px;
    text-align: center;
    position: relative;

    &::before {
      display: block;
      content: "";
      border-top: 2px solid $vibrant;
      width: 100px;
      height: 0;
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
    }
  }

  h2 {
    font-size: 21px;
    line-height: 1.22;
    font-weight: 500;
    color: $lighter;
    margin-top: 25px;
    margin-left: -1.75px;
    text-align: center;
  }

  h3 {
    font-size: 26px;
    margin-left: -1.63px;
    line-height: 1.22;
    text-align: center;
    margin-top: 50px;
    margin-bottom: 30px;
    font-weight: 600;
    color: $lightest;
  }

Eugen Rochko's avatar
Eugen Rochko committed
376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391
  blockquote {
    color: $lightest;
    font-size: 16px;
    line-height: 28px;
    font-style: italic;
    border-left: 3px solid $vibrant;
    padding-left: 20px;
    margin-left: -23px;
    padding-bottom: 2px;
    margin-bottom: 26px;

    p:last-child {
      margin-bottom: 0;
    }
  }

Eugen Rochko's avatar
Eugen Rochko committed
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
  p {
    color: $lightest;
    font-size: 16px;
    line-height: 28px;
    font-weight: normal;
    margin-bottom: 26px;
    hyphens: auto;
  }

  a {
    color: lighten($vibrant, 18%);
  }

  img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.35);
  }

  .image-large {
    margin-bottom: 50px;
  }

  .image-pull-left {
    float: left;
  }

  em {
    font-style: italic;
  }

Eugen Rochko's avatar
Eugen Rochko committed
426 427 428 429 430
  strong {
    font-weight: 600;
    color: #fff;
  }

Eugen Rochko's avatar
Eugen Rochko committed
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
  ul {
    counter-reset: post;
    margin-bottom: 26px;
  }

  ul li {
    margin-left: 30px;
    margin-bottom: 14px;
    color: $lightest;
    font-size: 16px;
    line-height: 28px;

    &::before {
      position: absolute;
      display: inline-block;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      width: 78px;
      margin-left: -78px;
      text-align: right;
      padding-top: 4px;
      padding-right: 15px;
      content: '\2022';
    }
  }

Eugen Rochko's avatar
Eugen Rochko committed
457 458 459 460 461 462 463 464 465 466 467 468
  figure {
    figcaption {
      margin-top: 8px;
      text-align: center;

      &,
      p {
        color: $darker;
      }
    }
  }

469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492
  pre {
    margin-bottom: 26px;
    font-size: 16px;
    line-height: 28px;
    background-color: lighten($darkest, 8%);
    border-radius: 4px;
    padding: 16px;
    overflow: auto;
  }

  code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    font-family: 'Roboto Mono', monospace;
    background-color: lighten($darkest, 8%);
    border-radius: 3px;
  }

  pre code {
    background: transparent;
    padding: 0;
  }

Eugen Rochko's avatar
Eugen Rochko committed
493 494 495 496 497 498 499 500
  &-header {
    padding: 50px 0;

    .image-large {
      margin-top: 50px;
      margin-bottom: 0;
    }
  }
501 502 503 504 505 506 507 508 509

  .mastodon-embed {
    width: 100%;
    display: block;
    margin: 0 auto;
    margin-bottom: 26px;
    border-radius: 4px;
    box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.35);
  }
Eugen Rochko's avatar
Eugen Rochko committed
510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525
}

.footer {
  padding-bottom: 30px;

  .legal {
    margin-top: 30px;

    a {
      color: $darker;
      text-decoration: none;
    }
  }
}

.entry-nav {
Eugen Rochko's avatar
Eugen Rochko committed
526 527
  display: flex;
  margin: 0 -15px;
Eugen Rochko's avatar
Eugen Rochko committed
528 529 530 531
  margin-bottom: 30px;

  a {
    color: lighten($vibrant, 18%);
Eugen Rochko's avatar
Eugen Rochko committed
532
    display: block;
Eugen Rochko's avatar
Eugen Rochko committed
533 534 535 536 537
    border: 1px solid lighten($darkest, 8%);
    padding: 10px 14px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
Eugen Rochko's avatar
Eugen Rochko committed
538 539 540 541 542 543 544
    font-size: 12px;

    strong {
      display: block;
      font-size: 16px;
      margin-bottom: 6px;
    }
Eugen Rochko's avatar
Eugen Rochko committed
545 546
  }

Eugen Rochko's avatar
Eugen Rochko committed
547 548 549 550 551 552
  .prev-entry,
  .next-entry {
    box-sizing: border-box;
    width: 50%;
    flex: 0 0 auto;
    padding: 0 15px;
Eugen Rochko's avatar
Eugen Rochko committed
553 554 555
  }

  .next-entry {
Eugen Rochko's avatar
Eugen Rochko committed
556
    text-align: right;
Eugen Rochko's avatar
Eugen Rochko committed
557 558 559 560
  }
}

.pagination {
561
  display: -ms-flexbox;
Eugen Rochko's avatar
Eugen Rochko committed
562 563
  display: flex;
  justify-content: center;
564
  margin: 0 0 30px;
Eugen Rochko's avatar
Eugen Rochko committed
565 566 567

  li {
    flex: 0 0 auto;
568
    padding: 0 15px;
569 570 571 572

    @media screen and (max-width: 600px) {
      padding: 0 5px;
    }
Eugen Rochko's avatar
Eugen Rochko committed
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
  }

  a {
    color: lighten($vibrant, 18%);
    display: inline-block;
    border: 1px solid lighten($darkest, 8%);
    padding: 10px 14px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
  }

  .disabled a {
    color: $darker;
  }

  .active a {
    border-color: lighten($vibrant, 18%);
  }
}

.cta-banner {
  background: $vibrant;
  border-radius: 4px;
  text-align: center;
  padding: 40px;

  h4 {
    font-size: 24px;
Eugen Rochko's avatar
Eugen Rochko committed
602
    line-height: 1.08;
Eugen Rochko's avatar
Eugen Rochko committed
603 604 605 606 607 608 609 610
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
  }

  p {
    color: #fff;
    font-size: 18px;
Eugen Rochko's avatar
Eugen Rochko committed
611
    line-height: 1.22;
Eugen Rochko's avatar
Eugen Rochko committed
612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650
    margin-bottom: 20px;
  }

  & > a {
    font-weight: 500;
    color: $vibrant;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-family: inherit;
    display: inline-block;
    text-align: center;
    font-size: 16px;
    text-decoration: none;
    line-height: 36px;
    padding: 4px 16px;
    margin: 0 auto;
    border: 0;
    cursor: pointer;

    &.secondary {
      padding: 2px 14px;
      border: 2px solid #fff;
      background: transparent;
      margin-left: 4px;
      color: #fff;
    }

    @media screen and (max-width: 375px) {
      margin-bottom: 10px;
    }
  }
}

.panel {
  display: block;
  border-radius: 4px;
  text-decoration: none;
  background-size: 60%;
651 652 653 654 655
  background-color: #000;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: top right;

Eugen Rochko's avatar
Eugen Rochko committed
656 657 658 659 660 661 662
  text-align: left;

  .overlay {
    padding: 20px;
  }

  h5 {
Eugen Rochko's avatar
Eugen Rochko committed
663
    padding-top: 111px;
Eugen Rochko's avatar
Eugen Rochko committed
664 665 666 667 668 669 670 671 672 673 674
    font-size: 26px;
    font-weight: 600;
    line-height: 1.58;
    color: #fff;
  }

  p {
    color: #fff;
    font-size: 16px;
  }
}