/
_nav0.scss
123 lines (105 loc) · 2.26 KB
/
_nav0.scss
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
119
120
121
122
123
//
// Main navbar
//
.td-navbar-cover {
background: $white; // $primary;
@include media-breakpoint-up(md) {
background: $white; // transparent !important;
.nav-link {
// text-shadow: 1px 1px 2px $dark;
}
}
&.navbar-bg-onscroll .nav-link {
text-shadow: none;
}
}
.navbar-bg-onscroll {
background: $white !important; // $primary !important;
opacity: inherit;
}
.td-navbar {
background: $white; // $primary;
// min-height: 4rem;
height: 50px;
box-shadow: 0px 2px 1px lighten($graygreen, 40%);
margin: 0;
z-index: 32;
font-family: 'Noto Sans JP', 'Roboto', sans-serif;
@include media-breakpoint-up(md) {
position: fixed;
top: 0;
width: 100%;
}
.navbar-brand {
text-transform: none;
text-align: middle;
.nav-link {
display: inline-block;
margin-right: -30px;
}
svg {
display: inline-block;
margin: 0 10px;
height: 30px;
}
}
.nav-link:not(.dropdown-toggle) {
text-transform: none;
font-weight: $font-weight-medium;
font-size: 14px;
position: relative;
&.active,
&:hover {
color: $navbar-dark-color !important;
&:after {
content: '';
background: $navbar-dark-color;
border-radius: 3px 3px 0 0;
position: absolute;
bottom: -6px;
display: block;
height: 3px;
width: calc(100% - 20px);
left: 10px;
// right: 22px;
}
}
}
.nav-link.dropdown-toggle {
text-transform: none;
font-weight: $font-weight-medium;
font-size: 14px;
position: relative;
color: $navbar-dark-color !important;
}
.td-search-input {
border: none;
@include placeholder {
color: $navbar-dark-color;
}
}
.dropdown {
min-width: 100px;
}
@include media-breakpoint-down(md) {
padding-right: 0.5rem;
padding-left: 0.75rem;
.td-navbar-nav-scroll {
max-width: 100%;
height: 2.5rem;
margin-top: 0.25rem;
overflow: hidden;
font-size: 0.875rem;
.nav-link {
padding-right: 0.25rem;
padding-left: 0;
}
.navbar-nav {
padding-bottom: 2rem;
overflow-x: auto;
white-space: nowrap;
-webkit-overflow-scrolling: touch;
}
}
}
}