zurb-foundation-5 5.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.bowerrc +3 -0
- data/.editorconfig +9 -0
- data/.gitignore +46 -0
- data/.travis.yml +34 -0
- data/CONTRIBUTING.md +55 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +16 -0
- data/Gruntfile.js +222 -0
- data/LICENSE +22 -0
- data/README.md +44 -0
- data/bower.json +20 -0
- data/composer.json +9 -0
- data/foundation.gemspec +21 -0
- data/humans.txt +8 -0
- data/js/foundation/foundation.abide.js +299 -0
- data/js/foundation/foundation.accordion.js +54 -0
- data/js/foundation/foundation.alert.js +43 -0
- data/js/foundation/foundation.clearing.js +531 -0
- data/js/foundation/foundation.dropdown.js +306 -0
- data/js/foundation/foundation.equalizer.js +68 -0
- data/js/foundation/foundation.interchange.js +331 -0
- data/js/foundation/foundation.joyride.js +849 -0
- data/js/foundation/foundation.js +609 -0
- data/js/foundation/foundation.magellan.js +173 -0
- data/js/foundation/foundation.offcanvas.js +50 -0
- data/js/foundation/foundation.orbit.js +606 -0
- data/js/foundation/foundation.reveal.js +427 -0
- data/js/foundation/foundation.slider.js +200 -0
- data/js/foundation/foundation.tab.js +168 -0
- data/js/foundation/foundation.tooltip.js +272 -0
- data/js/foundation/foundation.topbar.js +422 -0
- data/karma.conf.js +114 -0
- data/lib/foundation/engine.rb +20 -0
- data/lib/foundation/generators/USAGE +15 -0
- data/lib/foundation/generators/install_generator.rb +54 -0
- data/lib/foundation/generators/templates/application.html.erb +47 -0
- data/lib/foundation/generators/templates/application.html.haml +31 -0
- data/lib/foundation/generators/templates/application.html.slim +35 -0
- data/lib/foundation/sprockets.rb +4 -0
- data/lib/foundation/version.rb +3 -0
- data/lib/scss.js +114 -0
- data/lib/zurb-foundation.rb +33 -0
- data/package.json +48 -0
- data/robots.txt +4 -0
- data/run-tests.sh +83 -0
- data/sache.json +5 -0
- data/scss/foundation.scss +45 -0
- data/scss/foundation/_functions.scss +101 -0
- data/scss/foundation/_settings.scss +1279 -0
- data/scss/foundation/components/_accordion.scss +52 -0
- data/scss/foundation/components/_alert-boxes.scss +126 -0
- data/scss/foundation/components/_block-grid.scss +132 -0
- data/scss/foundation/components/_breadcrumbs.scss +127 -0
- data/scss/foundation/components/_button-groups.scss +108 -0
- data/scss/foundation/components/_buttons.scss +222 -0
- data/scss/foundation/components/_clearing.scss +247 -0
- data/scss/foundation/components/_dropdown-buttons.scss +129 -0
- data/scss/foundation/components/_dropdown.scss +248 -0
- data/scss/foundation/components/_flex-video.scss +51 -0
- data/scss/foundation/components/_forms.scss +496 -0
- data/scss/foundation/components/_global.scss +365 -0
- data/scss/foundation/components/_grid.scss +261 -0
- data/scss/foundation/components/_inline-lists.scss +56 -0
- data/scss/foundation/components/_joyride.scss +220 -0
- data/scss/foundation/components/_keystrokes.scss +61 -0
- data/scss/foundation/components/_labels.scss +104 -0
- data/scss/foundation/components/_magellan.scss +34 -0
- data/scss/foundation/components/_offcanvas.scss +381 -0
- data/scss/foundation/components/_orbit.scss +415 -0
- data/scss/foundation/components/_pagination.scss +150 -0
- data/scss/foundation/components/_panels.scss +91 -0
- data/scss/foundation/components/_pricing-tables.scss +150 -0
- data/scss/foundation/components/_progress-bars.scss +79 -0
- data/scss/foundation/components/_range-slider.scss +148 -0
- data/scss/foundation/components/_reveal-new.scss +0 -0
- data/scss/foundation/components/_reveal.scss +216 -0
- data/scss/foundation/components/_side-nav.scss +93 -0
- data/scss/foundation/components/_split-buttons.scss +191 -0
- data/scss/foundation/components/_sub-nav.scss +125 -0
- data/scss/foundation/components/_switch.scss +294 -0
- data/scss/foundation/components/_tables.scss +97 -0
- data/scss/foundation/components/_tabs.scss +105 -0
- data/scss/foundation/components/_thumbs.scss +68 -0
- data/scss/foundation/components/_tooltips.scss +140 -0
- data/scss/foundation/components/_top-bar.scss +640 -0
- data/scss/foundation/components/_type.scss +493 -0
- data/scss/foundation/components/_visibility.scss +345 -0
- data/scss/foundation/test.html +0 -0
- data/scss/normalize.scss +423 -0
- data/spec/abide/abide.js +173 -0
- data/spec/abide/advanced.html +22 -0
- data/spec/abide/basic.html +13 -0
- data/spec/accordion/accordion.js +94 -0
- data/spec/accordion/basic.html +39 -0
- data/spec/accordion/grid.html +44 -0
- data/spec/accordion/multiexpand.html +20 -0
- data/spec/alert/alert.js +35 -0
- data/spec/alert/basic.html +4 -0
- data/spec/clearing/222.gif +0 -0
- data/spec/clearing/777.gif +0 -0
- data/spec/clearing/basic.html +5 -0
- data/spec/clearing/ccc.gif +0 -0
- data/spec/clearing/clearing.js +55 -0
- data/spec/dropdown/basic.html +10 -0
- data/spec/dropdown/dropdown.js +65 -0
- data/spec/equalizer/basic.html +24 -0
- data/spec/equalizer/equalizer.js +30 -0
- data/spec/framework/framework.js +14 -0
- data/spec/helpers.js +37 -0
- data/spec/interchange/basic.html +3 -0
- data/spec/interchange/interchange.js +60 -0
- data/spec/joyride/joyride.js +14 -0
- data/spec/magellan/magellan.js +14 -0
- data/spec/offcanvas/offcanvas.js +14 -0
- data/spec/orbit/orbit.js +14 -0
- data/spec/reveal/reveal.js +14 -0
- data/spec/tab/tab.js +14 -0
- data/spec/tooltip/tooltip.js +14 -0
- data/spec/topbar/multidropdown.html +60 -0
- data/spec/topbar/sticky.html +31 -0
- data/spec/topbar/topbar.js +96 -0
- metadata +238 -0
@@ -0,0 +1,148 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @name _range-slider.scss
|
9
|
+
// @dependencies _global.scss
|
10
|
+
//
|
11
|
+
|
12
|
+
//
|
13
|
+
// @variables
|
14
|
+
//
|
15
|
+
|
16
|
+
$include-html-range-slider-classes: $include-html-classes !default;
|
17
|
+
|
18
|
+
// These variabels define the slider bar styles
|
19
|
+
$range-slider-bar-width: 100% !default;
|
20
|
+
$range-slider-bar-height: rem-calc(16) !default;
|
21
|
+
|
22
|
+
$range-slider-bar-border-width: 1px !default;
|
23
|
+
$range-slider-bar-border-style: solid !default;
|
24
|
+
$range-slider-bar-border-color: #ddd !default;
|
25
|
+
$range-slider-radius: $global-radius !default;
|
26
|
+
$range-slider-round: $global-rounded !default;
|
27
|
+
$range-slider-bar-bg-color: #fafafa !default;
|
28
|
+
|
29
|
+
// Vertical bar styles
|
30
|
+
$range-slider-vertical-bar-width: rem-calc(16) !default;
|
31
|
+
$range-slider-vertical-bar-height: rem-calc(200) !default;
|
32
|
+
|
33
|
+
// These variabels define the slider handle styles
|
34
|
+
$range-slider-handle-width: rem-calc(32) !default;
|
35
|
+
$range-slider-handle-height: rem-calc(22) !default;
|
36
|
+
$range-slider-handle-position-top: rem-calc(-5) !default;
|
37
|
+
$range-slider-handle-bg-color: $primary-color !default;
|
38
|
+
$range-slider-handle-border-width: 1px !default;
|
39
|
+
$range-slider-handle-border-style: solid !default;
|
40
|
+
$range-slider-handle-border-color: none !default;
|
41
|
+
$range-slider-handle-radius: $global-radius !default;
|
42
|
+
$range-slider-handle-round: $global-rounded !default;
|
43
|
+
$range-slider-handle-bg-hover-color: scale-color($primary-color, $lightness: -12%) !default;
|
44
|
+
$range-slider-handle-cursor: pointer !default;
|
45
|
+
|
46
|
+
|
47
|
+
//
|
48
|
+
// @mixins
|
49
|
+
//
|
50
|
+
|
51
|
+
@mixin range-slider-bar-base($vertical: false) {
|
52
|
+
display: block;
|
53
|
+
position: relative;
|
54
|
+
width: $range-slider-bar-width;
|
55
|
+
height: $range-slider-bar-height;
|
56
|
+
border: $range-slider-bar-border-width $range-slider-bar-border-style $range-slider-bar-border-color;
|
57
|
+
margin: rem-calc(20 0);
|
58
|
+
-ms-touch-action: none;
|
59
|
+
touch-action: none;
|
60
|
+
@if $vertical == true {
|
61
|
+
display: inline-block;
|
62
|
+
width: $range-slider-vertical-bar-width;
|
63
|
+
height: $range-slider-vertical-bar-height;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
@mixin range-slider-bar-style(
|
67
|
+
$bg: true,
|
68
|
+
$radius: false,
|
69
|
+
$round: false) {
|
70
|
+
@if $bg == true { background: $range-slider-bar-bg-color; }
|
71
|
+
@if $radius == true { @include radius($range-slider-radius); }
|
72
|
+
@if $round == true { @include radius($range-slider-round); }
|
73
|
+
}
|
74
|
+
|
75
|
+
@mixin range-slider-bar(
|
76
|
+
$bg: $range-slider-bar-bg-color,
|
77
|
+
$radius:false) {
|
78
|
+
@include range-slider-bar-base;
|
79
|
+
@include range-slider-bar-style;
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin range-slider-handle-base() {
|
83
|
+
display: inline-block;
|
84
|
+
position: absolute;
|
85
|
+
z-index: 1;
|
86
|
+
top: $range-slider-handle-position-top;
|
87
|
+
width: $range-slider-handle-width;
|
88
|
+
height: $range-slider-handle-height;
|
89
|
+
border: $range-slider-handle-border-width $range-slider-handle-border-style $range-slider-handle-border-color;
|
90
|
+
cursor: $range-slider-handle-cursor;
|
91
|
+
}
|
92
|
+
@mixin range-slider-handle-style(
|
93
|
+
$bg: true,
|
94
|
+
$radius: false,
|
95
|
+
$round: false) {
|
96
|
+
@if $bg == true { background: $range-slider-handle-bg-color; }
|
97
|
+
@if $radius == true { @include radius($range-slider-radius); }
|
98
|
+
@if $round == true { @include radius($range-slider-round); }
|
99
|
+
&:hover {
|
100
|
+
background: $range-slider-handle-bg-hover-color;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
@mixin range-slider-handle() {
|
104
|
+
@include range-slider-handle-base;
|
105
|
+
@include range-slider-handle-style;
|
106
|
+
}
|
107
|
+
|
108
|
+
// CSS Generation
|
109
|
+
@include exports("range-slider-bar") {
|
110
|
+
@if $include-html-range-slider-classes {
|
111
|
+
.range-slider {
|
112
|
+
@include range-slider-bar-base;
|
113
|
+
@include range-slider-bar-style($bg:true, $radius:false);
|
114
|
+
&.vertical-range {
|
115
|
+
@include range-slider-bar-base($vertical: true);
|
116
|
+
.range-slider-handle {
|
117
|
+
margin-top: 0;
|
118
|
+
margin-#{$default-float}: -($range-slider-handle-width / 4);
|
119
|
+
position: absolute;
|
120
|
+
bottom: -($range-slider-vertical-bar-height - $range-slider-handle-width);
|
121
|
+
}
|
122
|
+
.range-slider-active-segment {
|
123
|
+
width: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2));
|
124
|
+
height: auto;
|
125
|
+
bottom: 0;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
&.radius {
|
129
|
+
@include range-slider-bar-style($radius:true);
|
130
|
+
.range-slider-handle { @include range-slider-handle-style($radius: true); }
|
131
|
+
}
|
132
|
+
&.round {
|
133
|
+
@include range-slider-bar-style($round:true);
|
134
|
+
.range-slider-handle { @include range-slider-handle-style($round: true); }
|
135
|
+
}
|
136
|
+
}
|
137
|
+
.range-slider-active-segment {
|
138
|
+
display: inline-block;
|
139
|
+
position: absolute;
|
140
|
+
height: $range-slider-bar-height - rem-calc((strip-unit($range-slider-bar-border-width) * 2));
|
141
|
+
background: scale-color($secondary-color, $lightness: -1%);
|
142
|
+
}
|
143
|
+
.range-slider-handle {
|
144
|
+
@include range-slider-handle-base;
|
145
|
+
@include range-slider-handle-style($bg:true, $radius: false);
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
File without changes
|
@@ -0,0 +1,216 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @name _reveal.scss
|
9
|
+
// @dependencies _global.scss
|
10
|
+
//
|
11
|
+
|
12
|
+
$include-html-reveal-classes: $include-html-classes !default;
|
13
|
+
|
14
|
+
// We use these to control the style of the reveal overlay.
|
15
|
+
$reveal-overlay-bg: rgba(#000, .45) !default;
|
16
|
+
$reveal-overlay-bg-old: #000 !default;
|
17
|
+
|
18
|
+
// We use these to control the style of the modal itself.
|
19
|
+
$reveal-modal-bg: #fff !default;
|
20
|
+
$reveal-position-top: rem-calc(100) !default;
|
21
|
+
$reveal-default-width: 80% !default;
|
22
|
+
$reveal-modal-padding: rem-calc(20) !default;
|
23
|
+
$reveal-box-shadow: 0 0 10px rgba(#000,.4) !default;
|
24
|
+
|
25
|
+
// We use these to style the reveal close button
|
26
|
+
$reveal-close-font-size: rem-calc(40) !default;
|
27
|
+
$reveal-close-top: rem-calc(8) !default;
|
28
|
+
$reveal-close-side: rem-calc(11) !default;
|
29
|
+
$reveal-close-color: #aaa !default;
|
30
|
+
$reveal-close-weight: bold !default;
|
31
|
+
|
32
|
+
// We use this to set the default radius used throughout the core.
|
33
|
+
$reveal-radius: $global-radius !default;
|
34
|
+
$reveal-round: $global-rounded !default;
|
35
|
+
|
36
|
+
// We use these to control the modal border
|
37
|
+
$reveal-border-style: solid !default;
|
38
|
+
$reveal-border-width: 1px !default;
|
39
|
+
$reveal-border-color: #666 !default;
|
40
|
+
|
41
|
+
$reveal-modal-class: "reveal-modal" !default;
|
42
|
+
$close-reveal-modal-class: "close-reveal-modal" !default;
|
43
|
+
|
44
|
+
//
|
45
|
+
// @mixins
|
46
|
+
//
|
47
|
+
|
48
|
+
// We use this to create the reveal background overlay styles
|
49
|
+
@mixin reveal-bg {
|
50
|
+
position: fixed;
|
51
|
+
height: 100%;
|
52
|
+
width: 100%;
|
53
|
+
background: $reveal-overlay-bg-old;
|
54
|
+
background: $reveal-overlay-bg;
|
55
|
+
z-index: 99;
|
56
|
+
display: none;
|
57
|
+
top: 0;
|
58
|
+
#{$default-float}: 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
// We use this mixin to create the structure of a reveal modal
|
62
|
+
//
|
63
|
+
// $base-style - Provides reveal base styles, can be set to false to override. Default: true, Options: false
|
64
|
+
// $width - Sets reveal width Default: $reveal-default-width || 80%
|
65
|
+
//
|
66
|
+
@mixin reveal-modal-base(
|
67
|
+
$base-style:true,
|
68
|
+
$width:$reveal-default-width) {
|
69
|
+
@if $base-style {
|
70
|
+
visibility: hidden;
|
71
|
+
display: none;
|
72
|
+
position: absolute;
|
73
|
+
z-index: 100;
|
74
|
+
width: 100vw;
|
75
|
+
top:0;
|
76
|
+
#{$default-float}: 0;
|
77
|
+
@media #{$small-only} {
|
78
|
+
min-height:100vh;
|
79
|
+
}
|
80
|
+
@media #{$medium-up} {
|
81
|
+
#{$default-float}: 50%;
|
82
|
+
}
|
83
|
+
|
84
|
+
// Make sure rows don't have a min-width on them
|
85
|
+
.column,
|
86
|
+
.columns { min-width: 0; }
|
87
|
+
|
88
|
+
// Get rid of margin from first and last element inside modal
|
89
|
+
& > :first-child { margin-top: 0; }
|
90
|
+
& > :last-child { margin-bottom: 0; }
|
91
|
+
}
|
92
|
+
|
93
|
+
@if $width {
|
94
|
+
@media #{$medium-up} {
|
95
|
+
margin-#{$default-float}: -($width / 2);
|
96
|
+
width: $width;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
// We use this to style the reveal modal defaults
|
102
|
+
//
|
103
|
+
// $bg - Sets background color of reveal modal. Default: $reveal-modal-bg || #fff
|
104
|
+
// $padding - Padding to apply to reveal modal. Default: $reveal-modal-padding.
|
105
|
+
// $border - Choose whether reveal uses a border. Default: true, Options: false
|
106
|
+
// $border-style - Set reveal border style. Default: $reveal-border-style || solid
|
107
|
+
// $border-width - Width of border (i.e. 1px). Default: $reveal-border-width.
|
108
|
+
// $border-color - Color of border. Default: $reveal-border-color.
|
109
|
+
// $box-shadow - Choose whether or not to include the default box-shadow. Default: true, Options: false
|
110
|
+
// $radius - If true, set to modal radius which is $global-radius || explicitly set radius amount in px (ex. $radius:10px). Default: false
|
111
|
+
// $top-offset - Default: $reveal-position-top || 50px
|
112
|
+
@mixin reveal-modal-style(
|
113
|
+
$bg:false,
|
114
|
+
$padding:false,
|
115
|
+
$border:false,
|
116
|
+
$border-style:$reveal-border-style,
|
117
|
+
$border-width:$reveal-border-width,
|
118
|
+
$border-color:$reveal-border-color,
|
119
|
+
$box-shadow:false,
|
120
|
+
$radius:false,
|
121
|
+
$top-offset:false) {
|
122
|
+
|
123
|
+
@if $bg { background-color: $bg; }
|
124
|
+
@if $padding != false { padding: $padding; }
|
125
|
+
|
126
|
+
@if $border { border: $border-style $border-width $border-color; }
|
127
|
+
|
128
|
+
// We can choose whether or not to include the default box-shadow.
|
129
|
+
@if $box-shadow {
|
130
|
+
box-shadow: $reveal-box-shadow;
|
131
|
+
}
|
132
|
+
|
133
|
+
// We can control how much radius is used on the modal
|
134
|
+
@if $radius == true { @include radius($reveal-radius); }
|
135
|
+
@else if $radius { @include radius($radius); }
|
136
|
+
|
137
|
+
@if $top-offset {
|
138
|
+
@media #{$medium-up} {
|
139
|
+
top: $top-offset;
|
140
|
+
}
|
141
|
+
}
|
142
|
+
}
|
143
|
+
|
144
|
+
// We use this to create a close button for the reveal modal
|
145
|
+
//
|
146
|
+
// $color - Default: $reveal-close-color || #aaa
|
147
|
+
@mixin reveal-close($color:$reveal-close-color) {
|
148
|
+
font-size: $reveal-close-font-size;
|
149
|
+
line-height: 1;
|
150
|
+
position: absolute;
|
151
|
+
top: $reveal-close-top;
|
152
|
+
#{$opposite-direction}: $reveal-close-side;
|
153
|
+
color: $color;
|
154
|
+
font-weight: $reveal-close-weight;
|
155
|
+
cursor: $cursor-pointer-value;
|
156
|
+
}
|
157
|
+
|
158
|
+
@include exports("reveal") {
|
159
|
+
@if $include-html-reveal-classes {
|
160
|
+
|
161
|
+
// Reveal Modals
|
162
|
+
.reveal-modal-bg { @include reveal-bg; }
|
163
|
+
|
164
|
+
dialog, .#{$reveal-modal-class} {
|
165
|
+
@include reveal-modal-base;
|
166
|
+
@include reveal-modal-style(
|
167
|
+
$bg:$reveal-modal-bg,
|
168
|
+
$padding:$reveal-modal-padding,
|
169
|
+
$border:true,
|
170
|
+
$box-shadow:true,
|
171
|
+
$radius:false,
|
172
|
+
$top-offset:$reveal-position-top);
|
173
|
+
|
174
|
+
.#{$close-reveal-modal-class} { @include reveal-close; }
|
175
|
+
}
|
176
|
+
|
177
|
+
dialog[open] {
|
178
|
+
display:block;
|
179
|
+
visibility: visible;
|
180
|
+
}
|
181
|
+
|
182
|
+
@media #{$medium-up} {
|
183
|
+
|
184
|
+
dialog, .#{$reveal-modal-class} {
|
185
|
+
@include reveal-modal-style($padding:$reveal-modal-padding * 1.5);
|
186
|
+
|
187
|
+
&.radius { @include reveal-modal-style($radius:true); }
|
188
|
+
&.round { @include reveal-modal-style($radius:$reveal-round); }
|
189
|
+
|
190
|
+
&.collapse { @include reveal-modal-style($padding:0); }
|
191
|
+
|
192
|
+
&.tiny { @include reveal-modal-base(false, 30%); }
|
193
|
+
&.small { @include reveal-modal-base(false, 40%); }
|
194
|
+
&.medium { @include reveal-modal-base(false, 60%); }
|
195
|
+
&.large { @include reveal-modal-base(false, 70%); }
|
196
|
+
&.xlarge { @include reveal-modal-base(false, 95%); }
|
197
|
+
}
|
198
|
+
|
199
|
+
dialog, .#{$reveal-modal-class} {
|
200
|
+
&.full {
|
201
|
+
@include reveal-modal-base(false, 100vw);
|
202
|
+
top:0;
|
203
|
+
left:0;
|
204
|
+
height: 100vh;
|
205
|
+
min-height:100vh;
|
206
|
+
margin-left: 0 !important;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
// Reveal Print Styles
|
212
|
+
@media print {
|
213
|
+
dialog, .#{$reveal-modal-class} {background: #fff !important;}
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import "global";
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
|
11
|
+
$include-html-nav-classes: $include-html-classes !default;
|
12
|
+
|
13
|
+
// We use this to control padding.
|
14
|
+
$side-nav-padding: rem-calc(14 0) !default;
|
15
|
+
|
16
|
+
// We use these to control list styles.
|
17
|
+
$side-nav-list-type: none !default;
|
18
|
+
$side-nav-list-position: inside !default;
|
19
|
+
$side-nav-list-margin: rem-calc(0 0 7 0) !default;
|
20
|
+
|
21
|
+
// We use these to control link styles.
|
22
|
+
$side-nav-link-color: $primary-color !default;
|
23
|
+
$side-nav-link-color-active: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
24
|
+
$side-nav-link-color-hover: scale-color($side-nav-link-color, $lightness: 30%) !default;
|
25
|
+
$side-nav-font-size: rem-calc(14) !default;
|
26
|
+
$side-nav-font-weight: normal !default;
|
27
|
+
$side-nav-font-weight-active: $side-nav-font-weight !default;
|
28
|
+
$side-nav-font-family: $body-font-family !default;
|
29
|
+
$side-nav-font-family-active: $side-nav-font-family !default;
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
// We use these to control border styles
|
34
|
+
$side-nav-divider-size: 1px !default;
|
35
|
+
$side-nav-divider-style: solid !default;
|
36
|
+
$side-nav-divider-color: scale-color(#fff, $lightness: 10%) !default;
|
37
|
+
|
38
|
+
|
39
|
+
//
|
40
|
+
// @mixins
|
41
|
+
//
|
42
|
+
|
43
|
+
|
44
|
+
// We use this to style the side-nav
|
45
|
+
//
|
46
|
+
// $divider-color - Border color of divider. Default: $side-nav-divider-color.
|
47
|
+
// $font-size - Font size of nav items. Default: $side-nav-font-size.
|
48
|
+
// $link-color - Color of navigation links. Default: $side-nav-link-color.
|
49
|
+
// $link-color-hover - Color of navigation links when hovered. Default: $side-nav-link-color-hover.
|
50
|
+
@mixin side-nav(
|
51
|
+
$divider-color:$side-nav-divider-color,
|
52
|
+
$font-size:$side-nav-font-size,
|
53
|
+
$link-color:$side-nav-link-color,
|
54
|
+
$link-color-hover:$side-nav-link-color-hover) {
|
55
|
+
display: block;
|
56
|
+
margin: 0;
|
57
|
+
padding: $side-nav-padding;
|
58
|
+
list-style-type: $side-nav-list-type;
|
59
|
+
list-style-position: $side-nav-list-position;
|
60
|
+
font-family: $side-nav-font-family;
|
61
|
+
|
62
|
+
li {
|
63
|
+
margin: $side-nav-list-margin;
|
64
|
+
font-size: $font-size;
|
65
|
+
|
66
|
+
a:not(.button) {
|
67
|
+
display: block;
|
68
|
+
color: $link-color;
|
69
|
+
&:hover,
|
70
|
+
&:focus { color: $link-color-hover; }
|
71
|
+
}
|
72
|
+
|
73
|
+
&.active > a:first-child:not(.button) {
|
74
|
+
color: $side-nav-link-color-active;
|
75
|
+
font-weight: $side-nav-font-weight-active;
|
76
|
+
font-family: $side-nav-font-family-active;
|
77
|
+
}
|
78
|
+
|
79
|
+
&.divider {
|
80
|
+
border-top: $side-nav-divider-size $side-nav-divider-style;
|
81
|
+
height: 0;
|
82
|
+
padding: 0;
|
83
|
+
list-style: none;
|
84
|
+
border-top-color: $divider-color;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
@include exports("side-nav") {
|
90
|
+
@if $include-html-nav-classes {
|
91
|
+
.side-nav { @include side-nav; }
|
92
|
+
}
|
93
|
+
}
|