aboutsummaryrefslogtreecommitdiff
path: root/assets/sass/_partial/_mobile.scss
blob: 26e4c7614677874cc447f0d80eb87f248769e904 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
// ==============================
// Mobile Navbar
// ==============================

.mobile-navbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: $mobile-navbar-height;
  background: $white;
  box-shadow: 0px 2px 2px $gray;
  text-align: center;
  transition: transform 300ms ease;
  z-index: 99;

  &.fixed-open {
    transform: translate3d(180px, 0px, 0px);
  }

  .mobile-header-logo {
    display: inline-block;
    margin-right: 50px;

    .logo {
      font-size: 22px;
      line-height: $mobile-navbar-height;
      font-family: $logo-font-family;
    }
  }

  .mobile-navbar-icon {
    color: $theme-color;
    height: $mobile-navbar-height;
    width: $mobile-navbar-height;
    font-size: 24px;
    text-align: center;
    float: left;
    position: relative;
    transition: background 0.5s;

    @include mobile-menu-icon();
  }
}

.mobile-menu {
  background-color: rgba($deputy-color, 0.5);

  .mobile-menu-list {
    position: relative;
    list-style: none;
    margin-top: 50px;
    padding: 0;
    border-top: 1px solid $deputy-color;

    .mobile-menu-item {
      padding: 10px 30px;
      border-bottom: 1px solid $deputy-color;
    }

    a {
      font-size: 18px;
      font-family: $global-serif-font-family;

      &:hover {
        color: $theme-color;
      }
    }
  }
}

@include max-screen() {
  .mobile-navbar {
    display: block;
  }
}