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

Andreas Deininger
07.57.2025 acb0c1788976af1601ac300b9206e1c898a29d5b
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
@use 'modules/color_theme' as color;
@use 'modules/config' as conf;
 
.nav {
  $py-desktop: 24px;
 
  display: none;
 
  @include conf.desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: none;
  }
 
  &__list {
    margin: 0;
    list-style: none;
    padding: 0;
    width: 100%;
 
    @include color.themed() {
      background-color: color.t('primary-lighter');
    }
 
    @include conf.desktop {
      display: flex;
      padding: $py-desktop 30px;
 
      @include color.themed() {
        background-color: color.t('accent');
      }
 
      &--end {
        flex-shrink: 1;
        justify-content: flex-end;
      }
    }
 
    &-item {
      padding: 16px 0;
      text-transform: uppercase;
      text-align: center;
      white-space: nowrap;
 
      @include conf.desktop {
        padding-top: 0;
        padding-bottom: 0;
 
        &:not(:last-child) {
          @include conf.ltr {
            padding-right: 20px;
          }
          @include conf.rtl {
            padding-left: 20px;
          }
        }
      }
    }
  }
 
  &__link {
    &--active {
      padding-bottom: $py-desktop;
 
      @include conf.desktop {
        @include color.themed() {
          border-bottom: 1px solid color.t('primary');
        }
      }
    }
  }
 
  &--active {
    display: block;
  }
}