Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_nav.scss « sass « assets - github.com/kdevo/osprey-delight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5b212366b87a49435796ee18d9314e11e11ce7ad (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
@media (max-width: $mobile-breakpoint) {
  nav {
    // Hide menu links between logo and menu icon
    div:not(:first-child):not(:last-child) {
      display: none;
    }

    div.nav-toggle a {
      display: inline-block;
    }

    div.logo {
      padding-right: 30%;
    }

    div.nav-toggle {
      padding-left: 30%;
    }
    // opacity: 0;
  }
}

@media (max-width: 25em) {
  nav {
    .logo,
    .nav-toggle {
      max-width: 50% !important;
    }
  }
}

nav {
  position: absolute;
  z-index: 100;
  bottom: 0;
  width: 100%;
  height: $vertical-rhythm * 2;
  background-color: $primary-bg-color;
  text-align: center;

  h3 {
    margin: 0;
    font-family: $nav-font;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  img {
    display: inline-block;
    max-width: 10em;
    max-height: 2.5em;
    width: auto;
    vertical-align: middle;
  }

  .logo,
  .nav-toggle {
    visibility: hidden;
  }

  .nav-toggle a {
    display: none;
  }

  .nav-item-active a {
    color: $accent-color;
  }
}

.nav-fixed {
  position: fixed;
  top: 0;
  bottom: auto;
  box-shadow: 0 3px 4px rgba(0, 0, 0, .2);

  @media (max-width: $mobile-breakpoint) {
      opacity: 1;
      transition: opacity 200ms;
  }
  a.icon-active > .icon {
      fill: $full-nav-bg-color;
  }
}

.nav-full {
  position: fixed;
  top: 0;
  right: -100vw;
  bottom: 0;
  width: 100vw;
  height: 100%;

  transform: translate(0, 0);
  transition: .3s ease-out;


  a, .icon {
    color: $full-nav-fg-color;
    fill: $full-nav-fg-color;

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

// Animation to translate-in the texts
.nav-full.active {
  transform: translate(-100vw, 0);
  transition: .45s ease-in;
  // background: $accent-color;
  background: $full-nav-bg-color;
}

.nav-icon {
  font-size: $base-font-size * 1.75;
}