@expressivecss/expressive 0.1.0-alpha.3 → 0.2.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.
- package/LICENSE +82 -2
- package/README.md +153 -43
- package/dist/css/expressive.css +7121 -9658
- package/dist/css/expressive.css.map +1 -0
- package/dist/css/expressive.min.css +1 -1
- package/dist/css/expressive.min.css.map +1 -0
- package/dist/js/expressive.cjs +7521 -0
- package/dist/js/expressive.cjs.map +7 -0
- package/dist/js/expressive.js +7383 -8099
- package/dist/js/expressive.js.map +7 -1
- package/dist/js/expressive.min.js +75 -1
- package/dist/js/expressive.min.js.map +7 -1
- package/dist/js/expressive.mjs +7292 -7998
- package/dist/js/expressive.mjs.map +7 -1
- package/dist/types/behaviors/dialogs.d.ts +25 -0
- package/dist/{js → types}/components/autocomplete.d.ts +10 -1
- package/dist/{js → types}/components/buttons.d.ts +11 -1
- package/dist/{js → types}/components/cards.d.ts +10 -1
- package/dist/{js → types}/components/carousel.d.ts +4 -5
- package/dist/{js/forms/character-counter.d.ts → types/components/characterCounter.d.ts} +1 -1
- package/dist/{js → types}/components/chips.d.ts +1 -1
- package/dist/{js → types}/components/collapsible.d.ts +1 -1
- package/dist/{js → types}/components/datepicker.d.ts +63 -2
- package/dist/{js → types}/components/dropdown.d.ts +3 -3
- package/dist/types/components/index.d.ts +23 -0
- package/dist/{js/components/materialbox.d.ts → types/components/lightbox.d.ts} +21 -21
- package/dist/{js → types}/components/modal.d.ts +1 -1
- package/dist/{js → types}/components/parallax.d.ts +11 -5
- package/dist/{js → types}/components/pushpin.d.ts +1 -1
- package/dist/{js/forms → types/components}/range.d.ts +3 -3
- package/dist/types/components/registry.d.ts +107 -0
- package/dist/{js → types}/components/scrollspy.d.ts +6 -9
- package/dist/{js/forms → types/components}/select.d.ts +11 -2
- package/dist/{js → types}/components/sidenav.d.ts +1 -1
- package/dist/{js → types}/components/slider.d.ts +3 -2
- package/dist/{js → types}/components/tabs.d.ts +3 -2
- package/dist/{js/components/tap-target.d.ts → types/components/tapTarget.d.ts} +2 -2
- package/dist/{js → types}/components/timepicker.d.ts +13 -5
- package/dist/{js/components/toast.d.ts → types/components/toasts.d.ts} +28 -4
- package/dist/{js → types}/components/tooltip.d.ts +2 -2
- package/dist/types/core/bounding.d.ts +6 -0
- package/dist/{js/foundation → types/core}/component.d.ts +1 -1
- package/dist/types/core/edges.d.ts +6 -0
- package/dist/{js/foundation → types/core}/utils.d.ts +21 -14
- package/dist/types/index.d.ts +7 -0
- package/dist/{js/plugins/docked-display.d.ts → types/plugins/dockedDisplayPlugin.d.ts} +7 -0
- package/package.json +60 -36
- package/src/sass/README.md +200 -0
- package/src/sass/abstracts/_breakpoints.scss +69 -0
- package/src/sass/abstracts/_elevation.scss +34 -0
- package/src/sass/abstracts/_index.scss +7 -0
- package/src/sass/abstracts/_mixins.scss +171 -0
- package/src/sass/abstracts/_variables.scss +57 -0
- package/src/{scss/layout/_table.scss → sass/base/_global.scss} +64 -2
- package/src/{scss/layout → sass/base}/_grid.scss +6 -6
- package/src/sass/base/_index.scss +6 -0
- package/src/{scss/foundation → sass/base}/_normalize.scss +51 -139
- package/src/sass/base/_typography.scss +90 -0
- package/src/sass/components/_badges.scss +77 -0
- package/src/{scss → sass}/components/_breadcrumb.scss +2 -0
- package/src/sass/components/_buttons.scss +407 -0
- package/src/sass/components/_cards.scss +328 -0
- package/src/{scss → sass}/components/_carousel.scss +5 -3
- package/src/sass/components/_chips.scss +140 -0
- package/src/sass/components/_collapsible.scss +81 -0
- package/src/{scss → sass}/components/_collection.scss +2 -2
- package/src/{scss/components/_date-picker.scss → sass/components/_datepicker.scss} +51 -44
- package/src/sass/components/_docked-display.scss +11 -0
- package/src/sass/components/_dropdown.scss +129 -0
- package/src/{scss/components/_material-icons.scss → sass/components/_icons-material-design.scss} +2 -0
- package/src/sass/components/_index.scss +35 -0
- package/src/{scss/components/_material-box.scss → sass/components/_lightbox.scss} +6 -4
- package/src/sass/components/_modal.scss +208 -0
- package/src/sass/components/_navbar.scss +345 -0
- package/src/{scss/layout/_footer.scss → sass/components/_page-footer.scss} +7 -6
- package/src/{scss → sass}/components/_pagination.scss +4 -3
- package/src/{scss → sass}/components/_parallax.scss +4 -1
- package/src/{scss → sass}/components/_preloader.scss +19 -97
- package/src/{scss → sass}/components/_pulse.scss +2 -0
- package/src/sass/components/_pushpin.scss +11 -0
- package/src/{scss → sass}/components/_sidenav.scss +99 -82
- package/src/{scss → sass}/components/_slider.scss +3 -1
- package/src/{scss/components/_table-of-contents.scss → sass/components/_table_of_contents.scss} +2 -0
- package/src/sass/components/_tabs.scss +232 -0
- package/src/{scss/components/_tap-target.scss → sass/components/_tapTarget.scss} +24 -22
- package/src/{scss/components/_time-picker.scss → sass/components/_timepicker.scss} +56 -56
- package/src/sass/components/_toast.scss +260 -0
- package/src/sass/components/_toolbar.scss +192 -0
- package/src/sass/components/_tooltip.scss +166 -0
- package/src/{scss → sass}/components/_transitions.scss +4 -4
- package/src/sass/components/forms/_checkboxes.scss +288 -0
- package/src/sass/components/forms/_fieldset.scss +128 -0
- package/src/{scss → sass/components}/forms/_file-input.scss +11 -9
- package/src/{scss → sass/components}/forms/_index.scss +2 -0
- package/src/sass/components/forms/_input-fields.scss +326 -0
- package/src/sass/components/forms/_radio-buttons.scss +190 -0
- package/src/sass/components/forms/_range.scss +310 -0
- package/src/sass/components/forms/_select.scss +103 -0
- package/src/sass/components/forms/_switches.scss +239 -0
- package/src/sass/expressive.scss +60 -0
- package/src/sass/tokens/_index.scss +4 -0
- package/src/sass/tokens/_reference.scss +265 -0
- package/src/sass/tokens/_theme.scss +49 -0
- package/src/sass/utilities/_helpers.scss +63 -0
- package/src/sass/utilities/_index.scss +8 -0
- package/src/{scss → sass}/utilities/_spacing.scss +4 -3
- package/src/sass/utilities/_typescale.scss +45 -0
- package/src/sass/utilities/_visibility.scss +63 -0
- package/src/sass/utilities/_z-depth.scss +18 -0
- package/dist/js/components/index.d.ts +0 -21
- package/dist/js/forms/index.d.ts +0 -4
- package/dist/js/foundation/index.d.ts +0 -2
- package/dist/js/index.d.ts +0 -52
- package/dist/js/plugins/index.d.ts +0 -1
- package/src/scss/components/_appbar.scss +0 -454
- package/src/scss/components/_badges.scss +0 -77
- package/src/scss/components/_buttons.scss +0 -412
- package/src/scss/components/_cards.scss +0 -267
- package/src/scss/components/_chips.scss +0 -147
- package/src/scss/components/_collapsible.scss +0 -84
- package/src/scss/components/_dropdown.scss +0 -98
- package/src/scss/components/_index.scss +0 -28
- package/src/scss/components/_modal.scss +0 -84
- package/src/scss/components/_tabs.scss +0 -176
- package/src/scss/components/_toast.scss +0 -70
- package/src/scss/components/_tooltip.scss +0 -49
- package/src/scss/components/_video.scss +0 -15
- package/src/scss/expressive.scss +0 -7
- package/src/scss/forms/_checkboxes.scss +0 -199
- package/src/scss/forms/_input-fields.scss +0 -360
- package/src/scss/forms/_radio-buttons.scss +0 -114
- package/src/scss/forms/_range.scss +0 -148
- package/src/scss/forms/_select.scss +0 -108
- package/src/scss/forms/_switches.scss +0 -127
- package/src/scss/foundation/_base.scss +0 -71
- package/src/scss/foundation/_color-palette.scss +0 -402
- package/src/scss/foundation/_index.scss +0 -10
- package/src/scss/foundation/_mixins.scss +0 -198
- package/src/scss/foundation/_motion.scss +0 -70
- package/src/scss/foundation/_shape.scss +0 -30
- package/src/scss/foundation/_state-layers.scss +0 -68
- package/src/scss/foundation/_theme.scss +0 -238
- package/src/scss/foundation/_tokens.scss +0 -511
- package/src/scss/foundation/_variables.scss +0 -57
- package/src/scss/layout/_index.scss +0 -3
- package/src/scss/utilities/_a11y.scss +0 -77
- package/src/scss/utilities/_elevation.scss +0 -63
- package/src/scss/utilities/_helpers.scss +0 -50
- package/src/scss/utilities/_index.scss +0 -7
- package/src/scss/utilities/_responsive.scss +0 -62
- package/src/scss/utilities/_typography.scss +0 -115
- /package/dist/{js/forms → types/behaviors}/forms.d.ts +0 -0
- /package/dist/{js/components → types/behaviors}/waves.d.ts +0 -0
- /package/src/{scss → sass}/utilities/_colors.scss +0 -0
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
// Remove default Radio Buttons
|
|
2
|
-
[type="radio"] {
|
|
3
|
-
&:not(:checked),
|
|
4
|
-
&:checked {
|
|
5
|
-
position: absolute;
|
|
6
|
-
opacity: 0;
|
|
7
|
-
pointer-events: none;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
&:not(:checked) + span,
|
|
11
|
-
&:checked + span {
|
|
12
|
-
position: relative;
|
|
13
|
-
padding-left: 35px;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
display: inline-block;
|
|
16
|
-
height: 25px;
|
|
17
|
-
line-height: 25px;
|
|
18
|
-
font-size: 1rem;
|
|
19
|
-
transition: .28s ease;
|
|
20
|
-
user-select: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
+ span:before,
|
|
24
|
-
+ span:after {
|
|
25
|
-
content: '';
|
|
26
|
-
position: absolute;
|
|
27
|
-
left: 0;
|
|
28
|
-
top: 0;
|
|
29
|
-
margin: 4px;
|
|
30
|
-
width: 16px;
|
|
31
|
-
height: 16px;
|
|
32
|
-
z-index: 0;
|
|
33
|
-
transition: .28s ease;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Unchecked styles */
|
|
37
|
-
&:not(:checked) + span:before,
|
|
38
|
-
&:not(:checked) + span:after,
|
|
39
|
-
&:checked + span:before,
|
|
40
|
-
&:checked + span:after,
|
|
41
|
-
&.with-gap:checked + span:before,
|
|
42
|
-
&.with-gap:checked + span:after {
|
|
43
|
-
border-radius: 50%;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
&:not(:checked) + span:before,
|
|
47
|
-
&:not(:checked) + span:after {
|
|
48
|
-
border: 2px solid var(--md-sys-color-on-surface-variant);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&:not(:checked) + span:after {
|
|
52
|
-
transform: scale(0);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* Checked styles */
|
|
56
|
-
&:checked + span:before {
|
|
57
|
-
border: 2px solid transparent;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
&:checked + span:after,
|
|
61
|
-
&.with-gap:checked + span:before,
|
|
62
|
-
&.with-gap:checked + span:after {
|
|
63
|
-
border: 2px solid var(--md-sys-color-primary);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
&:checked + span:after,
|
|
67
|
-
&.with-gap:checked + span:after {
|
|
68
|
-
background-color: var(--md-sys-color-primary);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
&:checked + span:after {
|
|
72
|
-
transform: scale(1.02);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* Radio With gap */
|
|
76
|
-
&.with-gap:checked + span:after {
|
|
77
|
-
transform: scale(.5);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* Focused styles */
|
|
81
|
-
&.tabbed:focus + span:before {
|
|
82
|
-
box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* Disabled Radio With gap */
|
|
86
|
-
&.with-gap:disabled:checked + span:before {
|
|
87
|
-
border: 2px solid var(--md-sys-color-on-surface);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
&.with-gap:disabled:checked + span:after {
|
|
91
|
-
border: none;
|
|
92
|
-
background-color: var(--md-sys-color-on-surface);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* Disabled style */
|
|
96
|
-
&:disabled:not(:checked) + span:before,
|
|
97
|
-
&:disabled:checked + span:before {
|
|
98
|
-
background-color: transparent;
|
|
99
|
-
border-color: var(--md-sys-color-on-surface);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
&:disabled + span {
|
|
103
|
-
color: var(--md-sys-color-on-surface);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
&:disabled:not(:checked) + span:before {
|
|
107
|
-
border-color: var(--md-sys-color-on-surface);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&:disabled:checked + span:after {
|
|
111
|
-
background-color: var(--md-sys-color-on-surface);
|
|
112
|
-
border-color: var(--md-sys-color-on-surface);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
@use '../utilities/colors' as *;
|
|
2
|
-
@use '../utilities/helpers' as *;
|
|
3
|
-
|
|
4
|
-
.range-field {
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
input[type=range] {
|
|
9
|
-
@extend .no-select;
|
|
10
|
-
cursor: pointer;
|
|
11
|
-
position: relative;
|
|
12
|
-
background: linear-gradient(var(--md-sys-color-outline-variant), var(--md-sys-color-outline-variant));
|
|
13
|
-
border: none;
|
|
14
|
-
outline: none;
|
|
15
|
-
width: 100%;
|
|
16
|
-
margin: 15px 0;
|
|
17
|
-
padding: 0;
|
|
18
|
-
height: 3px;
|
|
19
|
-
appearance: none;
|
|
20
|
-
-webkit-appearance: none;
|
|
21
|
-
|
|
22
|
-
&:focus {
|
|
23
|
-
outline: none;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
+ .thumb {
|
|
27
|
-
@extend .no-select;
|
|
28
|
-
cursor: pointer;
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: 10px;
|
|
31
|
-
left: 0;
|
|
32
|
-
border: none;
|
|
33
|
-
height: 0;
|
|
34
|
-
width: 0;
|
|
35
|
-
border-radius: 50%;
|
|
36
|
-
background-color: var(--md-sys-color-primary);
|
|
37
|
-
margin-left: 7px;
|
|
38
|
-
|
|
39
|
-
transform-origin: 50% 50%;
|
|
40
|
-
transform: rotate(-45deg);
|
|
41
|
-
|
|
42
|
-
.value {
|
|
43
|
-
display: block;
|
|
44
|
-
width: 30px;
|
|
45
|
-
text-align: center;
|
|
46
|
-
color: var(--md-sys-color-primary);
|
|
47
|
-
font-size: 0;
|
|
48
|
-
transform: rotate(45deg);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
&.active {
|
|
52
|
-
border-radius: 50% 50% 50% 0;
|
|
53
|
-
|
|
54
|
-
.value {
|
|
55
|
-
color: var(--md-sys-color-on-primary);
|
|
56
|
-
margin-left: -1px;
|
|
57
|
-
margin-top: 8px;
|
|
58
|
-
font-size: 10px;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Shared
|
|
65
|
-
@mixin range-track {
|
|
66
|
-
height: 3px;
|
|
67
|
-
@extend .surface-variant;
|
|
68
|
-
border: none;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
@mixin range-thumb {
|
|
72
|
-
border: none;
|
|
73
|
-
height: 14px;
|
|
74
|
-
width: 14px;
|
|
75
|
-
border-radius: 50%;
|
|
76
|
-
background: var(--md-sys-color-primary);
|
|
77
|
-
transition: box-shadow .3s;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
// WebKit
|
|
81
|
-
input[type=range]::-webkit-slider-runnable-track {
|
|
82
|
-
@include range-track;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
input[type=range]::-webkit-slider-thumb {
|
|
86
|
-
@include range-thumb;
|
|
87
|
-
-webkit-appearance: none;
|
|
88
|
-
background-color: var(--md-sys-color-primary);
|
|
89
|
-
transform-origin: 50% 50%;
|
|
90
|
-
margin: -5px 0 0 0;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.keyboard-focused input[type=range]:focus:not(.active)::-webkit-slider-thumb {
|
|
94
|
-
box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// FireFox
|
|
98
|
-
input[type=range]::-moz-range-track {
|
|
99
|
-
@include range-track;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
input[type=range]::-moz-focus-inner {
|
|
103
|
-
border: 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
input[type=range]::-moz-range-thumb {
|
|
107
|
-
@include range-thumb;
|
|
108
|
-
margin-top: -5px;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// hide the outline behind the border
|
|
112
|
-
input[type=range]:-moz-focusring {
|
|
113
|
-
outline: 1px solid #fff;
|
|
114
|
-
outline-offset: -1px;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.keyboard-focused input[type=range]:focus:not(.active)::-moz-range-thumb {
|
|
118
|
-
box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
//------------------------------- Remove this?
|
|
122
|
-
// IE 10+
|
|
123
|
-
input[type=range]::-ms-track {
|
|
124
|
-
height: 3px;
|
|
125
|
-
// remove bg colour from the track, we'll use ms-fill-lower and ms-fill-upper instead
|
|
126
|
-
background: transparent;
|
|
127
|
-
// leave room for the larger thumb to overflow with a transparent border */
|
|
128
|
-
border-color: transparent;
|
|
129
|
-
border-width: 6px 0;
|
|
130
|
-
/*remove default tick marks*/
|
|
131
|
-
color: transparent;
|
|
132
|
-
}
|
|
133
|
-
input[type=range]::-ms-fill-lower,
|
|
134
|
-
input[type=range]::-moz-range-progress {
|
|
135
|
-
background: var(--md-sys-color-primary);
|
|
136
|
-
}
|
|
137
|
-
input[type=range]::-ms-fill-upper,
|
|
138
|
-
input[type=range]::-moz-range-track {
|
|
139
|
-
background: var(--md-sys-color-shadow-light);
|
|
140
|
-
}
|
|
141
|
-
input[type=range]::-ms-thumb {
|
|
142
|
-
@include range-thumb;
|
|
143
|
-
}
|
|
144
|
-
//--------------------------------
|
|
145
|
-
|
|
146
|
-
.keyboard-focused input[type=range]:focus:not(.active)::-ms-thumb {
|
|
147
|
-
box-shadow: 0 0 0 10px rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
148
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
@use '../foundation/variables' as *;
|
|
2
|
-
|
|
3
|
-
select {
|
|
4
|
-
background-color: var(--md-sys-color-surface);
|
|
5
|
-
width: 100%;
|
|
6
|
-
padding: 5px;
|
|
7
|
-
border: 1px solid var(--md-sys-color-outline-variant);
|
|
8
|
-
border-radius: 2px;
|
|
9
|
-
height: 3rem;
|
|
10
|
-
|
|
11
|
-
// TODO: Change to ".select" and not use tag name directly
|
|
12
|
-
// Keep selects useable without javascript
|
|
13
|
-
|
|
14
|
-
&.browser-default {
|
|
15
|
-
opacity: 1;
|
|
16
|
-
color: var(--md-sys-color-on-background);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:disabled {
|
|
20
|
-
color: var(--md-sys-color-on-surface);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.select-wrapper {
|
|
25
|
-
position: relative;
|
|
26
|
-
|
|
27
|
-
&:focus-within {
|
|
28
|
-
outline: 2px solid var(--md-sys-color-primary);
|
|
29
|
-
border-radius: 4px;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.caret {
|
|
33
|
-
position: absolute;
|
|
34
|
-
right: 0;
|
|
35
|
-
top: 0;
|
|
36
|
-
bottom: 0;
|
|
37
|
-
margin: auto 0;
|
|
38
|
-
z-index: 0;
|
|
39
|
-
fill: var(--md-sys-color-on-background);
|
|
40
|
-
pointer-events: none;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Hide select with overflow hidden instead of using display none
|
|
44
|
-
// (this prevents form validation errors with hidden form elements)
|
|
45
|
-
.hide-select {
|
|
46
|
-
width: 0;
|
|
47
|
-
height: 0;
|
|
48
|
-
overflow: hidden;
|
|
49
|
-
position: absolute;
|
|
50
|
-
top: 0;
|
|
51
|
-
z-index: -1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
&.disabled {
|
|
55
|
-
+ label {
|
|
56
|
-
color: var(--md-sys-color-on-surface);
|
|
57
|
-
}
|
|
58
|
-
.caret {
|
|
59
|
-
fill: var(--md-sys-color-on-surface);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
input.select-dropdown:disabled {
|
|
64
|
-
color: var(--md-sys-color-on-surface);
|
|
65
|
-
cursor: default;
|
|
66
|
-
user-select: none;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
i {
|
|
70
|
-
color: var(--md-sys-color-on-surface);
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.select-dropdown {
|
|
75
|
-
li {
|
|
76
|
-
&.disabled,
|
|
77
|
-
&.disabled > span,
|
|
78
|
-
&.optgroup {
|
|
79
|
-
color: var(--md-sys-color-on-surface);
|
|
80
|
-
//background-color: transparent;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
// Icons
|
|
84
|
-
img {
|
|
85
|
-
height: $dropdown-item-height - 10;
|
|
86
|
-
width: $dropdown-item-height - 10;
|
|
87
|
-
margin: 5px 15px;
|
|
88
|
-
float: right;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// Optgroup styles
|
|
92
|
-
&.optgroup {
|
|
93
|
-
border-top: 1px solid rgba(0, 0, 0, 0.04);
|
|
94
|
-
|
|
95
|
-
&.selected > span {
|
|
96
|
-
color: var(--md-sys-color-on-background);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
& > span {
|
|
100
|
-
color: var(--md-sys-color-on-surface-variant);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
& ~ li.optgroup-option {
|
|
104
|
-
padding-left: 1rem;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
@use '../utilities/colors' as *;
|
|
2
|
-
|
|
3
|
-
.switch {
|
|
4
|
-
--track-height: 32px;
|
|
5
|
-
--track-width: 52px;
|
|
6
|
-
--border-width: 2px;
|
|
7
|
-
--size-off: 16px;
|
|
8
|
-
--size-on: 24px;
|
|
9
|
-
--icon-size: 16px;
|
|
10
|
-
--gap-on: calc(((var(--track-height) - var(--size-on)) / 2) - var(--border-width));
|
|
11
|
-
--gap-off: calc(((var(--track-height) - var(--size-off)) / 2) - var(--border-width));
|
|
12
|
-
|
|
13
|
-
&, & * {
|
|
14
|
-
-webkit-tap-highlight-color: transparent;
|
|
15
|
-
user-select: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
label {
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
|
|
21
|
-
input[type=checkbox] {
|
|
22
|
-
opacity: 0;
|
|
23
|
-
width: 0;
|
|
24
|
-
height: 0;
|
|
25
|
-
|
|
26
|
-
// CHECKED
|
|
27
|
-
// Track
|
|
28
|
-
&:checked + .lever {
|
|
29
|
-
background-color: var(--md-sys-color-primary);
|
|
30
|
-
border-color: var(--md-sys-color-primary);
|
|
31
|
-
|
|
32
|
-
// Dot
|
|
33
|
-
&:before, &:after {
|
|
34
|
-
top: var(--gap-on);
|
|
35
|
-
left: calc(var(--track-width) - var(--size-on) - var(--gap-on) - 2 * var(--border-width));
|
|
36
|
-
width: var(--size-on);
|
|
37
|
-
height: var(--size-on);
|
|
38
|
-
}
|
|
39
|
-
&:after {
|
|
40
|
-
@extend .surface;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
// Disabled Styles
|
|
45
|
-
&[disabled] + .lever {
|
|
46
|
-
cursor: default;
|
|
47
|
-
opacity: 0.5;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
// Interaction states (non-disabled)
|
|
51
|
-
&:not(:disabled) {
|
|
52
|
-
~ .lever:active:before,
|
|
53
|
-
&.tabbed:focus ~ .lever::before,
|
|
54
|
-
~ .lever:hover::before {
|
|
55
|
-
transform: scale(2.4);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
// Unchecked hover
|
|
59
|
-
~ .lever:hover::before {
|
|
60
|
-
background-color: rgba(0, 0, 0, 0.04);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Unchecked active/focus
|
|
64
|
-
~ .lever:active:before,
|
|
65
|
-
&.tabbed:focus ~ .lever::before {
|
|
66
|
-
background-color: rgba(0, 0, 0, 0.12);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Checked hover
|
|
70
|
-
&:checked ~ .lever:hover::before {
|
|
71
|
-
background-color: rgba(var(--md-sys-color-primary-numeric), 0.06);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
// Checked active/focus
|
|
75
|
-
&:checked ~ .lever:active::before,
|
|
76
|
-
&:checked.tabbed:focus ~ .lever::before {
|
|
77
|
-
background-color: rgba(var(--md-sys-color-primary-numeric), 0.18);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.lever {
|
|
83
|
-
content: "";
|
|
84
|
-
display: inline-block;
|
|
85
|
-
position: relative;
|
|
86
|
-
width: var(--track-width);
|
|
87
|
-
height: var(--track-height);
|
|
88
|
-
border-style: solid;
|
|
89
|
-
border-width: 2px;
|
|
90
|
-
border-color: var(--md-sys-color-outline);
|
|
91
|
-
|
|
92
|
-
//@extend .surface-variant;
|
|
93
|
-
background-color: var(--md-sys-color-surface-variant);
|
|
94
|
-
|
|
95
|
-
border-radius: 15px;
|
|
96
|
-
margin-right: 10px;
|
|
97
|
-
transition: background 0.3s ease;
|
|
98
|
-
vertical-align: middle;
|
|
99
|
-
margin: 0 16px;
|
|
100
|
-
|
|
101
|
-
// DOT
|
|
102
|
-
&:before, &:after {
|
|
103
|
-
content: "";
|
|
104
|
-
position: absolute;
|
|
105
|
-
display: inline-block;
|
|
106
|
-
width: var(--size-off);
|
|
107
|
-
height: var(--size-off);
|
|
108
|
-
border-radius: 50%;
|
|
109
|
-
|
|
110
|
-
left: var(--gap-off);
|
|
111
|
-
top: var(--gap-off);
|
|
112
|
-
|
|
113
|
-
transition: left 0.3s ease, background .3s ease, box-shadow 0.1s ease, transform .1s ease;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// NOT CHECKED [DOT]
|
|
117
|
-
&:after {
|
|
118
|
-
@extend .outline;
|
|
119
|
-
height: var(--size-off);
|
|
120
|
-
width: var(--size-off);
|
|
121
|
-
|
|
122
|
-
//@extend .surface-variant;
|
|
123
|
-
//box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
@use './variables' as *;
|
|
2
|
-
|
|
3
|
-
html {
|
|
4
|
-
box-sizing: border-box;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
*, *:before, *:after {
|
|
8
|
-
box-sizing: inherit;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
body {
|
|
12
|
-
background-color: var(--md-sys-color-background);
|
|
13
|
-
color: var(--md-sys-color-on-background);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
button,
|
|
17
|
-
input,
|
|
18
|
-
optgroup,
|
|
19
|
-
select,
|
|
20
|
-
textarea {
|
|
21
|
-
font-family: $font-stack;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
a {
|
|
25
|
-
color: $link-color;
|
|
26
|
-
text-decoration: none;
|
|
27
|
-
-webkit-tap-highlight-color: transparent; // Gets rid of tap active state
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Blockquote
|
|
31
|
-
blockquote { margin: 20px 0; padding-left: 1.5rem; border-left: 5px solid var(--md-sys-color-primary); }
|
|
32
|
-
|
|
33
|
-
// Icon Styles
|
|
34
|
-
i {
|
|
35
|
-
line-height: inherit;
|
|
36
|
-
&.left {
|
|
37
|
-
float: left;
|
|
38
|
-
margin-left: -8px;
|
|
39
|
-
// margin-right: 15px;
|
|
40
|
-
}
|
|
41
|
-
&.right {
|
|
42
|
-
float: right;
|
|
43
|
-
// margin-left: 15px;
|
|
44
|
-
}
|
|
45
|
-
&.tiny {
|
|
46
|
-
font-size: 1rem;
|
|
47
|
-
}
|
|
48
|
-
&.small {
|
|
49
|
-
font-size: 2rem;
|
|
50
|
-
}
|
|
51
|
-
&.medium {
|
|
52
|
-
font-size: 4rem;
|
|
53
|
-
}
|
|
54
|
-
&.large {
|
|
55
|
-
font-size: 6rem;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Modal
|
|
60
|
-
html.noscroll {
|
|
61
|
-
position: fixed;
|
|
62
|
-
overflow-y: scroll;
|
|
63
|
-
width: 100%;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Images
|
|
67
|
-
img.responsive-img,
|
|
68
|
-
video.responsive-video {
|
|
69
|
-
max-width: 100%;
|
|
70
|
-
height: auto;
|
|
71
|
-
}
|