style.scss 9.57 KB
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600|Roboto:400,500,700|Roboto+Mono:400');
@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: 960px;
Eugen Rochko's avatar
Eugen Rochko committed
19
$mobile-width: 600px;
Eugen Rochko's avatar
Eugen Rochko committed
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

/* 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;
  padding-top: 30px;
}

.container {
  max-width: $content-width;
  margin: 0 auto;

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

.sidebar-layout {
  display: grid;
  grid-gap: 15px;
  grid-template-columns: 260px minmax(300px, ($content-width - 260px));
  grid-template-rows: auto;
  margin-bottom: 30px;
Eugen Rochko's avatar
Eugen Rochko committed
110 111 112 113

  @media screen and (max-width: $mobile-width) {
    display: block;
  }
Eugen Rochko's avatar
Eugen Rochko committed
114 115 116
}

.sidebar {
Eugen Rochko's avatar
Eugen Rochko committed
117 118 119 120
  @media screen and (max-width: $mobile-width) {
    margin-bottom: 60px;
  }

Eugen Rochko's avatar
Eugen Rochko committed
121 122 123 124 125 126 127 128 129 130 131 132 133
  .brand {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    color: $darkest;
    margin-bottom: 52px;

    img {
      height: 38px;
      position: relative;
      left: -14px;
      top: -4px;
    }
Eugen Rochko's avatar
Eugen Rochko committed
134 135 136 137 138 139 140 141

    @media screen and (max-width: $mobile-width) {
      justify-content: center;

      img {
        position: static;
      }
    }
Eugen Rochko's avatar
Eugen Rochko committed
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
  }

  a {
    display: inline-block;
    color: $lighter;
    text-decoration: none;
    font-size: 14px;
    padding: 10px 0;

    &:hover,
    &:focus,
    &:active {
      color: lighten($lighter, 8%);
    }
  }

  & > ul > li > a {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    padding-bottom: 26px;
  }

  .sub-menu {
    padding-bottom: 26px;

    a.active {
      color: $vibrant;
    }
171 172 173 174

    &.collapsed {
      display: none;
    }
Eugen Rochko's avatar
Eugen Rochko committed
175 176 177 178 179 180 181 182 183
  }
}

.footer {
  padding-bottom: 30px;

  .legal {
    margin-top: 30px;

Eugen Rochko's avatar
Eugen Rochko committed
184 185 186 187 188 189 190 191 192 193
    &--right {
      float: right;
      text-align: right;

      @media screen and (max-width: $mobile-width) {
        float: none;
        text-align: left;
      }
    }

Eugen Rochko's avatar
Eugen Rochko committed
194 195 196 197 198 199 200 201 202 203
    a {
      color: $darker;
      text-decoration: none;
    }
  }
}

main {
  h1 {
    font-size: 36px;
Eugen Rochko's avatar
Eugen Rochko committed
204
    line-height: 1.48;
Eugen Rochko's avatar
Eugen Rochko committed
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
    font-weight: 600;
    color: $lightest;
    padding-bottom: 35px;
    border-bottom: 1px solid lighten($darkest, 8%);
    margin-bottom: 35px;
    margin-left: -2.63px;
    text-align: left;
    position: relative;
  }

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

  h3 {
    font-size: 21px;
    line-height: 1.22;
    font-weight: 500;
    color: $lightest;
    margin-top: 25px;
    margin-bottom: 30px;
    margin-left: -1.75px;
    text-align: left;
  }

  h4 {
    font-size: 18px;
    line-height: 1.22;
    font-weight: 500;
    color: $lightest;
    margin-top: 25px;
    margin-bottom: 30px;
    margin-left: -1.75px;
    text-align: left;
  }

  h5 {
    font-size: 18px;
    line-height: 1.22;
    font-weight: 500;
    color: $lightest;
    margin-top: 25px;
    margin-bottom: 30px;
    margin-left: -1.75px;
    text-align: left;
  }

  h6 {
    font-weight: 700;
    margin-top: 25px;
    margin-left: -1.75px;
    text-align: left;
    color: $lightest;
    font-size: 16px;
    line-height: 28px;
    margin-bottom: 26px;
  }

  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;
    }
  }

  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;
  }

  strong {
    font-weight: 600;
    color: #fff;
  }

  ul,
  ol {
    counter-reset: post;
    margin-bottom: 26px;
  }

  ul li,
  ol 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';
    }
  }

  ol > li {
    &::before {
      padding-top: 0;
      content: counter(post) ". ";
      counter-increment: post;
    }
  }

  li > ul,
  li > ol {
    margin-top: 14px;
  }

366 367 368 369 370 371 372 373 374 375 376 377 378
  table {
    width: 100%;
    margin-bottom: 26px;
    color: $lightest;

    tr:nth-child(2n),
    thead tr {
      background-color: darken($darkest, 4%);
    }

    th,
    td {
      font-size: 16px;
Eugen Rochko's avatar
Eugen Rochko committed
379 380 381
      line-height: 28px;
      padding: 10px 15px;
      vertical-align: middle;
382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397
      border: 1px solid lighten($darkest, 8%);

      .fa-check {
        color: $success;
      }

      .fa-times {
        color: $error;
      }
    }

    thead th {
      font-weight: 500;
    }
  }

Eugen Rochko's avatar
Eugen Rochko committed
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
  figure {
    figcaption {
      margin-top: 8px;
      text-align: center;

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

  hr {
    background: transparent;
    border: 0;
    border-top: 1px solid $darker;
    margin: 26px 0;
  }

  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;
  }

441 442
  .mastodon-embed,
  iframe {
Eugen Rochko's avatar
Eugen Rochko committed
443 444 445 446 447 448 449 450 451 452 453 454 455 456
    width: 100%;
    display: block;
    margin: 0 auto;
    margin-bottom: 26px;
    border-radius: 4px;
    box-shadow: 4px 6px 18px rgba(0, 0, 0, 0.35);
  }
}

.mascot {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 60px;
Eugen Rochko's avatar
Eugen Rochko committed
457 458 459 460

  @media screen and (max-width: $mobile-width) {
    display: none;
  }
Eugen Rochko's avatar
Eugen Rochko committed
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
}

#TableOfContents {
  color: $lighter;

  ul li {
    color: inherit;
  }

  & > ul > li {
    margin-left: 0;

    &::before {
      display: none;
    }
  }

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

  padding-bottom: 35px - 14px;
  border-bottom: 1px solid lighten($darkest, 8%);
  margin-bottom: 35px;
}

.panel {
  display: block;
  border-radius: 4px;
  text-decoration: none;
  background-size: 60%;
  background-color: #000;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: top right;
  text-align: left;

Eugen Rochko's avatar
Eugen Rochko committed
499 500 501 502
  @media screen and (max-width: $mobile-width) {
    background-size: contain;
  }

Eugen Rochko's avatar
Eugen Rochko committed
503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519
  .overlay {
    padding: 20px;
  }

  h5 {
    padding-top: 111px;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.58;
    color: #fff;
  }

  p {
    color: #fff;
    font-size: 16px;
  }
}
Eugen Rochko's avatar
Eugen Rochko committed
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

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

  h4 {
    font-size: 24px;
    line-height: 1.08;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
  }

  p {
    color: #fff;
    font-size: 18px;
    line-height: 1.22;
    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;
    }
  }
}