aboutsummaryrefslogtreecommitdiffstats
path: root/htdocs/src/scss/layout/_nav.scss
blob: f4508d0ac8f67923a54244b7300f6011fe70d353 (plain)
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
@use "../abstracts/functions" as fun;
@use "../abstracts/placeholders";

.nav {
  text-align: center;

  &__label {
    font-weight: 600;
  }

  &__list {
    @extend %reset-list;

    .btn {
      width: 100%;
    }
  }

  &__link {
    &--back {
      display: inline-block;
      margin: fun.get-var(spacing-sm) 0;

      &::before {
        content: "\1F810";
        display: inline-block;
        text-decoration: none;
      }
    }

    &--app {
      background: fun.get-var(color-bg);
      border: fun.convert-px(1) solid fun.get-var(color-border);
      display: block;
      padding: fun.get-var(spacing-2xs);
      position: relative;
      text-decoration: none;
      transition: all 0.3s ease-in-out 0s;
      width: 100%;

      &:hover,
      &:focus {
        background: fun.get-var(color-primary);
        color: fun.get-var(color-fg-inverted);
      }

      &:active {
        background: fun.get-var(color-bg);
        color: fun.get-var(color-primary-dark);
        text-decoration: fun.convert-px(1) solid underline;
      }
    }
  }

  &__item:not(:first-child) & {
    &__link {
      border-top: 0;
    }
  }

  .btn {
    margin: auto;
  }
}