mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
12.25.2022 13383f64edc1fc620bd17670a5505ef63e8dd1cd
1
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
.nav {
  display: none;
  box-shadow: $shadow;
 
  &__list {
    margin: 0;
    list-style: none;
    background-color: $primary-lighter;
    width: 100%;
 
    &-item {
      line-height: 2.5;
      padding: 0.5rem 0.75rem;
      text-transform: uppercase;
      text-align: center;
    }
 
    @include desktop {
      padding: 20px 30px;
    }
  }
 
  &__link {
    &--active {
      @include desktop {
        border-bottom: 1px solid $primary;
        padding-bottom: 22px;
      }
    }
  }
 
  &--active {
    display: block;
  }
}
 
@include desktop_and_print {
  .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
 
    &__list {
      display: flex;
      background-color: $accent;
 
      &-item {
        &:not(:last-child) {
          padding-right: 20px;
        }
      }
 
      &--end {
        flex-shrink: 1;
        justify-content: flex-end;
      }
    }
  }
}