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

_header.scss « pages « scss « static - github.com/iCyris/hugo-theme-yuki.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 282b08ddf9027658eaf1b3f854307c0f8a260fe9 (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
/*
 * Header
 */
.site-logo__wrap {
  position: relative;
  width: 100vw;
  padding: 7vmin 0;
  background-color: $theme-color-white;
  @media screen and (max-width: 800px) {
    border-bottom: $theme-color-gray-light 1px solid;
    padding: 7px 0;
  }
}
.site-logo {
  position: relative;
  width: 7vmin; height: 7vmin;
  margin: 0 auto;
  a { display: inline-block; width: 100%; height: 100% ;}
  img { width: 100%; height: 100% ;}
}
.site-logo__index {
  width: 9vmin; height: 9vmin;
  @media screen and (max-width: 800px) { width: 7vmin; height: 7vmin ;}
}
.site-nav {
  position: relative;
  width: 100%;
  padding: 2vh 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background-color: $theme-color-white;
  letter-spacing: 1px;
  z-index: 1000;
  .site-nav__wrap { margin: 0 2vw ;}
  .site-nav__el {
    display: inline-block;
    height: 4vh;
    line-height: 4vh;
    color: $theme-color-black;
    font-size: .8rem;
    &:hover { opacity: .6 ; transition: opacity .2s ease ;}
  }
  .current-page {
    opacity: .6;
    cursor: default;
    pointer-events: none;
    border-bottom: $theme-color-black 1px solid;
  }
}
.site-nav__index {
  .site-nav__el {
    height: 5vh;
    line-height: 5vh;
  }
}
.site-nav-fixed {
  position: fixed;
  top: 0;
}
#site-button {
  @media screen and (max-width: 800px){ display: block ;}
  position: absolute;
  display: none;
  width: 22px; height: 22px;
  left: 20px; top: calc(50% - 11px);
  text-align: center;
  z-index: 1001;
  cursor: pointer;
  div {
    position: absolute;
    width: 100%; height: 1px;
    left: 0; top: calc(50% - 0.5px);
    background-color: $theme-color-black;
    &::before, &::after {
      position: absolute; content: "";
      width: 100%; height: 100%;
      left: 0; top: 0;
      background-color: $theme-color-black;
      transition: all .2s ease;
    }
    &::before { transform: translateY(7.5px)  rotate(0) ;}
    &::after  { transform: translateY(-7.5px) rotate(0) ;}
  }
}
#site-button.button-clicked {
  position: fixed;
  left: 20px; top: 10px;
  div {
    background-color: rgba(255, 255, 255, 0);
    &::before { transform: translateY(0) rotate(45deg)  ;}
    &::after  { transform: translateY(0) rotate(-45deg) ;}
  }
}
// Nav sp
@media screen and (max-width: 800px) {
  #nav-bar { display: none ;}
  .site-nav {
    position: fixed;
    flex-direction: column;
    width: 100vw; height: 100vh;
    left: 0; top: 0;
    margin-top: 0;
    transform: translateX(-100%);
    animation: nav-in .5s ease forwards;
    .site-nav__wrap {
      width: 100%;
      text-align: center;
      margin: 12px 0;
      a {
        height: 4vh;
        line-height: 4vh;
        font-size: 1.5rem;
        letter-spacing: 2px;
      }
    }
  }
}