furatto 0.0.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -18
- data/furatto.gemspec +4 -0
- data/lib/furatto.rb +3 -10
- data/lib/furatto/version.rb +1 -1
- data/lib/furatto_rails_helpers/furatto_helpers.rb +19 -0
- data/lib/generators/furatto/install_generator.rb +46 -0
- data/lib/generators/furatto/templates/application.html.erb +28 -0
- data/vendor/assets/javascripts/furatto.js +1822 -0
- data/vendor/assets/stylesheets/furatto.scss +76 -0
- data/vendor/assets/stylesheets/furatto/_alerts.scss +130 -0
- data/vendor/assets/stylesheets/furatto/_base.scss +138 -0
- data/vendor/assets/stylesheets/furatto/_button-groups.scss +85 -0
- data/vendor/assets/stylesheets/furatto/_buttons.scss +266 -0
- data/{app → vendor}/assets/stylesheets/furatto/_date_picker.date.scss +0 -0
- data/{app → vendor}/assets/stylesheets/furatto/_date_picker.scss +1 -0
- data/{app → vendor}/assets/stylesheets/furatto/_dropdown.scss +0 -0
- data/vendor/assets/stylesheets/furatto/_experimental.scss +81 -0
- data/{app → vendor}/assets/stylesheets/furatto/_footer.scss +0 -0
- data/vendor/assets/stylesheets/furatto/_forms.scss +269 -0
- data/vendor/assets/stylesheets/furatto/_functions.scss +18 -0
- data/vendor/assets/stylesheets/furatto/_global.scss +51 -0
- data/vendor/assets/stylesheets/furatto/_grid.scss +142 -0
- data/vendor/assets/stylesheets/furatto/_images.scss +122 -0
- data/vendor/assets/stylesheets/furatto/_labels.scss +97 -0
- data/vendor/assets/stylesheets/furatto/_media_queries.scss +200 -0
- data/vendor/assets/stylesheets/furatto/_mixins.scss +143 -0
- data/vendor/assets/stylesheets/furatto/_modal.scss +297 -0
- data/vendor/assets/stylesheets/furatto/_navigation.scss +127 -0
- data/vendor/assets/stylesheets/furatto/_navigation_bar.scss +338 -0
- data/vendor/assets/stylesheets/furatto/_off_screen.scss +269 -0
- data/vendor/assets/stylesheets/furatto/_pagination.scss +78 -0
- data/vendor/assets/stylesheets/furatto/_responsive_utilities.scss +244 -0
- data/vendor/assets/stylesheets/furatto/_selectors.scss +44 -0
- data/vendor/assets/stylesheets/furatto/_settings.scss +0 -0
- data/vendor/assets/stylesheets/furatto/_suraido.scss +214 -0
- data/vendor/assets/stylesheets/furatto/_tables.scss +166 -0
- data/vendor/assets/stylesheets/furatto/_tabs.scss +26 -0
- data/vendor/assets/stylesheets/furatto/_toolbars.scss +199 -0
- data/vendor/assets/stylesheets/furatto/_tooltips.scss +92 -0
- data/vendor/assets/stylesheets/furatto/_typography.scss +243 -0
- data/{app → vendor}/assets/stylesheets/normalize.scss +22 -19
- metadata +86 -49
- data/app/assets/fonts/fontawesome/FontAwesome.otf +0 -0
- data/app/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome/fontawesome-webfont.svg +0 -399
- data/app/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/meteocons-webfont.eot +0 -0
- data/app/assets/fonts/meteocons-webfont.svg +0 -81
- data/app/assets/fonts/meteocons-webfont.ttf +0 -0
- data/app/assets/fonts/meteocons-webfont.woff +0 -0
- data/app/assets/javascripts/furatto.js +0 -5978
- data/app/assets/javascripts/furatto.min.js +0 -3
- data/app/assets/stylesheets/font-awesome.css.erb +0 -2495
- data/app/assets/stylesheets/furatto.scss +0 -86
- data/app/assets/stylesheets/furatto/_alerts.scss +0 -80
- data/app/assets/stylesheets/furatto/_base.scss +0 -99
- data/app/assets/stylesheets/furatto/_buttons.scss +0 -125
- data/app/assets/stylesheets/furatto/_code.scss +0 -67
- data/app/assets/stylesheets/furatto/_dashboard.scss +0 -36
- data/app/assets/stylesheets/furatto/_fonts.scss +0 -26
- data/app/assets/stylesheets/furatto/_forms.scss +0 -307
- data/app/assets/stylesheets/furatto/_grid.scss +0 -60
- data/app/assets/stylesheets/furatto/_images.scss +0 -64
- data/app/assets/stylesheets/furatto/_labels.scss +0 -44
- data/app/assets/stylesheets/furatto/_mixins.scss +0 -200
- data/app/assets/stylesheets/furatto/_modal.scss +0 -365
- data/app/assets/stylesheets/furatto/_nav.scss +0 -104
- data/app/assets/stylesheets/furatto/_navbar.scss +0 -216
- data/app/assets/stylesheets/furatto/_panel.scss +0 -277
- data/app/assets/stylesheets/furatto/_responsive_navbar.scss +0 -195
- data/app/assets/stylesheets/furatto/_responsive_tables.scss +0 -28
- data/app/assets/stylesheets/furatto/_responsive_utilities.scss +0 -182
- data/app/assets/stylesheets/furatto/_responsiveslides.scss +0 -185
- data/app/assets/stylesheets/furatto/_tables.scss +0 -90
- data/app/assets/stylesheets/furatto/_toolbars.scss +0 -116
- data/app/assets/stylesheets/furatto/_tooltips.scss +0 -131
- data/app/assets/stylesheets/furatto/_typography.scss +0 -224
- data/app/assets/stylesheets/furatto/_variables.scss +0 -625
@@ -0,0 +1,297 @@
|
|
1
|
+
//Modal
|
2
|
+
|
3
|
+
//
|
4
|
+
//@variables
|
5
|
+
//
|
6
|
+
|
7
|
+
//General settings
|
8
|
+
$modal-width: 80% !default;
|
9
|
+
$modal-z-index: 1050 !default;
|
10
|
+
$modal-color: #FFF !default;
|
11
|
+
$modal-top-position: px-to-rems(80) !default;
|
12
|
+
$modal-position: absolute !default;
|
13
|
+
|
14
|
+
//Modal styles
|
15
|
+
$modal-primary-background-color: #3498DB !default;
|
16
|
+
$modal-default-background-color: #F0F0F0 !default;
|
17
|
+
$modal-danger-background-color: #E74C3C !default;
|
18
|
+
$modal-funky-background-color: #9b59b6 !default;
|
19
|
+
$modal-warning-background-color: #e67e22 !default;
|
20
|
+
$modal-success-background-color: #2ecc71 !default;
|
21
|
+
$modal-info-background-color: #34495e !default;
|
22
|
+
|
23
|
+
//Modal content
|
24
|
+
$modal-content-padding: px-to-rems(15) px-to-rems(40) px-to-rems(30) !default;
|
25
|
+
$modal-content-font-weight: 300 !default;
|
26
|
+
$modal-content-font-size: px-to-rems(18) !default;
|
27
|
+
$modal-content-ul-padding: 0 0 px-to-rems(30) px-to-rems(20) !default;
|
28
|
+
$modal-content-list-item-padding: px-to-rems(5) 0 !default;
|
29
|
+
|
30
|
+
//Overlay
|
31
|
+
$modal-overlay-z-index: $modal-z-index - 10 !default;
|
32
|
+
$modal-overlay-background: #000 !default;
|
33
|
+
$modal-overlay-background-opacity: 0.8 !default;
|
34
|
+
$modal-overlay-show-opacity: 1 !default;
|
35
|
+
|
36
|
+
//Header
|
37
|
+
$modal-header-padding: px-to-rems(6) !default;
|
38
|
+
$modal-header-text-align: center !default;
|
39
|
+
$modal-header-font-size: px-to-rems(38) !default;
|
40
|
+
$modal-header-font-weight: $modal-content-font-weight !default;
|
41
|
+
$modal-header-background-color: #000 !default;
|
42
|
+
$modal-header-opacity: 0.8 !default;
|
43
|
+
|
44
|
+
//Modal variations
|
45
|
+
$modal-radius: px-to-rems(3) !default;
|
46
|
+
|
47
|
+
//Modal footer
|
48
|
+
$modal-footer-padding: px-to-rems(10) 0 !default;
|
49
|
+
|
50
|
+
//Modal extra themes
|
51
|
+
$include-modal-extra-themes: false !default;
|
52
|
+
$include-fade-in-scale-up-effect: true !default;
|
53
|
+
$include-slide-from-right-effect: true !default;
|
54
|
+
$include-slide-from-bottom-effect: true !default;
|
55
|
+
$include-fall-effect: true !default;
|
56
|
+
$include-slide-stick-effect: true !default;
|
57
|
+
$include-super-scaled-effect: true !default;
|
58
|
+
|
59
|
+
//
|
60
|
+
//@mixin
|
61
|
+
//
|
62
|
+
// We use this mixin to define the base modal styling
|
63
|
+
//
|
64
|
+
|
65
|
+
@mixin modal-base {
|
66
|
+
position: $modal-position;
|
67
|
+
height: auto;
|
68
|
+
z-index: $modal-z-index;
|
69
|
+
@include backface-visibility();
|
70
|
+
@include transform(translateX(-50%) translateY(-50%));
|
71
|
+
visibility: hidden;
|
72
|
+
color: $modal-color;
|
73
|
+
top: $modal-top-position;
|
74
|
+
width: $modal-width;
|
75
|
+
margin-left: -40%;
|
76
|
+
left: 50%;
|
77
|
+
|
78
|
+
&.modal-show {
|
79
|
+
visibility: visible;
|
80
|
+
}
|
81
|
+
|
82
|
+
&.radius {
|
83
|
+
.modal-content {
|
84
|
+
@include border-radius($modal-radius);
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
//
|
90
|
+
//@mixin
|
91
|
+
//
|
92
|
+
// We us this mixin to define the overlay styling
|
93
|
+
//
|
94
|
+
|
95
|
+
@mixin modal-overlay {
|
96
|
+
overflow-x: hidden;
|
97
|
+
position: fixed;
|
98
|
+
width: 100%;
|
99
|
+
height: 100%;
|
100
|
+
visibility: hidden;
|
101
|
+
top: 0;
|
102
|
+
left: 0;
|
103
|
+
z-index: $modal-overlay-z-index;
|
104
|
+
opacity: 0;
|
105
|
+
background: rgba($modal-overlay-background, $modal-overlay-background-opacity);
|
106
|
+
@include transition(all 0.3s);
|
107
|
+
}
|
108
|
+
|
109
|
+
//
|
110
|
+
//@mixin
|
111
|
+
//
|
112
|
+
// We use this mixin to define the modal themes
|
113
|
+
//
|
114
|
+
|
115
|
+
@mixin modal-theme($background) {
|
116
|
+
background: $background;
|
117
|
+
}
|
118
|
+
|
119
|
+
//
|
120
|
+
//@mixin
|
121
|
+
// We us this mixin to define the modal header
|
122
|
+
//
|
123
|
+
|
124
|
+
@mixin modal-header {
|
125
|
+
margin: 0;
|
126
|
+
padding: $modal-header-padding;
|
127
|
+
text-align: $modal-header-text-align;
|
128
|
+
font-size: $modal-header-font-size;
|
129
|
+
font-weight: $modal-header-font-weight;
|
130
|
+
opacity: $modal-header-opacity;
|
131
|
+
background: rgba($modal-header-background-color ,0.1);
|
132
|
+
color: $modal-color;
|
133
|
+
}
|
134
|
+
|
135
|
+
//
|
136
|
+
//@mixin
|
137
|
+
// We use this mixin to define the model content styling
|
138
|
+
//
|
139
|
+
//
|
140
|
+
@mixin model-content {
|
141
|
+
padding: $modal-content-padding;
|
142
|
+
font-weight: $modal-content-font-weight;
|
143
|
+
font-size: $modal-content-font-size;
|
144
|
+
|
145
|
+
& > ul {
|
146
|
+
padding: $modal-content-ul-padding;
|
147
|
+
margin: 0;
|
148
|
+
|
149
|
+
li {
|
150
|
+
padding: $modal-content-list-item-padding;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
//
|
156
|
+
//@mixin
|
157
|
+
// We use this mixin to define de model footer styling
|
158
|
+
//
|
159
|
+
//
|
160
|
+
@mixin modal-footer {
|
161
|
+
padding: $modal-footer-padding;
|
162
|
+
}
|
163
|
+
|
164
|
+
.modal {
|
165
|
+
@include modal-base;
|
166
|
+
|
167
|
+
//modal styles
|
168
|
+
.modal-content {
|
169
|
+
@include model-content;
|
170
|
+
|
171
|
+
.modal-footer {
|
172
|
+
@include modal-footer;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
&.alpha { @include modal-theme(transparent) }
|
176
|
+
&.default { @include modal-theme($modal-default-background-color)}
|
177
|
+
&.primary { @include modal-theme($modal-primary-background-color)}
|
178
|
+
&.danger { @include modal-theme($modal-danger-background-color)}
|
179
|
+
|
180
|
+
@if($include-modal-extra-themes) {
|
181
|
+
&.funky { @include modal-theme($modal-funky-background-color)}
|
182
|
+
&.warning { @include modal-theme($modal-warning-background-color)}
|
183
|
+
&.success { @include modal-theme($modal-success-background-color)}
|
184
|
+
&.info { @include modal-theme($modal-info-background-color) }
|
185
|
+
}
|
186
|
+
|
187
|
+
.modal-header {
|
188
|
+
@include modal-header;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
.modal-overlay {
|
193
|
+
@include modal-overlay;
|
194
|
+
|
195
|
+
&.modal-show-overlay {
|
196
|
+
@include opacity($modal-overlay-show-opacity);
|
197
|
+
visibility: visible;
|
198
|
+
}
|
199
|
+
}
|
200
|
+
|
201
|
+
//Animations
|
202
|
+
|
203
|
+
@if($include-fade-in-scale-up-effect) {
|
204
|
+
// Effect 1: Fade in and scale up
|
205
|
+
.modal-effect-1 {
|
206
|
+
@include transform(scale(0.7));
|
207
|
+
@include opacity(0);
|
208
|
+
@include transition(all 0.3s);
|
209
|
+
}
|
210
|
+
|
211
|
+
.modal-show.modal-effect-1 {
|
212
|
+
@include transform(scale(1));
|
213
|
+
@include opacity(1);
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
@if($include-slide-from-right-effect) {
|
218
|
+
// Effect 2: Slide from the right
|
219
|
+
.modal-effect-2 {
|
220
|
+
@include transform(translateX(20%));
|
221
|
+
@include opacity(0);
|
222
|
+
@include transition(all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9));
|
223
|
+
}
|
224
|
+
|
225
|
+
.modal-show.modal-effect-2 {
|
226
|
+
@include transform(translateX(0));
|
227
|
+
@include opacity(1);
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
@if($include-slide-from-bottom-effect) {
|
232
|
+
/* Effect 3: Slide from the bottom */
|
233
|
+
.modal-effect-3 {
|
234
|
+
@include transform(translateY(20%));
|
235
|
+
@include opacity(0);
|
236
|
+
@include transition(all 0.3s);
|
237
|
+
}
|
238
|
+
|
239
|
+
.modal-show.modal-effect-3 {
|
240
|
+
@include transform(translateY(0));
|
241
|
+
@include opacity(1);
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
@if($include-fall-effect) {
|
246
|
+
/* Effect 4: fall */
|
247
|
+
.modal-effect-4.modal-modal {
|
248
|
+
@include perspective($p: 1300px);
|
249
|
+
}
|
250
|
+
|
251
|
+
.modal-effect-4 {
|
252
|
+
@include transform-style(preserve-3d);
|
253
|
+
@include transform(translateZ(600px) rotateX(20deg));
|
254
|
+
@include opacity(0);
|
255
|
+
}
|
256
|
+
|
257
|
+
.modal-show.modal-effect-4 {
|
258
|
+
@include transition(all 0.3s ease-in);
|
259
|
+
@include transform(translateZ(0px) rotatex(0deg));
|
260
|
+
@include opacity(1);
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
@if($include-slide-stick-effect) {
|
265
|
+
/* Effect 5: slide and stick to top */
|
266
|
+
.modal-effect-5 {
|
267
|
+
top: 0;
|
268
|
+
@include transform(translateX(-50%));
|
269
|
+
}
|
270
|
+
|
271
|
+
.modal-effect-5 {
|
272
|
+
@include transform(translateY(-200%));
|
273
|
+
@include transition(all 0.3s);
|
274
|
+
@include opacity(0);
|
275
|
+
}
|
276
|
+
|
277
|
+
.modal-show.modal-effect-5 {
|
278
|
+
@include transform(translateY(0%));
|
279
|
+
@include border-radius(0 0 3px 3px);
|
280
|
+
border-radius: 0 0 3px 3px;
|
281
|
+
@include opacity(1);
|
282
|
+
}
|
283
|
+
}
|
284
|
+
|
285
|
+
@if($include-super-scaled-effect) {
|
286
|
+
/* Effect 6: Super scaled */
|
287
|
+
.modal-effect-6 {
|
288
|
+
@include transform(scale(2));
|
289
|
+
@include opacity(0);
|
290
|
+
@include transition(all 0.3s);
|
291
|
+
}
|
292
|
+
|
293
|
+
.modal-show.modal-effect-6 {
|
294
|
+
@include transform(scale(1));
|
295
|
+
@include opacity(1);
|
296
|
+
}
|
297
|
+
}
|
@@ -0,0 +1,127 @@
|
|
1
|
+
//Nav
|
2
|
+
|
3
|
+
@import "compass/css3";
|
4
|
+
|
5
|
+
//
|
6
|
+
//@variables
|
7
|
+
//
|
8
|
+
|
9
|
+
//Navigation settings
|
10
|
+
$navigation-style-type: none !default;
|
11
|
+
$navigation-list-position: inside !default;
|
12
|
+
$navigation-padding: 1rem 0 !default;
|
13
|
+
$navigation-link-color: #777 !default;
|
14
|
+
|
15
|
+
//Navigation list items
|
16
|
+
$navigation-list-item-font-size: 0.9rem !default;
|
17
|
+
$navigation-list-item-margin-bottom: 0.1 !default;
|
18
|
+
$navigation-list-item-active-color: #08C !default;
|
19
|
+
$navigation-list-link-hover-color: $navigation-list-item-active-color !default;
|
20
|
+
$navigation-list-link-hover-text-decoration: none !default;
|
21
|
+
$navigation-list-link-padding: 0.333rem 0 !default;
|
22
|
+
$navigation-list-link-display: inline-block !default;
|
23
|
+
|
24
|
+
//Navigation list header
|
25
|
+
$navigation-header-text-transform: uppercase !default;
|
26
|
+
$navigation-header-padding: 0.333rem 0 !default;
|
27
|
+
$navigation-header-color: #333 !default;
|
28
|
+
$navigation-header-font-size: 0.85714286rem !default;
|
29
|
+
|
30
|
+
//Navigation divider
|
31
|
+
$navigation-divider-border-width: 1px !default;
|
32
|
+
$navigation-divider-border-color: #EFEFEF !default;
|
33
|
+
$navigation-divider-margin: 8px 0 !default;
|
34
|
+
|
35
|
+
//Navigation variations
|
36
|
+
$navigation-inline-margin-bottom: 0.55rem !default;
|
37
|
+
$navigation-inline-active-background: #1abc9c !default;
|
38
|
+
$navigation-inline-active-radius: 0.14285714rem !default;
|
39
|
+
$navigation-inline-active-color: #FFF !default;
|
40
|
+
$navigation-inline-active-padding: 0.21428571rem !default;
|
41
|
+
$navigation-inline-link-color: #999 !default;
|
42
|
+
$navigation-inline-link-hover: #08C !default;
|
43
|
+
|
44
|
+
.navigation {
|
45
|
+
margin: 0;
|
46
|
+
display: block;
|
47
|
+
list-style-type: $navigation-style-type;
|
48
|
+
list-style-position: $navigation-list-position;
|
49
|
+
padding: $navigation-padding;
|
50
|
+
|
51
|
+
li {
|
52
|
+
font-size: $navigation-list-item-font-size;
|
53
|
+
margin-bottom: $navigation-list-item-margin-bottom;
|
54
|
+
|
55
|
+
&.active,
|
56
|
+
&.active a {
|
57
|
+
color: $navigation-list-item-active-color;
|
58
|
+
cursor: text;
|
59
|
+
}
|
60
|
+
|
61
|
+
&.header {
|
62
|
+
text-transform: $navigation-header-text-transform;
|
63
|
+
padding: $navigation-header-padding;
|
64
|
+
color: $navigation-header-color;
|
65
|
+
font-size: $navigation-header-font-size;
|
66
|
+
}
|
67
|
+
|
68
|
+
&.divider {
|
69
|
+
border-bottom: $navigation-divider-border-width solid $navigation-divider-border-color;
|
70
|
+
margin: $navigation-divider-margin;
|
71
|
+
height: 0;
|
72
|
+
}
|
73
|
+
|
74
|
+
a {
|
75
|
+
display: $navigation-list-link-display;
|
76
|
+
padding: $navigation-list-link-padding;
|
77
|
+
color: $navigation-link-color;
|
78
|
+
|
79
|
+
&:hover,
|
80
|
+
&:focus {
|
81
|
+
color: $navigation-list-link-hover-color;
|
82
|
+
text-decoration: $navigation-list-link-hover-text-decoration;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
&.inline {
|
88
|
+
overflow: hidden;
|
89
|
+
margin-bottom: $navigation-inline-margin-bottom;
|
90
|
+
|
91
|
+
li {
|
92
|
+
float: left;
|
93
|
+
margin-left:$navigation-inline-list-item-margin-left;
|
94
|
+
|
95
|
+
&.divider {
|
96
|
+
display: none;
|
97
|
+
}
|
98
|
+
|
99
|
+
&.active,
|
100
|
+
&.active > a {
|
101
|
+
background: $navigation-inline-active-background;
|
102
|
+
@include border-radius($navigation-inline-active-radius);
|
103
|
+
color: $navigation-inline-active-color;
|
104
|
+
padding: $navigation-inline-active-padding;
|
105
|
+
|
106
|
+
&:hover,
|
107
|
+
&:focus {
|
108
|
+
color: $navigation-inline-active-color;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
&, & a {
|
113
|
+
color: $navigation-inline-link-color;
|
114
|
+
display: $navigation-list-link-display;
|
115
|
+
}
|
116
|
+
|
117
|
+
a {
|
118
|
+
&:hover,
|
119
|
+
&:focus {
|
120
|
+
color: $navigation-inline-link-hover;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
}
|
@@ -0,0 +1,338 @@
|
|
1
|
+
/*------------------------------------*\
|
2
|
+
$NAVBAR
|
3
|
+
\*------------------------------------*/
|
4
|
+
/**
|
5
|
+
* Basic navbar structural styling based on bootstrap.
|
6
|
+
* http://twitter.github.io/bootstrap/components.html#navbar
|
7
|
+
*
|
8
|
+
* Designed and built @kurenn
|
9
|
+
*/
|
10
|
+
|
11
|
+
//
|
12
|
+
//@variables
|
13
|
+
//
|
14
|
+
|
15
|
+
//Navigation general settings
|
16
|
+
$navigation-bar-background: #191818 !default;
|
17
|
+
$navigation-margin-bottom: 10px !default;
|
18
|
+
$navigation-bar-color: #FFF !default;
|
19
|
+
$navigation-bar-font-weight: 300 !default;
|
20
|
+
$navigation-font-size: px-to-rems(13) !default;
|
21
|
+
$navigation-fixed-z-index: 1030 !default;
|
22
|
+
$navigation-bar-border-bottom: transparent !default;
|
23
|
+
$navigation-bar-divider-color: scale-color($navigation-bar-background, $lightness: 13%) !default;
|
24
|
+
|
25
|
+
//Brand section
|
26
|
+
$navigation-bar-brand-section-font-size: px-to-rems(18) !default;
|
27
|
+
$navigation-bar-brand-section-font-weight: 400 !default;
|
28
|
+
|
29
|
+
//Navigation links settings
|
30
|
+
$navigation-bar-link-color: #FFF !default;
|
31
|
+
$navigation-bar-link-hover-color: #999 !default;
|
32
|
+
$navigation-bar-link-hover-decoration: none !default;
|
33
|
+
$navigation-bar-hover-link-background-color: darken($navigation-bar-background, 5%) !default;
|
34
|
+
|
35
|
+
//Buttons settings
|
36
|
+
$navigation-bar-button-font-size: $navigation-font-size !default;
|
37
|
+
$navigation-bar-button-height: 35px !default;
|
38
|
+
$navigation-bar-button-margin-left: px-to-rems(8) !default;
|
39
|
+
$navigation-bar-button-margin-right: px-to-rems(8) !default;
|
40
|
+
$navigation-bar-menu-color: #FFF !default;
|
41
|
+
|
42
|
+
//Icons settings
|
43
|
+
$navigation-bar-icon-margin-right: 5px !default;
|
44
|
+
|
45
|
+
//Text settings
|
46
|
+
$navigation-bar-text-color: #CCC !default;
|
47
|
+
|
48
|
+
//Active items
|
49
|
+
$navigation-bar-active-color: #FFF !default;
|
50
|
+
$navigation-bar-active-hover-color: darken($navigation-bar-active-color, 5%) !default;
|
51
|
+
|
52
|
+
//Menu toggle
|
53
|
+
$navigation-bar-menu-toggle-text-transform: uppercase !default;
|
54
|
+
|
55
|
+
//Dropdown
|
56
|
+
$navigation-bar-arrow-color: $navigation-bar-link-color !default;
|
57
|
+
$navigation-bar-arrow-hover-color: $navigation-bar-link-hover-color !default;
|
58
|
+
$navigation-bar-dropdown-z-index: $navigation-fixed-z-index + 10 !default;
|
59
|
+
$navigation-bar-dropdown-header-text-transform: uppercase !default;
|
60
|
+
$navigation-bar-dropdown-header-padding: px-to-rems(9) px-to-rems(17) px-to-rems(2) !default;
|
61
|
+
$navigation-bar-dropdown-header-color: #777 !default;
|
62
|
+
$navigation-bar-dropdown-header-font-weight: bold !default;
|
63
|
+
$navigation-bar-dropdown-header-font-size: px-to-rems(8) !default;
|
64
|
+
$navigation-bar-dropdown-divider-height: px-to-rems(1) !default;
|
65
|
+
$navigation-bar-dropdown-anchor-height: 45px !default;
|
66
|
+
$navigation-bar-dropdown-anchor-line-height: $navigation-bar-dropdown-anchor-height !default;
|
67
|
+
$navigation-bar-dropdown-right-position: 0px !default;
|
68
|
+
|
69
|
+
|
70
|
+
//Media
|
71
|
+
$media-collapse-width: 768px !default;
|
72
|
+
$navigation-bar-collapse-query: "#{$media-display} and (max-width: #{$media-collapse-width})" !default;
|
73
|
+
$navigation-bar-uncollapse-query: "#{$media-display} and (min-width: #{$media-collapse-width})" !default;
|
74
|
+
|
75
|
+
.navigation-bar {
|
76
|
+
background: $navigation-bar-background;
|
77
|
+
height: $navigation-bar-height;
|
78
|
+
margin-bottom: $navigation-margin-bottom;
|
79
|
+
overflow: hidden;
|
80
|
+
font-weight: $navigation-bar-font-weight;
|
81
|
+
border-bottom: $navigation-bar-border-bottom;
|
82
|
+
|
83
|
+
a {
|
84
|
+
@include touch-callout;
|
85
|
+
}
|
86
|
+
|
87
|
+
&.opened {
|
88
|
+
height: auto;
|
89
|
+
|
90
|
+
.brand-section .menu-toggle a {
|
91
|
+
color: $navigation-bar-link-hover-color;
|
92
|
+
}
|
93
|
+
|
94
|
+
ul:not(.brand-section) {
|
95
|
+
width: 100%;
|
96
|
+
|
97
|
+
li.with-dropdown {
|
98
|
+
.dropdown {
|
99
|
+
position: static;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
li {
|
104
|
+
width: 100%;
|
105
|
+
display: block;
|
106
|
+
|
107
|
+
.button {
|
108
|
+
width: 96%;
|
109
|
+
margin-left: auto;
|
110
|
+
margin-right: auto;
|
111
|
+
}
|
112
|
+
|
113
|
+
&.divider {
|
114
|
+
height: auto;
|
115
|
+
border-bottom: 1px solid $navigation-bar-divider-color;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
}
|
121
|
+
|
122
|
+
// Plain text in topbar
|
123
|
+
.navigation-bar-text {
|
124
|
+
margin: 0;
|
125
|
+
line-height: $navigation-bar-height;
|
126
|
+
color: $navigation-bar-text-color;
|
127
|
+
display: inline-block;
|
128
|
+
font-size: $navigation-font-size;
|
129
|
+
padding: 0 $navigation-bar-height / 3;
|
130
|
+
}
|
131
|
+
|
132
|
+
.button {
|
133
|
+
color: #FFF;
|
134
|
+
font-size: $navigation-bar-button-font-size;
|
135
|
+
height: $navigation-bar-button-height;
|
136
|
+
line-height: $navigation-bar-button-height;
|
137
|
+
margin-left: $navigation-bar-button-margin-left;
|
138
|
+
margin-right: $navigation-bar-button-margin-right;
|
139
|
+
margin-top: ($navigation-bar-height / 2) - ($navigation-bar-button-height / 2);
|
140
|
+
|
141
|
+
&:hover {
|
142
|
+
color: #FFF;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
[class^="fa"],
|
147
|
+
[class*=" fa"] {
|
148
|
+
margin-right: $navigation-bar-icon-margin-right;
|
149
|
+
margin-left: $navigation-bar-icon-margin-right;
|
150
|
+
}
|
151
|
+
|
152
|
+
ul.pull-right {
|
153
|
+
li.with-dropdown {
|
154
|
+
.dropdown {
|
155
|
+
right: $navigation-bar-dropdown-right-position;
|
156
|
+
left: auto;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
ul {
|
162
|
+
margin: 0;
|
163
|
+
list-style: none;
|
164
|
+
font-size: $navigation-font-size;
|
165
|
+
float: left;
|
166
|
+
width: auto;
|
167
|
+
|
168
|
+
li {
|
169
|
+
float: left;
|
170
|
+
|
171
|
+
&.active > a {
|
172
|
+
color: $navigation-bar-active-color;
|
173
|
+
background: darken($navigation-bar-background, 10%);
|
174
|
+
|
175
|
+
&:hover {
|
176
|
+
color: $navigation-bar-active-hover-color;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
a:hover:not(.button) {
|
181
|
+
background: $navigation-bar-hover-link-background-color;
|
182
|
+
}
|
183
|
+
|
184
|
+
a {
|
185
|
+
display: block;
|
186
|
+
padding: 0 $navigation-bar-height / 3;
|
187
|
+
height: $navigation-bar-height;
|
188
|
+
line-height: $navigation-bar-height;
|
189
|
+
color: $navigation-bar-link-color;
|
190
|
+
|
191
|
+
&:hover {
|
192
|
+
text-decoration: $navigation-bar-link-hover-decoration;
|
193
|
+
color: $navigation-bar-link-hover-color;
|
194
|
+
}
|
195
|
+
}
|
196
|
+
|
197
|
+
&.divider {
|
198
|
+
height: $navigation-bar-height;
|
199
|
+
border-left: 1px solid $navigation-bar-divider-color;
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
li.with-dropdown {
|
204
|
+
position: relative;
|
205
|
+
|
206
|
+
&.opened {
|
207
|
+
.dropdown {
|
208
|
+
display: block;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
.dropdown {
|
213
|
+
display: none; //hides the first time
|
214
|
+
position: absolute;
|
215
|
+
float: left;
|
216
|
+
top: auto;
|
217
|
+
left: 0;
|
218
|
+
z-index: $navigation-bar-dropdown-z-index;
|
219
|
+
min-width: 100%;
|
220
|
+
|
221
|
+
li {
|
222
|
+
width: 100%;
|
223
|
+
height: auto;
|
224
|
+
background: $navigation-bar-background;
|
225
|
+
white-space: nowrap;
|
226
|
+
|
227
|
+
a {
|
228
|
+
height: $navigation-bar-dropdown-anchor-height;
|
229
|
+
line-height: $navigation-bar-dropdown-anchor-line-height;
|
230
|
+
}
|
231
|
+
|
232
|
+
&.dropdown-header {
|
233
|
+
text-transform: $navigation-bar-dropdown-header-text-transform;
|
234
|
+
padding: $navigation-bar-dropdown-header-padding;
|
235
|
+
margin-bottom: 0;
|
236
|
+
color: $navigation-bar-dropdown-header-color;
|
237
|
+
font-weight: $navigation-bar-dropdown-header-font-weight;
|
238
|
+
font-size: $navigation-bar-dropdown-header-font-size;
|
239
|
+
}
|
240
|
+
|
241
|
+
&.divider {
|
242
|
+
height: $navigation-bar-dropdown-divider-height;
|
243
|
+
border-top: 1px solid $navigation-bar-divider-color;
|
244
|
+
}
|
245
|
+
}
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
}
|
250
|
+
|
251
|
+
ul.pull-right {
|
252
|
+
float: right;
|
253
|
+
}
|
254
|
+
|
255
|
+
.brand-section {
|
256
|
+
font-size: $navigation-bar-brand-section-font-size;
|
257
|
+
position: relative;
|
258
|
+
font-weight: $navigation-bar-brand-section-font-weight;
|
259
|
+
li {
|
260
|
+
padding: 0;
|
261
|
+
|
262
|
+
&.menu-toggle {
|
263
|
+
display: none;
|
264
|
+
text-transform: $navigation-bar-menu-toggle-text-transform;
|
265
|
+
font-size: $navigation-font-size;
|
266
|
+
position: relative;
|
267
|
+
text-indent: -48px;
|
268
|
+
right: 20px;
|
269
|
+
width: 34px;
|
270
|
+
|
271
|
+
a:after {
|
272
|
+
content: '';
|
273
|
+
width: 16px;
|
274
|
+
height: 0;
|
275
|
+
position: absolute;
|
276
|
+
right: 0;
|
277
|
+
top: $navigation-bar-toggle-icon-top-position;
|
278
|
+
@include box-shadow(0 10px 0 1px $navigation-bar-menu-color,
|
279
|
+
0 16px 0 1px $navigation-bar-menu-color,
|
280
|
+
0 22px 0 1px $navigation-bar-menu-color);
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
&.fixed {
|
287
|
+
position: fixed;
|
288
|
+
top: 0;
|
289
|
+
left: 0;
|
290
|
+
right: 0;
|
291
|
+
z-index: $navigation-fixed-z-index;
|
292
|
+
}
|
293
|
+
|
294
|
+
}
|
295
|
+
|
296
|
+
@media #{$navigation-bar-uncollapse-query} {
|
297
|
+
.navigation-bar { overflow: visible; }
|
298
|
+
}
|
299
|
+
|
300
|
+
//iPad fix
|
301
|
+
@media only screen and (orientation: portrait) {
|
302
|
+
.navigation-bar { overflow: hidden; }
|
303
|
+
}
|
304
|
+
|
305
|
+
@media #{$navigation-bar-collapse-query} {
|
306
|
+
.off-screen {
|
307
|
+
.navigation-bar {
|
308
|
+
.brand-section {
|
309
|
+
.brand-name {
|
310
|
+
a {
|
311
|
+
&:before {
|
312
|
+
display: inline-block;
|
313
|
+
}
|
314
|
+
}
|
315
|
+
}
|
316
|
+
}
|
317
|
+
}
|
318
|
+
}
|
319
|
+
|
320
|
+
.navigation-bar {
|
321
|
+
.brand-section {
|
322
|
+
width: 100%;
|
323
|
+
font-size: $navigation-bar-brand-section-font-size - 0.15;
|
324
|
+
|
325
|
+
li {
|
326
|
+
|
327
|
+
&.menu-toggle {
|
328
|
+
display: block;
|
329
|
+
float: right;
|
330
|
+
|
331
|
+
&.hidden {
|
332
|
+
display: none;
|
333
|
+
}
|
334
|
+
}
|
335
|
+
}
|
336
|
+
}
|
337
|
+
}
|
338
|
+
}
|