matcha-theme 1.0.27 → 18.0.28
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/abstracts/_colors.scss +54 -72
- package/abstracts/_grid.scss +9 -5
- package/abstracts/_sizes.scss +33 -104
- package/base/_helpers.scss +18 -18
- package/components/matcha-buttons.scss +8 -13
- package/components/matcha-menu.scss +71 -0
- package/main.scss +2 -0
- package/package.json +2 -2
package/abstracts/_colors.scss
CHANGED
|
@@ -228,7 +228,7 @@ $index: 0;
|
|
|
228
228
|
$grey-contrast: map-get($grey, 'contrast');
|
|
229
229
|
$blue-grey: map-get($palettes, blue-grey);
|
|
230
230
|
$blue-grey-contrast: map-get($blue-grey, 'contrast');
|
|
231
|
-
|
|
231
|
+
|
|
232
232
|
// colors from theme
|
|
233
233
|
$primary: map-get($theme, primary);
|
|
234
234
|
$primary-contrast: map-get($primary, 'contrast');
|
|
@@ -236,17 +236,17 @@ $index: 0;
|
|
|
236
236
|
$accent-contrast: map-get($accent, 'contrast');
|
|
237
237
|
$warn: map-get($theme, warn);
|
|
238
238
|
$warn-contrast: map-get($warn, 'contrast');
|
|
239
|
-
|
|
239
|
+
|
|
240
240
|
$background: map-get($theme, background);
|
|
241
241
|
$foreground: map-get($theme, foreground);
|
|
242
|
-
|
|
242
|
+
|
|
243
243
|
.color-unset{
|
|
244
244
|
color: map-get($foreground, text );
|
|
245
245
|
.ripple {
|
|
246
246
|
background: map-get($foreground, text );
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
|
|
249
|
+
|
|
250
250
|
@if ($is-dark) {
|
|
251
251
|
.red.matcha-button-outline .ripple, .background-red-alpha {background: rgba(map-get($red, 100), 0.2)}
|
|
252
252
|
.red .ripple{background: rgba(map-get($red-contrast, 100), 0.2)}
|
|
@@ -457,40 +457,6 @@ $index: 0;
|
|
|
457
457
|
background: map-get($blue-grey, 100);
|
|
458
458
|
color: map-get($blue-grey-contrast, 100);
|
|
459
459
|
}
|
|
460
|
-
|
|
461
|
-
.primary.matcha-button-outline .ripple, .background-primary-alpha {background: rgba(map-get($primary, 100), 0.2)}
|
|
462
|
-
.primary .ripple{background: rgba(map-get($primary-contrast, 100), 0.2)}
|
|
463
|
-
.background-primary{background: map-get($primary, 100)}
|
|
464
|
-
.border-color-primary{border-color: map-get($primary, 100)}
|
|
465
|
-
.primary.matcha-button-outline, .color-primary{color: map-get($primary, 100)}
|
|
466
|
-
.fill-primary{fill: map-get($primary, 100)}
|
|
467
|
-
.stroke-primary{stroke: map-get($primary, 100)}
|
|
468
|
-
.primary{
|
|
469
|
-
background: map-get($primary, 100);
|
|
470
|
-
color: map-get($primary-contrast, 100);
|
|
471
|
-
}
|
|
472
|
-
.accent.matcha-button-outline .ripple, .background-accent-alpha {background: rgba(map-get($accent, 100), 0.2)}
|
|
473
|
-
.accent .ripple{background: rgba(map-get($accent-contrast, 100), 0.2)}
|
|
474
|
-
.background-accent{background: map-get($accent, 100)}
|
|
475
|
-
.border-color-accent{border-color: map-get($accent, 100)}
|
|
476
|
-
.accent.matcha-button-outline, .color-accent{color: map-get($accent, 100)}
|
|
477
|
-
.fill-accent{fill: map-get($accent, 100)}
|
|
478
|
-
.stroke-accent{stroke: map-get($accent, 100)}
|
|
479
|
-
.accent{
|
|
480
|
-
background: map-get($accent, 100);
|
|
481
|
-
color: map-get($accent-contrast, 100);
|
|
482
|
-
}
|
|
483
|
-
.warn.matcha-button-outline .ripple, .background-warn-alpha {background: rgba(map-get($warn, 100), 0.2)}
|
|
484
|
-
.warn .ripple{background: rgba(map-get($warn-contrast, 100), 0.2)}
|
|
485
|
-
.background-warn{background: map-get($warn, 100)}
|
|
486
|
-
.border-color-warn{border-color: map-get($warn, 100)}
|
|
487
|
-
.warn.matcha-button-outline, .color-warn{color: map-get($warn, 100)}
|
|
488
|
-
.fill-warn{fill: map-get($warn, 100)}
|
|
489
|
-
.stroke-warn{stroke: map-get($warn, 100)}
|
|
490
|
-
.warn{
|
|
491
|
-
background: map-get($warn, 100);
|
|
492
|
-
color: map-get($warn-contrast, 100);
|
|
493
|
-
}
|
|
494
460
|
} @else {
|
|
495
461
|
.red.matcha-button-outline .ripple, .background-red-alpha {background: rgba(map-get($red, 500), 0.2)}
|
|
496
462
|
.red .ripple{background: rgba(map-get($red-contrast, 500), 0.2)}
|
|
@@ -503,7 +469,7 @@ $index: 0;
|
|
|
503
469
|
background: map-get($red, 500);
|
|
504
470
|
color: map-get($red-contrast, 500);
|
|
505
471
|
}
|
|
506
|
-
|
|
472
|
+
|
|
507
473
|
.pink.matcha-button-outline .ripple, .background-pink-alpha {background: rgba(map-get($pink, 500), 0.2)}
|
|
508
474
|
.pink .ripple{background: rgba(map-get($pink-contrast, 500), 0.2)}
|
|
509
475
|
.background-pink{background: map-get($pink, 500)}
|
|
@@ -702,41 +668,57 @@ $index: 0;
|
|
|
702
668
|
background: map-get($blue-grey, 500);
|
|
703
669
|
color: map-get($blue-grey-contrast, 500);
|
|
704
670
|
}
|
|
705
|
-
.primary.matcha-button-outline .ripple, .background-primary-alpha {background: rgba(map-get($primary, 500), 0.2)}
|
|
706
|
-
.primary .ripple{background: rgba(map-get($primary-contrast, 500), 0.2)}
|
|
707
|
-
.background-primary{background: map-get($primary, 500)}
|
|
708
|
-
.border-color-primary{border-color: map-get($primary, 500)}
|
|
709
|
-
.primary.matcha-button-outline, .color-primary{color: map-get($primary, 500)}
|
|
710
|
-
.fill-primary{fill: map-get($primary, 500)}
|
|
711
|
-
.stroke-primary{stroke: map-get($primary, 500)}
|
|
712
|
-
.primary{
|
|
713
|
-
background: map-get($primary, 500);
|
|
714
|
-
color: map-get($primary-contrast, 500);
|
|
715
|
-
}
|
|
716
|
-
.accent.matcha-button-outline .ripple, .background-accent-alpha {background: rgba(map-get($accent, 500), 0.2)}
|
|
717
|
-
.accent .ripple{background: rgba(map-get($accent-contrast, 500), 0.2)}
|
|
718
|
-
.background-accent{background: map-get($accent, 500)}
|
|
719
|
-
.border-color-accent{border-color: map-get($accent, 500)}
|
|
720
|
-
.accent.matcha-button-outline, .color-accent{color: map-get($accent, 500)}
|
|
721
|
-
.fill-accent{fill: map-get($accent, 500)}
|
|
722
|
-
.stroke-accent{stroke: map-get($accent, 500)}
|
|
723
|
-
.accent{
|
|
724
|
-
background: map-get($accent, 500);
|
|
725
|
-
color: map-get($accent-contrast, 500);
|
|
726
|
-
}
|
|
727
|
-
.warn.matcha-button-outline .ripple, .background-warn-alpha {background: rgba(map-get($warn, 500), 0.2)}
|
|
728
|
-
.warn .ripple{background: rgba(map-get($warn-contrast, 500), 0.2)}
|
|
729
|
-
.background-warn{background: map-get($warn, 500)}
|
|
730
|
-
.border-color-warn{border-color: map-get($warn, 500)}
|
|
731
|
-
.warn.matcha-button-outline, .color-warn{color: map-get($warn, 500)}
|
|
732
|
-
.fill-warn{fill: map-get($warn, 500)}
|
|
733
|
-
.stroke-warn{stroke: map-get($warn, 500)}
|
|
734
|
-
.warn{
|
|
735
|
-
background: map-get($warn, 500);
|
|
736
|
-
color: map-get($warn-contrast, 500);
|
|
737
|
-
}
|
|
738
671
|
}
|
|
739
672
|
|
|
673
|
+
.primary.matcha-button-outline .ripple, .background-primary-alpha {background: rgba(map-get($primary, default), 0.2)}
|
|
674
|
+
.primary .ripple{background: rgba(map-get($primary, default-contrast), 0.2)}
|
|
675
|
+
.background-primary{background: map-get($primary, default)}
|
|
676
|
+
.border-color-primary{border-color: map-get($primary, default)}
|
|
677
|
+
.primary.matcha-button-outline, .color-primary{color: map-get($primary, default)}
|
|
678
|
+
.fill-primary{fill: map-get($primary, default)}
|
|
679
|
+
.stroke-primary{stroke: map-get($primary, default)}
|
|
680
|
+
.primary{
|
|
681
|
+
background: map-get($primary, default);
|
|
682
|
+
color: map-get($primary, default-contrast);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.accent.matcha-button-outline .ripple, .background-accent-alpha {background: rgba(map-get($accent, default), 0.2)}
|
|
686
|
+
.accent .ripple{background: rgba(map-get($accent, default-contrast), 0.2)}
|
|
687
|
+
.background-accent{background: map-get($accent, default)}
|
|
688
|
+
.border-color-accent{border-color: map-get($accent, default)}
|
|
689
|
+
.accent.matcha-button-outline, .color-accent{color: map-get($accent, default)}
|
|
690
|
+
.fill-accent{fill: map-get($accent, default)}
|
|
691
|
+
.stroke-accent{stroke: map-get($accent, default)}
|
|
692
|
+
.accent{
|
|
693
|
+
background: map-get($accent, default);
|
|
694
|
+
color: map-get($accent, default-contrast);
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
.warn.matcha-button-outline .ripple, .background-warn-alpha {background: rgba(map-get($warn, default), 0.2)}
|
|
698
|
+
.warn .ripple{background: rgba(map-get($warn, default-contrast), 0.2)}
|
|
699
|
+
.background-warn{background: map-get($warn, default)}
|
|
700
|
+
.border-color-warn{border-color: map-get($warn, default)}
|
|
701
|
+
.warn.matcha-button-outline, .color-warn{color: map-get($warn, default)}
|
|
702
|
+
.fill-warn{fill: map-get($warn, default)}
|
|
703
|
+
.stroke-warn{stroke: map-get($warn, default)}
|
|
704
|
+
.warn{
|
|
705
|
+
background: map-get($warn, default);
|
|
706
|
+
color: map-get($warn, default-contrast);
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
.basic.matcha-button-outline .ripple, .background-basic-alpha {background: rgba(map-get($foreground, base), 0.2)}
|
|
710
|
+
.basic .ripple{background: rgba(map-get($foreground, base), 0.2)}
|
|
711
|
+
.background-basic{background: map-get($background, card)}
|
|
712
|
+
.border-color-basic{border-color: map-get($foreground, base)}
|
|
713
|
+
.basic.matcha-button-outline, .color-basic{color: map-get($foreground, base)}
|
|
714
|
+
.fill-basic{fill: map-get($background, card)}
|
|
715
|
+
.stroke-basic{stroke: map-get($foreground, base)}
|
|
716
|
+
.basic{
|
|
717
|
+
background: map-get($background, card);
|
|
718
|
+
color: map-get($foreground, base);
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
|
|
740
722
|
$attributes: (
|
|
741
723
|
color: $foreground,
|
|
742
724
|
border-color: $foreground,
|
package/abstracts/_grid.scss
CHANGED
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
@media only screen and (min-width: #{$value}) {
|
|
12
12
|
@for $i from 1 through $grid-length {
|
|
13
13
|
.row > .#{$grid-prefix}-#{$sizeLabel}-#{$i} {
|
|
14
|
-
flex-basis: $i / $grid-length * 100%;
|
|
14
|
+
$calculated-flex-basis: calc($i / $grid-length) * 100%;
|
|
15
|
+
flex-basis: $calculated-flex-basis;
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
.row > .#{$grid-prefix}-offset-#{$sizeLabel}-#{$i} {
|
|
18
|
-
margin-left: $i / $grid-length * 100%;
|
|
19
|
+
$calculated-margin-left: calc($i / $grid-length) * 100%;
|
|
20
|
+
margin-left: $calculated-margin-left;
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
|
|
@@ -93,11 +95,13 @@
|
|
|
93
95
|
|
|
94
96
|
@for $i from 1 through $grid-length {
|
|
95
97
|
.#{$grid-prefix}-#{$i} {
|
|
96
|
-
flex-basis: $i / $grid-length * 100%;
|
|
98
|
+
$calculated-flex-basis: calc($i / $grid-length) * 100%;
|
|
99
|
+
flex-basis: $calculated-flex-basis;
|
|
97
100
|
}
|
|
98
101
|
|
|
99
102
|
.#{$grid-prefix}-offset-#{$i} {
|
|
100
|
-
margin-left: $i / $grid-length * 100%;
|
|
103
|
+
$calculated-margin-left: calc($i / $grid-length) * 100%;
|
|
104
|
+
margin-left: $calculated-margin-left;
|
|
101
105
|
}
|
|
102
106
|
|
|
103
107
|
@each $sizeLabel, $value in $grid-sizes {
|
|
@@ -156,4 +160,4 @@
|
|
|
156
160
|
column-gap: 24px;
|
|
157
161
|
row-gap: 24px;
|
|
158
162
|
}
|
|
159
|
-
}
|
|
163
|
+
}
|
package/abstracts/_sizes.scss
CHANGED
|
@@ -1,35 +1,30 @@
|
|
|
1
1
|
// -----------------------------------------------------------------------------------------------------
|
|
2
2
|
// @ Size helpers
|
|
3
3
|
// -----------------------------------------------------------------------------------------------------
|
|
4
|
+
// Media step breakpoint mixin based on Angular Material lib
|
|
5
|
+
|
|
6
|
+
@mixin generate-size-classes($prop, $abbrev, $length, $size, $infix: "", $important: false) {
|
|
7
|
+
.#{$abbrev}#{$infix}-#{$size} {
|
|
8
|
+
#{$prop}: $length#{if($important, " !important", "")};
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.max-#{$abbrev}#{$infix}-#{$size} {
|
|
12
|
+
max-#{$prop}: $length#{if($important, " !important", "")};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.min-#{$abbrev}#{$infix}-#{$size} {
|
|
16
|
+
min-#{$prop}: $length#{if($important, " !important", "")};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
4
20
|
@each $prop, $abbrev in (height: h, width: w) {
|
|
5
21
|
// pixels - Without breakpoint infix
|
|
6
22
|
@for $index from 0 through 64 {
|
|
7
23
|
$size: $index * 4;
|
|
8
24
|
$length: #{$size}px;
|
|
9
25
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.max-#{$abbrev}-#{$size} {
|
|
15
|
-
max-#{$prop}: $length;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.min-#{$abbrev}-#{$size} {
|
|
19
|
-
min-#{$prop}: $length;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.#{$abbrev}-#{$size}--force {
|
|
23
|
-
#{$prop}: $length !important;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.max-#{$abbrev}-#{$size}--force {
|
|
27
|
-
max-#{$prop}: $length !important;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.min-#{$abbrev}-#{$size}--force {
|
|
31
|
-
min-#{$prop}: $length !important;
|
|
32
|
-
}
|
|
26
|
+
@include generate-size-classes($prop, $abbrev, $length, $size);
|
|
27
|
+
@include generate-size-classes($prop, $abbrev, $length, "#{$size}--force", "", true);
|
|
33
28
|
}
|
|
34
29
|
|
|
35
30
|
// percentage - Without breakpoint infix
|
|
@@ -37,17 +32,8 @@
|
|
|
37
32
|
$i-p: 5 * $i;
|
|
38
33
|
$size-p: 5% * $i;
|
|
39
34
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.max-#{$abbrev}-#{$i-p}-p {
|
|
45
|
-
max-#{$prop}: $size-p !important;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.min-#{$abbrev}-#{$i-p}-p {
|
|
49
|
-
min-#{$prop}: $size-p !important;
|
|
50
|
-
}
|
|
35
|
+
@include generate-size-classes($prop, $abbrev, $size-p, "#{$i-p}-p");
|
|
36
|
+
@include generate-size-classes($prop, $abbrev, $size-p, "#{$i-p}-p--force", "", true);
|
|
51
37
|
}
|
|
52
38
|
|
|
53
39
|
// big sizes - Without breakpoint infix
|
|
@@ -55,17 +41,8 @@
|
|
|
55
41
|
$size: $i * 100;
|
|
56
42
|
$length: #{$size}px;
|
|
57
43
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.max-#{$abbrev}-#{$size} {
|
|
63
|
-
max-#{$prop}: $length !important;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.min-#{$abbrev}-#{$size} {
|
|
67
|
-
min-#{$prop}: $length !important;
|
|
68
|
-
}
|
|
44
|
+
@include generate-size-classes($prop, $abbrev, $length, $size);
|
|
45
|
+
@include generate-size-classes($prop, $abbrev, $length, "#{$size}--force", "", true);
|
|
69
46
|
}
|
|
70
47
|
|
|
71
48
|
// auto - Without breakpoint infix
|
|
@@ -76,7 +53,7 @@
|
|
|
76
53
|
|
|
77
54
|
@each $breakpoint-infix, $media-size in $helper-breakpoints {
|
|
78
55
|
@include media-breakpoint($media-size) {
|
|
79
|
-
$infix: if($media-size ==null, "", "-#{$breakpoint-infix}");
|
|
56
|
+
$infix: if($media-size == null, "", "-#{$breakpoint-infix}");
|
|
80
57
|
|
|
81
58
|
@each $prop, $abbrev in (height: h, width: w) {
|
|
82
59
|
// pixels - With breakpoint infix
|
|
@@ -84,29 +61,8 @@
|
|
|
84
61
|
$size: $index * 4;
|
|
85
62
|
$length: #{$size}px;
|
|
86
63
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.max-#{$abbrev}#{$infix}-#{$size} {
|
|
92
|
-
max-#{$prop}: $length;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.min-#{$abbrev}#{$infix}-#{$size} {
|
|
96
|
-
min-#{$prop}: $length;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.#{$abbrev}#{$infix}-#{$size}--force {
|
|
100
|
-
#{$prop}: $length !important;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.max-#{$abbrev}#{$infix}-#{$size}--force {
|
|
104
|
-
max-#{$prop}: $length !important;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.min-#{$abbrev}#{$infix}-#{$size}--force {
|
|
108
|
-
min-#{$prop}: $length !important;
|
|
109
|
-
}
|
|
64
|
+
@include generate-size-classes($prop, $abbrev, $length, $size, $infix);
|
|
65
|
+
@include generate-size-classes($prop, $abbrev, $length, "#{$size}--force", $infix, true);
|
|
110
66
|
}
|
|
111
67
|
|
|
112
68
|
// percentage - With breakpoint infix
|
|
@@ -114,35 +70,17 @@
|
|
|
114
70
|
$i-p: 5 * $i;
|
|
115
71
|
$size-p: 5% * $i;
|
|
116
72
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.max-#{$abbrev}#{$infix}-#{$i-p}-p {
|
|
122
|
-
max-#{$prop}: $size-p !important;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.min-#{$abbrev}#{$infix}-#{$i-p}-p {
|
|
126
|
-
min-#{$prop}: $size-p !important;
|
|
127
|
-
}
|
|
73
|
+
@include generate-size-classes($prop, $abbrev, $size-p, "#{$i-p}-p", $infix);
|
|
74
|
+
@include generate-size-classes($prop, $abbrev, $size-p, "#{$i-p}-p--force", $infix, true);
|
|
128
75
|
}
|
|
129
76
|
|
|
130
77
|
// big sizes - With breakpoint infix
|
|
131
|
-
@for $i from 3 through
|
|
78
|
+
@for $i from 3 through 10 {
|
|
132
79
|
$size: $i * 100;
|
|
133
80
|
$length: #{$size}px;
|
|
134
81
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.max-#{$abbrev}#{$infix}-#{$size} {
|
|
140
|
-
max-#{$prop}: $length !important;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.min-#{$abbrev}#{$infix}-#{$size} {
|
|
144
|
-
min-#{$prop}: $length !important;
|
|
145
|
-
}
|
|
82
|
+
@include generate-size-classes($prop, $abbrev, $length, $size, $infix);
|
|
83
|
+
@include generate-size-classes($prop, $abbrev, $length, "#{$size}--force", $infix, true);
|
|
146
84
|
}
|
|
147
85
|
|
|
148
86
|
// auto - With breakpoint infix
|
|
@@ -152,15 +90,6 @@
|
|
|
152
90
|
}
|
|
153
91
|
}
|
|
154
92
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
.max-w-1440{
|
|
159
|
-
max-width: 1440px;
|
|
160
|
-
}
|
|
161
|
-
.max-w-1024{
|
|
162
|
-
max-width: 1024px;
|
|
163
|
-
}
|
|
164
|
-
.max-w-600{
|
|
165
|
-
max-width: 600px;
|
|
166
|
-
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
package/base/_helpers.scss
CHANGED
|
@@ -529,54 +529,54 @@ $align-class-names: top, right, bottom, left;
|
|
|
529
529
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
530
530
|
@include media-breakpoint($materialBreakpoint) {
|
|
531
531
|
$infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
|
|
532
|
-
|
|
532
|
+
|
|
533
533
|
.text#{$infix}-decoration-strike,
|
|
534
534
|
.text#{$infix}-strike,
|
|
535
535
|
.text#{$infix}-line-through {
|
|
536
536
|
text-decoration: line-through !important
|
|
537
537
|
}
|
|
538
|
-
|
|
538
|
+
|
|
539
539
|
.text#{$infix}-decoration-none,
|
|
540
540
|
.text#{$infix}-none {
|
|
541
541
|
text-decoration: none !important
|
|
542
542
|
}
|
|
543
|
-
|
|
543
|
+
|
|
544
544
|
.text#{$infix}-super {
|
|
545
545
|
vertical-align: super !important
|
|
546
546
|
}
|
|
547
|
-
|
|
547
|
+
|
|
548
548
|
.text#{$infix}-sub {
|
|
549
549
|
vertical-align: sub !important
|
|
550
550
|
}
|
|
551
|
-
|
|
551
|
+
|
|
552
552
|
.text#{$infix}-capitalize {
|
|
553
553
|
text-transform: capitalize !important
|
|
554
554
|
}
|
|
555
|
-
|
|
555
|
+
|
|
556
556
|
.text#{$infix}-lowercase {
|
|
557
557
|
text-transform: lowercase !important
|
|
558
558
|
}
|
|
559
|
-
|
|
559
|
+
|
|
560
560
|
.text#{$infix}-uppercase {
|
|
561
561
|
text-transform: uppercase !important
|
|
562
562
|
}
|
|
563
|
-
|
|
563
|
+
|
|
564
564
|
.text#{$infix}-nowrap {
|
|
565
565
|
white-space: nowrap
|
|
566
566
|
}
|
|
567
|
-
|
|
567
|
+
|
|
568
568
|
.text#{$infix}-left {
|
|
569
569
|
text-align: left !important
|
|
570
570
|
}
|
|
571
|
-
|
|
571
|
+
|
|
572
572
|
.text#{$infix}-center {
|
|
573
573
|
text-align: center !important
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
|
|
576
576
|
.text#{$infix}-right {
|
|
577
577
|
text-align: right !important
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
|
|
580
580
|
.text#{$infix}-boxed {
|
|
581
581
|
border-radius: 2px;
|
|
582
582
|
padding: 4px 8px;
|
|
@@ -585,7 +585,7 @@ $align-class-names: top, right, bottom, left;
|
|
|
585
585
|
font-weight: 600;
|
|
586
586
|
white-space: nowrap
|
|
587
587
|
}
|
|
588
|
-
|
|
588
|
+
|
|
589
589
|
.text#{$infix}-truncate,
|
|
590
590
|
.text#{$infix}-ellipsis {
|
|
591
591
|
display: block;
|
|
@@ -607,7 +607,7 @@ $align-class-names: top, right, bottom, left;
|
|
|
607
607
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
608
608
|
@include media-breakpoint($materialBreakpoint) {
|
|
609
609
|
$infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
|
|
610
|
-
|
|
610
|
+
|
|
611
611
|
@for $i from 0 through 4 {
|
|
612
612
|
$border-value: $i * 2;
|
|
613
613
|
$border-suffix: "-#{$border-value}";
|
|
@@ -648,7 +648,7 @@ $align-class-names: top, right, bottom, left;
|
|
|
648
648
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
649
649
|
@include media-breakpoint($materialBreakpoint) {
|
|
650
650
|
$infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
|
|
651
|
-
|
|
651
|
+
|
|
652
652
|
@for $i from 0 through 8 {
|
|
653
653
|
$radius-value: $i * 2;
|
|
654
654
|
$radius-suffix: "-#{$radius-value}";
|
|
@@ -1831,7 +1831,7 @@ $align-class-names: top, right, bottom, left;
|
|
|
1831
1831
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
1832
1832
|
@include media-breakpoint($materialBreakpoint) {
|
|
1833
1833
|
$infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
|
|
1834
|
-
|
|
1834
|
+
|
|
1835
1835
|
@for $index from 1 through 9 {
|
|
1836
1836
|
$weight: $index * 100;
|
|
1837
1837
|
.font-weight#{$infix}-#{$weight},
|
|
@@ -1851,7 +1851,7 @@ $align-class-names: top, right, bottom, left;
|
|
|
1851
1851
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
1852
1852
|
@include media-breakpoint($materialBreakpoint) {
|
|
1853
1853
|
$infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
|
|
1854
|
-
|
|
1854
|
+
|
|
1855
1855
|
$index: 0;
|
|
1856
1856
|
@while $index <= 18 {
|
|
1857
1857
|
$size: $index * 4;
|
|
@@ -1873,7 +1873,7 @@ $align-class-names: top, right, bottom, left;
|
|
|
1873
1873
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
1874
1874
|
@include media-breakpoint($materialBreakpoint) {
|
|
1875
1875
|
$infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
|
|
1876
|
-
|
|
1876
|
+
|
|
1877
1877
|
$index: 0;
|
|
1878
1878
|
@while $index <= 36 {
|
|
1879
1879
|
$height: $index * 2;
|
|
@@ -94,23 +94,23 @@
|
|
|
94
94
|
&:hover{
|
|
95
95
|
// filter: brightness(1.1);
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
|
|
98
98
|
&:active{
|
|
99
99
|
// filter: brightness(0.9);
|
|
100
100
|
}
|
|
101
|
-
|
|
101
|
+
|
|
102
102
|
&:disabled {
|
|
103
103
|
background-color: map-get($background, disabled);
|
|
104
104
|
color: map-get($foreground, disabled);
|
|
105
105
|
border-color: map-get($foreground, disabled);
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
&-basic {
|
|
109
109
|
border: 0px solid currentColor;
|
|
110
110
|
box-shadow: 0px 0px 0px 0px inset;
|
|
111
111
|
background: transparent !important;
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
|
|
114
114
|
&-outline {
|
|
115
115
|
border: 0px solid currentColor;
|
|
116
116
|
box-shadow: 0px 0px 0px 2px inset;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
&-pill {
|
|
121
|
-
border-radius:
|
|
121
|
+
border-radius: 999px;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
&-link {
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
text-decoration: underline;
|
|
130
130
|
padding: 0;
|
|
131
131
|
}
|
|
132
|
-
|
|
132
|
+
|
|
133
133
|
&-icon {
|
|
134
134
|
aspect-ratio: 1;
|
|
135
135
|
padding: 0 !important;
|
|
@@ -137,12 +137,7 @@
|
|
|
137
137
|
align-items: center;
|
|
138
138
|
justify-content: center;
|
|
139
139
|
}
|
|
140
|
-
|
|
141
|
-
&.color-unset{
|
|
142
|
-
.ripple {
|
|
143
|
-
background: rgba(0,0,0,.15);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
140
|
+
|
|
146
141
|
.ripple {
|
|
147
142
|
position: absolute;
|
|
148
143
|
border-radius: 999px;
|
|
@@ -152,7 +147,7 @@
|
|
|
152
147
|
.ripple.show {
|
|
153
148
|
animation: ripple 400ms ease-out;
|
|
154
149
|
}
|
|
155
|
-
|
|
150
|
+
|
|
156
151
|
@keyframes ripple {
|
|
157
152
|
0% {
|
|
158
153
|
opacity: 0;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
@mixin matcha-menu-theme($theme) {
|
|
2
|
+
$primary: map-get($theme, primary);
|
|
3
|
+
$accent: map-get($theme, accent);
|
|
4
|
+
$warn: map-get($theme, warn);
|
|
5
|
+
$background: map-get($theme, background);
|
|
6
|
+
$foreground: map-get($theme, foreground);
|
|
7
|
+
|
|
8
|
+
.matcha-menu{
|
|
9
|
+
position: relative;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.matcha-menu-trigger{
|
|
13
|
+
line-height: 48px;
|
|
14
|
+
}
|
|
15
|
+
.menu {
|
|
16
|
+
position: absolute;
|
|
17
|
+
background: white;
|
|
18
|
+
display: none;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
z-index: 1000;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.menu.show {
|
|
24
|
+
display: flex;
|
|
25
|
+
left: 100%;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.menu-item {
|
|
29
|
+
position: relative;
|
|
30
|
+
button{
|
|
31
|
+
background: white;
|
|
32
|
+
border: none;
|
|
33
|
+
padding: 0;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
font-size: 16px;
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
height: 48px;
|
|
38
|
+
appearance: auto;
|
|
39
|
+
text-rendering: auto;
|
|
40
|
+
letter-spacing: normal;
|
|
41
|
+
word-spacing: normal;
|
|
42
|
+
line-height: normal;
|
|
43
|
+
text-transform: none;
|
|
44
|
+
text-indent: 0px;
|
|
45
|
+
text-shadow: none;
|
|
46
|
+
display: inline-block;
|
|
47
|
+
text-align: center;
|
|
48
|
+
align-items: flex-start;
|
|
49
|
+
cursor: default;
|
|
50
|
+
box-sizing: border-box;
|
|
51
|
+
*{
|
|
52
|
+
pointer-events: none;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.submenu {
|
|
58
|
+
position: absolute;
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.menu-item:hover > .submenu {
|
|
63
|
+
display: block;
|
|
64
|
+
z-index: 1001; /* Ensure submenus appear above other content */
|
|
65
|
+
position:relative;
|
|
66
|
+
top: -48px;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
}
|
package/main.scss
CHANGED
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
@import "./components/matcha-draggable.scss"; // matcha-draggable-theme($theme)
|
|
34
34
|
@import "./components/matcha-header.scss"; // matcha-header-theme($theme)
|
|
35
35
|
@import "./components/matcha-horizontal-tree.scss"; // matcha-horizontal-tree-theme($theme)
|
|
36
|
+
@import "./components/matcha-menu.scss"; // matcha-menu-theme($theme)
|
|
36
37
|
@import "./components/matcha-progress-bar.scss"; // matcha-progress-bar-theme($theme)
|
|
37
38
|
@import "./components/matcha-scrollbar.scss"; // matcha-scrollbar-theme($theme)
|
|
38
39
|
@import "./components/matcha-scrollbox-shadow.scss"; // matcha-scrollbox-shadow-theme($theme)
|
|
@@ -130,4 +131,5 @@
|
|
|
130
131
|
|
|
131
132
|
@include matcha-button-theme($theme);
|
|
132
133
|
@include matcha-header-theme($theme);
|
|
134
|
+
@include matcha-menu-theme($theme);
|
|
133
135
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matcha-theme",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "18.0.28",
|
|
4
|
+
"description": "Themes for matcha-design-system",
|
|
5
5
|
"main": "main.scss",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|