material-sass 1.4.1 → 4.0.0.alpha5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/Rakefile +61 -0
- data/app/assets/fonts/{MaterialIcons-Regular.eot → material-icons/MaterialIcons-Regular.eot} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.ijmap → material-icons/MaterialIcons-Regular.ijmap} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.svg → material-icons/MaterialIcons-Regular.svg} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.ttf → material-icons/MaterialIcons-Regular.ttf} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.woff → material-icons/MaterialIcons-Regular.woff} +0 -0
- data/app/assets/fonts/{MaterialIcons-Regular.woff2 → material-icons/MaterialIcons-Regular.woff2} +0 -0
- data/app/assets/fonts/{README.md → material-icons/README.md} +0 -0
- data/app/assets/fonts/{codepoints → material-icons/codepoints} +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Bold.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Light.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Medium.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Regular.woff2 +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.eot +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.ttf +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff +0 -0
- data/app/assets/fonts/roboto/Roboto-Thin.woff2 +0 -0
- data/app/assets/javascripts/material.js +739 -798
- data/app/assets/javascripts/material/addons-materialise/pickadate.js +139 -0
- data/app/assets/javascripts/material/addons-materialise/textarea-autosize.js +9 -0
- data/app/assets/javascripts/material/addons-materialise/wave.js +12 -0
- data/app/assets/javascripts/material/addons/pickadate.js +7 -0
- data/app/assets/javascripts/material/addons/textarea-autosize.js +5 -0
- data/app/assets/javascripts/material/{wave.js → addons/wave.js} +0 -10
- data/app/assets/javascripts/material/src/floating-label.js +91 -0
- data/app/assets/javascripts/material/src/navdrawer.js +352 -0
- data/app/assets/javascripts/material/src/tab-switch.js +136 -0
- data/app/assets/javascripts/material/src/util.js +138 -0
- data/app/assets/stylesheets/material.min.css +2 -2
- data/app/assets/stylesheets/material.scss +1 -1
- data/app/assets/stylesheets/material/_mixins.scss +21 -0
- data/app/assets/stylesheets/material/_utilities.scss +15 -0
- data/app/assets/stylesheets/material/_variables.scss +25 -0
- data/app/assets/stylesheets/material/base/_base.scss +482 -0
- data/app/assets/stylesheets/material/base/_grid.scss +28 -40
- data/app/assets/stylesheets/material/base/_typography.scss +208 -0
- data/app/assets/stylesheets/material/bootstrap/_alert.scss +55 -0
- data/app/assets/stylesheets/material/bootstrap/_animation.scss +26 -0
- data/app/assets/stylesheets/material/bootstrap/_breadcrumb.scss +39 -0
- data/app/assets/stylesheets/material/bootstrap/_button-group.scss +155 -0
- data/app/assets/stylesheets/material/bootstrap/_carousel.scss +234 -0
- data/app/assets/stylesheets/material/bootstrap/_close.scss +31 -0
- data/app/assets/stylesheets/material/bootstrap/_code.scss +50 -0
- data/app/assets/stylesheets/material/bootstrap/_custom-form.scss +69 -0
- data/app/assets/stylesheets/material/bootstrap/_form.scss +116 -0
- data/app/assets/stylesheets/material/bootstrap/_image.scss +25 -0
- data/app/assets/stylesheets/material/bootstrap/_jumbotron.scss +12 -0
- data/app/assets/stylesheets/material/bootstrap/_media.scss +69 -0
- data/app/assets/stylesheets/material/bootstrap/_nav.scss +118 -0
- data/app/assets/stylesheets/material/bootstrap/_pagination.scss +68 -0
- data/app/assets/stylesheets/material/bootstrap/_popover.scss +84 -0
- data/app/assets/stylesheets/material/bootstrap/_responsive-embed.scss +37 -0
- data/app/assets/stylesheets/material/material.scss +62 -0
- data/app/assets/stylesheets/material/material/_button-flat.scss +53 -0
- data/app/assets/stylesheets/material/material/_button-float.scss +29 -0
- data/app/assets/stylesheets/material/material/_button.scss +241 -0
- data/app/assets/stylesheets/material/material/_card.scss +286 -0
- data/app/assets/stylesheets/material/material/_chip.scss +93 -0
- data/app/assets/stylesheets/material/material/_data-table.scss +138 -0
- data/app/assets/stylesheets/material/material/_dialog.scss +147 -0
- data/app/assets/stylesheets/material/material/_expansion-panel.scss +292 -0
- data/app/assets/stylesheets/material/material/_menu.scss +281 -0
- data/app/assets/stylesheets/material/material/_navdrawer.scss +289 -0
- data/app/assets/stylesheets/material/material/_picker.scss +272 -0
- data/app/assets/stylesheets/material/material/_progress-circular.scss +144 -0
- data/app/assets/stylesheets/material/material/_progress.scss +174 -0
- data/app/assets/stylesheets/material/material/_selection-control.scss +221 -0
- data/app/assets/stylesheets/material/material/_stepper.scss +135 -0
- data/app/assets/stylesheets/material/material/_tab.scss +196 -0
- data/app/assets/stylesheets/material/material/_text-field-floating-label.scss +51 -0
- data/app/assets/stylesheets/material/material/_text-field-input-group.scss +76 -0
- data/app/assets/stylesheets/material/material/_text-field-textarea.scss +31 -0
- data/app/assets/stylesheets/material/material/_text-field.scss +179 -0
- data/app/assets/stylesheets/material/material/_toolbar.scss +516 -0
- data/app/assets/stylesheets/material/material/_tooltip.scss +86 -0
- data/app/assets/stylesheets/material/mixins/_background-variant.scss +14 -0
- data/app/assets/stylesheets/material/mixins/_border-radius.scss +34 -0
- data/app/assets/stylesheets/material/mixins/_breakpoint.scss +38 -0
- data/app/assets/stylesheets/material/mixins/_clearfix.scss +7 -0
- data/app/assets/stylesheets/material/mixins/_form.scss +60 -0
- data/app/assets/stylesheets/material/mixins/_grid.scss +149 -0
- data/app/assets/stylesheets/material/mixins/_hex-to-rgba.scss +3 -0
- data/app/assets/stylesheets/material/mixins/_hover.scss +70 -0
- data/app/assets/stylesheets/material/mixins/_image.scss +4 -0
- data/app/assets/stylesheets/material/mixins/_list.scss +4 -0
- data/app/assets/stylesheets/material/mixins/_nav-divider.scss +6 -0
- data/app/assets/stylesheets/material/mixins/_pull.scss +7 -0
- data/app/assets/stylesheets/material/mixins/_reset-text.scss +35 -0
- data/app/assets/stylesheets/material/mixins/_screenreader.scss +23 -0
- data/app/assets/stylesheets/material/mixins/_strip-unit.scss +3 -0
- data/app/assets/stylesheets/material/mixins/_tab-focus.scss +5 -0
- data/app/assets/stylesheets/material/mixins/_text-emphasis.scss +14 -0
- data/app/assets/stylesheets/material/mixins/_text-hide.scss +7 -0
- data/app/assets/stylesheets/material/mixins/_text-truncate.scss +5 -0
- data/app/assets/stylesheets/material/mixins/_transition.scss +55 -0
- data/app/assets/stylesheets/material/mixins/_typography.scss +69 -0
- data/app/assets/stylesheets/material/utilities/_align.scss +23 -0
- data/app/assets/stylesheets/material/utilities/_background.scss +23 -0
- data/app/assets/stylesheets/material/utilities/_border.scss +27 -0
- data/app/assets/stylesheets/material/utilities/_clearfix.scss +3 -0
- data/app/assets/stylesheets/material/utilities/_display.scss +11 -0
- data/app/assets/stylesheets/material/utilities/_float.scss +15 -0
- data/app/assets/stylesheets/material/utilities/_material-icons.scss +10 -0
- data/app/assets/stylesheets/material/utilities/_screenreader.scss +7 -0
- data/app/assets/stylesheets/material/utilities/_spacing.scss +65 -0
- data/app/assets/stylesheets/material/utilities/_text.scss +95 -0
- data/app/assets/stylesheets/material/utilities/_visibility.scss +50 -0
- data/app/assets/stylesheets/material/utilities/_waves.scss +48 -0
- data/app/assets/stylesheets/material/variables/_animation.scss +22 -0
- data/app/assets/stylesheets/material/variables/_colour.scss +389 -0
- data/app/assets/stylesheets/material/variables/_elevation-shadow.scss +84 -0
- data/app/assets/stylesheets/material/variables/_grid.scss +32 -0
- data/app/assets/stylesheets/material/variables/_spacer.scss +73 -0
- data/app/assets/stylesheets/material/variables/_typography.scss +72 -0
- data/app/assets/stylesheets/material/variables/_variable-bootstrap.scss +129 -0
- data/app/assets/stylesheets/material/variables/_variable-material.scss +434 -0
- data/lib/material-sass/engine.rb +3 -2
- data/lib/material-sass/version.rb +1 -1
- metadata +128 -70
- data/app/assets/javascripts/material.min.js +0 -2
- data/app/assets/javascripts/material/_.js +0 -6
- data/app/assets/javascripts/material/bootstrap.js +0 -6
- data/app/assets/javascripts/material/form-floating-label.js +0 -49
- data/app/assets/javascripts/material/form-textarea.js +0 -13
- data/app/assets/javascripts/material/header.js +0 -12
- data/app/assets/javascripts/material/menu.js +0 -200
- data/app/assets/javascripts/material/modal.js +0 -12
- data/app/assets/javascripts/material/picker.js +0 -141
- data/app/assets/javascripts/material/snackbar.js +0 -116
- data/app/assets/javascripts/material/tab.js +0 -51
- data/app/assets/javascripts/material/tile.js +0 -181
- data/app/assets/stylesheets/material/addons/_material-icons.scss +0 -9
- data/app/assets/stylesheets/material/addons/_waves.scss +0 -44
- data/app/assets/stylesheets/material/addons/material-icons/_core.scss +0 -20
- data/app/assets/stylesheets/material/addons/material-icons/_larger.scss +0 -23
- data/app/assets/stylesheets/material/addons/material-icons/_path.scss +0 -11
- data/app/assets/stylesheets/material/addons/material-icons/_variables.scss +0 -3
- data/app/assets/stylesheets/material/base.scss +0 -50
- data/app/assets/stylesheets/material/base/_reset.scss +0 -421
- data/app/assets/stylesheets/material/components/_avatar.scss +0 -59
- data/app/assets/stylesheets/material/components/_breadcrumb.scss +0 -26
- data/app/assets/stylesheets/material/components/_button-flat.scss +0 -22
- data/app/assets/stylesheets/material/components/_button-float.scss +0 -183
- data/app/assets/stylesheets/material/components/_button.scss +0 -81
- data/app/assets/stylesheets/material/components/_card.scss +0 -175
- data/app/assets/stylesheets/material/components/_code.scss +0 -53
- data/app/assets/stylesheets/material/components/_dropdown.scss +0 -99
- data/app/assets/stylesheets/material/components/_form-checkbox.scss +0 -161
- data/app/assets/stylesheets/material/components/_form-floating-label.scss +0 -64
- data/app/assets/stylesheets/material/components/_form-switch.scss +0 -96
- data/app/assets/stylesheets/material/components/_form-textarea.scss +0 -4
- data/app/assets/stylesheets/material/components/_form.scss +0 -217
- data/app/assets/stylesheets/material/components/_label.scss +0 -23
- data/app/assets/stylesheets/material/components/_modal.scss +0 -164
- data/app/assets/stylesheets/material/components/_nav.scss +0 -53
- data/app/assets/stylesheets/material/components/_picker.scss +0 -298
- data/app/assets/stylesheets/material/components/_progress-circular.scss +0 -169
- data/app/assets/stylesheets/material/components/_progress-loadbar.scss +0 -97
- data/app/assets/stylesheets/material/components/_progress.scss +0 -132
- data/app/assets/stylesheets/material/components/_snackbar.scss +0 -59
- data/app/assets/stylesheets/material/components/_stepper.scss +0 -201
- data/app/assets/stylesheets/material/components/_tab.scss +0 -84
- data/app/assets/stylesheets/material/components/_table.scss +0 -82
- data/app/assets/stylesheets/material/components/_tile.scss +0 -156
- data/app/assets/stylesheets/material/elements/_content.scss +0 -42
- data/app/assets/stylesheets/material/elements/_header.scss +0 -141
- data/app/assets/stylesheets/material/elements/_menu.scss +0 -267
- data/app/assets/stylesheets/material/mixin/_grid.scss +0 -78
- data/app/assets/stylesheets/material/mixin/_responsive.scss +0 -32
- data/app/assets/stylesheets/material/mixin/_utilities.scss +0 -69
- data/app/assets/stylesheets/material/utilities/_print.scss +0 -95
- data/app/assets/stylesheets/material/utilities/_utilities-responsive.scss +0 -97
- data/app/assets/stylesheets/material/utilities/_utilities.scss +0 -393
- data/app/assets/stylesheets/material/var/_colours.scss +0 -336
- data/app/assets/stylesheets/material/var/_variables.scss +0 -78
@@ -0,0 +1,221 @@
|
|
1
|
+
.custom-control {
|
2
|
+
cursor: pointer;
|
3
|
+
display: inline;
|
4
|
+
font-size: $font-size-base;
|
5
|
+
padding-left: ($selection-control-indicator-size / $font-size-root + $selection-control-spacer-x);
|
6
|
+
position: relative;
|
7
|
+
|
8
|
+
+ .custom-control {
|
9
|
+
margin-left: ($selection-control-spacer-x * 2);
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
.custom-control-indicator {
|
14
|
+
background-position: 50% 50%;
|
15
|
+
background-repeat: no-repeat;
|
16
|
+
background-size: $selection-control-indicator-size;
|
17
|
+
display: block;
|
18
|
+
height: $selection-control-indicator-size;
|
19
|
+
line-height: $selection-control-indicator-size;
|
20
|
+
position: absolute;
|
21
|
+
top: (($font-size-base - $selection-control-indicator-size / $font-size-root) / 2);
|
22
|
+
left: 0;
|
23
|
+
text-align: center;
|
24
|
+
user-select: none;
|
25
|
+
width: $selection-control-indicator-size;
|
26
|
+
|
27
|
+
&::before {
|
28
|
+
background-color: $selection-control-radial-bg;
|
29
|
+
border-radius: 50%;
|
30
|
+
content: "";
|
31
|
+
display: block;
|
32
|
+
height: ($selection-control-indicator-size * 2);
|
33
|
+
margin-top: ($selection-control-indicator-size / -2);
|
34
|
+
margin-left: ($selection-control-indicator-size / -2);
|
35
|
+
opacity: 0;
|
36
|
+
position: absolute;
|
37
|
+
top: 0;
|
38
|
+
left: 0;
|
39
|
+
width: ($selection-control-indicator-size * 2);
|
40
|
+
z-index: -1;
|
41
|
+
@include transition-standard(background-color, opacity, transform);
|
42
|
+
}
|
43
|
+
|
44
|
+
// active, focus, hover
|
45
|
+
&:active::before {
|
46
|
+
opacity: 1;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
.custom-control-input {
|
51
|
+
opacity: 0;
|
52
|
+
position: absolute;
|
53
|
+
z-index: -1;
|
54
|
+
|
55
|
+
// active, focus, hover
|
56
|
+
&:focus ~ .custom-control-indicator::before {
|
57
|
+
opacity: 1;
|
58
|
+
}
|
59
|
+
|
60
|
+
// checked
|
61
|
+
&:checked ~ .custom-control-indicator::before {
|
62
|
+
background-color: hex-to-rgba($selection-control-color-active, 0.12);
|
63
|
+
}
|
64
|
+
|
65
|
+
// disabled
|
66
|
+
&:disabled ~ {
|
67
|
+
.custom-control-indicator,
|
68
|
+
.custom-control-description {
|
69
|
+
color: $selection-control-color-disabled;
|
70
|
+
cursor: $cursor-disabled;
|
71
|
+
}
|
72
|
+
|
73
|
+
.custom-control-indicator {
|
74
|
+
pointer-events: none;
|
75
|
+
|
76
|
+
&::before {
|
77
|
+
display: none;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
// stacked layout
|
84
|
+
.custom-controls-stacked {
|
85
|
+
// .custom-control-indicator {
|
86
|
+
// // position
|
87
|
+
// top: (($font-size-base * $line-height-base - ($selection-control-indicator-size) / $font-size-root) / 2);
|
88
|
+
// }
|
89
|
+
.custom-control {
|
90
|
+
&::after {
|
91
|
+
content: "";
|
92
|
+
display: block;
|
93
|
+
margin-bottom: $selection-control-spacer-y;
|
94
|
+
}
|
95
|
+
|
96
|
+
&:last-child::after {
|
97
|
+
display: none;
|
98
|
+
}
|
99
|
+
|
100
|
+
+ .custom-control {
|
101
|
+
margin-left: 0;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
//
|
107
|
+
// checkbox
|
108
|
+
//
|
109
|
+
.custom-checkbox {
|
110
|
+
.custom-control-indicator {
|
111
|
+
background-image: $selection-control-checkbox-bg;
|
112
|
+
}
|
113
|
+
|
114
|
+
.custom-control-input {
|
115
|
+
// checked
|
116
|
+
&:checked ~ .custom-control-indicator {
|
117
|
+
background-image: $selection-control-checkbox-bg-checked;
|
118
|
+
}
|
119
|
+
|
120
|
+
// disabled
|
121
|
+
&:disabled {
|
122
|
+
~ .custom-control-indicator {
|
123
|
+
background-image: $selection-control-checkbox-bg-disabled;
|
124
|
+
}
|
125
|
+
|
126
|
+
&:checked ~ .custom-control-indicator {
|
127
|
+
background-image: $selection-control-checkbox-bg-disabled-checked;
|
128
|
+
}
|
129
|
+
}
|
130
|
+
|
131
|
+
// indeterminate
|
132
|
+
&:indeterminate ~ .custom-control-indicator {
|
133
|
+
background-image: $selection-control-checkbox-bg-indeterminate;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
//
|
139
|
+
// radio button
|
140
|
+
//
|
141
|
+
.custom-radio {
|
142
|
+
.custom-control-indicator {
|
143
|
+
background-image: $selection-control-radio-bg;
|
144
|
+
}
|
145
|
+
|
146
|
+
.custom-control-input {
|
147
|
+
// checked
|
148
|
+
&:checked ~ .custom-control-indicator {
|
149
|
+
background-image: $selection-control-radio-bg-checked;
|
150
|
+
}
|
151
|
+
|
152
|
+
// disabled
|
153
|
+
&:disabled {
|
154
|
+
~ .custom-control-indicator {
|
155
|
+
background-image: $selection-control-radio-bg-disabled;
|
156
|
+
}
|
157
|
+
|
158
|
+
&:checked ~ .custom-control-indicator {
|
159
|
+
background-image: $selection-control-radio-bg-disabled-checked;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
}
|
164
|
+
|
165
|
+
//
|
166
|
+
// switch
|
167
|
+
//
|
168
|
+
.custom-switch {
|
169
|
+
padding-left: ($selection-control-track-width / $font-size-root + $selection-control-spacer-x);
|
170
|
+
|
171
|
+
.custom-control-indicator {
|
172
|
+
background-clip: content-box;
|
173
|
+
background-color: $selection-control-track-bg;
|
174
|
+
border: (($selection-control-indicator-size - $selection-control-track-height) / 2) solid transparent;
|
175
|
+
border-radius: $selection-control-track-height;
|
176
|
+
width: $selection-control-track-width;
|
177
|
+
@include transition-standard(background-color);
|
178
|
+
|
179
|
+
&::after,
|
180
|
+
&::before {
|
181
|
+
// position
|
182
|
+
top: (($selection-control-indicator-size - $selection-control-track-height) / -2);
|
183
|
+
left: (($selection-control-indicator-size - $selection-control-track-height) / -2);
|
184
|
+
}
|
185
|
+
&::after {
|
186
|
+
background-color: $selection-control-thumb-bg;
|
187
|
+
border-radius: 50%;
|
188
|
+
box-shadow: $selection-control-thumb-shadow;
|
189
|
+
content: "";
|
190
|
+
display: block;
|
191
|
+
height: $selection-control-indicator-size;
|
192
|
+
position: absolute;
|
193
|
+
width: $selection-control-indicator-size;
|
194
|
+
@include transition-standard(background-color, transform);
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
.custom-control-input {
|
199
|
+
// checked
|
200
|
+
&:checked ~ .custom-control-indicator {
|
201
|
+
background-color: hex-to-rgba($selection-control-color-active, 0.5);
|
202
|
+
|
203
|
+
&::after,
|
204
|
+
&::before {
|
205
|
+
transform: translateX($selection-control-track-width - $selection-control-indicator-size);
|
206
|
+
}
|
207
|
+
&::after {
|
208
|
+
background-color: $selection-control-color-active;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
// disabled
|
213
|
+
&:disabled ~ .custom-control-indicator {
|
214
|
+
background-color: $selection-control-track-bg-disabled;
|
215
|
+
|
216
|
+
&::after {
|
217
|
+
background-color: $selection-control-thumb-bg-disabled;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
}
|
@@ -0,0 +1,135 @@
|
|
1
|
+
//
|
2
|
+
// todo: only non-clickable stepper is supported for now
|
3
|
+
//
|
4
|
+
|
5
|
+
.stepper {
|
6
|
+
align-items: center;
|
7
|
+
background-color: $stepper-bg;
|
8
|
+
display: flex;
|
9
|
+
flex-shrink: 0;
|
10
|
+
overflow: hidden;
|
11
|
+
padding: $stepper-padding-y $stepper-padding-x;
|
12
|
+
position: relative;
|
13
|
+
|
14
|
+
&::after,
|
15
|
+
&::before {
|
16
|
+
border-top: $stepper-border-width solid $stepper-border-color;
|
17
|
+
content: "";
|
18
|
+
display: block;
|
19
|
+
position: absolute;
|
20
|
+
}
|
21
|
+
|
22
|
+
&:first-child::before {
|
23
|
+
display: none;
|
24
|
+
}
|
25
|
+
|
26
|
+
&:last-child::after {
|
27
|
+
display: none;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
// variation
|
32
|
+
.stepper-horiz {
|
33
|
+
background-color: $stepper-bg;
|
34
|
+
display: flex;
|
35
|
+
justify-content: space-between;
|
36
|
+
overflow-x: auto;
|
37
|
+
overflow-y: hidden;
|
38
|
+
position: relative;
|
39
|
+
-webkit-overflow-scrolling: touch;
|
40
|
+
|
41
|
+
&:before {
|
42
|
+
border-top: $stepper-border-width solid $stepper-border-color;
|
43
|
+
content: "";
|
44
|
+
display: block;
|
45
|
+
position: absolute;
|
46
|
+
top: 50%;
|
47
|
+
right: $stepper-padding-x;
|
48
|
+
left: $stepper-padding-x;
|
49
|
+
}
|
50
|
+
|
51
|
+
.stepper {
|
52
|
+
&::after,
|
53
|
+
&::before {
|
54
|
+
border-top: $stepper-border-width solid $stepper-border-color;
|
55
|
+
// position
|
56
|
+
top: 50%;
|
57
|
+
width: ($stepper-padding-x - $stepper-inner-spacer);
|
58
|
+
}
|
59
|
+
&::after {
|
60
|
+
// position
|
61
|
+
right: 0;
|
62
|
+
}
|
63
|
+
&::before {
|
64
|
+
// position
|
65
|
+
left: 0;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
.stepper-vert {
|
71
|
+
background-color: $stepper-bg;
|
72
|
+
position: relative;
|
73
|
+
|
74
|
+
.stepper {
|
75
|
+
&::after,
|
76
|
+
&::before {
|
77
|
+
border-left: $stepper-border-width solid $stepper-border-color;
|
78
|
+
height: ($stepper-padding-y - $stepper-inner-spacer);
|
79
|
+
// position
|
80
|
+
left: ($stepper-icon-height / 2 + $stepper-padding-x);
|
81
|
+
}
|
82
|
+
&::after {
|
83
|
+
// position
|
84
|
+
bottom: 0;
|
85
|
+
}
|
86
|
+
&::before {
|
87
|
+
// position
|
88
|
+
top: 0;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
//
|
94
|
+
// misc
|
95
|
+
//
|
96
|
+
.stepper-icon {
|
97
|
+
background-color: $stepper-icon-bg;
|
98
|
+
border-radius: 50%;
|
99
|
+
color: $stepper-icon-color;
|
100
|
+
font-size: $stepper-icon-font-size;
|
101
|
+
font-weight: $stepper-icon-font-weight;
|
102
|
+
height: $stepper-icon-height;
|
103
|
+
line-height: $stepper-icon-height;
|
104
|
+
margin-right: $stepper-inner-spacer;
|
105
|
+
position: relative;
|
106
|
+
text-align: center;
|
107
|
+
vertical-align: middle;
|
108
|
+
width: $stepper-icon-height;
|
109
|
+
|
110
|
+
.stepper.active &,
|
111
|
+
.stepper.done & {
|
112
|
+
background-color: $stepper-icon-bg-active;
|
113
|
+
color: $stepper-icon-color-active;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
.stepper-text {
|
118
|
+
color: $stepper-text-color;
|
119
|
+
font-size: $stepper-text-font-size;
|
120
|
+
font-weight: $stepper-text-font-weight;
|
121
|
+
position: relative;
|
122
|
+
|
123
|
+
.stepper.active &,
|
124
|
+
.stepper.done & {
|
125
|
+
color: $stepper-text-color-active;
|
126
|
+
}
|
127
|
+
|
128
|
+
.stepper.active & {
|
129
|
+
font-weight: bolder;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
.stepper-text-sub {
|
134
|
+
font-weight: $font-weight-regular;
|
135
|
+
}
|
@@ -0,0 +1,196 @@
|
|
1
|
+
//
|
2
|
+
// todo: tabs with icons
|
3
|
+
//
|
4
|
+
|
5
|
+
.nav-tabs {
|
6
|
+
line-height: 0;
|
7
|
+
position: relative;
|
8
|
+
|
9
|
+
@if $enable-flex {
|
10
|
+
display: flex;
|
11
|
+
flex-wrap: none;
|
12
|
+
} @else {
|
13
|
+
letter-spacing: -0.25em;
|
14
|
+
white-space: nowrap;
|
15
|
+
}
|
16
|
+
|
17
|
+
.nav-item {
|
18
|
+
line-height: 0;
|
19
|
+
|
20
|
+
@if not $enable-flex {
|
21
|
+
display: inline-block;
|
22
|
+
letter-spacing: normal;
|
23
|
+
white-space: normal;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.nav-link {
|
28
|
+
color: inherit;
|
29
|
+
font-size: $nav-tab-link-font-size;
|
30
|
+
font-weight: $nav-tab-link-font-weight;
|
31
|
+
line-height: 1;
|
32
|
+
opacity: $nav-tab-link-opacity;
|
33
|
+
padding: (($nav-tab-link-height - $nav-tab-link-font-size * 2) / 2) $nav-tab-link-padding-x;
|
34
|
+
text-transform: uppercase;
|
35
|
+
@include transition-standard(background-color, opacity);
|
36
|
+
|
37
|
+
&::before {
|
38
|
+
background-color: $nav-tab-indicator-bg;
|
39
|
+
content: "";
|
40
|
+
display: block;
|
41
|
+
height: $nav-tab-indicator-height;
|
42
|
+
opacity: 0;
|
43
|
+
position: absolute;
|
44
|
+
right: 0;
|
45
|
+
bottom: 0;
|
46
|
+
left: 0;
|
47
|
+
@include transition-standard(opacity);
|
48
|
+
}
|
49
|
+
|
50
|
+
@if $enable-flex {
|
51
|
+
align-items: center;
|
52
|
+
display: flex;
|
53
|
+
height: 100%;
|
54
|
+
justify-content: center;
|
55
|
+
min-height: $nav-tab-link-height;
|
56
|
+
} @else {
|
57
|
+
display: table-cell;
|
58
|
+
height: $nav-tab-link-height;
|
59
|
+
text-align: center;
|
60
|
+
vertical-align: middle;
|
61
|
+
}
|
62
|
+
|
63
|
+
@include media-breakpoint-up(lg) {
|
64
|
+
padding-right: $nav-tab-link-padding-x-lg;
|
65
|
+
padding-left: $nav-tab-link-padding-x-lg;
|
66
|
+
}
|
67
|
+
|
68
|
+
// active, focus, hover
|
69
|
+
@include active-focus-hover {
|
70
|
+
background-color: $nav-link-bg-active;
|
71
|
+
}
|
72
|
+
|
73
|
+
&:active,
|
74
|
+
&.active {
|
75
|
+
opacity: 1;
|
76
|
+
}
|
77
|
+
|
78
|
+
&.active {
|
79
|
+
&::before {
|
80
|
+
opacity: 1;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
// disabled
|
85
|
+
&.disabled {
|
86
|
+
background-color: transparent;
|
87
|
+
color: $nav-link-color-disabled;
|
88
|
+
opacity: 1;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
.nav-tabs-material {
|
94
|
+
.nav-link {
|
95
|
+
&::before {
|
96
|
+
transition: none;
|
97
|
+
}
|
98
|
+
|
99
|
+
// active, focus, hover
|
100
|
+
&.active::before {
|
101
|
+
transition-delay: $transition-duration;
|
102
|
+
transition-duration: 0s;
|
103
|
+
transition-property: opacity;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
}
|
107
|
+
|
108
|
+
// variation
|
109
|
+
.nav-tabs-bordered {
|
110
|
+
box-shadow: 0 1px 0 $nav-tab-border-color;
|
111
|
+
}
|
112
|
+
|
113
|
+
.nav-tabs-centered {
|
114
|
+
@if $enable-flex {
|
115
|
+
justify-content: center;
|
116
|
+
} @else {
|
117
|
+
text-align: center;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.nav-tabs-fixed {
|
122
|
+
@if $enable-flex {
|
123
|
+
.nav-item {
|
124
|
+
flex-basis: 0;
|
125
|
+
flex-grow: 1;
|
126
|
+
min-width: $nav-tab-link-min-width;
|
127
|
+
@include media-breakpoint-up(lg) {
|
128
|
+
min-width: $nav-tab-link-min-width-lg;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
} @else {
|
132
|
+
letter-spacing: normal;
|
133
|
+
width: 100%;
|
134
|
+
|
135
|
+
.nav-item {
|
136
|
+
display: table-cell;
|
137
|
+
min-width: $nav-tab-link-min-width;
|
138
|
+
width: 1%;
|
139
|
+
}
|
140
|
+
|
141
|
+
.nav-link {
|
142
|
+
max-width: 100%;
|
143
|
+
width: 99999px;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
.nav-link {
|
148
|
+
@include text-truncate;
|
149
|
+
}
|
150
|
+
}
|
151
|
+
|
152
|
+
.nav-tabs-scrollable {
|
153
|
+
overflow-x: auto;
|
154
|
+
overflow-y: hidden;
|
155
|
+
-webkit-overflow-scrolling: touch;
|
156
|
+
|
157
|
+
.nav-link {
|
158
|
+
max-width: $nav-tab-link-max-width;
|
159
|
+
@include text-truncate;
|
160
|
+
|
161
|
+
@if $enable-flex {
|
162
|
+
min-width: $nav-tab-link-min-width;
|
163
|
+
@include media-breakpoint-up(lg) {
|
164
|
+
min-width: $nav-tab-link-min-width-lg;
|
165
|
+
}
|
166
|
+
} @else {
|
167
|
+
width: $nav-tab-link-min-width;
|
168
|
+
@include media-breakpoint-up(lg) {
|
169
|
+
width: $nav-tab-link-min-width-lg;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
//
|
176
|
+
// indicator
|
177
|
+
//
|
178
|
+
.nav-tabs-indicator {
|
179
|
+
background-color: $nav-tab-indicator-bg;
|
180
|
+
height: $nav-tab-indicator-height;
|
181
|
+
display: none;
|
182
|
+
position: absolute;
|
183
|
+
bottom: 0;
|
184
|
+
|
185
|
+
&.animate {
|
186
|
+
transition: left ($transition-duration / 2) $transition-timing-function-standard ($transition-duration / 2), right $transition-duration $transition-timing-function-standard;
|
187
|
+
|
188
|
+
&.reverse {
|
189
|
+
transition: left $transition-duration $transition-timing-function-standard, right ($transition-duration / 2) $transition-timing-function-standard ($transition-duration / 2);
|
190
|
+
}
|
191
|
+
}
|
192
|
+
|
193
|
+
&.in {
|
194
|
+
display: block;
|
195
|
+
}
|
196
|
+
}
|