jekyll-theme-foundation 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/_includes/google-analytics.html +8 -0
- data/_includes/head.html +17 -0
- data/_includes/scripts.html +4 -0
- data/_layouts/default.html +16 -0
- data/_layouts/home.html +5 -0
- data/_layouts/page.html +5 -0
- data/_layouts/post.html +5 -0
- data/_sass/_vendor/normalize-scss/sass/_normalize.scss +3 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_import-now.scss +11 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_normalize-mixin.scss +676 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_variables.scss +36 -0
- data/_sass/_vendor/normalize-scss/sass/normalize/_vertical-rhythm.scss +61 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
- data/_sass/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
- data/_sass/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
- data/_sass/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
- data/_sass/assets/foundation-float.scss +5 -0
- data/_sass/assets/foundation-prototype.scss +3 -0
- data/_sass/assets/foundation-rtl.scss +5 -0
- data/_sass/assets/foundation.scss +3 -0
- data/_sass/jekyll-theme-foundation.scss +5 -0
- data/_sass/scss/_global.scss +249 -0
- data/_sass/scss/components/_accordion-menu.scss +171 -0
- data/_sass/scss/components/_accordion.scss +155 -0
- data/_sass/scss/components/_badge.scss +63 -0
- data/_sass/scss/components/_breadcrumbs.scss +117 -0
- data/_sass/scss/components/_button-group.scss +253 -0
- data/_sass/scss/components/_button.scss +385 -0
- data/_sass/scss/components/_callout.scss +106 -0
- data/_sass/scss/components/_card.scss +129 -0
- data/_sass/scss/components/_close-button.scss +102 -0
- data/_sass/scss/components/_drilldown.scss +142 -0
- data/_sass/scss/components/_dropdown-menu.scss +274 -0
- data/_sass/scss/components/_dropdown.scss +79 -0
- data/_sass/scss/components/_flex-video.scss +1 -0
- data/_sass/scss/components/_flex.scss +117 -0
- data/_sass/scss/components/_float.scss +27 -0
- data/_sass/scss/components/_label.scss +64 -0
- data/_sass/scss/components/_media-object.scss +114 -0
- data/_sass/scss/components/_menu-icon.scss +9 -0
- data/_sass/scss/components/_menu.scss +495 -0
- data/_sass/scss/components/_off-canvas.scss +506 -0
- data/_sass/scss/components/_orbit.scss +196 -0
- data/_sass/scss/components/_pagination.scss +193 -0
- data/_sass/scss/components/_progress-bar.scss +64 -0
- data/_sass/scss/components/_responsive-embed.scss +70 -0
- data/_sass/scss/components/_reveal.scss +180 -0
- data/_sass/scss/components/_slider.scss +137 -0
- data/_sass/scss/components/_sticky.scss +39 -0
- data/_sass/scss/components/_switch.scss +247 -0
- data/_sass/scss/components/_table.scss +330 -0
- data/_sass/scss/components/_tabs.scss +196 -0
- data/_sass/scss/components/_thumbnail.scss +67 -0
- data/_sass/scss/components/_title-bar.scss +84 -0
- data/_sass/scss/components/_tooltip.scss +160 -0
- data/_sass/scss/components/_top-bar.scss +175 -0
- data/_sass/scss/components/_visibility.scss +132 -0
- data/_sass/scss/forms/_checkbox.scss +41 -0
- data/_sass/scss/forms/_error.scss +88 -0
- data/_sass/scss/forms/_fieldset.scss +53 -0
- data/_sass/scss/forms/_forms.scss +34 -0
- data/_sass/scss/forms/_help-text.scss +30 -0
- data/_sass/scss/forms/_input-group.scss +142 -0
- data/_sass/scss/forms/_label.scss +50 -0
- data/_sass/scss/forms/_meter.scss +116 -0
- data/_sass/scss/forms/_progress.scss +94 -0
- data/_sass/scss/forms/_range.scss +149 -0
- data/_sass/scss/forms/_select.scss +86 -0
- data/_sass/scss/forms/_text.scss +179 -0
- data/_sass/scss/foundation.scss +133 -0
- data/_sass/scss/grid/_classes.scss +176 -0
- data/_sass/scss/grid/_column.scss +112 -0
- data/_sass/scss/grid/_flex-grid.scss +259 -0
- data/_sass/scss/grid/_grid.scss +48 -0
- data/_sass/scss/grid/_gutter.scss +82 -0
- data/_sass/scss/grid/_layout.scss +76 -0
- data/_sass/scss/grid/_position.scss +76 -0
- data/_sass/scss/grid/_row.scss +99 -0
- data/_sass/scss/grid/_size.scss +24 -0
- data/_sass/scss/prototype/_arrow.scss +36 -0
- data/_sass/scss/prototype/_border-box.scss +35 -0
- data/_sass/scss/prototype/_border-none.scss +35 -0
- data/_sass/scss/prototype/_bordered.scss +54 -0
- data/_sass/scss/prototype/_box.scss +23 -0
- data/_sass/scss/prototype/_display.scss +50 -0
- data/_sass/scss/prototype/_font-styling.scss +95 -0
- data/_sass/scss/prototype/_list-style-type.scss +95 -0
- data/_sass/scss/prototype/_overflow.scss +72 -0
- data/_sass/scss/prototype/_position.scss +114 -0
- data/_sass/scss/prototype/_prototype.scss +87 -0
- data/_sass/scss/prototype/_relation.scss +157 -0
- data/_sass/scss/prototype/_rotate.scss +31 -0
- data/_sass/scss/prototype/_rounded.scss +54 -0
- data/_sass/scss/prototype/_separator.scss +96 -0
- data/_sass/scss/prototype/_shadow.scss +43 -0
- data/_sass/scss/prototype/_sizing.scss +73 -0
- data/_sass/scss/prototype/_spacing.scss +204 -0
- data/_sass/scss/prototype/_text-decoration.scss +48 -0
- data/_sass/scss/prototype/_text-transformation.scss +48 -0
- data/_sass/scss/prototype/_text-utilities.scss +88 -0
- data/_sass/scss/settings/_settings.scss +869 -0
- data/_sass/scss/typography/_alignment.scss +22 -0
- data/_sass/scss/typography/_base.scss +509 -0
- data/_sass/scss/typography/_helpers.scss +80 -0
- data/_sass/scss/typography/_print.scss +86 -0
- data/_sass/scss/typography/_typography.scss +26 -0
- data/_sass/scss/util/_breakpoint.scss +348 -0
- data/_sass/scss/util/_color.scss +129 -0
- data/_sass/scss/util/_direction.scss +31 -0
- data/_sass/scss/util/_flex.scss +85 -0
- data/_sass/scss/util/_math.scss +72 -0
- data/_sass/scss/util/_mixins.scss +313 -0
- data/_sass/scss/util/_selector.scss +41 -0
- data/_sass/scss/util/_typography.scss +26 -0
- data/_sass/scss/util/_unit.scss +152 -0
- data/_sass/scss/util/_util.scss +14 -0
- data/_sass/scss/util/_value.scss +160 -0
- data/_sass/scss/xy-grid/_cell.scss +169 -0
- data/_sass/scss/xy-grid/_classes.scss +476 -0
- data/_sass/scss/xy-grid/_collapse.scss +74 -0
- data/_sass/scss/xy-grid/_frame.scss +85 -0
- data/_sass/scss/xy-grid/_grid.scss +35 -0
- data/_sass/scss/xy-grid/_gutters.scss +45 -0
- data/_sass/scss/xy-grid/_layout.scss +33 -0
- data/_sass/scss/xy-grid/_position.scss +28 -0
- data/_sass/scss/xy-grid/_xy-grid.scss +51 -0
- data/assets/css/main.scss +5 -0
- data/assets/css/motion-ui.min.css +1 -0
- data/assets/js/foundation.min.js +5 -0
- data/assets/js/motion-ui.min.js +1 -0
- metadata +235 -0
@@ -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
|
+
}
|
@@ -0,0 +1,149 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group slider
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Default height of the slider.
|
10
|
+
/// @type Number
|
11
|
+
$slider-height: 0.5rem !default;
|
12
|
+
|
13
|
+
/// Default background color of the slider's track.
|
14
|
+
/// @type Color
|
15
|
+
$slider-background: $light-gray !default;
|
16
|
+
|
17
|
+
/// Default color of the active fill color of the slider.
|
18
|
+
/// @type Color
|
19
|
+
$slider-fill-background: $medium-gray !default;
|
20
|
+
|
21
|
+
/// Default height of the handle of the slider.
|
22
|
+
/// @type Number
|
23
|
+
$slider-handle-height: 1.4rem !default;
|
24
|
+
|
25
|
+
/// Default width of the handle of the slider.
|
26
|
+
/// @type Number
|
27
|
+
$slider-handle-width: 1.4rem !default;
|
28
|
+
|
29
|
+
/// Default color of the handle for the slider.
|
30
|
+
/// @type Color
|
31
|
+
$slider-handle-background: $primary-color !default;
|
32
|
+
|
33
|
+
/// Default fade amount of a disabled slider.
|
34
|
+
/// @type Number
|
35
|
+
$slider-opacity-disabled: 0.25 !default;
|
36
|
+
|
37
|
+
/// Default radius for slider.
|
38
|
+
/// @type Number
|
39
|
+
$slider-radius: $global-radius !default;
|
40
|
+
|
41
|
+
@mixin foundation-range-input {
|
42
|
+
input[type="range"] { // sass-lint:disable-line no-qualifying-elements
|
43
|
+
$margin: ($slider-handle-height - $slider-height) / 2;
|
44
|
+
|
45
|
+
display: block;
|
46
|
+
width: 100%;
|
47
|
+
height: auto;
|
48
|
+
margin-top: $margin;
|
49
|
+
margin-bottom: $margin;
|
50
|
+
|
51
|
+
appearance: none;
|
52
|
+
border: 0;
|
53
|
+
line-height: 1;
|
54
|
+
cursor: pointer;
|
55
|
+
|
56
|
+
@if has-value($slider-radius) {
|
57
|
+
border-radius: $slider-radius;
|
58
|
+
}
|
59
|
+
|
60
|
+
&:focus {
|
61
|
+
outline: 0;
|
62
|
+
}
|
63
|
+
|
64
|
+
&[disabled] {
|
65
|
+
opacity: $slider-opacity-disabled;
|
66
|
+
}
|
67
|
+
|
68
|
+
// sass-lint:disable no-vendor-prefix
|
69
|
+
|
70
|
+
// Chrome/Safari
|
71
|
+
&::-webkit-slider-runnable-track {
|
72
|
+
height: $slider-height;
|
73
|
+
background: $slider-background;
|
74
|
+
}
|
75
|
+
|
76
|
+
&::-webkit-slider-handle {
|
77
|
+
width: $slider-handle-width;
|
78
|
+
height: $slider-handle-height;
|
79
|
+
margin-top: -$margin;
|
80
|
+
|
81
|
+
-webkit-appearance: none;
|
82
|
+
background: $slider-handle-background;
|
83
|
+
|
84
|
+
@if has-value($slider-radius) {
|
85
|
+
border-radius: $slider-radius;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
89
|
+
// Firefox
|
90
|
+
&::-moz-range-track {
|
91
|
+
height: $slider-height;
|
92
|
+
-moz-appearance: none;
|
93
|
+
background: $slider-background;
|
94
|
+
}
|
95
|
+
|
96
|
+
&::-moz-range-thumb {
|
97
|
+
width: $slider-handle-width;
|
98
|
+
height: $slider-handle-height;
|
99
|
+
margin-top: -$margin;
|
100
|
+
|
101
|
+
-moz-appearance: none;
|
102
|
+
background: $slider-handle-background;
|
103
|
+
|
104
|
+
@if has-value($slider-radius) {
|
105
|
+
border-radius: $slider-radius;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
|
109
|
+
// Internet Explorer
|
110
|
+
&::-ms-track {
|
111
|
+
height: $slider-height;
|
112
|
+
|
113
|
+
border: 0;
|
114
|
+
border-top: $margin solid $body-background;
|
115
|
+
border-bottom: $margin solid $body-background;
|
116
|
+
background: $slider-background;
|
117
|
+
|
118
|
+
overflow: visible;
|
119
|
+
color: transparent;
|
120
|
+
}
|
121
|
+
|
122
|
+
&::-ms-thumb {
|
123
|
+
width: $slider-handle-width;
|
124
|
+
height: $slider-handle-height;
|
125
|
+
border: 0;
|
126
|
+
background: $slider-handle-background;
|
127
|
+
|
128
|
+
@if has-value($slider-radius) {
|
129
|
+
border-radius: $slider-radius;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
&::-ms-fill-lower {
|
134
|
+
background: $slider-fill-background;
|
135
|
+
}
|
136
|
+
|
137
|
+
&::-ms-fill-upper {
|
138
|
+
background: $slider-background;
|
139
|
+
}
|
140
|
+
|
141
|
+
@at-root {
|
142
|
+
output {
|
143
|
+
vertical-align: middle;
|
144
|
+
margin-left: 0.5em;
|
145
|
+
line-height: $slider-handle-height;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
149
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group forms
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Background color for select menus.
|
10
|
+
/// @type Color
|
11
|
+
$select-background: $white !default;
|
12
|
+
|
13
|
+
/// Color of the dropdown triangle inside select menus. Set to `transparent` to remove it entirely.
|
14
|
+
/// @type Color
|
15
|
+
$select-triangle-color: $dark-gray !default;
|
16
|
+
|
17
|
+
/// Default radius for select menus.
|
18
|
+
/// @type Color
|
19
|
+
$select-radius: $global-radius !default;
|
20
|
+
|
21
|
+
@mixin form-select {
|
22
|
+
$height: ($input-font-size * unitless-calc($input-line-height)) + (get-side($input-padding, 'top') + get-side($input-padding, 'bottom')) - rem-calc(1);
|
23
|
+
|
24
|
+
height: $height;
|
25
|
+
margin: 0 0 $form-spacing;
|
26
|
+
padding: $input-padding;
|
27
|
+
|
28
|
+
appearance: none;
|
29
|
+
border: $input-border;
|
30
|
+
border-radius: $select-radius;
|
31
|
+
background-color: $select-background;
|
32
|
+
|
33
|
+
font-family: $input-font-family;
|
34
|
+
font-size: $input-font-size;
|
35
|
+
font-weight: $input-font-weight;
|
36
|
+
line-height: $input-line-height;
|
37
|
+
color: $input-color;
|
38
|
+
|
39
|
+
@if $select-triangle-color != transparent {
|
40
|
+
@include background-triangle($select-triangle-color);
|
41
|
+
background-origin: content-box;
|
42
|
+
background-position: $global-right (-$form-spacing) center;
|
43
|
+
background-repeat: no-repeat;
|
44
|
+
background-size: 9px 6px;
|
45
|
+
|
46
|
+
padding-#{$global-right}: ($form-spacing * 1.5);
|
47
|
+
}
|
48
|
+
|
49
|
+
@if has-value($input-transition) {
|
50
|
+
transition: $input-transition;
|
51
|
+
}
|
52
|
+
|
53
|
+
// Focus state
|
54
|
+
&:focus {
|
55
|
+
outline: none;
|
56
|
+
border: $input-border-focus;
|
57
|
+
background-color: $input-background-focus;
|
58
|
+
box-shadow: $input-shadow-focus;
|
59
|
+
|
60
|
+
@if has-value($input-transition) {
|
61
|
+
transition: $input-transition;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
// Disabled state
|
66
|
+
&:disabled {
|
67
|
+
background-color: $input-background-disabled;
|
68
|
+
cursor: $input-cursor-disabled;
|
69
|
+
}
|
70
|
+
|
71
|
+
// Hide the dropdown arrow shown in newer IE versions
|
72
|
+
&::-ms-expand {
|
73
|
+
display: none;
|
74
|
+
}
|
75
|
+
|
76
|
+
&[multiple] {
|
77
|
+
height: auto;
|
78
|
+
background-image: none;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin foundation-form-select {
|
83
|
+
select {
|
84
|
+
@include form-select;
|
85
|
+
}
|
86
|
+
}
|
@@ -0,0 +1,179 @@
|
|
1
|
+
// Foundation for Sites by ZURB
|
2
|
+
// foundation.zurb.com
|
3
|
+
// Licensed under MIT Open Source
|
4
|
+
|
5
|
+
////
|
6
|
+
/// @group forms
|
7
|
+
////
|
8
|
+
|
9
|
+
/// Font color of text inputs.
|
10
|
+
/// @type Color
|
11
|
+
$input-color: $black !default;
|
12
|
+
|
13
|
+
/// Font color of placeholder text within text inputs.
|
14
|
+
/// @type Color
|
15
|
+
$input-placeholder-color: $medium-gray !default;
|
16
|
+
|
17
|
+
/// Font family of text inputs.
|
18
|
+
/// @type Font
|
19
|
+
$input-font-family: inherit !default;
|
20
|
+
|
21
|
+
/// Font size of text inputs.
|
22
|
+
/// @type Number
|
23
|
+
$input-font-size: rem-calc(16) !default;
|
24
|
+
|
25
|
+
/// Font weight of text inputs.
|
26
|
+
/// @type Keyword
|
27
|
+
$input-font-weight: $global-weight-normal !default;
|
28
|
+
|
29
|
+
/// Line height of text inputs.
|
30
|
+
/// @type Keyword
|
31
|
+
$input-line-height: $global-lineheight !default;
|
32
|
+
|
33
|
+
/// Background color of text inputs.
|
34
|
+
/// @type Color
|
35
|
+
$input-background: $white !default;
|
36
|
+
|
37
|
+
/// Background color of focused of text inputs.
|
38
|
+
/// @type Color
|
39
|
+
$input-background-focus: $white !default;
|
40
|
+
|
41
|
+
/// Background color of disabled text inputs.
|
42
|
+
/// @type Color
|
43
|
+
$input-background-disabled: $light-gray !default;
|
44
|
+
|
45
|
+
/// Border around text inputs.
|
46
|
+
/// @type Border
|
47
|
+
$input-border: 1px solid $medium-gray !default;
|
48
|
+
|
49
|
+
/// Border around focused text inputs.
|
50
|
+
/// @type Color
|
51
|
+
$input-border-focus: 1px solid $dark-gray !default;
|
52
|
+
|
53
|
+
/// Padding of text inputs.
|
54
|
+
/// @type Color
|
55
|
+
$input-padding: $form-spacing / 2 !default;
|
56
|
+
|
57
|
+
/// Box shadow inside text inputs when not focused.
|
58
|
+
/// @type Shadow
|
59
|
+
$input-shadow: inset 0 1px 2px rgba($black, 0.1) !default;
|
60
|
+
|
61
|
+
/// Box shadow outside text inputs when focused.
|
62
|
+
/// @type Shadow
|
63
|
+
$input-shadow-focus: 0 0 5px $medium-gray !default;
|
64
|
+
|
65
|
+
/// Cursor to use when hovering over a disabled text input.
|
66
|
+
/// @type Cursor
|
67
|
+
$input-cursor-disabled: not-allowed !default;
|
68
|
+
|
69
|
+
/// Properties to transition on text inputs.
|
70
|
+
/// @type Transition
|
71
|
+
$input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out !default;
|
72
|
+
|
73
|
+
/// Enables the up/down buttons that Chrome and Firefox add to `<input type='number'>` elements.
|
74
|
+
/// @type Boolean
|
75
|
+
$input-number-spinners: true !default;
|
76
|
+
|
77
|
+
/// Radius for text inputs.
|
78
|
+
/// @type Border
|
79
|
+
$input-radius: $global-radius !default;
|
80
|
+
|
81
|
+
/// Border radius for form buttons, defaulted to global-radius.
|
82
|
+
/// @type Number
|
83
|
+
$form-button-radius: $global-radius !default;
|
84
|
+
|
85
|
+
@mixin form-element {
|
86
|
+
$height: ($input-font-size * unitless-calc($input-line-height)) + (get-side($input-padding, 'top') + get-side($input-padding, 'bottom')) - rem-calc(1);
|
87
|
+
|
88
|
+
display: block;
|
89
|
+
box-sizing: border-box;
|
90
|
+
width: 100%;
|
91
|
+
height: $height;
|
92
|
+
margin: 0 0 $form-spacing;
|
93
|
+
padding: $input-padding;
|
94
|
+
|
95
|
+
border: $input-border;
|
96
|
+
border-radius: $input-radius;
|
97
|
+
background-color: $input-background;
|
98
|
+
box-shadow: $input-shadow;
|
99
|
+
|
100
|
+
font-family: $input-font-family;
|
101
|
+
font-size: $input-font-size;
|
102
|
+
font-weight: $input-font-weight;
|
103
|
+
line-height: $input-line-height;
|
104
|
+
color: $input-color;
|
105
|
+
|
106
|
+
@if has-value($input-transition) {
|
107
|
+
transition: $input-transition;
|
108
|
+
}
|
109
|
+
|
110
|
+
// Focus state
|
111
|
+
&:focus {
|
112
|
+
outline: none;
|
113
|
+
border: $input-border-focus;
|
114
|
+
background-color: $input-background-focus;
|
115
|
+
box-shadow: $input-shadow-focus;
|
116
|
+
|
117
|
+
@if has-value($input-transition) {
|
118
|
+
transition: $input-transition;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
@mixin foundation-form-text {
|
124
|
+
// Text inputs
|
125
|
+
#{text-inputs()},
|
126
|
+
textarea {
|
127
|
+
@include form-element;
|
128
|
+
appearance: none;
|
129
|
+
}
|
130
|
+
|
131
|
+
// Text areas
|
132
|
+
textarea {
|
133
|
+
max-width: 100%;
|
134
|
+
|
135
|
+
&[rows] {
|
136
|
+
height: auto;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
input,
|
141
|
+
textarea {
|
142
|
+
// Placeholder text
|
143
|
+
&::placeholder {
|
144
|
+
color: $input-placeholder-color;
|
145
|
+
}
|
146
|
+
|
147
|
+
// Disabled/readonly state
|
148
|
+
&:disabled,
|
149
|
+
&[readonly] {
|
150
|
+
background-color: $input-background-disabled;
|
151
|
+
cursor: $input-cursor-disabled;
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
// Reset styles on button-like inputs
|
156
|
+
[type='submit'],
|
157
|
+
[type='button'] {
|
158
|
+
appearance: none;
|
159
|
+
border-radius: $form-button-radius;
|
160
|
+
}
|
161
|
+
|
162
|
+
// Reset Normalize setting content-box to search elements
|
163
|
+
input[type='search'] { // sass-lint:disable-line no-qualifying-elements
|
164
|
+
box-sizing: border-box;
|
165
|
+
}
|
166
|
+
|
167
|
+
// Number input styles
|
168
|
+
[type='number'] {
|
169
|
+
@if not $input-number-spinners {
|
170
|
+
-moz-appearance: textfield; // sass-lint:disable-line no-vendor-prefix
|
171
|
+
|
172
|
+
&::-webkit-inner-spin-button,
|
173
|
+
&::-webkit-outer-spin-button {
|
174
|
+
-webkit-appearance: none; // sass-lint:disable-line no-vendor-prefix
|
175
|
+
margin: 0;
|
176
|
+
}
|
177
|
+
}
|
178
|
+
}
|
179
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
/**
|
2
|
+
* Foundation for Sites by ZURB
|
3
|
+
* Version 6.4.3
|
4
|
+
* foundation.zurb.com
|
5
|
+
* Licensed under MIT Open Source
|
6
|
+
*/
|
7
|
+
|
8
|
+
// Dependencies
|
9
|
+
@import '../_vendor/normalize-scss/sass/normalize';
|
10
|
+
@import '../_vendor/sassy-lists/stylesheets/helpers/missing-dependencies';
|
11
|
+
@import '../_vendor/sassy-lists/stylesheets/helpers/true';
|
12
|
+
@import '../_vendor/sassy-lists/stylesheets/functions/contain';
|
13
|
+
@import '../_vendor/sassy-lists/stylesheets/functions/purge';
|
14
|
+
@import '../_vendor/sassy-lists/stylesheets/functions/remove';
|
15
|
+
@import '../_vendor/sassy-lists/stylesheets/functions/replace';
|
16
|
+
@import '../_vendor/sassy-lists/stylesheets/functions/to-list';
|
17
|
+
|
18
|
+
// Settings
|
19
|
+
// import your own `settings` here or
|
20
|
+
// import and modify the default settings through
|
21
|
+
// @import 'settings/settings';
|
22
|
+
|
23
|
+
// Sass utilities
|
24
|
+
@import 'util/util';
|
25
|
+
|
26
|
+
// Global variables and styles
|
27
|
+
@import 'global';
|
28
|
+
|
29
|
+
// Components
|
30
|
+
@import 'grid/grid';
|
31
|
+
@import 'xy-grid/xy-grid';
|
32
|
+
@import 'typography/typography';
|
33
|
+
@import 'forms/forms';
|
34
|
+
@import 'components/visibility';
|
35
|
+
@import 'components/float';
|
36
|
+
@import 'components/button';
|
37
|
+
@import 'components/button-group';
|
38
|
+
@import 'components/accordion-menu';
|
39
|
+
@import 'components/accordion';
|
40
|
+
@import 'components/badge';
|
41
|
+
@import 'components/breadcrumbs';
|
42
|
+
@import 'components/callout';
|
43
|
+
@import 'components/card';
|
44
|
+
@import 'components/close-button';
|
45
|
+
@import 'components/drilldown';
|
46
|
+
@import 'components/dropdown-menu';
|
47
|
+
@import 'components/dropdown';
|
48
|
+
@import 'components/flex';
|
49
|
+
@import 'components/responsive-embed';
|
50
|
+
@import 'components/label';
|
51
|
+
@import 'components/media-object';
|
52
|
+
@import 'components/menu';
|
53
|
+
@import 'components/menu-icon';
|
54
|
+
@import 'components/off-canvas';
|
55
|
+
@import 'components/orbit';
|
56
|
+
@import 'components/pagination';
|
57
|
+
@import 'components/progress-bar';
|
58
|
+
@import 'components/reveal';
|
59
|
+
@import 'components/slider';
|
60
|
+
@import 'components/sticky';
|
61
|
+
@import 'components/switch';
|
62
|
+
@import 'components/table';
|
63
|
+
@import 'components/tabs';
|
64
|
+
@import 'components/title-bar';
|
65
|
+
@import 'components/top-bar';
|
66
|
+
@import 'components/thumbnail';
|
67
|
+
@import 'components/tooltip';
|
68
|
+
@import 'prototype/prototype';
|
69
|
+
|
70
|
+
@mixin foundation-everything(
|
71
|
+
$flex: true,
|
72
|
+
$prototype: false
|
73
|
+
) {
|
74
|
+
@if $flex {
|
75
|
+
$global-flexbox: true !global;
|
76
|
+
}
|
77
|
+
|
78
|
+
@include foundation-global-styles;
|
79
|
+
@if not $flex {
|
80
|
+
@include foundation-grid;
|
81
|
+
}
|
82
|
+
@else {
|
83
|
+
@if $xy-grid {
|
84
|
+
@include foundation-xy-grid-classes;
|
85
|
+
}
|
86
|
+
@else {
|
87
|
+
@include foundation-flex-grid;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
@include foundation-typography;
|
91
|
+
@include foundation-forms;
|
92
|
+
@include foundation-button;
|
93
|
+
@include foundation-accordion;
|
94
|
+
@include foundation-accordion-menu;
|
95
|
+
@include foundation-badge;
|
96
|
+
@include foundation-breadcrumbs;
|
97
|
+
@include foundation-button-group;
|
98
|
+
@include foundation-callout;
|
99
|
+
@include foundation-card;
|
100
|
+
@include foundation-close-button;
|
101
|
+
@include foundation-menu;
|
102
|
+
@include foundation-menu-icon;
|
103
|
+
@include foundation-drilldown-menu;
|
104
|
+
@include foundation-dropdown;
|
105
|
+
@include foundation-dropdown-menu;
|
106
|
+
@include foundation-responsive-embed;
|
107
|
+
@include foundation-label;
|
108
|
+
@include foundation-media-object;
|
109
|
+
@include foundation-off-canvas;
|
110
|
+
@include foundation-orbit;
|
111
|
+
@include foundation-pagination;
|
112
|
+
@include foundation-progress-bar;
|
113
|
+
@include foundation-slider;
|
114
|
+
@include foundation-sticky;
|
115
|
+
@include foundation-reveal;
|
116
|
+
@include foundation-switch;
|
117
|
+
@include foundation-table;
|
118
|
+
@include foundation-tabs;
|
119
|
+
@include foundation-thumbnail;
|
120
|
+
@include foundation-title-bar;
|
121
|
+
@include foundation-tooltip;
|
122
|
+
@include foundation-top-bar;
|
123
|
+
@include foundation-visibility-classes;
|
124
|
+
@include foundation-float-classes;
|
125
|
+
|
126
|
+
@if $flex {
|
127
|
+
@include foundation-flex-classes;
|
128
|
+
}
|
129
|
+
|
130
|
+
@if $prototype {
|
131
|
+
@include foundation-prototype-classes;
|
132
|
+
}
|
133
|
+
}
|