Projekt

Obecné

Profil

Stáhnout (2.69 KB) Statistiky
| Větev: | Tag: | Revize:
1
.navbar-wrapper {
2
  height: 90px;
3
  border-bottom: 1px solid $primary;
4
  background: #F2F2F2;
5

    
6
  h1 {
7
    margin: 0;
8
    font-size: 0;
9
  }
10

    
11
  h2 {
12
    margin: 0 5px;
13
    color: #0B1226;
14
    text-transform: uppercase;
15
    font-size: 18px;
16

    
17
    @include media-breakpoint-down(lg) {
18
      margin: 0 3px;
19
      font-size: 15px;
20
    }
21

    
22
    @include media-breakpoint-down(md) {
23
      font-size: 18px;
24
    }
25
  }
26

    
27
  .container {
28
    padding: 0;
29
    height: 100%;
30
  }
31
}
32

    
33
.navbar {
34
  position: relative;
35
  height: 100%;
36
  background: #F2F2F2;
37

    
38
  button {
39
    outline: none;
40
    border: 0;
41
  }
42
}
43

    
44
.navbar-nav {
45
  width: 40%;
46

    
47
  @include media-breakpoint-down(md) {
48
    width: 100%;
49
    text-align: center;
50
  }
51

    
52
  &.right {
53
    justify-content: flex-end;
54
  }
55

    
56
  &.left {
57
    justify-content: flex-start;
58
  }
59
}
60

    
61
.nav-link {
62
  cursor: pointer;
63
}
64

    
65
.navbar-brand {
66
  margin: 0;
67

    
68
  img {
69
    width: 200px;
70

    
71
    @include media-breakpoint-down(xs) {
72
      width: 150px;
73
    }
74
  }
75

    
76
  &.mobile {
77
    @include media-breakpoint-up(lg) {
78
      display: none;
79
    }
80

    
81
    @include media-breakpoint-down(md) {
82
      position: absolute;
83
      top: 50%;
84
      left: 50%;
85
      transform: translate(-50%,-50%);
86
    }
87
  }
88
  &.desktop {
89
    @include media-breakpoint-down(md) {
90
      display: none;
91
    }
92
  }
93
}
94

    
95
.navbar-toggler {
96
  position: absolute;
97
  top: 50%;
98
  right: $grid-gutter-width / 2;
99
  width: 60px;
100
  height: 45px;
101
  z-index: 1;
102
  transform: translateY(-50%);
103

    
104
  span {
105
    display: block;
106
    position: absolute;
107
    height: 5px;
108
    width: 100%;
109
    background: $primary;
110
    border-radius: 9px;
111
    opacity: 1;
112
    left: 0;
113
    transition: .25s ease-in-out;
114
    z-index: 2;
115

    
116
    &:nth-child(1) {
117
      top: 0;
118
    }
119
    &:nth-child(2) {
120
      top: 18px;
121
    }
122
    &:nth-child(3) {
123
      top: 36px;
124
    }
125
  }
126
}
127

    
128
.navbar-toggler.open {
129
  span {
130
    &:nth-child(1) {
131
      top: 18px;
132
      transform: rotate(135deg);
133
    }
134
    &:nth-child(2) {
135
      opacity: 0;
136
      left: -60px;
137
    }
138
    &:nth-child(3) {
139
      top: 18px;
140
      transform: rotate(-135deg);
141
    }
142
  }
143
}
144

    
145
.navbar-collapse {
146
  padding-bottom: 1px;
147
  justify-content: space-between;
148
  transition-duration: 0.2s;
149

    
150
  @include media-breakpoint-down(md) {
151
    position: absolute;
152
    left: -($grid-gutter-width / 2);
153
    top: 90px;
154
    width: calc(100% + 20px);
155
    background: $primary;
156
    z-index: 2;
157

    
158
    .nav-link h2 {
159
      margin: 12px 0;
160
      color: #F2F2F2;
161
    }
162
  }
163
}
164

    
165
.nav-link-user {
166
  display: flex;
167
  align-items: center;
168
  cursor: default;
169

    
170
  @include media-breakpoint-down(md) {
171
    justify-content: center;
172
  }
173

    
174
  h2 {
175
    color: $secondary;
176

    
177
    @include media-breakpoint-down(md) {
178
      margin: 12px 0;
179
      color: #F2F2F2;
180
    }
181
  }
182

    
183
  @include hover_focus() {
184
    color: $secondary;
185
  }
186
}
(5-5/9)