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

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

  // tablet & mobile
  @include responsive(tablet) {
    height: fit-content;
  }

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

    // tablet & mobile
    @include responsive(tablet) {
      @include flex-column-center;
      gap: 1rem;
      padding: 1.5rem 0;
    }
  }

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

    // tablet & mobile
    @include responsive(tablet) {
      text-align: center;
      margin-right: 1.5rem;
    }
  }

  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;
    }

    // tablet & mobile
    @include responsive(tablet) {
      font-size: $big-text;
    }
  }
}