summaryrefslogtreecommitdiff
path: root/sass/layout/_nav.scss
blob: d57f3d7f7b547972ddfcd430ccd9dd0012ff92e9 (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
@use "../abstracts" as *;

nav {
  background-color: $bg-text-container;
  font-family: "Archivo Black", sans-serif;
  height: 10vh;
  width: 100%;

  ul {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    list-style-type: none;
    padding: 0 3rem;
    width: 100%;
  }

  // logo to the left side of navbar
  li:first-child {
    text-align: left;
    margin-right: auto;
  }

  li a {
    display: block;
    color: inherit;
    font-size: $medium-text;
    padding: 0 1.5rem;
    text-align: center;
    transition: transform 0.3s;
    text-decoration: none;
    white-space: nowrap;

    &:hover {
      @include main-link-hover;
    }
  }
}

// mobile
@media screen and (max-width: 770px) {
  nav {
    ul {
      gap: 1rem;
      justify-content: center;
      padding: 0;
    }

    li:first-child {
      text-align: center;
      margin-right: 1.5rem;
    }

    li a {
      font-size: 1rem;
      padding: 0;
    }
  }
}