📦 EqualifyEverything / equalify

📄 Navigation.module.scss · 100 lines
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100@use "../global-styles/variables.module.scss";
@use "../global-styles/fonts.scss";

.navigation {
  width: 100%;
  background: variables.$paper;
  border-bottom: 1px solid variables.$paper-dark;
  padding: variables.$spacing;
  margin-bottom: variables.$spacing * 2;
  .content {
    width: 100%;
    max-width: variables.$max-width;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    @media screen and (max-width: variables.$breakpoint-small) {
      flex-direction: column;
    }
  }
  a {
    text-decoration: none;
  }
  .nav_menu {
    display: inline-flex;
    align-items: center;
    .link {
      display: inline-block;
      color: variables.$black;
      padding: calc(variables.$spacing/2) variables.$spacing;
      margin-left: calc(variables.$spacing/2);
      margin-right: calc(variables.$spacing/2);
      opacity: 0.8;
      transition:
        background 0.12s ease-out,
        opacity 0.12s ease-out;
      &:hover {
        border-radius: calc(variables.$spacing / 2);
        background-color: variables.$paper;
        opacity: 1;
      }
      &.active {
        opacity: 1;
        font-weight: 700;
        position: relative;
        &::after {
          content: "";
          position: absolute;
          width: 100%;
          bottom: -1em;
          left: 0;
          display: block;
          border-bottom: 3px solid variables.$red;

          @media screen and (max-width: variables.$breakpoint-small) {
            bottom: 0;
          }
        }
      }
    }
  }
  .nav_buttons {
    button {
      background: transparent;
      border: 0;
    }

    @media screen and (max-width: variables.$breakpoint-small) {
      width: 100%;
      display: flex;
      justify-content: space-evenly;
      align-content: center;
      align-items: center;
    }
  }
  .user_info {
    @include fonts.font-size-small;
    text-align: right;

    
      @media screen and (max-width: variables.$breakpoint-small) {
        display: flex;
    justify-content: space-between;
    width: 100%;
    background-color: variables.$black;
    padding: 0px 8px;
    color: variables.$paper;
      }

    .logout {
      text-decoration: underline;
    }
    .br {
      @media screen and (max-width: variables.$breakpoint-small) {
        display: none;
      }
    }
  }
}