home.scss 11.7 KB
Newer Older
1
@import url('https://fonts.googleapis.com/css?family=Montserrat:500,600|Roboto:400,500');
Eugen Rochko's avatar
Eugen Rochko committed
2 3 4 5 6 7 8 9 10 11 12 13 14 15

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

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

$transition-in: 100ms linear;
$transition-out: 250ms linear;
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

/* 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-size: 100%;
  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;
}
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;
}
65 66

body {
67 68
  background: #282c37;
  color: #9baec8;
69
  font-family: 'Roboto', sans-serif;
70 71
  font-size: 14px;
  line-height: 21px;
72 73 74 75
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 10px;
76
  overflow-x: hidden;
77 78 79
}

a {
80
  color: lighten(#2b90d9, 4%);
81

82 83
  &:hover, &:focus, &:active {
    color: lighten(#2b90d9, 8%);
84 85 86 87 88 89
  }
}

hr {
  border: 0;
  background: none;
90
  border-bottom: 1px solid lighten(#282c37, 8%);
91 92
  margin: 30px 0;
}
93 94 95 96 97 98 99 100

.toot-friend img {
  display: block;
  margin: 0 auto;
}

p.lead {
  font-size: 16px;
Eugen Rochko's avatar
Eugen Rochko committed
101
  font-weight: 400;
102 103 104
  color: $darker;
  margin-bottom: 30px;
  text-align: center;
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
}

.flash-message {
  background: darken(#282c37, 8%);
  color: #9baec8;
  border-radius: 4px;
  padding: 15px 10px;
  margin-bottom: 30px;
  box-shadow: 0 0 5px rgba(#000, 0.2);
  text-align: center;

  strong {
    font-weight: 500;
  }
}

.buttons {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;

  li {
    display: block;
    margin: 0 5px;
  }
}

.button, a.button {
  background-color: darken(#2b90d9, 3%);
  font-family: inherit;
  display: inline-block;
  position: relative;
  box-sizing: border-box;
  text-align: center;
  border: 10px none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: uppercase;
  padding: 0 16px;
  height: 36px;
  cursor: pointer;
  line-height: 36px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 100ms ease-in;

  &:hover, &:active, &:focus {
    background-color: lighten(#2b90d9, 7%);
    transition: all 200ms ease-out;
  }

Eugen Rochko's avatar
Eugen Rochko committed
160
  &:disabled, &.disabled {
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
    background-color: #9baec8;
    cursor: default;
  }
}

.footer {
  text-align: center;
  color: lighten(#282c37, 26%);

  a {
    color: inherit;
  }
}

.info-area {
  margin-bottom: 20px;
  background: darken(#282c37, 8%);
  padding: 20px 10px;
  border-radius: 4px;
  color: #fff;
  font-size: 15px;

  li {
    margin-bottom: 5px;
  }

  strong {
    font-weight: 500;
  }
}

h4 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #fff;
}

.user-map {
  margin-bottom: 10px;
  display: flex;
  line-height: 36px;

  & > div {
    flex: 0 0 auto;
  }

  .twitter {
    width: 150px;
  }

  .to {
    width: 30px;
    margin: 0 20px;
  }

  .mastodon {
    width: 200px;
  }

  .follow {
    flex: 1 1 auto;
    text-align: right;
  }
}
Eugen Rochko's avatar
Eugen Rochko committed
226 227 228 229 230

.header {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
231 232
  padding-bottom: 20px;
  border-bottom: 1px solid lighten($darkest, 12%);
Eugen Rochko's avatar
Eugen Rochko committed
233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252

  ul {
    list-style: none;

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

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

      color: $lighter;
      text-decoration: none;
      padding: 12px 16px;
      line-height: 32px;
      transition: color $transition-out;
      font-family: 'Montserrat', sans-serif;
253
      font-weight: 600;
Eugen Rochko's avatar
Eugen Rochko committed
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
      font-size: 14px;

      img.link-logo {
        width: 32px;
        height: 32px;
        opacity: 0.5;
        transition: opacity $transition-out;

        &.before {
          margin-right: 10px;
        }

        &.after {
          margin-left: 10px;
        }
      }

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

        img.link-logo {
          opacity: 0.8;
          transition: opacity $transition-in;
        }
      }

      &.brand {
        color: $white;

        img {
          width: auto;
          height: 32px;
          opacity: 1;
          position: relative;
          top: 4px;
        }

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

          img {
            opacity: 1;
          }
        }
      }
    }

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

    li:last-child a {
      padding-right: 0;
    }
  }
310 311 312 313 314

  @media screen and (max-width: 375px) {
    flex-wrap: wrap;
    justify-content: center;
  }
Eugen Rochko's avatar
Eugen Rochko committed
315 316
}

317 318
.page-heading,
.connect-prompt {
Eugen Rochko's avatar
Eugen Rochko committed
319 320
  padding: 20px;
  margin-bottom: 30px;
321

Eugen Rochko's avatar
Eugen Rochko committed
322 323
  h3 {
    font-family: 'Montserrat', sans-serif;
324
    font-weight: 600;
Eugen Rochko's avatar
Eugen Rochko committed
325
    font-size: 26px;
326 327
    text-align: center;
    color: $lightest;
328
    line-height: 1.2;
Eugen Rochko's avatar
Eugen Rochko committed
329 330 331

    small {
      font-family: 'Roboto', sans-serif;
332
      font-weight: 400;
Eugen Rochko's avatar
Eugen Rochko committed
333 334 335 336 337 338 339 340
      margin-top: 20px;
      display: block;
      color: $lighter;
      font-size: 18px;
    }
  }
}

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
.connect-prompt {
  background: $vibrant;
  color: $white;
  border-radius: 4px;
  text-align: center;
  padding: 40px;

  h3,
  p {
    color: #fff;
    text-align: center;
  }

  h3 {
    margin-bottom: 20px;
  }

  p {
    margin-bottom: 20px;

    a {
      color: #fff;
      text-decoration: underline;
    }
  }

  & > 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;
    }
391 392 393 394

    @media screen and (max-width: 375px) {
      margin-bottom: 10px;
    }
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
.candy-button {
  font-weight: 500;
  background: $vibrant;
  color: #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;

  &:hover,
  &:active,
  &:focus {
    color: #fff;
  }
}

Eugen Rochko's avatar
Eugen Rochko committed
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
.connections {
  li {
    padding: 0 10px;
    display: flex;
    margin-bottom: 15px;
  }

  .connection-brand {
    width: 80px;
    height: 80px;

    img {
      display: block;
      margin: 0;
    }

    &.twitter {
      img {
        width: 80px;
        height: 80px;
      }
    }

    &.mastodon {
      background: #3088d4;

      img {
        width: 60px;
        height: 60px;
        margin: 10px;
      }
    }
  }

  .connection-info {
    margin-left: 15px;

    strong {
      font-weight: 500;
    }

    .connection-disconnect-link {
      display: block;
    }
  }
}

.login-buttons {
  display: flex;
  margin-bottom: 30px;

  & > a, & > div {
    flex: 1 0 0;
    color: #fff;
    display: flex;
    text-decoration: none;
Eugen Rochko's avatar
Eugen Rochko committed
478 479
    overflow: hidden;
    border-radius: 10px;
Eugen Rochko's avatar
Eugen Rochko committed
480 481 482 483

    &:first-child {
      margin-right: 10px;
    }
484 485 486 487 488 489

    @media screen and (max-width: 375px) {
      flex-wrap: wrap;
      justify-content: center;
      text-align: center;
    }
Eugen Rochko's avatar
Eugen Rochko committed
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
  }

  .login-brand {
    width: 80px;
    height: 80px;

    img {
      display: block;
      width: 100%;
      height: 100%;
      margin: 0;
    }
  }

  .login-content {
    padding: 18px 10px;
  }

  .login-numbers, .login-name {
    strong {
      font-weight: 500;
    }
  }

  .twitter {
    background: #1da1f2;
  }

  .mastodon {
    background: #3088d4;

    .login-brand img {
      width: 60px;
      height: 60px;
      margin: 10px;
    }
  }

  a.twitter:hover {
    background: lighten(#1da1f2, 4%);
  }

  a.mastodon:hover {
    background: lighten(#3088d4, 4%);
  }
}
Eugen Rochko's avatar
Eugen Rochko committed
536 537 538 539 540 541 542 543 544 545 546 547 548

.grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.instance-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
Eugen Rochko's avatar
Eugen Rochko committed
549
  background-color: darken($darkest, 4%);
Eugen Rochko's avatar
Eugen Rochko committed
550 551 552 553 554 555
  background-size: cover;
  background-position: center;
  padding-top: 110px;
  margin-bottom: 20px;
  flex: 1 1 auto;
  max-width: 300px;
Eugen Rochko's avatar
Eugen Rochko committed
556 557
  width: calc(50% - 10px);
  margin-right: 10px;
558

Eugen Rochko's avatar
Eugen Rochko committed
559 560 561
  &:nth-child(even) {
    margin-right: 0;
  }
Eugen Rochko's avatar
Eugen Rochko committed
562 563 564 565 566 567

  .info {
    background: linear-gradient(0deg, rgba(#000, 0.8) 0, rgba(#000, 0.35) 60%, transparent);
    padding: 10px;
    padding-top: 40px;
    border-radius: 0 0 10px 10px;
568 569 570
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
Eugen Rochko's avatar
Eugen Rochko committed
571 572 573 574 575 576
  }

  .title {
    font-weight: 500;
    color: $lightest;
    display: block;
577 578 579 580 581 582 583 584 585
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .uri {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
Eugen Rochko's avatar
Eugen Rochko committed
586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606
  }

  &:hover,
  &:focus,
  &:active {
    color: $lightest;

    .title {
      color: #fff;
    }
  }
}

.user-card {
  display: block;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 300px;
607
  width: calc(50% - 10px);
Eugen Rochko's avatar
Eugen Rochko committed
608
  margin-bottom: 20px;
609 610 611 612 613 614 615 616
  margin-right: 10px;
  position: relative;
  box-sizing: border-box;
  padding: 10px;

  &:nth-child(even) {
    margin-right: 0;
  }
Eugen Rochko's avatar
Eugen Rochko committed
617 618 619 620

  .avatar {
    width: 60px;
    height: 60px;
Eugen Rochko's avatar
Eugen Rochko committed
621 622 623
    background: darken($darkest, 4%);
    border-radius: 50%;
    overflow: hidden;
Neetshin's avatar
Neetshin committed
624
    flex-shrink: 0;
Eugen Rochko's avatar
Eugen Rochko committed
625 626 627 628 629 630 631 632 633 634

    img {
      display: block;
      margin: 0;
      width: 100%;
      height: 100%;
      border-radius: 50%;
    }
  }

635 636 637 638 639 640 641 642 643 644 645 646 647 648
  .following-indicator {
    position: absolute;
    width: 25px;
    height: 25px;
    background: $vibrant;
    color: $white;
    text-align: center;
    border-radius: 50%;
    font-size: 16px;
    line-height: 25px;
    bottom: 5px;
    box-shadow: 3px -3px 6px rgba(#000, 0.3);
  }

Eugen Rochko's avatar
Eugen Rochko committed
649 650
  .name {
    margin-left: 10px;
Neetshin's avatar
Neetshin committed
651 652 653
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
Eugen Rochko's avatar
Eugen Rochko committed
654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671
  }

  .display-name {
    font-weight: 500;
    color: $lightest;
    display: block;
  }

  &:hover,
  &:focus,
  &:active {
    color: $lightest;

    .display-name {
      color: #fff;
    }
  }
}
672 673 674 675

.empty-message {
  margin-bottom: 20px;
}
Eugen Rochko's avatar
Eugen Rochko committed
676 677 678 679 680 681 682 683 684 685 686 687

.pagination {
  text-align: center;
  margin-bottom: 20px;

  a {
    display: inline-block;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
  }
}
688

Eugen Rochko's avatar
Eugen Rochko committed
689 690 691 692
.hero-link {
  display: block;
  text-decoration: none;
  color: $white;
693
  width: 100%;
Eugen Rochko's avatar
Eugen Rochko committed
694 695 696 697
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}
698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725

.progress-bar {
  width: 100%;
  border-radius: 4px;
  background: $darkest;
  position: relative;
  text-align: center;

  & > div {
    border-radius: 4px;

    &:first-child {
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      background: $success;
    }

    &:last-child {
      position: relative;
      z-index: 2;
      width: 100%;
      padding: 10px 0;
      color: #fff;
    }
  }
}