kmaterialize 2.0.0 → 2.3.3-1.0.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 +21 -21
- package/README.md +55 -91
- package/components/appbar/_navbar.old.scss +223 -0
- package/components/appbar/appbar.css +235 -0
- package/components/appbar/appbar.mjs +54 -0
- package/components/appbar/appbar.test.mjs +9 -0
- package/components/atomic/atomic.mjs +19 -0
- package/components/atomic/component.mjs +67 -0
- package/components/badge/_badges.scss +75 -0
- package/components/badge/badge.mjs +11 -0
- package/components/breadcrumb/_breadcrumb.scss +27 -0
- package/components/button/_buttons.scss +352 -0
- package/components/button/button.mjs +11 -0
- package/components/button/buttons.stories.ts +150 -0
- package/components/button/buttons.ts +282 -0
- package/components/button/examples.iso.js +18 -0
- package/components/button/fabSpec.js +65 -0
- package/components/button/test-button.mjs +16 -0
- package/components/card/_cards.scss +229 -0
- package/components/card/card.mjs +10 -0
- package/components/card/cards.ts +185 -0
- package/components/card/cardsSpec.js +269 -0
- package/components/carousel/_carousel.scss +93 -0
- package/components/carousel/_slider.scss +119 -0
- package/components/carousel/carousel.ts +693 -0
- package/components/carousel/carouselSpec.js +61 -0
- package/components/carousel/slider.ts +431 -0
- package/components/carousel/sliderSpec.js +99 -0
- package/components/checkbox/_checkboxes.scss +281 -0
- package/components/checkbox/checkbox.mdx +24 -0
- package/components/checkbox/checkbox.stories.ts +120 -0
- package/components/chip/chip.mjs +37 -0
- package/components/chip/chip.test.mjs +10 -0
- package/components/chip/chips.css +126 -0
- package/components/chip/chips.mdx +33 -0
- package/components/chip/chips.ts +440 -0
- package/components/chip/chipsSpec.js +165 -0
- package/components/chip/readme.md +323 -0
- package/components/collapsible/_collapsible.scss +82 -0
- package/components/collapsible/collapsible.ts +230 -0
- package/components/collapsible/collapsibleSpec.js +240 -0
- package/components/datepicker/_datepicker.scss +268 -0
- package/components/datepicker/datepicker.ts +1450 -0
- package/components/datepicker/datepickerSpec.js +162 -0
- package/components/dialog/_materialbox.scss +42 -0
- package/components/dialog/_modal.scss +79 -0
- package/components/dialog/materialbox.ts +446 -0
- package/components/dialog/materialboxSpec.js +37 -0
- package/components/dialog/modal.ts +111 -0
- package/components/dialog/modalSpec.js +83 -0
- package/components/dialog/readme.md +5 -0
- package/components/divider/readme.md +15 -0
- package/components/dropdown/_dropdown.scss +83 -0
- package/components/dropdown/dropdown.ts +653 -0
- package/components/dropdown/dropdownSpec.js +108 -0
- package/components/list/_collection.scss +114 -0
- package/components/list/_list.scss +6 -0
- package/components/list/list.mjs +58 -0
- package/components/list/list.test.mjs +16 -0
- package/components/loading/loading.mjs +26 -0
- package/components/loading/loading.test.mjs +10 -0
- package/components/navigation-bar/_old +582 -0
- package/components/navigation-bar/navigation-bar.mdx +20 -0
- package/components/navigation-bar/navigation-bar.stories.ts +39 -0
- package/components/navigation-drawer/_sidenav.scss +247 -0
- package/components/navigation-drawer/sidenav.ts +546 -0
- package/components/navigation-drawer/sidenavSpec.js +124 -0
- package/components/pagination/_pagination.scss +47 -0
- package/components/progress/_preloader.scss +416 -0
- package/components/radio-button/_radio-buttons.scss +112 -0
- package/components/radio-button/radio-buttons.mdx +28 -0
- package/components/radio-button/radio-buttons.stories.ts +51 -0
- package/components/search/autocomplete.ts +620 -0
- package/components/search/autocompleteSpec.js +321 -0
- package/components/slider/_range.scss +157 -0
- package/components/slider/range.ts +216 -0
- package/components/snackbar/_toast.scss +68 -0
- package/components/snackbar/toastSpec.js +132 -0
- package/components/snackbar/toasts.ts +312 -0
- package/components/switch/_switches.scss +121 -0
- package/components/tabs/_tabs.scss +171 -0
- package/components/tabs/tabs.mjs +31 -0
- package/components/tabs/tabs.ts +358 -0
- package/components/tabs/tabsSpec.js +180 -0
- package/components/textfield/_file-input.scss +41 -0
- package/components/textfield/_input-fields.scss +368 -0
- package/components/textfield/_select.scss +104 -0
- package/components/textfield/formfields.css +311 -0
- package/components/textfield/forms.ts +182 -0
- package/components/textfield/formsSpec.js +142 -0
- package/components/textfield/select.ts +472 -0
- package/components/textfield/selectSpec.js +390 -0
- package/components/textfield/textfield.mjs +29 -0
- package/components/textfield/textfield.test.mjs +10 -0
- package/components/timepicker/_timepicker.scss +362 -0
- package/components/timepicker/timepicker.ts +905 -0
- package/components/tooltip/_tooltip.scss +40 -0
- package/components/tooltip/tooltip.ts +380 -0
- package/components/tooltip/tooltipSpec.js +145 -0
- package/dist/css/materialize.colors.min.css +6 -0
- package/dist/css/materialize.css +7578 -6326
- package/dist/css/materialize.min.css +6 -13
- package/dist/css/materialize.min.css.map +1 -0
- package/dist/js/materialize.cjs.js +8410 -0
- package/dist/js/materialize.d.ts +2625 -0
- package/dist/js/materialize.js +8415 -12374
- package/dist/js/materialize.min.js +6 -6
- package/dist/js/materialize.mjs +8382 -0
- package/package.json +82 -47
- package/sass/_colors.scss +417 -0
- package/sass/_global.scss +490 -0
- package/sass/_grid.scss +172 -0
- package/sass/_table_of_contents.scss +28 -0
- package/sass/_tapTarget.scss +102 -0
- package/sass/_typography.scss +58 -0
- package/sass/_variables.scss +56 -0
- package/sass/materialize.scss +51 -0
- package/sass/mixins.module.scss +168 -0
- package/extras/noUiSlider/nouislider.css +0 -406
- package/extras/noUiSlider/nouislider.js +0 -2147
- package/extras/noUiSlider/nouislider.min.js +0 -1
- package/js/anime.min.js +0 -34
- package/js/autocomplete.js +0 -448
- package/js/buttons.js +0 -354
- package/js/cards.js +0 -40
- package/js/carousel.js +0 -717
- package/js/cash.js +0 -960
- package/js/characterCounter.js +0 -136
- package/js/chips.js +0 -481
- package/js/collapsible.js +0 -275
- package/js/component.js +0 -44
- package/js/datepicker.js +0 -975
- package/js/dropdown.js +0 -635
- package/js/forms.js +0 -275
- package/js/global.js +0 -444
- package/js/materialbox.js +0 -453
- package/js/modal.js +0 -382
- package/js/parallax.js +0 -138
- package/js/pushpin.js +0 -148
- package/js/range.js +0 -263
- package/js/scrollspy.js +0 -295
- package/js/select.js +0 -450
- package/js/sidenav.js +0 -580
- package/js/slider.js +0 -359
- package/js/tabs.js +0 -402
- package/js/tapTarget.js +0 -314
- package/js/timepicker.js +0 -647
- package/js/toasts.js +0 -310
- package/js/tooltip.js +0 -303
- package/js/waves.js +0 -335
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
.tap-target-wrapper {
|
|
2
|
+
width: 800px;
|
|
3
|
+
height: 800px;
|
|
4
|
+
position: fixed;
|
|
5
|
+
z-index: 1000;
|
|
6
|
+
visibility: hidden;
|
|
7
|
+
transition: visibility 0s .3s;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.tap-target-wrapper.open {
|
|
11
|
+
visibility: visible;
|
|
12
|
+
transition: visibility 0s;
|
|
13
|
+
|
|
14
|
+
.tap-target {
|
|
15
|
+
transform: scale(1);
|
|
16
|
+
opacity: .95;
|
|
17
|
+
transition:
|
|
18
|
+
transform .3s cubic-bezier(.42,0,.58,1),
|
|
19
|
+
opacity .3s cubic-bezier(.42,0,.58,1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.tap-target-wave::before {
|
|
23
|
+
transform: scale(1);
|
|
24
|
+
}
|
|
25
|
+
.tap-target-wave::after {
|
|
26
|
+
visibility: visible;
|
|
27
|
+
animation: pulse-animation 1s cubic-bezier(0.24, 0, 0.38, 1) infinite;
|
|
28
|
+
transition:
|
|
29
|
+
opacity .3s,
|
|
30
|
+
transform .3s,
|
|
31
|
+
visibility 0s 1s;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tap-target {
|
|
36
|
+
position: absolute;
|
|
37
|
+
font-size: 1rem;
|
|
38
|
+
border-radius: 50%;
|
|
39
|
+
background-color: var(--md-sys-color-primary-container);
|
|
40
|
+
color: var(--md-sys-color-primary);
|
|
41
|
+
box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.14), 0 10px 50px 0 rgba(0, 0, 0, 0.12), 0 30px 10px -20px rgba(0, 0, 0, 0.2);
|
|
42
|
+
width: 100%;
|
|
43
|
+
height: 100%;
|
|
44
|
+
opacity: 0;
|
|
45
|
+
transform: scale(0);
|
|
46
|
+
transition: transform .3s cubic-bezier(.42, 0, .58, 1),
|
|
47
|
+
opacity .3s cubic-bezier(.42, 0, .58, 1);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.tap-target-content {
|
|
51
|
+
position: relative;
|
|
52
|
+
display: table-cell;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.tap-target-wave {
|
|
56
|
+
position: absolute;
|
|
57
|
+
border-radius: 50%;
|
|
58
|
+
z-index: 10001;
|
|
59
|
+
|
|
60
|
+
&::before,
|
|
61
|
+
&::after {
|
|
62
|
+
content: '';
|
|
63
|
+
display: block;
|
|
64
|
+
position: absolute;
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 100%;
|
|
67
|
+
border-radius: 50%;
|
|
68
|
+
background-color: var(--md-sys-color-surface)
|
|
69
|
+
}
|
|
70
|
+
&::before {
|
|
71
|
+
transform: scale(0);
|
|
72
|
+
transition: transform .3s;
|
|
73
|
+
}
|
|
74
|
+
&::after {
|
|
75
|
+
visibility: hidden;
|
|
76
|
+
transition:
|
|
77
|
+
opacity .3s,
|
|
78
|
+
transform .3s,
|
|
79
|
+
visibility 0s;
|
|
80
|
+
z-index: -1;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tap-target-origin {
|
|
85
|
+
top: 50%;
|
|
86
|
+
left: 50%;
|
|
87
|
+
z-index: 10002;
|
|
88
|
+
position: absolute !important;
|
|
89
|
+
transform: translate(-50%,-50%);
|
|
90
|
+
|
|
91
|
+
&:not(.btn),
|
|
92
|
+
&:not(.btn):hover {
|
|
93
|
+
background: none;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@media only screen and (max-width: 600px) {
|
|
98
|
+
.tap-target, .tap-target-wrapper {
|
|
99
|
+
width: 600px;
|
|
100
|
+
height: 600px;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
@use './variables' as *;
|
|
3
|
+
|
|
4
|
+
a {
|
|
5
|
+
text-decoration: none;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
html{
|
|
9
|
+
// line-height: 1.5;
|
|
10
|
+
font-family: $font-stack;
|
|
11
|
+
font-weight: normal;
|
|
12
|
+
color: $text-color;
|
|
13
|
+
@media only screen and (min-width: 0) {
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
}
|
|
16
|
+
@media only screen and (min-width: $medium-screen-up) {
|
|
17
|
+
font-size: 14.5px;
|
|
18
|
+
}
|
|
19
|
+
@media only screen and (min-width: $large-screen-up) {
|
|
20
|
+
font-size: 15px;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
h1, h2, h3, h4, h5, h6 {
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
line-height: 1.3;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Header Styles
|
|
30
|
+
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
|
|
31
|
+
h1 { font-size: $h1-fontsize; line-height: 110%; margin: math.div($h1-fontsize, 1.5) 0 math.div($h1-fontsize, 2.5) 0;}
|
|
32
|
+
h2 { font-size: $h2-fontsize; line-height: 110%; margin: math.div($h2-fontsize, 1.5) 0 math.div($h2-fontsize, 2.5) 0;}
|
|
33
|
+
h3 { font-size: $h3-fontsize; line-height: 110%; margin: math.div($h3-fontsize, 1.5) 0 math.div($h3-fontsize, 2.5) 0;}
|
|
34
|
+
h4 { font-size: $h4-fontsize; line-height: 110%; margin: math.div($h4-fontsize, 1.5) 0 math.div($h4-fontsize, 2.5) 0;}
|
|
35
|
+
h5 { font-size: $h5-fontsize; line-height: 110%; margin: math.div($h5-fontsize, 1.5) 0 math.div($h5-fontsize, 2.5) 0;}
|
|
36
|
+
h6 { font-size: $h6-fontsize; line-height: 110%; margin: math.div($h6-fontsize, 1.5) 0 math.div($h6-fontsize, 2.5) 0;}
|
|
37
|
+
|
|
38
|
+
// Text Styles
|
|
39
|
+
em { font-style: italic; }
|
|
40
|
+
strong { font-weight: 500; }
|
|
41
|
+
small { font-size: 75%; }
|
|
42
|
+
.light { font-weight: 300; }
|
|
43
|
+
.thin { font-weight: 200; }
|
|
44
|
+
|
|
45
|
+
.flow-text{
|
|
46
|
+
$i: 0;
|
|
47
|
+
@while $i <= $intervals {
|
|
48
|
+
@media only screen and (min-width : (360 + ($i * $interval-size))) {
|
|
49
|
+
font-size: 1.2rem * (1 + (.02 * $i));
|
|
50
|
+
}
|
|
51
|
+
$i: $i + 1;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
// Handle below 360px screen
|
|
55
|
+
@media only screen and (max-width: 360px) {
|
|
56
|
+
font-size: 1.2rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@use "sass:math";
|
|
2
|
+
|
|
3
|
+
// TypeScale
|
|
4
|
+
$md_sys_typescale_body-large_size: 16px;
|
|
5
|
+
|
|
6
|
+
// Colors
|
|
7
|
+
$success-color: colorFunc("green", "base") !default;
|
|
8
|
+
$link-color: colorFunc("light-blue", "darken-1") !default;
|
|
9
|
+
|
|
10
|
+
// Floating buttons
|
|
11
|
+
$button-floating-background: var(--md-sys-color-secondary) !default;
|
|
12
|
+
$button-floating-background-hover: var(--md-ref-palette-secondary70) !default;
|
|
13
|
+
$button-floating-background-focus: var(--md-ref-palette-secondary80) !default;
|
|
14
|
+
$button-floating-color: var(--md-sys-color-on-secondary) !default;
|
|
15
|
+
$button-floating-size: 40px !default;
|
|
16
|
+
$button-floating-radius: 16px !default;
|
|
17
|
+
|
|
18
|
+
// Dropdown
|
|
19
|
+
$dropdown-item-height: 50px !default;
|
|
20
|
+
|
|
21
|
+
// Media Query Ranges
|
|
22
|
+
$small-screen-up: 601px !default;
|
|
23
|
+
$medium-screen-up: 993px !default;
|
|
24
|
+
$large-screen-up: 1201px !default;
|
|
25
|
+
$small-screen: 600.99px !default;
|
|
26
|
+
$medium-screen: 992.99px !default;
|
|
27
|
+
$large-screen: 1200.99px !default;
|
|
28
|
+
|
|
29
|
+
$medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
|
|
30
|
+
$large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
|
|
31
|
+
$extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
|
|
32
|
+
$small-and-down: "only screen and (max-width : #{$small-screen})" !default;
|
|
33
|
+
$medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
|
|
34
|
+
$medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
|
|
35
|
+
|
|
36
|
+
// Grid
|
|
37
|
+
$num-cols: 12 !default;
|
|
38
|
+
$gutter-width: 1.5rem !default;
|
|
39
|
+
$element-top-margin: math.div($gutter-width, 3) !default;
|
|
40
|
+
$element-bottom-margin: math.div($gutter-width * 2, 3) !default;
|
|
41
|
+
|
|
42
|
+
// Typography
|
|
43
|
+
$font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default;
|
|
44
|
+
$text-color: var(--md-sys-color-on-background) !default;
|
|
45
|
+
|
|
46
|
+
// Header Styles
|
|
47
|
+
$h1-fontsize: 4.2rem !default;
|
|
48
|
+
$h2-fontsize: 3.56rem !default;
|
|
49
|
+
$h3-fontsize: 2.92rem !default;
|
|
50
|
+
$h4-fontsize: 2.28rem !default;
|
|
51
|
+
$h5-fontsize: 1.64rem !default;
|
|
52
|
+
$h6-fontsize: 1.15rem !default;
|
|
53
|
+
|
|
54
|
+
// Flow Text
|
|
55
|
+
$intervals: 20 !default;
|
|
56
|
+
$interval-size: math.div($large-screen - $small-screen, $intervals) !default;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
@forward '../node_modules/normalize.css/normalize.css';
|
|
4
|
+
@forward './tokens.module.css';
|
|
5
|
+
@forward './theme.module.css';
|
|
6
|
+
@forward './typography.module.css';
|
|
7
|
+
@forward './colors.module.css';
|
|
8
|
+
@forward './colors'; // legacy .red/.pink/etc palette classes (materialize.com/color.html) - was missing entirely
|
|
9
|
+
@forward './typography';
|
|
10
|
+
@forward './mixins.module';
|
|
11
|
+
@forward './variables';
|
|
12
|
+
@forward './global';
|
|
13
|
+
@forward './grid';
|
|
14
|
+
// animations
|
|
15
|
+
@forward './transitions.css';
|
|
16
|
+
@forward './pulse.css';
|
|
17
|
+
// custom
|
|
18
|
+
@forward './table_of_contents';
|
|
19
|
+
@forward './tapTarget';
|
|
20
|
+
|
|
21
|
+
@forward '../components/button/buttons';
|
|
22
|
+
@forward '../components/collapsible/collapsible'; // custom
|
|
23
|
+
@forward '../components/badge/badges';
|
|
24
|
+
@forward '../components/card/cards';
|
|
25
|
+
@forward '../components/snackbar/toast';
|
|
26
|
+
@forward '../components/tabs/tabs';
|
|
27
|
+
@forward '../components/tooltip/tooltip';
|
|
28
|
+
@forward '../components/dropdown/dropdown';
|
|
29
|
+
@forward '../components/list/collection';
|
|
30
|
+
@forward '../components/list/list';
|
|
31
|
+
@forward '../components/dialog/modal';
|
|
32
|
+
@forward '../components/dialog/materialbox'; // custom
|
|
33
|
+
@forward '../components/chip/chips';
|
|
34
|
+
//@forward '../components/appbar/navbar';
|
|
35
|
+
@forward '../components/appbar/appbar.css';
|
|
36
|
+
@forward '../components/navigation-drawer/sidenav';
|
|
37
|
+
@forward '../components/progress/preloader';
|
|
38
|
+
@forward '../components/carousel/slider';
|
|
39
|
+
@forward '../components/carousel/carousel';
|
|
40
|
+
@forward '../components/datepicker/datepicker';
|
|
41
|
+
@forward '../components/timepicker/timepicker';
|
|
42
|
+
@forward '../components/breadcrumb/breadcrumb'; // custom
|
|
43
|
+
@forward '../components/pagination/pagination'; //custom
|
|
44
|
+
@forward '../components/radio-button/radio-buttons';
|
|
45
|
+
@forward '../components/checkbox/checkboxes';
|
|
46
|
+
@forward '../components/switch/switches';
|
|
47
|
+
@forward '../components/slider/range';
|
|
48
|
+
@forward '../components/textfield/input-fields';
|
|
49
|
+
@forward '../components/textfield/select';
|
|
50
|
+
@forward '../components/textfield/file-input';
|
|
51
|
+
@forward '../components/textfield/formfields.css';
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
@use './variables' as *;
|
|
2
|
+
@use './global' as *;
|
|
3
|
+
|
|
4
|
+
@mixin btn(
|
|
5
|
+
$height: var(--btn-height),
|
|
6
|
+
$border-radius: var(--btn-border-radius),
|
|
7
|
+
$padding-left: var(--btn-padding),
|
|
8
|
+
$padding-right: var(--btn-padding),
|
|
9
|
+
$font-size: var(--btn-font-size),
|
|
10
|
+
) {
|
|
11
|
+
height: $height;
|
|
12
|
+
border-radius: $border-radius;
|
|
13
|
+
padding-left: $padding-left;
|
|
14
|
+
padding-right: $padding-right;
|
|
15
|
+
font-size: $font-size;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
border: none;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
-webkit-tap-highlight-color: transparent; // Gets rid of tap active state
|
|
23
|
+
white-space: nowrap;
|
|
24
|
+
outline: 0;
|
|
25
|
+
user-select: none;
|
|
26
|
+
transition: background-color .2s ease-out;
|
|
27
|
+
|
|
28
|
+
&:focus {
|
|
29
|
+
background-color: var(--md-sys-color-primary-container);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@mixin btn-filled {
|
|
34
|
+
color: var(--md-sys-color-on-primary);
|
|
35
|
+
background-color: var(--md-sys-color-primary);
|
|
36
|
+
|
|
37
|
+
&:hover,
|
|
38
|
+
&:focus {
|
|
39
|
+
color: var(--md-sys-color-on-primary);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&:hover {
|
|
43
|
+
@extend .z-depth-1;
|
|
44
|
+
background-color: color-mix(in srgb, var(--md-sys-color-primary), var(--md-sys-color-on-primary) 16%);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:focus {
|
|
48
|
+
@extend .z-depth-0;
|
|
49
|
+
background-color: color-mix(in srgb, var(--md-sys-color-primary), var(--md-sys-color-on-primary) 20%);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@include focus-visible();
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@mixin btn-tonal {
|
|
56
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
57
|
+
background-color: var(--md-sys-color-secondary-container);
|
|
58
|
+
|
|
59
|
+
&:hover,
|
|
60
|
+
&:focus {
|
|
61
|
+
color: var(--md-sys-color-on-secondary-container);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&:hover {
|
|
65
|
+
@extend .z-depth-1;
|
|
66
|
+
background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 16%);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:focus {
|
|
70
|
+
@extend .z-depth-0;
|
|
71
|
+
background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 20%);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@include focus-visible();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@mixin btn-elevated {
|
|
78
|
+
//color: var(--md-sys-color-on-secondary-container);
|
|
79
|
+
//background-color: var(--md-sys-color-secondary-container);
|
|
80
|
+
@extend .z-depth-1;
|
|
81
|
+
|
|
82
|
+
&:hover,
|
|
83
|
+
&:focus {
|
|
84
|
+
//color: var(--md-sys-color-primary);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&:hover {
|
|
88
|
+
@extend .z-depth-2;
|
|
89
|
+
//background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-on-secondary-container) 16%);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
&:focus {
|
|
93
|
+
@extend .z-depth-1;
|
|
94
|
+
//background-color: color-mix(in srgb, var(--md-sys-color-secondary-container), var(--md-sys-color-primary) 20%);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@include focus-visible();
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin btn-outlined {
|
|
101
|
+
background-color: transparent;
|
|
102
|
+
color: var(--md-sys-color-primary);
|
|
103
|
+
border: 1px solid var(--md-sys-color-outline);
|
|
104
|
+
|
|
105
|
+
&:hover,
|
|
106
|
+
&:focus {
|
|
107
|
+
color: var(--md-sys-color-primary);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:hover {
|
|
111
|
+
background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 16%);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
&:focus {
|
|
115
|
+
background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 20%);
|
|
116
|
+
border: 1px solid var(--md-sys-color-primary);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&.disabled {
|
|
120
|
+
background-color: unset;
|
|
121
|
+
border-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@include focus-visible();
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@mixin btn-flat {
|
|
128
|
+
@extend .z-depth-0;
|
|
129
|
+
color: var(--md-sys-color-primary);
|
|
130
|
+
background-color: transparent;
|
|
131
|
+
|
|
132
|
+
&:hover,
|
|
133
|
+
&:focus {
|
|
134
|
+
color: var(--md-sys-color-primary);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
&:hover {
|
|
138
|
+
background-color: color-mix(in srgb, var(--md-sys-color-primary) 16%, transparent);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
&:focus {
|
|
142
|
+
background-color: color-mix(in srgb, transparent, var(--md-sys-color-primary) 20%);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.disabled {
|
|
146
|
+
background-color: unset;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@include focus-visible();
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
@mixin btn-disabled {
|
|
153
|
+
@extend .z-depth-0;
|
|
154
|
+
color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 38%);
|
|
155
|
+
background-color: color-mix(in srgb, transparent, var(--md-sys-color-on-surface) 12%);
|
|
156
|
+
pointer-events: none;
|
|
157
|
+
box-shadow: none;
|
|
158
|
+
cursor: default;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
// Focus with Keyboard
|
|
162
|
+
@mixin focus-visible {
|
|
163
|
+
&:focus-visible {
|
|
164
|
+
outline: 3px solid var(--md-sys-color-secondary);
|
|
165
|
+
outline-offset: 2px;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|