@materializecss/materialize 2.2.1 → 2.3.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.
Files changed (57) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +94 -94
  3. package/dist/css/materialize.colors.min.css +6 -0
  4. package/dist/css/materialize.css +9624 -8820
  5. package/dist/css/materialize.min.css +6 -8
  6. package/dist/css/materialize.min.css.map +1 -1
  7. package/dist/js/materialize.cjs.js +8370 -7926
  8. package/dist/js/materialize.d.ts +2552 -2491
  9. package/dist/js/materialize.js +8375 -7931
  10. package/dist/js/materialize.min.js +6 -6
  11. package/dist/js/materialize.mjs +8342 -7898
  12. package/package.json +95 -79
  13. package/sass/{components/_color-variables.scss → _colors.scss} +403 -370
  14. package/sass/{components/_global.scss → _global.scss} +490 -558
  15. package/sass/{components/_grid.scss → _grid.scss} +172 -170
  16. package/sass/{components/_table_of_contents.scss → _table_of_contents.scss} +28 -32
  17. package/sass/{components/_tapTarget.scss → _tapTarget.scss} +102 -103
  18. package/sass/{components/_typography.scss → _typography.scss} +59 -62
  19. package/sass/{components/_variables.scss → _variables.scss} +57 -56
  20. package/sass/components/forms/_forms.scss +19 -24
  21. package/sass/materialize.scss +48 -47
  22. package/sass/mixins.module.scss +168 -0
  23. package/sass/components/_badges.scss +0 -75
  24. package/sass/components/_buttons.scss +0 -455
  25. package/sass/components/_cards.scss +0 -210
  26. package/sass/components/_carousel.scss +0 -95
  27. package/sass/components/_chips.scss +0 -148
  28. package/sass/components/_collapsible.scss +0 -80
  29. package/sass/components/_collection.scss +0 -115
  30. package/sass/components/_color-classes.scss +0 -32
  31. package/sass/components/_datepicker.scss +0 -216
  32. package/sass/components/_dropdown.scss +0 -78
  33. package/sass/components/_icons-material-design.scss +0 -6
  34. package/sass/components/_materialbox.scss +0 -43
  35. package/sass/components/_modal.scss +0 -68
  36. package/sass/components/_navbar.scss +0 -231
  37. package/sass/components/_normalize.scss +0 -349
  38. package/sass/components/_preloader.scss +0 -418
  39. package/sass/components/_pulse.scss +0 -35
  40. package/sass/components/_sidenav.scss +0 -249
  41. package/sass/components/_slider.scss +0 -121
  42. package/sass/components/_tabs.scss +0 -155
  43. package/sass/components/_timepicker.scss +0 -279
  44. package/sass/components/_toast.scss +0 -65
  45. package/sass/components/_tooltip.scss +0 -48
  46. package/sass/components/_transitions.scss +0 -13
  47. package/sass/components/colors.module.scss +0 -74
  48. package/sass/components/forms/_checkboxes.scss +0 -200
  49. package/sass/components/forms/_file-input.scss +0 -43
  50. package/sass/components/forms/_input-fields.scss +0 -350
  51. package/sass/components/forms/_radio-buttons.scss +0 -112
  52. package/sass/components/forms/_range.scss +0 -153
  53. package/sass/components/forms/_select.scss +0 -195
  54. package/sass/components/forms/_switches.scss +0 -122
  55. package/sass/components/theme.module.scss +0 -140
  56. package/sass/components/tokens.module.scss +0 -272
  57. package/sass/components/typography.module.scss +0 -150
