📦 EqualifyEverything / equalify

📄 Navigation.module.scss · 67 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@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;
  }
  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:.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;
            }
        }
    }
  }
  .nav_buttons {
    button {
        background: transparent;
        border:0;
    }
  }
  .user_info{
    @include fonts.font-size-small;
    text-align:right;
    .logout{
        text-decoration: underline;
    }
  }
}