Header.scss 1.07 KB
Newer Older
Ken's avatar
Ken committed
1
@use "styles/index" as *;
Ken's avatar
Ken committed
2 3

.header {
Ken's avatar
Ken committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
  &-logo {
    width: 40px;
    height: 40px;
    cursor: pointer;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    @include desktop {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
  }

Ken's avatar
Ken committed
24
  &-toolbar {
Ken's avatar
Ken committed
25
    padding: 0;
Ken's avatar
Ken committed
26 27 28
    justify-content: center;

    @include desktop {
Ken's avatar
Ken committed
29
      padding: 0 20px;
Ken's avatar
Ken committed
30 31 32
      justify-content: flex-start;
    }

Ken's avatar
Ken committed
33 34
    &__tablet {
      display: none;
Ken's avatar
Ken committed
35 36

      @include desktop {
Ken's avatar
Ken committed
37 38
        display: block;
      }
Ken's avatar
Ken committed
39 40 41 42 43 44 45 46
    }

    &__navbar {
      display: flex;

      @include desktop {
        display: none;
      }
Ken's avatar
Ken committed
47 48 49

      .navbar-readAll {
        &:hover {
Ken's avatar
Ken committed
50
          color: $info-700;
Ken's avatar
Ken committed
51 52
        }
      }
Ken's avatar
Ken committed
53 54 55 56 57 58 59 60 61 62 63
    }
  }

  &-list {
    display: flex;
    font-size: 13.5px;

    @include desktop {
      font-size: 15px;
    }

Ken's avatar
Ken committed
64 65 66 67 68 69 70 71 72
    &__item {
      &:hover {
        text-decoration: underline;
      }

      &:nth-last-of-type(-n + 3) {
        @media (max-width: 1300px) {
          display: none;
        }
Ken's avatar
Ken committed
73 74 75 76
      }
    }
  }
}