home.scss 10.2 KB
Newer Older
1
body {
2 3
  background: #282c37;
  color: #9baec8;
4
  font-family: 'Roboto', sans-serif;
5 6
  font-size: 14px;
  line-height: 21px;
7 8 9 10
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
  padding: 30px 10px;
11
  overflow-x: hidden;
12 13 14
}

a {
15
  color: lighten(#2b90d9, 4%);
16

17 18
  &:hover, &:focus, &:active {
    color: lighten(#2b90d9, 8%);
19 20 21 22 23 24
  }
}

hr {
  border: 0;
  background: none;
25
  border-bottom: 1px solid lighten(#282c37, 8%);
26 27
  margin: 30px 0;
}
28 29 30 31 32 33 34 35

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

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

.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
95
  &:disabled, &.disabled {
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
    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
161 162 163 164 165

.header {
  margin-bottom: 30px;
  display: flex;
  justify-content: space-between;
166 167
  padding-bottom: 20px;
  border-bottom: 1px solid lighten($darkest, 12%);
Eugen Rochko's avatar
Eugen Rochko committed
168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187

  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;
188
      font-weight: 600;
Eugen Rochko's avatar
Eugen Rochko committed
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
      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;
    }
  }
245 246 247 248 249

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

252 253
.page-heading,
.connect-prompt {
Eugen Rochko's avatar
Eugen Rochko committed
254 255
  padding: 20px;
  margin-bottom: 30px;
256

Eugen Rochko's avatar
Eugen Rochko committed
257 258
  h3 {
    font-family: 'Montserrat', sans-serif;
259
    font-weight: 600;
Eugen Rochko's avatar
Eugen Rochko committed
260
    font-size: 26px;
261 262
    text-align: center;
    color: $lightest;
263
    line-height: 1.2;
Eugen Rochko's avatar
Eugen Rochko committed
264 265 266

    small {
      font-family: 'Roboto', sans-serif;
267
      font-weight: 400;
Eugen Rochko's avatar
Eugen Rochko committed
268 269 270 271 272 273 274 275
      margin-top: 20px;
      display: block;
      color: $lighter;
      font-size: 18px;
    }
  }
}

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
.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;
    }
326 327 328 329

    @media screen and (max-width: 375px) {
      margin-bottom: 10px;
    }
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
.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
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
.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
413 414
    overflow: hidden;
    border-radius: 10px;
Eugen Rochko's avatar
Eugen Rochko committed
415 416 417 418

    &:first-child {
      margin-right: 10px;
    }
419 420 421 422 423 424

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

  .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
471 472 473 474 475 476 477 478 479 480 481 482 483

.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
484
  background-color: darken($darkest, 4%);
Eugen Rochko's avatar
Eugen Rochko committed
485 486 487 488 489 490
  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
491 492
  width: calc(50% - 10px);
  margin-right: 10px;
493

Eugen Rochko's avatar
Eugen Rochko committed
494 495 496
  &:nth-child(even) {
    margin-right: 0;
  }
Eugen Rochko's avatar
Eugen Rochko committed
497 498 499 500 501 502

  .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;
503 504 505
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
Eugen Rochko's avatar
Eugen Rochko committed
506 507 508 509 510 511
  }

  .title {
    font-weight: 500;
    color: $lightest;
    display: block;
512 513 514 515 516 517 518 519 520
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .uri {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
Eugen Rochko's avatar
Eugen Rochko committed
521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541
  }

  &: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;
542
  width: calc(50% - 10px);
Eugen Rochko's avatar
Eugen Rochko committed
543
  margin-bottom: 20px;
544 545 546 547 548 549 550 551
  margin-right: 10px;
  position: relative;
  box-sizing: border-box;
  padding: 10px;

  &:nth-child(even) {
    margin-right: 0;
  }
Eugen Rochko's avatar
Eugen Rochko committed
552 553 554 555

  .avatar {
    width: 60px;
    height: 60px;
Eugen Rochko's avatar
Eugen Rochko committed
556 557 558
    background: darken($darkest, 4%);
    border-radius: 50%;
    overflow: hidden;
Neetshin's avatar
Neetshin committed
559
    flex-shrink: 0;
Eugen Rochko's avatar
Eugen Rochko committed
560 561 562 563 564 565 566 567 568 569

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

570 571 572 573 574 575 576 577 578 579 580 581 582 583
  .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
584 585
  .name {
    margin-left: 10px;
Neetshin's avatar
Neetshin committed
586 587 588
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
Eugen Rochko's avatar
Eugen Rochko committed
589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606
  }

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

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

    .display-name {
      color: #fff;
    }
  }
}
607 608 609 610

.empty-message {
  margin-bottom: 20px;
}
Eugen Rochko's avatar
Eugen Rochko committed
611 612 613 614 615 616 617 618 619 620 621 622

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

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

Eugen Rochko's avatar
Eugen Rochko committed
624 625 626 627
.hero-link {
  display: block;
  text-decoration: none;
  color: $white;
628
  width: 100%;
Eugen Rochko's avatar
Eugen Rochko committed
629 630 631 632
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}
633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660

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