74249687
Luigi Serra
Cross browser con...
|
1
2
3
4
5
6
7
8
9
10
|
nav {
color: $navbar-font-color;
@extend .z-depth-1;
background-color: $primary-color;
width: 100%;
height: $navbar-height-mobile;
line-height: $navbar-height-mobile;
a { color: $navbar-font-color; }
|
a1a3bc73
Luigi Serra
graphs updates
|
11
12
13
14
15
16
17
18
19
|
i,
[class^="mdi-"], [class*="mdi-"],
i.material-icons {
display: block;
font-size: 2rem;
height: $navbar-height-mobile;
line-height: $navbar-height-mobile;
}
|
74249687
Luigi Serra
Cross browser con...
|
20
21
22
|
.nav-wrapper {
position: relative;
height: 100%;
|
74249687
Luigi Serra
Cross browser con...
|
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
|
}
@media #{$large-and-up} {
a.button-collapse { display: none; }
}
// Collapse button
.button-collapse {
float: left;
position: relative;
z-index: 1;
height: $navbar-height-mobile;
i {
font-size: 2.7rem;
height: $navbar-height-mobile;
line-height: $navbar-height-mobile;
}
}
// Logo
.brand-logo {
position: absolute;
color: $navbar-font-color;
display: inline-block;
font-size: $navbar-brand-font-size;
padding: 0;
white-space: nowrap;
&.center {
left: 50%;
|
a1a3bc73
Luigi Serra
graphs updates
|
56
|
transform: translateX(-50%);
|
74249687
Luigi Serra
Cross browser con...
|
57
58
59
60
|
}
@media #{$medium-and-down} {
left: 50%;
|
a1a3bc73
Luigi Serra
graphs updates
|
61
|
transform: translateX(-50%);
|
74249687
Luigi Serra
Cross browser con...
|
62
63
64
|
&.left, &.right {
padding: 0;
|
a1a3bc73
Luigi Serra
graphs updates
|
65
|
transform: none;
|
74249687
Luigi Serra
Cross browser con...
|
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
}
&.left { left: 0.5rem; }
&.right {
right: 0.5rem;
left: auto;
}
}
&.right {
right: 0.5rem;
padding: 0;
}
}
// Navbar Links
ul {
margin: 0;
li {
|
a1a3bc73
Luigi Serra
graphs updates
|
87
|
transition: background-color .3s;
|
74249687
Luigi Serra
Cross browser con...
|
88
89
90
|
float: left;
padding: 0;
|
a1a3bc73
Luigi Serra
graphs updates
|
91
|
&.active {
|
74249687
Luigi Serra
Cross browser con...
|
92
93
94
95
|
background-color: rgba(0,0,0,.1);
}
}
a {
|
a1a3bc73
Luigi Serra
graphs updates
|
96
|
transition: background-color .3s;
|
74249687
Luigi Serra
Cross browser con...
|
97
98
99
100
|
font-size: 1rem;
color: $navbar-font-color;
display: block;
padding: 0 15px;
|
a1a3bc73
Luigi Serra
graphs updates
|
101
102
103
104
105
106
107
108
109
110
111
|
cursor: pointer;
&.btn, &.btn-large, &.btn-flat, &.btn-floating {
margin-top: -2px;
margin-left: 15px;
margin-right: 15px;
}
&:hover {
background-color: rgba(0,0,0,.1);
}
|
74249687
Luigi Serra
Cross browser con...
|
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
}
&.left {
float: left;
}
}
// Navbar Search Form
.input-field {
margin: 0;
input {
height: 100%;
font-size: 1.2rem;
border: none;
padding-left: 2rem;
&:focus, &[type=text]:valid, &[type=password]:valid,
&[type=email]:valid, &[type=url]:valid, &[type=date]:valid {
border: none;
box-shadow: none;
}
}
label {
top: 0;
left: 0;
i {
color: rgba(255,255,255,.7);
|
a1a3bc73
Luigi Serra
graphs updates
|
141
|
transition: color .3s;
|
74249687
Luigi Serra
Cross browser con...
|
142
143
144
|
}
&.active i { color: $navbar-font-color; }
&.active {
|
a1a3bc73
Luigi Serra
graphs updates
|
145
|
transform: translateY(0);
|
74249687
Luigi Serra
Cross browser con...
|
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
|
}
}
}
}
// Fixed Navbar
.navbar-fixed {
position: relative;
height: $navbar-height-mobile;
z-index: 998;
nav {
position: fixed;
}
}
@media #{$medium-and-up} {
nav, nav .nav-wrapper i, nav a.button-collapse, nav a.button-collapse i {
height: $navbar-height;
line-height: $navbar-height;
}
.navbar-fixed {
height: $navbar-height;
}
}
|