@@ -1,62 +1,59 @@
1
-
2
- @use "sass:math";
3
-
4
- a {
5
- text-decoration: none;
6
- }
7
-
8
- html{
9
- // line-height: 1.5;
10
-
11
- @media only screen and (min-width: 0) {
12
- font-size: 14px;
13
- }
14
-
15
- @media only screen and (min-width: $medium-screen-up) {
16
- font-size: 14.5px;
17
- }
18
-
19
- @media only screen and (min-width: $large-screen-up) {
20
- font-size: 15px;
21
- }
22
-
23
- font-family: $font-stack;
24
- font-weight: normal;
25
- color: $text-color;
26
- }
27
-
28
- h1, h2, h3, h4, h5, h6 {
29
- font-weight: 400;
30
- line-height: 1.3;
31
- }
32
-
33
- // Header Styles
34
- h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
35
- h1 { font-size: $h1-fontsize; line-height: 110%; margin: math.div($h1-fontsize, 1.5) 0 math.div($h1-fontsize, 2.5) 0;}
36
- h2 { font-size: $h2-fontsize; line-height: 110%; margin: math.div($h2-fontsize, 1.5) 0 math.div($h2-fontsize, 2.5) 0;}
37
- h3 { font-size: $h3-fontsize; line-height: 110%; margin: math.div($h3-fontsize, 1.5) 0 math.div($h3-fontsize, 2.5) 0;}
38
- h4 { font-size: $h4-fontsize; line-height: 110%; margin: math.div($h4-fontsize, 1.5) 0 math.div($h4-fontsize, 2.5) 0;}
39
- h5 { font-size: $h5-fontsize; line-height: 110%; margin: math.div($h5-fontsize, 1.5) 0 math.div($h5-fontsize, 2.5) 0;}
40
- h6 { font-size: $h6-fontsize; line-height: 110%; margin: math.div($h6-fontsize, 1.5) 0 math.div($h6-fontsize, 2.5) 0;}
41
-
42
- // Text Styles
43
- em { font-style: italic; }
44
- strong { font-weight: 500; }
45
- small { font-size: 75%; }
46
- .light { font-weight: 300; }
47
- .thin { font-weight: 200; }
48
-
49
- .flow-text{
50
- $i: 0;
51
- @while $i <= $intervals {
52
- @media only screen and (min-width : 360 + ($i * $interval-size)) {
53
- font-size: 1.2rem * (1 + (.02 * $i));
54
- }
55
- $i: $i + 1;
56
- }
57
-
58
- // Handle below 360px screen
59
- @media only screen and (max-width: 360px) {
60
- font-size: 1.2rem;
61
- }
62
- }
1
+
2
+ @use "sass:math";
3
+ @use './variables' as *;
4
+
5
+ a {
6
+ text-decoration: none;
7
+ }
8
+
9
+ html{
10
+ // line-height: 1.5;
11
+ font-family: $font-stack;
12
+ font-weight: normal;
13
+ color: $text-color;
14
+ @media only screen and (min-width: 0) {
15
+ font-size: 14px;
16
+ }
17
+ @media only screen and (min-width: $medium-screen-up) {
18
+ font-size: 14.5px;
19
+ }
20
+ @media only screen and (min-width: $large-screen-up) {
21
+ font-size: 15px;
22
+ }
23
+ }
24
+
25
+ h1, h2, h3, h4, h5, h6 {
26
+ font-weight: 400;
27
+ line-height: 1.3;
28
+ }
29
+
30
+ // Header Styles
31
+ h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { font-weight: inherit; }
32
+ h1 { font-size: $h1-fontsize; line-height: 110%; margin: math.div($h1-fontsize, 1.5) 0 math.div($h1-fontsize, 2.5) 0;}
33
+ h2 { font-size: $h2-fontsize; line-height: 110%; margin: math.div($h2-fontsize, 1.5) 0 math.div($h2-fontsize, 2.5) 0;}
34
+ h3 { font-size: $h3-fontsize; line-height: 110%; margin: math.div($h3-fontsize, 1.5) 0 math.div($h3-fontsize, 2.5) 0;}
35
+ h4 { font-size: $h4-fontsize; line-height: 110%; margin: math.div($h4-fontsize, 1.5) 0 math.div($h4-fontsize, 2.5) 0;}
36
+ h5 { font-size: $h5-fontsize; line-height: 110%; margin: math.div($h5-fontsize, 1.5) 0 math.div($h5-fontsize, 2.5) 0;}
37
+ h6 { font-size: $h6-fontsize; line-height: 110%; margin: math.div($h6-fontsize, 1.5) 0 math.div($h6-fontsize, 2.5) 0;}
38
+
39
+ // Text Styles
40
+ em { font-style: italic; }
41
+ strong { font-weight: 500; }
42
+ small { font-size: 75%; }
43
+ .light { font-weight: 300; }
44
+ .thin { font-weight: 200; }
45
+
46
+ .flow-text{
47
+ $i: 0;
48
+ @while $i <= $intervals {
49
+ @media only screen and (min-width : (360 + ($i * $interval-size))) {
50
+ font-size: 1.2rem * (1 + (.02 * $i));
51
+ }
52
+ $i: $i + 1;
53
+ }
54
+
55
+ // Handle below 360px screen
56
+ @media only screen and (max-width: 360px) {
57
+ font-size: 1.2rem;
58
+ }
59
+ }
@@ -1,56 +1,57 @@
1
- // TypeScale
2
- $md_sys_typescale_body-large_size: 16px;
3
-
4
- @use "sass:math";
5
-
6
- // Colors
7
- $success-color: color("green", "base") !default;
8
- $link-color: color("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;
1
+ // TypeScale
2
+ $md_sys_typescale_body-large_size: 16px;
3
+
4
+ @use "sass:math";
5
+ @use "./_colors";
6
+
7
+ // Colors
8
+ $success-color: colorFunc("green", "base") !default;
9
+ $link-color: colorFunc("light-blue", "darken-1") !default;
10
+
11
+ // Floating buttons
12
+ $button-floating-background: var(--md-sys-color-secondary) !default;
13
+ $button-floating-background-hover: var(--md-ref-palette-secondary70) !default;
14
+ $button-floating-background-focus: var(--md-ref-palette-secondary80) !default;
15
+ $button-floating-color: var(--md-sys-color-on-secondary) !default;
16
+ $button-floating-size: 40px !default;
17
+ $button-floating-radius: 16px !default;
18
+
19
+ // Dropdown
20
+ $dropdown-item-height: 50px !default;
21
+
22
+ // Media Query Ranges
23
+ $small-screen-up: 601px !default;
24
+ $medium-screen-up: 993px !default;
25
+ $large-screen-up: 1201px !default;
26
+ $small-screen: 600.99px !default;
27
+ $medium-screen: 992.99px !default;
28
+ $large-screen: 1200.99px !default;
29
+
30
+ $medium-and-up: "only screen and (min-width : #{$small-screen-up})" !default;
31
+ $large-and-up: "only screen and (min-width : #{$medium-screen-up})" !default;
32
+ $extra-large-and-up: "only screen and (min-width : #{$large-screen-up})" !default;
33
+ $small-and-down: "only screen and (max-width : #{$small-screen})" !default;
34
+ $medium-and-down: "only screen and (max-width : #{$medium-screen})" !default;
35
+ $medium-only: "only screen and (min-width : #{$small-screen-up}) and (max-width : #{$medium-screen})" !default;
36
+
37
+ // Grid
38
+ $num-cols: 12 !default;
39
+ $gutter-width: 1.5rem !default;
40
+ $element-top-margin: math.div($gutter-width, 3) !default;
41
+ $element-bottom-margin: math.div($gutter-width * 2, 3) !default;
42
+
43
+ // Typography
44
+ $font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !default;
45
+ $text-color: var(--md-sys-color-on-background) !default;
46
+
47
+ // Header Styles
48
+ $h1-fontsize: 4.2rem !default;
49
+ $h2-fontsize: 3.56rem !default;
50
+ $h3-fontsize: 2.92rem !default;
51
+ $h4-fontsize: 2.28rem !default;
52
+ $h5-fontsize: 1.64rem !default;
53
+ $h6-fontsize: 1.15rem !default;
54
+
55
+ // Flow Text
56
+ $intervals: 20 !default;
57
+ $interval-size: math.div($large-screen - $small-screen, $intervals) !default;
@@ -1,24 +1,19 @@
1
- // Remove Focus Boxes
2
- select:focus {
3
- outline: 1px solid var(--md-ref-palette-primary80);
4
- }
5
-
6
- /*
7
- button:focus {
8
- outline: none;
9
- background-color: $button-background-focus;
10
- }
11
- */
12
-
13
- label {
14
- font-size: .8rem;
15
- color: var(--md-sys-color-on-surface-variant);
16
- }
17
-
18
- @import 'input-fields';
19
- @import 'radio-buttons';
20
- @import 'checkboxes';
21
- @import 'switches';
22
- @import 'select';
23
- @import 'file-input';
24
- @import 'range';
1
+ @forward 'input-fields';
2
+ @forward 'radio-buttons';
3
+ @forward 'checkboxes';
4
+ @forward 'switches';
5
+ @forward 'select';
6
+ @forward 'file-input';
7
+ @forward 'range';
8
+ @forward 'form-field';
9
+
10
+ // Remove Focus Boxes
11
+ select:focus {
12
+ outline: 1px solid var(--md-ref-palette-primary80);
13
+ }
14
+
15
+ label {
16
+ font-size: .8rem;
17
+ color: var(--md-sys-color-on-surface-variant);
18
+ }
19
+
@@ -1,47 +1,48 @@
1
- @charset "UTF-8";
2
-
3
- @import "components/tokens.module";
4
- @import "components/theme.module";
5
- //@import "components/_theme_variables";
6
- @import "components/colors.module";
7
- @import "components/typography.module";
8
-
9
- // Color
10
- @import "components/color-variables";
11
- @import "components/color-classes";
12
- // Variables;
13
- @import "components/variables";
14
-
15
- // Reset
16
- @import "components/normalize";
17
-
18
- // components
19
- @import "components/global";
20
- @import "components/collection";
21
- @import "components/badges";
22
- @import "components/icons-material-design";
23
- @import "components/grid";
24
- @import "components/navbar";
25
- @import "components/typography";
26
- @import "components/transitions";
27
- @import "components/cards";
28
- @import "components/toast";
29
- @import "components/tabs";
30
- @import "components/tooltip";
31
- @import "components/buttons";
32
- @import "components/dropdown";
33
-
34
- @import "components/modal";
35
- @import "components/collapsible";
36
- @import "components/chips";
37
- @import "components/materialbox";
38
- @import "components/forms/forms";
39
- @import "components/table_of_contents";
40
- @import "components/sidenav";
41
- @import "components/preloader";
42
- @import "components/slider";
43
- @import "components/carousel";
44
- @import "components/tapTarget";
45
- @import "components/pulse";
46
- @import "components/datepicker";
47
- @import "components/timepicker";
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 "./typography";
9
+ @forward "./mixins.module";
10
+ // @forward "./colors"; // => put in seperate file
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/buttons/buttons";
22
+ @forward "../components/lists/collection";
23
+ @forward "../components/collapsible/collapsible"; // custom
24
+ @forward "../components/badges/badges";
25
+ @forward "../components/cards/cards";
26
+ @forward "../components/snackbar/toast";
27
+ @forward "../components/tabs/tabs";
28
+ @forward "../components/tooltips/tooltip";
29
+ @forward "../components/dropdown/dropdown";
30
+ @forward "../components/dialog/modal";
31
+ @forward "../components/dialog/materialbox"; // custom
32
+ @forward "../components/chips/chips";
33
+ @forward "../components/navigation-bar/navbar";
34
+ @forward "../components/navigation-drawer/sidenav";
35
+ @forward "../components/progress-indicators/preloader";
36
+ @forward "../components/carousel/slider";
37
+ @forward "../components/carousel/carousel";
38
+ @forward "../components/datepicker/datepicker";
39
+ @forward "../components/timepicker/timepicker";
40
+ @forward "../components/breadcrumb/breadcrumb"; // custom
41
+ @forward "../components/pagination/pagination"; //custom
42
+ @forward '../components/radio-button/radio-buttons';
43
+ @forward '../components/checkbox/checkboxes';
44
+ @forward '../components/switch/switches';
45
+ @forward '../components/sliders/range';
46
+ @forward '../components/text-fields/input-fields';
47
+ @forward '../components/text-fields/select';
48
+ @forward '../components/text-fields/file-input';
@@ -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
+
@@ -1,75 +0,0 @@
1
- // TODO: Make better structure
2
- :root {
3
- --bagde-height: 22px;
4
- }
5
-
6
- span.badge {
7
- min-width: 3rem;
8
- padding: 0 6px;
9
- margin-left: 14px;
10
- text-align: center;
11
- font-size: 1rem;
12
- line-height: var(--bagde-height);
13
- height: var(--bagde-height);
14
- color: var(--md-sys-color-on-surface-variant);
15
- float: right;
16
- box-sizing: border-box;
17
-
18
- &.new {
19
- font-weight: 300;
20
- font-size: 0.8rem;
21
- color: var(--md-sys-color-on-primary);
22
- background-color: var(--md-sys-color-primary);
23
- border-radius: 2px;
24
- }
25
- &.new:after {
26
- content: " new";
27
- }
28
-
29
- &[data-badge-caption]::after {
30
- content: " " attr(data-badge-caption);
31
- }
32
- }
33
-
34
- .active span.badge {
35
- color: var(--md-sys-color-on-primary);
36
- }
37
-
38
- // Special cases
39
-
40
- nav ul a span.badge {
41
- display: inline-block;
42
- float: none;
43
- margin-left: 4px;
44
- line-height: var(--bagde-height);
45
- height: var(--bagde-height);
46
- -webkit-font-smoothing: auto;
47
- }
48
-
49
- // Line height centering
50
- .collection-item span.badge {
51
- margin-top: calc(calc(1.5rem * 0.5) - calc(var(--bagde-height) * 0.5));
52
- }
53
-
54
- .collapsible span.badge {
55
- margin-left: auto;
56
-
57
- &.leading {
58
- margin-right: 7px;
59
- order: -1;
60
- }
61
- }
62
-
63
- .collapsible .active span.badge:not(.new) {
64
- color: var(--md-sys-color-on-surface-variant);
65
- }
66
-
67
- .sidenav span.badge {
68
- margin-top: calc(calc(var(--sidenav-line-height) * 0.5) - calc(22px * 0.5));
69
- }
70
-
71
- table span.badge {
72
- display: inline-block;
73
- float: none;
74
- margin-left: auto;
75
- }