foundation-sass-rails 5.5.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +37 -0
- data/LICENSE.txt +21 -0
- data/README.md +62 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/foundation-sass-rails.gemspec +29 -0
- data/lib/foundation-sass-rails.rb +8 -0
- data/lib/foundation/version.rb +5 -0
- data/lib/generators/foundation/overrides_generator.rb +39 -0
- data/vendor/assets/stylesheets/foundation.scss +42 -0
- data/vendor/assets/stylesheets/foundation/_functions.scss +156 -0
- data/vendor/assets/stylesheets/foundation/_settings.scss +1489 -0
- data/vendor/assets/stylesheets/foundation/components/_accordion.scss +161 -0
- data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +128 -0
- data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +133 -0
- data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +132 -0
- data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +208 -0
- data/vendor/assets/stylesheets/foundation/components/_buttons.scss +261 -0
- data/vendor/assets/stylesheets/foundation/components/_clearing.scss +260 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +130 -0
- data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +269 -0
- data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +51 -0
- data/vendor/assets/stylesheets/foundation/components/_forms.scss +607 -0
- data/vendor/assets/stylesheets/foundation/components/_global.scss +566 -0
- data/vendor/assets/stylesheets/foundation/components/_grid.scss +292 -0
- data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +460 -0
- data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +58 -0
- data/vendor/assets/stylesheets/foundation/components/_joyride.scss +220 -0
- data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +60 -0
- data/vendor/assets/stylesheets/foundation/components/_labels.scss +106 -0
- data/vendor/assets/stylesheets/foundation/components/_magellan.scss +34 -0
- data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +606 -0
- data/vendor/assets/stylesheets/foundation/components/_orbit.scss +388 -0
- data/vendor/assets/stylesheets/foundation/components/_pagination.scss +163 -0
- data/vendor/assets/stylesheets/foundation/components/_panels.scss +107 -0
- data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +150 -0
- data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +85 -0
- data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +177 -0
- data/vendor/assets/stylesheets/foundation/components/_reveal.scss +212 -0
- data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +120 -0
- data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +203 -0
- data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +125 -0
- data/vendor/assets/stylesheets/foundation/components/_switches.scss +241 -0
- data/vendor/assets/stylesheets/foundation/components/_tables.scss +135 -0
- data/vendor/assets/stylesheets/foundation/components/_tabs.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +66 -0
- data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +142 -0
- data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +745 -0
- data/vendor/assets/stylesheets/foundation/components/_type.scss +525 -0
- data/vendor/assets/stylesheets/foundation/components/_visibility.scss +425 -0
- data/vendor/assets/stylesheets/normalize.scss +424 -0
- metadata +163 -0
@@ -0,0 +1,292 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
//
|
8
|
+
// @variables
|
9
|
+
//
|
10
|
+
$include-html-grid-classes: $include-html-classes !default;
|
11
|
+
$include-xl-html-grid-classes: false !default;
|
12
|
+
|
13
|
+
$row-width: rem-calc(1000) !default;
|
14
|
+
$total-columns: 12 !default;
|
15
|
+
|
16
|
+
$last-child-float: $opposite-direction !default;
|
17
|
+
|
18
|
+
//
|
19
|
+
// Grid Functions
|
20
|
+
//
|
21
|
+
|
22
|
+
// Deprecated: We'll drop support for this in 5.1, use grid-calc()
|
23
|
+
@function gridCalc($colNumber, $totalColumns) {
|
24
|
+
@warn "gridCalc() is deprecated, use grid-calc()";
|
25
|
+
@return grid-calc($colNumber, $totalColumns);
|
26
|
+
}
|
27
|
+
|
28
|
+
// @FUNCTION
|
29
|
+
// $colNumber - Found in settings file
|
30
|
+
// $totalColumns - Found in settings file
|
31
|
+
@function grid-calc($colNumber, $totalColumns) {
|
32
|
+
$result: percentage(($colNumber / $totalColumns));
|
33
|
+
@if $result == 0% { $result: 0; }
|
34
|
+
@return $result;
|
35
|
+
}
|
36
|
+
|
37
|
+
//
|
38
|
+
// @mixins
|
39
|
+
//
|
40
|
+
|
41
|
+
// For creating container, nested, and collapsed rows.
|
42
|
+
//
|
43
|
+
//
|
44
|
+
// $behavior - Any special behavior for this row? Default: false. Options: nest, collapse, nest-collapse, false.
|
45
|
+
@mixin grid-row($behavior: false) {
|
46
|
+
|
47
|
+
// use @include grid-row(nest); to include a nested row
|
48
|
+
@if $behavior == nest {
|
49
|
+
margin: 0 (-($column-gutter/2));
|
50
|
+
max-width: none;
|
51
|
+
width: auto;
|
52
|
+
}
|
53
|
+
|
54
|
+
// use @include grid-row(collapse); to collapsed a container row margins
|
55
|
+
@else if $behavior == collapse {
|
56
|
+
margin: 0;
|
57
|
+
max-width: $row-width;
|
58
|
+
width: 100%;
|
59
|
+
}
|
60
|
+
|
61
|
+
// use @include grid-row(nest-collapse); to collapse outer margins on a nested row
|
62
|
+
@else if $behavior == nest-collapse {
|
63
|
+
margin: 0;
|
64
|
+
max-width: none;
|
65
|
+
width: auto;
|
66
|
+
}
|
67
|
+
|
68
|
+
// use @include grid-row; to use a container row
|
69
|
+
@else {
|
70
|
+
margin: 0 auto;
|
71
|
+
max-width: $row-width;
|
72
|
+
width: 100%;
|
73
|
+
}
|
74
|
+
|
75
|
+
// Clearfix for all rows
|
76
|
+
@include clearfix();
|
77
|
+
}
|
78
|
+
|
79
|
+
// Creates a column, should be used inside of a media query to control layouts
|
80
|
+
//
|
81
|
+
// $columns - The number of columns this should be
|
82
|
+
// $last-column - Is this the last column? Default: false.
|
83
|
+
// $center - Center these columns? Default: false.
|
84
|
+
// $offset - # of columns to offset. Default: false.
|
85
|
+
// $push - # of columns to push. Default: false.
|
86
|
+
// $pull - # of columns to pull. Default: false.
|
87
|
+
// $collapse - Get rid of gutter padding on column? Default: false.
|
88
|
+
// $float - Should this float? Default: true. Options: true, false, left, right.
|
89
|
+
@mixin grid-column(
|
90
|
+
$columns:false,
|
91
|
+
$last-column:false,
|
92
|
+
$center:false,
|
93
|
+
$offset:false,
|
94
|
+
$push:false,
|
95
|
+
$pull:false,
|
96
|
+
$collapse:false,
|
97
|
+
$float:true,
|
98
|
+
$position:false) {
|
99
|
+
|
100
|
+
// If positioned for default .column, include relative position
|
101
|
+
// push and pull require position set
|
102
|
+
@if $position or $push or $pull {
|
103
|
+
position: relative;
|
104
|
+
}
|
105
|
+
|
106
|
+
// If collapsed, get rid of gutter padding
|
107
|
+
@if $collapse {
|
108
|
+
padding-left: 0;
|
109
|
+
padding-right: 0;
|
110
|
+
}
|
111
|
+
|
112
|
+
// Gutter padding whenever a column isn't set to collapse
|
113
|
+
// (use $collapse:null to do nothing)
|
114
|
+
@else if $collapse == false {
|
115
|
+
padding-left: ($column-gutter / 2);
|
116
|
+
padding-right: ($column-gutter / 2);
|
117
|
+
}
|
118
|
+
|
119
|
+
// If a column number is given, calculate width
|
120
|
+
@if $columns {
|
121
|
+
width: grid-calc($columns, $total-columns);
|
122
|
+
|
123
|
+
// If last column, float naturally instead of to the right
|
124
|
+
@if $last-column { float: $opposite-direction; }
|
125
|
+
}
|
126
|
+
|
127
|
+
// Source Ordering, adds left/right depending on which you use.
|
128
|
+
@if $push { #{$default-float}: grid-calc($push, $total-columns); #{$opposite-direction}: auto; }
|
129
|
+
@if $pull { #{$opposite-direction}: grid-calc($pull, $total-columns); #{$default-float}: auto; }
|
130
|
+
|
131
|
+
@if $float and $last-column == false {
|
132
|
+
@if $float == left or $float == true { float: $default-float; }
|
133
|
+
@else if $float == right { float: $opposite-direction; }
|
134
|
+
@else { float: none; }
|
135
|
+
}
|
136
|
+
|
137
|
+
// If centered, get rid of float and add appropriate margins
|
138
|
+
@if $center {
|
139
|
+
margin-#{$default-float}: auto;
|
140
|
+
margin-#{$opposite-direction}: auto;
|
141
|
+
float: none;
|
142
|
+
}
|
143
|
+
|
144
|
+
// If offset, calculate appropriate margins
|
145
|
+
@if $offset { margin-#{$default-float}: grid-calc($offset, $total-columns) !important; }
|
146
|
+
|
147
|
+
}
|
148
|
+
|
149
|
+
// Create presentational classes for grid
|
150
|
+
//
|
151
|
+
// $size - Name of class to use, i.e. "large" will generate .large-1, .large-2, etc.
|
152
|
+
@mixin grid-html-classes($size) {
|
153
|
+
|
154
|
+
@for $i from 0 through $total-columns - 1 {
|
155
|
+
.#{$size}-push-#{$i} {
|
156
|
+
@include grid-column($push:$i, $collapse:null, $float:false);
|
157
|
+
}
|
158
|
+
.#{$size}-pull-#{$i} {
|
159
|
+
@include grid-column($pull:$i, $collapse:null, $float:false);
|
160
|
+
}
|
161
|
+
}
|
162
|
+
|
163
|
+
.column,
|
164
|
+
.columns { @include grid-column($columns:false, $position:true); }
|
165
|
+
|
166
|
+
|
167
|
+
@for $i from 1 through $total-columns {
|
168
|
+
.#{$size}-#{$i} { @include grid-column($columns:$i, $collapse:null, $float:false); }
|
169
|
+
}
|
170
|
+
|
171
|
+
@for $i from 0 through $total-columns - 1 {
|
172
|
+
.#{$size}-offset-#{$i} { @include grid-column($offset:$i, $collapse:null, $float:false); }
|
173
|
+
}
|
174
|
+
|
175
|
+
.#{$size}-reset-order {
|
176
|
+
float: $default-float;
|
177
|
+
left: auto;
|
178
|
+
margin-#{$default-float}: 0;
|
179
|
+
margin-#{$opposite-direction}: 0;
|
180
|
+
right: auto;
|
181
|
+
}
|
182
|
+
|
183
|
+
.column.#{$size}-centered,
|
184
|
+
.columns.#{$size}-centered { @include grid-column($center:true, $collapse:null, $float:false); }
|
185
|
+
|
186
|
+
.column.#{$size}-uncentered,
|
187
|
+
.columns.#{$size}-uncentered {
|
188
|
+
float: $default-float;
|
189
|
+
margin-#{$default-float}: 0;
|
190
|
+
margin-#{$opposite-direction}: 0;
|
191
|
+
}
|
192
|
+
|
193
|
+
// Fighting [class*="column"] + [class*="column"]:last-child
|
194
|
+
.column.#{$size}-centered:last-child,
|
195
|
+
.columns.#{$size}-centered:last-child{
|
196
|
+
float: none;
|
197
|
+
}
|
198
|
+
|
199
|
+
// Fighting .column.<previous-size>-centered:last-child
|
200
|
+
.column.#{$size}-uncentered:last-child,
|
201
|
+
.columns.#{$size}-uncentered:last-child {
|
202
|
+
float: $default-float;
|
203
|
+
}
|
204
|
+
|
205
|
+
.column.#{$size}-uncentered.opposite,
|
206
|
+
.columns.#{$size}-uncentered.opposite {
|
207
|
+
float: $opposite-direction;
|
208
|
+
}
|
209
|
+
|
210
|
+
.row {
|
211
|
+
&.#{$size}-collapse {
|
212
|
+
> .column,
|
213
|
+
> .columns { @include grid-column($collapse:true, $float:false); }
|
214
|
+
|
215
|
+
.row {margin-left:0; margin-right:0;}
|
216
|
+
}
|
217
|
+
&.#{$size}-uncollapse {
|
218
|
+
> .column,
|
219
|
+
> .columns {
|
220
|
+
@include grid-column;
|
221
|
+
}
|
222
|
+
}
|
223
|
+
}
|
224
|
+
}
|
225
|
+
|
226
|
+
@include exports("grid") {
|
227
|
+
@if $include-html-grid-classes {
|
228
|
+
.row {
|
229
|
+
@include grid-row;
|
230
|
+
|
231
|
+
&.collapse {
|
232
|
+
> .column,
|
233
|
+
> .columns { @include grid-column($collapse:true, $float:false); }
|
234
|
+
|
235
|
+
.row {margin-left:0; margin-right:0;}
|
236
|
+
}
|
237
|
+
|
238
|
+
.row { @include grid-row($behavior:nest);
|
239
|
+
&.collapse { @include grid-row($behavior:nest-collapse); }
|
240
|
+
}
|
241
|
+
}
|
242
|
+
|
243
|
+
.column,
|
244
|
+
.columns { @include grid-column($columns:$total-columns); }
|
245
|
+
|
246
|
+
.column,
|
247
|
+
.columns {
|
248
|
+
& + &:last-child {
|
249
|
+
float: $last-child-float;
|
250
|
+
}
|
251
|
+
& + &.end {
|
252
|
+
float: $default-float;
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
@media #{$small-up} {
|
257
|
+
@include grid-html-classes($size:small);
|
258
|
+
}
|
259
|
+
|
260
|
+
@media #{$medium-up} {
|
261
|
+
@include grid-html-classes($size:medium);
|
262
|
+
// Old push and pull classes
|
263
|
+
@for $i from 0 through $total-columns - 1 {
|
264
|
+
.push-#{$i} {
|
265
|
+
@include grid-column($push:$i, $collapse:null, $float:false);
|
266
|
+
}
|
267
|
+
.pull-#{$i} {
|
268
|
+
@include grid-column($pull:$i, $collapse:null, $float:false);
|
269
|
+
}
|
270
|
+
}
|
271
|
+
}
|
272
|
+
@media #{$large-up} {
|
273
|
+
@include grid-html-classes($size:large);
|
274
|
+
@for $i from 0 through $total-columns - 1 {
|
275
|
+
.push-#{$i} {
|
276
|
+
@include grid-column($push:$i, $collapse:null, $float:false);
|
277
|
+
}
|
278
|
+
.pull-#{$i} {
|
279
|
+
@include grid-column($pull:$i, $collapse:null, $float:false);
|
280
|
+
}
|
281
|
+
}
|
282
|
+
}
|
283
|
+
}
|
284
|
+
@if $include-xl-html-grid-classes {
|
285
|
+
@media #{$xlarge-up} {
|
286
|
+
@include grid-html-classes($size:xlarge);
|
287
|
+
}
|
288
|
+
@media #{$xxlarge-up} {
|
289
|
+
@include grid-html-classes($size:xxlarge);
|
290
|
+
}
|
291
|
+
}
|
292
|
+
}
|
@@ -0,0 +1,460 @@
|
|
1
|
+
// Foundation by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
@import 'global';
|
6
|
+
|
7
|
+
|
8
|
+
// @name
|
9
|
+
// @dependencies _global.scss
|
10
|
+
|
11
|
+
$include-html-icon-bar-classes: $include-html-classes !default;
|
12
|
+
|
13
|
+
// @variables
|
14
|
+
|
15
|
+
// We use these to style the icon-bar and items
|
16
|
+
$icon-bar-bg: $oil !default;
|
17
|
+
$icon-bar-font-color: $white !default;
|
18
|
+
$icon-bar-font-color-hover: $icon-bar-font-color !default;
|
19
|
+
$icon-bar-font-size: 1rem !default;
|
20
|
+
$icon-bar-hover-color: $primary-color !default;
|
21
|
+
$icon-bar-icon-color: $white !default;
|
22
|
+
$icon-bar-icon-color-hover: $icon-bar-icon-color !default;
|
23
|
+
$icon-bar-icon-size: 1.875rem !default;
|
24
|
+
$icon-bar-image-width: 1.875rem !default;
|
25
|
+
$icon-bar-image-height: 1.875rem !default;
|
26
|
+
$icon-bar-active-color: $primary-color !default;
|
27
|
+
$icon-bar-item-padding: 1.25rem !default;
|
28
|
+
|
29
|
+
// We use this to set default opacity and cursor for disabled icons.
|
30
|
+
$icon-bar-disabled-opacity: .7 !default;
|
31
|
+
$icon-bar-disabled-cursor: $cursor-disabled-value !default;
|
32
|
+
|
33
|
+
|
34
|
+
//
|
35
|
+
// @mixins
|
36
|
+
//
|
37
|
+
|
38
|
+
// We use this mixin to create the base styles for our Icon bar element.
|
39
|
+
//
|
40
|
+
@mixin icon-bar-base() {
|
41
|
+
display: inline-block;
|
42
|
+
font-size: 0;
|
43
|
+
width: 100%;
|
44
|
+
|
45
|
+
> * {
|
46
|
+
display: block;
|
47
|
+
float: left;
|
48
|
+
font-size: $icon-bar-font-size;
|
49
|
+
margin: 0 auto;
|
50
|
+
padding: $icon-bar-item-padding;
|
51
|
+
text-align: center;
|
52
|
+
width: 25%;
|
53
|
+
|
54
|
+
i, img {
|
55
|
+
display: block;
|
56
|
+
margin: 0 auto;
|
57
|
+
|
58
|
+
& + label {
|
59
|
+
margin-top: .0625rem;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
i {
|
64
|
+
font-size: $icon-bar-icon-size;
|
65
|
+
vertical-align: middle;
|
66
|
+
}
|
67
|
+
|
68
|
+
img {
|
69
|
+
height: $icon-bar-image-height;
|
70
|
+
width: $icon-bar-image-width;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
&.label-right > * {
|
75
|
+
|
76
|
+
i, img {
|
77
|
+
display: inline-block;
|
78
|
+
margin: 0 .0625rem 0 0;
|
79
|
+
|
80
|
+
& + label {
|
81
|
+
margin-top: 0;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
label { display: inline-block; }
|
86
|
+
}
|
87
|
+
|
88
|
+
&.vertical.label-right > * {
|
89
|
+
text-align: left;
|
90
|
+
}
|
91
|
+
|
92
|
+
&.vertical, &.small-vertical{
|
93
|
+
height: 100%;
|
94
|
+
width: auto;
|
95
|
+
|
96
|
+
.item {
|
97
|
+
float: none;
|
98
|
+
margin: auto;
|
99
|
+
width: auto;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
&.medium-vertical {
|
104
|
+
@media #{$medium-up} {
|
105
|
+
height: 100%;
|
106
|
+
width: auto;
|
107
|
+
|
108
|
+
.item {
|
109
|
+
float: none;
|
110
|
+
margin: auto;
|
111
|
+
width: auto;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
&.large-vertical {
|
116
|
+
@media #{$large-up} {
|
117
|
+
height: 100%;
|
118
|
+
width: auto;
|
119
|
+
|
120
|
+
.item {
|
121
|
+
float: none;
|
122
|
+
margin: auto;
|
123
|
+
width: auto;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
// We use this mixin to create the size styles for icon bars.
|
130
|
+
@mixin icon-bar-size(
|
131
|
+
$padding: $icon-bar-item-padding,
|
132
|
+
$font-size: $icon-bar-font-size,
|
133
|
+
$icon-size: $icon-bar-icon-size,
|
134
|
+
$image-width: $icon-bar-image-width,
|
135
|
+
$image-height: $icon-bar-image-height) {
|
136
|
+
|
137
|
+
> * {
|
138
|
+
font-size: $font-size;
|
139
|
+
padding: $padding;
|
140
|
+
|
141
|
+
i, img {
|
142
|
+
|
143
|
+
& + label {
|
144
|
+
margin-top: .0625rem;
|
145
|
+
font-size: $font-size;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
i {
|
150
|
+
font-size: $icon-size;
|
151
|
+
}
|
152
|
+
|
153
|
+
img {
|
154
|
+
height: $image-height;
|
155
|
+
width: $image-width;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
}
|
160
|
+
|
161
|
+
@mixin icon-bar-style(
|
162
|
+
$bar-bg:$icon-bar-bg,
|
163
|
+
$bar-font-color:$icon-bar-font-color,
|
164
|
+
$bar-font-color-hover:$icon-bar-font-color-hover,
|
165
|
+
$bar-hover-color:$icon-bar-hover-color,
|
166
|
+
$bar-icon-color:$icon-bar-icon-color,
|
167
|
+
$bar-icon-color-hover:$icon-bar-icon-color-hover,
|
168
|
+
$bar-active-color:$icon-bar-active-color,
|
169
|
+
$base-style:true,
|
170
|
+
$disabled:false) {
|
171
|
+
|
172
|
+
@if $base-style {
|
173
|
+
|
174
|
+
background: $bar-bg;
|
175
|
+
|
176
|
+
> * {
|
177
|
+
label { color: $bar-font-color; }
|
178
|
+
|
179
|
+
i { color: $bar-icon-color; }
|
180
|
+
}
|
181
|
+
|
182
|
+
> a:hover {
|
183
|
+
|
184
|
+
background: $bar-hover-color;
|
185
|
+
|
186
|
+
label { color: $bar-font-color-hover; }
|
187
|
+
|
188
|
+
i { color: $bar-icon-color-hover; }
|
189
|
+
}
|
190
|
+
|
191
|
+
> a.active {
|
192
|
+
|
193
|
+
background: $bar-active-color;
|
194
|
+
|
195
|
+
label { color: $bar-font-color-hover; }
|
196
|
+
|
197
|
+
i { color: $bar-icon-color-hover; }
|
198
|
+
}
|
199
|
+
}
|
200
|
+
@if $disabled {
|
201
|
+
.item.disabled {
|
202
|
+
cursor: $icon-bar-disabled-cursor;
|
203
|
+
opacity: $icon-bar-disabled-opacity;
|
204
|
+
pointer-events: none;
|
205
|
+
>* {
|
206
|
+
opacity: $icon-bar-disabled-opacity;
|
207
|
+
cursor: $icon-bar-disabled-cursor;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
}
|
213
|
+
|
214
|
+
// We use this to quickly create icon bars with a single mixin
|
215
|
+
// $height - The overall calculated height of the icon bar (horizontal)
|
216
|
+
// $bar-bg - the background color of the bar
|
217
|
+
// $bar-font-color - the font color
|
218
|
+
// $bar-hover-color - okay these are pretty obvious variables
|
219
|
+
// $bar-icon-color - maybe we could skip explaining them all? Okay this one does change icon color if you use an icon font
|
220
|
+
// $bar-active-color - the color of an active / hover state
|
221
|
+
// $base-style - Apply base styles? Default: true.
|
222
|
+
// $disabled - Allow disabled icons? Default: false.
|
223
|
+
|
224
|
+
@mixin icon-bar(
|
225
|
+
$bar-bg:$icon-bar-bg,
|
226
|
+
$bar-font-color:$icon-bar-font-color,
|
227
|
+
$bar-font-color-hover:$icon-bar-font-color-hover,
|
228
|
+
$bar-hover-color:$icon-bar-hover-color,
|
229
|
+
$bar-icon-color:$icon-bar-icon-color,
|
230
|
+
$bar-icon-color-hover:$icon-bar-icon-color-hover,
|
231
|
+
$bar-active-color:$icon-bar-active-color,
|
232
|
+
$padding: $icon-bar-item-padding,
|
233
|
+
$font-size: $icon-bar-font-size,
|
234
|
+
$icon-size: $icon-bar-icon-size,
|
235
|
+
$image-width: $icon-bar-image-width,
|
236
|
+
$image-height: $icon-bar-image-height,
|
237
|
+
$base-style:true,
|
238
|
+
$disabled:true) {
|
239
|
+
@include icon-bar-base();
|
240
|
+
@include icon-bar-size($padding, $font-size, $icon-size, $image-width, $image-height);
|
241
|
+
@include icon-bar-style($bar-bg, $bar-font-color, $bar-font-color-hover, $bar-hover-color, $bar-icon-color, $bar-icon-color-hover, $bar-active-color, $base-style, $disabled);
|
242
|
+
|
243
|
+
// Counts
|
244
|
+
|
245
|
+
&.two-up {
|
246
|
+
.item { width: 50%; }
|
247
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
248
|
+
&.medium-vertical .item {
|
249
|
+
@media #{$medium-up} {
|
250
|
+
width: auto;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
&.large-vertical .item {
|
254
|
+
@media #{$large-up} {
|
255
|
+
width: auto;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
}
|
259
|
+
&.three-up {
|
260
|
+
.item { width: 33.3333%; }
|
261
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
262
|
+
&.medium-vertical .item {
|
263
|
+
@media #{$medium-up} {
|
264
|
+
width: auto;
|
265
|
+
}
|
266
|
+
}
|
267
|
+
&.large-vertical .item {
|
268
|
+
@media #{$large-up} {
|
269
|
+
width: auto;
|
270
|
+
}
|
271
|
+
}
|
272
|
+
}
|
273
|
+
&.four-up {
|
274
|
+
.item { width: 25%; }
|
275
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
276
|
+
&.medium-vertical .item {
|
277
|
+
@media #{$medium-up} {
|
278
|
+
width: auto;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
&.large-vertical .item {
|
282
|
+
@media #{$large-up} {
|
283
|
+
width: auto;
|
284
|
+
}
|
285
|
+
}
|
286
|
+
}
|
287
|
+
&.five-up {
|
288
|
+
.item { width: 20%; }
|
289
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
290
|
+
&.medium-vertical .item {
|
291
|
+
@media #{$medium-up} {
|
292
|
+
width: auto;
|
293
|
+
}
|
294
|
+
}
|
295
|
+
&.large-vertical .item {
|
296
|
+
@media #{$large-up} {
|
297
|
+
width: auto;
|
298
|
+
}
|
299
|
+
}
|
300
|
+
}
|
301
|
+
&.six-up {
|
302
|
+
.item { width: 16.66667%; }
|
303
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
304
|
+
&.medium-vertical .item {
|
305
|
+
@media #{$medium-up} {
|
306
|
+
width: auto;
|
307
|
+
}
|
308
|
+
}
|
309
|
+
&.large-vertical .item {
|
310
|
+
@media #{$large-up} {
|
311
|
+
width: auto;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
}
|
315
|
+
&.seven-up {
|
316
|
+
.item { width: 14.28571%; }
|
317
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
318
|
+
&.medium-vertical .item {
|
319
|
+
@media #{$medium-up} {
|
320
|
+
width: auto;
|
321
|
+
}
|
322
|
+
}
|
323
|
+
&.large-vertical .item {
|
324
|
+
@media #{$large-up} {
|
325
|
+
width: auto;
|
326
|
+
}
|
327
|
+
}
|
328
|
+
}
|
329
|
+
&.eight-up {
|
330
|
+
.item { width: 12.5%; }
|
331
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
332
|
+
&.medium-vertical .item {
|
333
|
+
@media #{$medium-up} {
|
334
|
+
width: auto;
|
335
|
+
}
|
336
|
+
}
|
337
|
+
&.large-vertical .item {
|
338
|
+
@media #{$large-up} {
|
339
|
+
width: auto;
|
340
|
+
}
|
341
|
+
}
|
342
|
+
}
|
343
|
+
}
|
344
|
+
|
345
|
+
@include exports("icon-bar") {
|
346
|
+
@if $include-html-icon-bar-classes {
|
347
|
+
.icon-bar {
|
348
|
+
@include icon-bar;
|
349
|
+
}
|
350
|
+
}
|
351
|
+
}
|
352
|
+
|
353
|
+
@if $include-html-icon-bar-classes {
|
354
|
+
|
355
|
+
// toolbar styles
|
356
|
+
|
357
|
+
.icon-bar {
|
358
|
+
|
359
|
+
// Counts
|
360
|
+
|
361
|
+
&.two-up {
|
362
|
+
.item { width: 50%; }
|
363
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
364
|
+
&.medium-vertical .item {
|
365
|
+
@media #{$medium-up} {
|
366
|
+
width: auto;
|
367
|
+
}
|
368
|
+
}
|
369
|
+
&.large-vertical .item {
|
370
|
+
@media #{$large-up} {
|
371
|
+
width: auto;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
}
|
375
|
+
&.three-up {
|
376
|
+
.item { width: 33.3333%; }
|
377
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
378
|
+
&.medium-vertical .item {
|
379
|
+
@media #{$medium-up} {
|
380
|
+
width: auto;
|
381
|
+
}
|
382
|
+
}
|
383
|
+
&.large-vertical .item {
|
384
|
+
@media #{$large-up} {
|
385
|
+
width: auto;
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
&.four-up {
|
390
|
+
.item { width: 25%; }
|
391
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
392
|
+
&.medium-vertical .item {
|
393
|
+
@media #{$medium-up} {
|
394
|
+
width: auto;
|
395
|
+
}
|
396
|
+
}
|
397
|
+
&.large-vertical .item {
|
398
|
+
@media #{$large-up} {
|
399
|
+
width: auto;
|
400
|
+
}
|
401
|
+
}
|
402
|
+
}
|
403
|
+
&.five-up {
|
404
|
+
.item { width: 20%; }
|
405
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
406
|
+
&.medium-vertical .item {
|
407
|
+
@media #{$medium-up} {
|
408
|
+
width: auto;
|
409
|
+
}
|
410
|
+
}
|
411
|
+
&.large-vertical .item {
|
412
|
+
@media #{$large-up} {
|
413
|
+
width: auto;
|
414
|
+
}
|
415
|
+
}
|
416
|
+
}
|
417
|
+
&.six-up {
|
418
|
+
.item { width: 16.66667%; }
|
419
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
420
|
+
&.medium-vertical .item {
|
421
|
+
@media #{$medium-up} {
|
422
|
+
width: auto;
|
423
|
+
}
|
424
|
+
}
|
425
|
+
&.large-vertical .item {
|
426
|
+
@media #{$large-up} {
|
427
|
+
width: auto;
|
428
|
+
}
|
429
|
+
}
|
430
|
+
}
|
431
|
+
&.seven-up {
|
432
|
+
.item { width: 14.28571%; }
|
433
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
434
|
+
&.medium-vertical .item {
|
435
|
+
@media #{$medium-up} {
|
436
|
+
width: auto;
|
437
|
+
}
|
438
|
+
}
|
439
|
+
&.large-vertical .item {
|
440
|
+
@media #{$large-up} {
|
441
|
+
width: auto;
|
442
|
+
}
|
443
|
+
}
|
444
|
+
}
|
445
|
+
&.eight-up {
|
446
|
+
.item { width: 12.5%; }
|
447
|
+
&.vertical .item, &.small-vertical .item { width: auto; }
|
448
|
+
&.medium-vertical .item {
|
449
|
+
@media #{$medium-up} {
|
450
|
+
width: auto;
|
451
|
+
}
|
452
|
+
}
|
453
|
+
&.large-vertical .item {
|
454
|
+
@media #{$large-up} {
|
455
|
+
width: auto;
|
456
|
+
}
|
457
|
+
}
|
458
|
+
}
|
459
|
+
}
|
460
|
+
}
|