foundation-scss 6.3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/_vendor/normalize-scss/sass/_normalize.scss +3 -0
- data/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
- data/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
- data/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
- data/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
- data/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/foundation-scss.gemspec +9 -0
- data/lib/foundation/scss/in/sass_path.rb +6 -0
- data/scss/_global.scss +219 -0
- data/scss/components/_accordion-menu.scss +36 -0
- data/scss/components/_accordion.scss +150 -0
- data/scss/components/_badge.scss +63 -0
- data/scss/components/_breadcrumbs.scss +100 -0
- data/scss/components/_button-group.scss +253 -0
- data/scss/components/_button.scss +332 -0
- data/scss/components/_callout.scss +106 -0
- data/scss/components/_card.scss +121 -0
- data/scss/components/_close-button.scss +102 -0
- data/scss/components/_drilldown.scss +93 -0
- data/scss/components/_dropdown-menu.scss +226 -0
- data/scss/components/_dropdown.scss +72 -0
- data/scss/components/_flex-video.scss +1 -0
- data/scss/components/_flex.scss +34 -0
- data/scss/components/_float.scss +27 -0
- data/scss/components/_label.scss +64 -0
- data/scss/components/_media-object.scss +114 -0
- data/scss/components/_menu-icon.scss +9 -0
- data/scss/components/_menu.scss +376 -0
- data/scss/components/_off-canvas.scss +329 -0
- data/scss/components/_orbit.scss +196 -0
- data/scss/components/_pagination.scss +193 -0
- data/scss/components/_progress-bar.scss +64 -0
- data/scss/components/_responsive-embed.scss +70 -0
- data/scss/components/_reveal.scss +178 -0
- data/scss/components/_slider.scss +138 -0
- data/scss/components/_sticky.scss +38 -0
- data/scss/components/_switch.scss +247 -0
- data/scss/components/_table.scss +329 -0
- data/scss/components/_tabs.scss +196 -0
- data/scss/components/_thumbnail.scss +67 -0
- data/scss/components/_title-bar.scss +84 -0
- data/scss/components/_tooltip.scss +107 -0
- data/scss/components/_top-bar.scss +173 -0
- data/scss/components/_visibility.scss +132 -0
- data/scss/forms/_checkbox.scss +41 -0
- data/scss/forms/_error.scss +88 -0
- data/scss/forms/_fieldset.scss +54 -0
- data/scss/forms/_forms.scss +34 -0
- data/scss/forms/_help-text.scss +30 -0
- data/scss/forms/_input-group.scss +135 -0
- data/scss/forms/_label.scss +50 -0
- data/scss/forms/_meter.scss +110 -0
- data/scss/forms/_progress.scss +94 -0
- data/scss/forms/_range.scss +149 -0
- data/scss/forms/_select.scss +85 -0
- data/scss/forms/_text.scss +170 -0
- data/scss/foundation.scss +118 -0
- data/scss/grid/_classes.scss +176 -0
- data/scss/grid/_column.scss +112 -0
- data/scss/grid/_flex-grid.scss +312 -0
- data/scss/grid/_grid.scss +48 -0
- data/scss/grid/_gutter.scss +82 -0
- data/scss/grid/_layout.scss +76 -0
- data/scss/grid/_position.scss +76 -0
- data/scss/grid/_row.scss +99 -0
- data/scss/grid/_size.scss +24 -0
- data/scss/settings/_settings.scss +620 -0
- data/scss/typography/_alignment.scss +22 -0
- data/scss/typography/_base.scss +509 -0
- data/scss/typography/_helpers.scss +78 -0
- data/scss/typography/_print.scss +86 -0
- data/scss/typography/_typography.scss +26 -0
- data/scss/util/_breakpoint.scss +281 -0
- data/scss/util/_color.scss +126 -0
- data/scss/util/_direction.scss +31 -0
- data/scss/util/_flex.scss +85 -0
- data/scss/util/_math.scss +72 -0
- data/scss/util/_mixins.scss +276 -0
- data/scss/util/_selector.scss +41 -0
- data/scss/util/_typography.scss +26 -0
- data/scss/util/_unit.scss +152 -0
- data/scss/util/_util.scss +14 -0
- data/scss/util/_value.scss +160 -0
- metadata +144 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group forms
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Global spacing for form elements.
|
10
|
+
/// @type Number
|
11
|
+
$form-spacing: rem-calc(16) !default;
|
12
|
+
|
13
|
+
@import 'text';
|
14
|
+
@import 'checkbox';
|
15
|
+
@import 'label';
|
16
|
+
@import 'help-text';
|
17
|
+
@import 'input-group';
|
18
|
+
@import 'fieldset';
|
19
|
+
@import 'select';
|
20
|
+
@import 'range';
|
21
|
+
@import 'progress';
|
22
|
+
@import 'meter';
|
23
|
+
@import 'error';
|
24
|
+
|
25
|
+
@mixin foundation-forms {
|
26
|
+
@include foundation-form-text;
|
27
|
+
@include foundation-form-checkbox;
|
28
|
+
@include foundation-form-label;
|
29
|
+
@include foundation-form-helptext;
|
30
|
+
@include foundation-form-prepostfix;
|
31
|
+
@include foundation-form-fieldset;
|
32
|
+
@include foundation-form-select;
|
33
|
+
@include foundation-form-error;
|
34
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group forms
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default color for help text.
|
10
|
+
/// @type Color
|
11
|
+
$helptext-color: $black !default;
|
12
|
+
|
13
|
+
/// Default font size for help text.
|
14
|
+
/// @type Number
|
15
|
+
$helptext-font-size: rem-calc(13) !default;
|
16
|
+
|
17
|
+
/// Default font style for help text.
|
18
|
+
/// @type Keyword
|
19
|
+
$helptext-font-style: italic !default;
|
20
|
+
|
21
|
+
@mixin foundation-form-helptext {
|
22
|
+
.help-text {
|
23
|
+
$margin-top: ($form-spacing * 0.5) * -1;
|
24
|
+
|
25
|
+
margin-top: $margin-top;
|
26
|
+
font-size: $helptext-font-size;
|
27
|
+
font-style: $helptext-font-style;
|
28
|
+
color: $helptext-color;
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,135 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group forms
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Color of labels prefixed to an input.
|
10
|
+
/// @type Color
|
11
|
+
$input-prefix-color: $black !default;
|
12
|
+
|
13
|
+
/// Background color of labels prefixed to an input.
|
14
|
+
/// @type Color
|
15
|
+
$input-prefix-background: $light-gray !default;
|
16
|
+
|
17
|
+
/// Border around labels prefixed to an input.
|
18
|
+
/// @type Border
|
19
|
+
$input-prefix-border: 1px solid $medium-gray !default;
|
20
|
+
|
21
|
+
/// Left/right padding of an pre/postfixed input label
|
22
|
+
$input-prefix-padding: 1rem !default;
|
23
|
+
|
24
|
+
@mixin foundation-form-prepostfix {
|
25
|
+
$height: ($input-font-size + $form-spacing * 1.5);
|
26
|
+
|
27
|
+
.input-group {
|
28
|
+
display: if($global-flexbox, flex, table);
|
29
|
+
width: 100%;
|
30
|
+
margin-bottom: $form-spacing;
|
31
|
+
|
32
|
+
@if $global-flexbox {
|
33
|
+
align-items: stretch;
|
34
|
+
}
|
35
|
+
|
36
|
+
> :first-child {
|
37
|
+
border-radius: if($global-text-direction == rtl, 0 $input-radius $input-radius 0, $input-radius 0 0 $input-radius);
|
38
|
+
}
|
39
|
+
|
40
|
+
> :last-child {
|
41
|
+
> * {
|
42
|
+
border-radius: if($global-text-direction == rtl, $input-radius 0 0 $input-radius, 0 $input-radius $input-radius 0);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
%input-group-child {
|
48
|
+
margin: 0;
|
49
|
+
white-space: nowrap;
|
50
|
+
|
51
|
+
@if not $global-flexbox {
|
52
|
+
display: table-cell;
|
53
|
+
vertical-align: middle;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
|
57
|
+
.input-group-label {
|
58
|
+
@extend %input-group-child;
|
59
|
+
padding: 0 $input-prefix-padding;
|
60
|
+
border: $input-prefix-border;
|
61
|
+
background: $input-prefix-background;
|
62
|
+
|
63
|
+
color: $input-prefix-color;
|
64
|
+
text-align: center;
|
65
|
+
white-space: nowrap;
|
66
|
+
|
67
|
+
@if $global-flexbox {
|
68
|
+
display: flex;
|
69
|
+
flex: 0 0 auto;
|
70
|
+
align-items: center;
|
71
|
+
}
|
72
|
+
@else {
|
73
|
+
width: 1%;
|
74
|
+
height: 100%;
|
75
|
+
}
|
76
|
+
|
77
|
+
@if has-value($input-prefix-border) {
|
78
|
+
&:first-child {
|
79
|
+
border-#{$global-right}: 0;
|
80
|
+
}
|
81
|
+
|
82
|
+
&:last-child {
|
83
|
+
border-#{$global-left}: 0;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
.input-group-field {
|
89
|
+
@extend %input-group-child;
|
90
|
+
border-radius: 0;
|
91
|
+
|
92
|
+
@if $global-flexbox {
|
93
|
+
flex: 1 1 0px; // sass-lint:disable-line zero-unit
|
94
|
+
height: auto;
|
95
|
+
min-width: 0;
|
96
|
+
}
|
97
|
+
@else {
|
98
|
+
height: $height;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
.input-group-button {
|
103
|
+
@extend %input-group-child;
|
104
|
+
padding-top: 0;
|
105
|
+
padding-bottom: 0;
|
106
|
+
text-align: center;
|
107
|
+
|
108
|
+
@if $global-flexbox {
|
109
|
+
flex: 0 0 auto;
|
110
|
+
}
|
111
|
+
@else {
|
112
|
+
width: 1%;
|
113
|
+
height: 100%;
|
114
|
+
}
|
115
|
+
|
116
|
+
a,
|
117
|
+
input,
|
118
|
+
button,
|
119
|
+
label {
|
120
|
+
@extend %input-group-child;
|
121
|
+
height: $height;
|
122
|
+
padding-top: 0;
|
123
|
+
padding-bottom: 0;
|
124
|
+
|
125
|
+
font-size: $input-font-size;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
// Specificity bump needed to prevent override by buttons
|
130
|
+
@if not $global-flexbox {
|
131
|
+
.input-group .input-group-button {
|
132
|
+
display: table-cell;
|
133
|
+
}
|
134
|
+
}
|
135
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group forms
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Color for form labels.
|
10
|
+
/// @type Color
|
11
|
+
$form-label-color: $black !default;
|
12
|
+
|
13
|
+
/// Font size for form labels.
|
14
|
+
/// @type Number
|
15
|
+
$form-label-font-size: rem-calc(14) !default;
|
16
|
+
|
17
|
+
/// Font weight for form labels.
|
18
|
+
/// @type Keyword
|
19
|
+
$form-label-font-weight: $global-weight-normal !default;
|
20
|
+
|
21
|
+
/// Line height for form labels. The higher the number, the more space between the label and its input field.
|
22
|
+
/// @type Number
|
23
|
+
$form-label-line-height: 1.8 !default;
|
24
|
+
|
25
|
+
@mixin form-label {
|
26
|
+
display: block;
|
27
|
+
margin: 0;
|
28
|
+
|
29
|
+
font-size: $form-label-font-size;
|
30
|
+
font-weight: $form-label-font-weight;
|
31
|
+
line-height: $form-label-line-height;
|
32
|
+
color: $form-label-color;
|
33
|
+
}
|
34
|
+
|
35
|
+
@mixin form-label-middle {
|
36
|
+
$input-border-width: get-border-value($input-border, width);
|
37
|
+
|
38
|
+
margin: 0 0 $form-spacing;
|
39
|
+
padding: ($form-spacing / 2 + rem-calc($input-border-width)) 0;
|
40
|
+
}
|
41
|
+
|
42
|
+
@mixin foundation-form-label {
|
43
|
+
label {
|
44
|
+
@include form-label;
|
45
|
+
|
46
|
+
&.middle {
|
47
|
+
@include form-label-middle;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
@@ -0,0 +1,110 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group meter
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Height of a `<meter>` element.
|
10
|
+
/// @type Length
|
11
|
+
$meter-height: 1rem !default;
|
12
|
+
|
13
|
+
/// Border radius of a `<meter>` element.
|
14
|
+
/// @type Length
|
15
|
+
$meter-radius: $global-radius !default;
|
16
|
+
|
17
|
+
/// Background color of a `<meter>` element.
|
18
|
+
/// @type Color
|
19
|
+
$meter-background: $medium-gray !default;
|
20
|
+
|
21
|
+
/// Meter fill for an optimal value in a `<meter>` element.
|
22
|
+
/// @type Color
|
23
|
+
$meter-fill-good: $success-color !default;
|
24
|
+
|
25
|
+
/// Meter fill for an average value in a `<meter>` element.
|
26
|
+
/// @type Color
|
27
|
+
$meter-fill-medium: $warning-color !default;
|
28
|
+
|
29
|
+
/// Meter fill for a suboptimal value in a `<meter>` element.
|
30
|
+
/// @type Color
|
31
|
+
$meter-fill-bad: $alert-color !default;
|
32
|
+
|
33
|
+
@mixin foundation-meter-element {
|
34
|
+
meter {
|
35
|
+
display: block;
|
36
|
+
width: 100%;
|
37
|
+
height: $meter-height;
|
38
|
+
margin-bottom: 1rem;
|
39
|
+
|
40
|
+
appearance: none;
|
41
|
+
|
42
|
+
@if has-value($meter-radius) {
|
43
|
+
border-radius: $meter-radius;
|
44
|
+
}
|
45
|
+
|
46
|
+
// For Firefox
|
47
|
+
border: 0;
|
48
|
+
background: $meter-background;
|
49
|
+
|
50
|
+
// Chrome/Safari/Edge
|
51
|
+
&::-webkit-meter-bar {
|
52
|
+
border: 0;
|
53
|
+
@if has-value($meter-radius) {
|
54
|
+
border-radius: $meter-radius;
|
55
|
+
}
|
56
|
+
|
57
|
+
background: $meter-background;
|
58
|
+
}
|
59
|
+
|
60
|
+
&::-webkit-meter-inner-element {
|
61
|
+
@if has-value($meter-radius) {
|
62
|
+
border-radius: $meter-radius;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
&::-webkit-meter-optimum-value {
|
67
|
+
background: $meter-fill-good;
|
68
|
+
|
69
|
+
@if has-value($meter-radius) {
|
70
|
+
border-radius: $meter-radius;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
&::-webkit-meter-suboptimum-value {
|
75
|
+
background: $meter-fill-medium;
|
76
|
+
|
77
|
+
@if has-value($meter-radius) {
|
78
|
+
border-radius: $meter-radius;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
&::-webkit-meter-even-less-good-value {
|
83
|
+
background: $meter-fill-bad;
|
84
|
+
|
85
|
+
@if has-value($meter-radius) {
|
86
|
+
border-radius: $meter-radius;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
|
90
|
+
&::-moz-meter-bar {
|
91
|
+
background: $primary-color;
|
92
|
+
|
93
|
+
@if has-value($meter-radius) {
|
94
|
+
border-radius: $meter-radius;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
&:-moz-meter-optimum::-moz-meter-bar { // sass-lint:disable-line force-pseudo-nesting
|
99
|
+
background: $meter-fill-good;
|
100
|
+
}
|
101
|
+
|
102
|
+
&:-moz-meter-sub-optimum::-moz-meter-bar { // sass-lint:disable-line force-pseudo-nesting
|
103
|
+
background: $meter-fill-medium;
|
104
|
+
}
|
105
|
+
|
106
|
+
&:-moz-meter-sub-sub-optimum::-moz-meter-bar { // sass-lint:disable-line force-pseudo-nesting
|
107
|
+
background: $meter-fill-bad;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
@@ -0,0 +1,94 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group progress-bar
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Height of a progress bar.
|
10
|
+
/// @type Number
|
11
|
+
$progress-height: 1rem !default;
|
12
|
+
|
13
|
+
/// Background color of a progress bar.
|
14
|
+
/// @type Color
|
15
|
+
$progress-background: $medium-gray !default;
|
16
|
+
|
17
|
+
/// Bottom margin of a progress bar.
|
18
|
+
/// @type Number
|
19
|
+
$progress-margin-bottom: $global-margin !default;
|
20
|
+
|
21
|
+
/// Default color of a progress bar's meter.
|
22
|
+
/// @type Color
|
23
|
+
$progress-meter-background: $primary-color !default;
|
24
|
+
|
25
|
+
/// Default radius of a progress bar.
|
26
|
+
/// @type Number
|
27
|
+
$progress-radius: $global-radius !default;
|
28
|
+
|
29
|
+
@mixin foundation-progress-element {
|
30
|
+
progress {
|
31
|
+
display: block;
|
32
|
+
width: 100%;
|
33
|
+
height: $progress-height;
|
34
|
+
margin-bottom: $progress-margin-bottom;
|
35
|
+
|
36
|
+
appearance: none;
|
37
|
+
|
38
|
+
@if hasvalue($progress-radius) {
|
39
|
+
border-radius: $progress-radius;
|
40
|
+
}
|
41
|
+
|
42
|
+
// For Firefox
|
43
|
+
border: 0;
|
44
|
+
background: $progress-background;
|
45
|
+
|
46
|
+
&::-webkit-progress-bar {
|
47
|
+
background: $progress-background;
|
48
|
+
|
49
|
+
@if hasvalue($progress-radius) {
|
50
|
+
border-radius: $progress-radius;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
&::-webkit-progress-value {
|
55
|
+
background: $progress-meter-background;
|
56
|
+
|
57
|
+
@if hasvalue($progress-radius) {
|
58
|
+
border-radius: $progress-radius;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
&::-moz-progress-bar {
|
63
|
+
background: $progress-meter-background;
|
64
|
+
|
65
|
+
@if hasvalue($progress-radius) {
|
66
|
+
border-radius: $progress-radius;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
@each $name, $color in $foundation-palette {
|
71
|
+
&.#{$name} {
|
72
|
+
// Internet Explorer sets the fill with color
|
73
|
+
color: $color;
|
74
|
+
|
75
|
+
&::-webkit-progress-value {
|
76
|
+
background: $color;
|
77
|
+
}
|
78
|
+
|
79
|
+
&::-moz-progress-bar {
|
80
|
+
background: $color;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// For IE and Edge
|
86
|
+
&::-ms-fill {
|
87
|
+
@if hasvalue($progress-radius) {
|
88
|
+
border-radius: $progress-radius;
|
89
|
+
}
|
90
|
+
|
91
|
+
border: 0;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|