matcha-theme 18.1.49 → 18.1.50
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 +0 -52
- package/abstracts/{_mixins.scss → _media-breakpoint.scss} +10 -1
- package/components/matcha-header.scss +7 -7
- package/main.scss +3 -3
- package/package.json +1 -1
- package/tokens/{_breakpoints.scss → _breakpoints-tokens.scss} +4 -4
- /package/tokens/{_animations.scss → _animations-tokens.scss} +0 -0
package/abstracts/_colors.scss
CHANGED
|
@@ -47,24 +47,6 @@ $index: 0;
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
// @mixin _generate-classes($prefix, $color-map, $saturation) {
|
|
51
|
-
// // .primary-500
|
|
52
|
-
// // .primary-600-bg
|
|
53
|
-
// // .primary-700-fg
|
|
54
|
-
// $background: map-get($color-map, $saturation);
|
|
55
|
-
// $contrast: map-get($color-map, #{$saturation}-contrast);
|
|
56
|
-
|
|
57
|
-
// .#{$prefix}-#{$saturation} {
|
|
58
|
-
// background: $background;
|
|
59
|
-
// color: $contrast;
|
|
60
|
-
// }
|
|
61
|
-
// .#{$prefix}-#{$saturation}-bg {
|
|
62
|
-
// background: $background;
|
|
63
|
-
// }
|
|
64
|
-
// .#{$prefix}-#{$saturation}-fg {
|
|
65
|
-
// color: $background;
|
|
66
|
-
// }
|
|
67
|
-
// }
|
|
68
50
|
|
|
69
51
|
// -------------------------------------------------------------------------------------------------------------------
|
|
70
52
|
// @ Static color classes generator
|
|
@@ -101,18 +83,6 @@ $index: 0;
|
|
|
101
83
|
color: $color !important;
|
|
102
84
|
}
|
|
103
85
|
}
|
|
104
|
-
|
|
105
|
-
// #{$colorSelector}-border,
|
|
106
|
-
// #{$colorSelector}-border-top,
|
|
107
|
-
// #{$colorSelector}-border-right,
|
|
108
|
-
// #{$colorSelector}-border-bottom,
|
|
109
|
-
// #{$colorSelector}-border-left {
|
|
110
|
-
// border-color: $color !important;
|
|
111
|
-
// }
|
|
112
|
-
|
|
113
|
-
// #{$colorSelector}-fill {
|
|
114
|
-
// fill: $color !important;
|
|
115
|
-
// }
|
|
116
86
|
}
|
|
117
87
|
|
|
118
88
|
@mixin colors-classes-static($theme) {
|
|
@@ -152,28 +122,6 @@ $index: 0;
|
|
|
152
122
|
);
|
|
153
123
|
}
|
|
154
124
|
}
|
|
155
|
-
// Run the generator one more time for default values (500)
|
|
156
|
-
// if we are not working with primary, accent or warn palettes
|
|
157
|
-
// @if ($saturation == 500) {
|
|
158
|
-
// // Generate color classes
|
|
159
|
-
// @include _generate-static-color-classes($paletteName, $color, $contrast, "");
|
|
160
|
-
|
|
161
|
-
// // Add color to the correct list depending on the contrasting color
|
|
162
|
-
|
|
163
|
-
// // If the contrast color is dark
|
|
164
|
-
// @if (rgba(black, 1) ==rgba($contrast, 1)) {
|
|
165
|
-
// $dark-contrasting-classes: append($dark-contrasting-classes, unquote(".#{$paletteName}"), "comma");
|
|
166
|
-
// }
|
|
167
|
-
|
|
168
|
-
// // if the contrast color is light
|
|
169
|
-
// @else {
|
|
170
|
-
// $light-contrasting-classes: append(
|
|
171
|
-
// $light-contrasting-classes,
|
|
172
|
-
// unquote(".#{$paletteName}"),
|
|
173
|
-
// "comma"
|
|
174
|
-
// );
|
|
175
|
-
// }
|
|
176
|
-
// }
|
|
177
125
|
}
|
|
178
126
|
}
|
|
179
127
|
|
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
// -------------------------------------------------------------------------------------------------------------------
|
|
2
2
|
// @ Theme mixins
|
|
3
3
|
// --------------------------------------------------------------------------------------------------------------------
|
|
4
|
-
|
|
4
|
+
/*
|
|
5
|
+
Esse mixin foi criado para não precisar escrever o valor em pixels de cada breakpoint toda vez que for necessário
|
|
6
|
+
criar um media query. Se em algum momento for necessário alterar o valor de um breakpoint, basta alterar o valor nos
|
|
7
|
+
tokens e o mixin irá se encarregar de atualizar todos os media queries que utilizam aquele breakpoint.
|
|
8
|
+
|
|
9
|
+
Exemplo de uso:
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
*/
|
|
5
14
|
@mixin media-breakpoint($breakpointName) {
|
|
6
15
|
$mediaQuery: map-get($breakpoints, $breakpointName);
|
|
7
16
|
@if ($mediaQuery == null) {
|
|
@@ -34,7 +34,7 @@ How to use
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
@media
|
|
37
|
+
@include media-breakpoint('gt-sm') {
|
|
38
38
|
.matcha-header {
|
|
39
39
|
|
|
40
40
|
// matcha-header__content
|
|
@@ -61,10 +61,10 @@ How to use
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
// X-Large devices (big desktops, 1440px and up < 1920)
|
|
64
|
-
@media
|
|
64
|
+
@include media-breakpoint('gt-md') {}
|
|
65
65
|
|
|
66
66
|
// XX-Large devices (larger desktops, 1920px and up)
|
|
67
|
-
@media
|
|
67
|
+
@include media-breakpoint('gt-lg') {}
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
// -----------------------------------------------------------------------------------------------------
|
|
@@ -251,10 +251,10 @@ How to use
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
// Medium devices (landscapes and tablets, 600px and up < 1024px )
|
|
254
|
-
@media
|
|
254
|
+
@include media-breakpoint('gt-xs') {}
|
|
255
255
|
|
|
256
256
|
// Large devices (tablets and small monitors, 1024px and up < 1440px)
|
|
257
|
-
@media
|
|
257
|
+
@include media-breakpoint('gt-xs') {
|
|
258
258
|
.matcha-header {
|
|
259
259
|
&__content {
|
|
260
260
|
padding: 16px;
|
|
@@ -321,7 +321,7 @@ How to use
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
// X-Large devices (big desktops, 1440px and up < 1920)
|
|
324
|
-
@media
|
|
324
|
+
@include media-breakpoint('gt-md') {}
|
|
325
325
|
|
|
326
326
|
// XX-Large devices (larger desktops, 1920px and up)
|
|
327
|
-
@media
|
|
327
|
+
@include media-breakpoint('gt-lg') {}
|
package/main.scss
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// TOKENS
|
|
2
|
-
@import "./tokens/animations";
|
|
3
|
-
@import "./tokens/breakpoints";
|
|
2
|
+
@import "./tokens/animations-tokens";
|
|
3
|
+
@import "./tokens/breakpoints-tokens";
|
|
4
4
|
@import "./tokens/color-tokens";
|
|
5
5
|
@import "./tokens/elevation-tokens";
|
|
6
6
|
@import "./tokens/spacing-tokens";
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
// MIXINS
|
|
13
13
|
@import "./abstracts/colors"; // colors-classes-static() colors-classes-dynamic()
|
|
14
14
|
@import "./abstracts/elevation"; // elevation() _matcha-theme-elevation() matcha-overridable-elevation() _matcha-theme-overridable-elevation() elevation-transition() elevation-theme()
|
|
15
|
-
@import "./abstracts/
|
|
15
|
+
@import "./abstracts/media-breakpoint"; // media-breakpoint()
|
|
16
16
|
|
|
17
17
|
// TYPOGRAPHY
|
|
18
18
|
@import "./abstracts/typography"; // matcha-typography-font-shorthand() matcha-typography-level-to-styles() matcha-reset-typography()
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
// Media step breakpoint mixin based on Angular Material lib
|
|
2
2
|
$breakpoints: (
|
|
3
3
|
xs: 'screen and (max-width: 599px)',
|
|
4
|
-
sm: 'screen and (min-width: 600px) and (max-width:
|
|
5
|
-
md: 'screen and (min-width:
|
|
4
|
+
sm: 'screen and (min-width: 600px) and (max-width: 1023px)',
|
|
5
|
+
md: 'screen and (min-width: 1024px) and (max-width: 1439px)',
|
|
6
6
|
lg: 'screen and (min-width: 1440px) and (max-width: 1919px)',
|
|
7
7
|
xl: 'screen and (min-width: 1920px) and (max-width: 5000px)',
|
|
8
8
|
lt-sm: 'screen and (max-width: 599px)',
|
|
9
|
-
lt-md: 'screen and (max-width:
|
|
9
|
+
lt-md: 'screen and (max-width: 1023px)',
|
|
10
10
|
lt-lg: 'screen and (max-width: 1439px)',
|
|
11
11
|
lt-xl: 'screen and (max-width: 1919px)',
|
|
12
12
|
gt-xs: 'screen and (min-width: 600px)',
|
|
13
|
-
gt-sm: 'screen and (min-width:
|
|
13
|
+
gt-sm: 'screen and (min-width: 1024px)',
|
|
14
14
|
gt-md: 'screen and (min-width: 1440px)',
|
|
15
15
|
gt-lg: 'screen and (min-width: 1920px)'
|
|
16
16
|
) !default;
|
|
File without changes
|