matcha-theme 18.1.28 → 18.1.30

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.
@@ -122,3 +122,4 @@
122
122
  font-family: matcha-font-family($config, title);
123
123
  }
124
124
  }
125
+
package/base/_reset.scss CHANGED
@@ -7,3 +7,421 @@
7
7
  background: map-get($background, background);
8
8
  }
9
9
  }
10
+
11
+ /*
12
+ How to use
13
+ @import '~matcha-ds/assets/scss/components/matcha-typography.scss';
14
+ @include base-typography-theme($theme);
15
+ */
16
+ // -----------------------------------------------------------------------------------------------------
17
+ // Typography [Theme]
18
+ // -----------------------------------------------------------------------------------------------------
19
+ @mixin base-typography-theme($theme) {
20
+ $is-dark: map-get($theme, is-dark);
21
+ $accent: map-get($theme, accent);
22
+ $warn: map-get($theme, warn);
23
+ $primary: map-get($theme, primary);
24
+ $background: map-get($theme, background);
25
+ $foreground: map-get($theme, foreground);
26
+
27
+ a {
28
+ color: map-get($accent, default);
29
+ }
30
+
31
+ code {
32
+ &:not(.highlight) {
33
+ background-color: map-get($background, card);
34
+ }
35
+ }
36
+
37
+ .changelog {
38
+ .entry {
39
+ background-color: map-get($background, card);
40
+ }
41
+ }
42
+
43
+ .text-boxed {
44
+ @if ($is-dark) {
45
+ background-color: rgba(255, 255, 255, 0.12);
46
+ color: rgba(255, 255, 255, 0.54);
47
+ } @else {
48
+ background-color: rgba(0, 0, 0, 0.12);
49
+ color: rgba(0, 0, 0, 0.54);
50
+ }
51
+ }
52
+
53
+ .text-primary {
54
+ color: map-get($primary, default) !important;
55
+ }
56
+
57
+ .text-warn {
58
+ color: map-get($warn, default) !important;
59
+ }
60
+
61
+ .text-label {
62
+ color: map-get($foreground, label) !important;
63
+ }
64
+
65
+ .text-placeholder {
66
+ color: map-get($foreground, placeholder) !important;
67
+ }
68
+
69
+ .text-basic {
70
+ color: map-get($foreground, text) !important;
71
+ }
72
+
73
+ // Changelog
74
+ .changelog {
75
+ .entry {
76
+ .groups {
77
+ .breaking-changes {
78
+ .title {
79
+ background: map-get($background, red);
80
+ }
81
+ }
82
+
83
+ .new {
84
+ .title {
85
+ background: map-get($background, green);
86
+ }
87
+ }
88
+
89
+ .improved {
90
+ .title {
91
+ background: map-get($background, purple);
92
+ }
93
+ }
94
+
95
+ .fixed {
96
+ .title {
97
+ background: map-get($background, blue);
98
+ }
99
+ }
100
+ }
101
+ }
102
+ }
103
+
104
+ // Code
105
+ code {
106
+ &:not(.highlight) {
107
+ color: map-get($background, blue);
108
+ }
109
+ }
110
+
111
+ // Mark
112
+ mark {
113
+ background: map-get($background, yellow);
114
+ }
115
+
116
+ // Message boxes
117
+ .matcha-message-box,
118
+ .matcha-msg-box,
119
+ .message-box {
120
+ background-color: rgba(map-get($primary, default), 0.2);
121
+ border-left-color: map-get($primary, default);
122
+ color: map-get($foreground, text);
123
+
124
+ &.error,
125
+ &.warning,
126
+ &.success,
127
+ &.info,
128
+ &--error,
129
+ &--warning,
130
+ &--success,
131
+ &--info {
132
+ color: map-get($foreground, text);
133
+ }
134
+
135
+ &--error,
136
+ &.error {
137
+ background-color: map-get($background, red-alpha);
138
+ border-left-color: map-get($background, red);
139
+ }
140
+
141
+ &--warning,
142
+ &.warning {
143
+ background-color: map-get($background, yellow-alpha);
144
+ border-left-color: map-get($background, yellow);
145
+ }
146
+
147
+ &--success,
148
+ &.success {
149
+ background-color: map-get($background, green-alpha);
150
+ border-left-color: map-get($background, green);
151
+ }
152
+
153
+ &--info,
154
+ &.info {
155
+ background-color: map-get($background, blue-alpha);
156
+ border-left-color: map-get($background, blue);
157
+ }
158
+ }
159
+ }
160
+
161
+ // -----------------------------------------------------------------------------------------------------
162
+ // Typography [Style]
163
+ // -----------------------------------------------------------------------------------------------------
164
+ // Paragraph
165
+ .par-xs {
166
+ font-size: 12px !important;
167
+ }
168
+
169
+ .par-sm,
170
+ .par-p {
171
+ font-size: 14px !important;
172
+ }
173
+
174
+ .par-md,
175
+ .par-m {
176
+ font-size: 16px !important;
177
+ }
178
+
179
+ .par-lg {
180
+ font-size: 20px !important;
181
+ }
182
+
183
+ .par-xl {
184
+ font-size: 24px !important;
185
+ }
186
+ .text-medium,
187
+ .text-semibold {
188
+ font-weight: 500;
189
+ }
190
+
191
+ .text-regular,
192
+ .text-book {
193
+ font-weight: 400;
194
+ }
195
+
196
+ .text-bold {
197
+ font-weight: 700;
198
+ }
199
+
200
+ .text-black {
201
+ font-weight: 900;
202
+ }
203
+
204
+ .matcha-message-box,
205
+ .matcha-msg-box,
206
+ .message-box {
207
+ padding: 16px;
208
+ border-left: 6px solid;
209
+
210
+ &.error,
211
+ &.warning,
212
+ &.success,
213
+ &.info,
214
+ &--error,
215
+ &--warning,
216
+ &--success,
217
+ &--info {
218
+ padding: 16px;
219
+ border-left: 6px solid;
220
+ }
221
+ }
222
+
223
+ .title {
224
+ line-height: 24px;
225
+ margin: 0 0 16px 0;
226
+ display: flex;
227
+ align-items: center;
228
+
229
+ .title-bullet {
230
+ margin: 0px 8px 0 0;
231
+ display: inline-block;
232
+ position: relative;
233
+ border-radius: 10px;
234
+ }
235
+
236
+ .title-content {
237
+ line-height: 20px;
238
+ display: -webkit-box;
239
+ -webkit-line-clamp: 2;
240
+ overflow: hidden;
241
+ text-overflow: ellipsis;
242
+ word-break: break-word;
243
+ white-space: initial;
244
+ -webkit-box-orient: vertical;
245
+ text-transform: capitalize;
246
+ }
247
+ }
248
+
249
+ .title-sm {
250
+ display: block;
251
+ overflow: hidden;
252
+ text-overflow: ellipsis;
253
+ white-space: nowrap;
254
+ }
255
+
256
+
257
+ // -----------------------------------------------------------------------------------------------------
258
+ // @ Container helpers
259
+ // -----------------------------------------------------------------------------------------------------
260
+ .matcha-container {
261
+ width: 100%;
262
+ max-width: 1128px;
263
+ margin-left:auto;
264
+ margin-right:auto;
265
+ }
266
+
267
+ // -----------------------------------------------------------------------------------------------------
268
+ // @ Combo helpers
269
+ // -----------------------------------------------------------------------------------------------------
270
+ .combo-image-text,
271
+ .combo-checkbox-text,
272
+ .combo-icon-text,
273
+ .combo-double-line {
274
+ display: flex;
275
+ align-items: center;
276
+ }
277
+
278
+ .combo-image-text .side-text,
279
+ .combo-checkbox-text .side-text,
280
+ .combo-icon-text .side-text,
281
+ .combo-double-line .side-text {
282
+ display: inline-block;
283
+ width: calc(100% - 48px);
284
+ line-height: 20px;
285
+ -webkit-line-clamp: 2;
286
+ overflow: hidden;
287
+ text-overflow: ellipsis;
288
+ word-break: break-word;
289
+ white-space: initial;
290
+ -webkit-box-orient: vertical;
291
+ }
292
+
293
+ .combo-image-text .avatar,
294
+ .combo-checkbox-text .avatar,
295
+ .combo-icon-text .avatar,
296
+ .combo-double-line .avatar {
297
+ border-radius: 50px;
298
+ min-width: 24px;
299
+ min-height: 24px;
300
+ }
301
+
302
+ .one-line-text {
303
+ line-height: 20px;
304
+ display: -webkit-box;
305
+ -webkit-line-clamp: 1;
306
+ }
307
+
308
+ .two-lines-text {
309
+ line-height: 20px;
310
+ display: -webkit-box;
311
+ -webkit-line-clamp: 2;
312
+ }
313
+
314
+ .three-lines-text {
315
+ line-height: 20px;
316
+ display: -webkit-box;
317
+ -webkit-line-clamp: 3;
318
+ }
319
+
320
+ .four-lines-text {
321
+ line-height: 20px;
322
+ display: -webkit-box;
323
+ -webkit-line-clamp: 4;
324
+ }
325
+
326
+ .five-lines-text {
327
+ line-height: 20px;
328
+ display: -webkit-box;
329
+ -webkit-line-clamp: 5;
330
+ }
331
+
332
+ .one-line-text,
333
+ .two-lines-text,
334
+ .three-lines-text,
335
+ .four-lines-text,
336
+ .five-lines-text {
337
+ overflow: hidden;
338
+ text-overflow: ellipsis;
339
+ word-break: break-word;
340
+ white-space: initial;
341
+ -webkit-box-orient: vertical;
342
+ }
343
+ .word-break {
344
+ word-break: break-word
345
+ }
346
+ .word-break-all {
347
+ word-break: break-all
348
+ }
349
+
350
+ // -----------------------------------------------------------------------------------------------------
351
+ // @ Letter spacing helpers
352
+ // -----------------------------------------------------------------------------------------------------
353
+ .letter-spacing-condensed {
354
+ letter-spacing: -.08em !important;
355
+ }
356
+ .letter-spacing-normal {
357
+ letter-spacing: normal !important;
358
+ }
359
+ .letter-spacing-relaxed {
360
+ letter-spacing: .08em !important;
361
+ }
362
+
363
+ // -----------------------------------------------------------------------------------------------------
364
+ // @ Cursor helpers
365
+ // -----------------------------------------------------------------------------------------------------
366
+ .pointer-events-all {
367
+ pointer-events: all
368
+ }
369
+ .pointer-events-none {
370
+ pointer-events: none
371
+ }
372
+
373
+ // -----------------------------------------------------------------------------------------------------
374
+ // @ Clear Shadows
375
+ // -----------------------------------------------------------------------------------------------------
376
+ .flatten,
377
+ .no-shadow,
378
+ .shadow-none {
379
+ box-shadow: none !important;
380
+ }
381
+
382
+ // -----------------------------------------------------------------------------------------------------
383
+ // @ Enable/Disable
384
+ // -----------------------------------------------------------------------------------------------------
385
+ .disabled {
386
+ transition: opacity 100ms linear;
387
+ opacity: .5;
388
+ pointer-events: none
389
+ }
390
+ .enabled {
391
+ transition: opacity 100ms linear;
392
+ opacity: 1
393
+ }
394
+
395
+
396
+ // -----------------------------------------------------------------------------------------------------
397
+ // @ Hover - Show/Hide
398
+ // -----------------------------------------------------------------------------------------------------
399
+ .on-hover-show:hover {
400
+ opacity: 1;
401
+ }
402
+ .on-hover-hide:hover {
403
+ opacity: 0;
404
+ }
405
+
406
+ // -----------------------------------------------------------------------------------------------------
407
+ // @ Float
408
+ // -----------------------------------------------------------------------------------------------------
409
+ .clearfix::after {
410
+ content: "";
411
+ clear: both;
412
+ display: table;
413
+ }
414
+ .left {
415
+ float: left;
416
+ }
417
+ .right {
418
+ float: right;
419
+ }
420
+ .list,
421
+ .list-style-none {
422
+ list-style: none;
423
+ }
424
+ .list-style-disc,
425
+ .list-style-dot {
426
+ list-style: disc;
427
+ }
@@ -88,6 +88,5 @@
88
88
  line-height: 1.75;
89
89
  }
90
90
  }
91
-
92
91
  }
93
92
 
package/main.scss CHANGED
@@ -10,24 +10,14 @@
10
10
  @import "./abstracts/functions"; // map-contrast() palette() map-color() light-theme() dark-theme() matcha-typography-level() matcha-typography-config() _matcha-get-type-value() matcha-font-size() matcha-line-height() matcha-font-weight() matcha-letter-spacing() matcha-font-family() _get-umbra-map() _get-penumbra-map() _get-ambient-map() elevation-transition-property-value()
11
11
 
12
12
  // MIXINS
13
- @import "./abstracts/breakpoints"; //media-breakpoint()
14
13
  @import "./abstracts/colors"; // colors-classes-static() colors-classes-dynamic()
15
14
  @import "./abstracts/elevation"; // elevation() _matcha-theme-elevation() matcha-overridable-elevation() _matcha-theme-overridable-elevation() elevation-transition() elevation-theme()
16
15
 
17
- // REMOVER -----------------------------------------------------
18
- @import "./abstracts/grid"; // display-grid() display-flex()
19
- @import "./abstracts/order";
20
- @import "./abstracts/position";
21
- @import "./abstracts/sizes";
22
- @import "./abstracts/spacings";
23
- // REMOVER -----------------------------------------------------
16
+ // TYPOGRAPHY
24
17
  @import "./abstracts/typography"; // matcha-typography-font-shorthand() matcha-typography-level-to-styles() matcha-reset-typography()
25
18
 
26
-
27
19
  // BASE
28
- @import "./base/helpers";
29
20
  @import "./base/reset"; // base-body-reset-theme()
30
- @import "./base/typography"; // base-typography-theme()
31
21
 
32
22
  // COMPONENTS
33
23
  @import "./components/matcha-audio-player.scss"; //matcha-audio-player-theme($theme)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matcha-theme",
3
- "version": "18.1.28",
3
+ "version": "18.1.30",
4
4
  "description": "Themes for matcha-design-system",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -718,7 +718,7 @@ $mat-green: (
718
718
  200: $dark-primary-text,
719
719
  300: $dark-primary-text,
720
720
  400: $dark-primary-text,
721
- 500: $dark-primary-text,
721
+ 500: $light-primary-text,
722
722
  600: $light-primary-text,
723
723
  700: $light-primary-text,
724
724
  800: $light-primary-text,
@@ -753,8 +753,8 @@ $mat-light-green: (
753
753
  200: $dark-primary-text,
754
754
  300: $dark-primary-text,
755
755
  400: $dark-primary-text,
756
- 500: $dark-primary-text,
757
- 600: $dark-primary-text,
756
+ 500: $light-primary-text,
757
+ 600: $light-primary-text,
758
758
  700: $light-primary-text,
759
759
  800: $light-primary-text,
760
760
  900: $light-primary-text,
@@ -1152,7 +1152,7 @@ $dark-theme-background-palette: (
1152
1152
  card-inverse: white,
1153
1153
  card-alpha: #2b2c2d80,
1154
1154
  card-alpha-inverse: #ffffff80,
1155
-
1155
+
1156
1156
  sidebar: $color-base-dark-grey-700,
1157
1157
  sidebar-hover: $color-base-blue-grey-800,
1158
1158
  table-row-hover: #0000002b,
@@ -1,33 +0,0 @@
1
- // -------------------------------------------------------------------------------------------------------------------
2
- // @ Breakpoints generator
3
- //
4
- // Examples:
5
- // @include media-breakpoint("xs") {
6
- // Show styles in small devices ( Phones and Gadget, 0px and up < 600px )
7
- // }
8
- // @include media-breakpoint("gt-xs") {
9
- // Show styles in medium devices (landscapes and tablets, 600px and up < 1024px )
10
- // }
11
- // @include media-breakpoint("gt-sm") {
12
- // Show styles in large devices (tablets and small monitors, 1024px and up < 1440px)
13
- // }
14
- // @include media-breakpoint("gt-md") {
15
- // Show styles in X-Large devices (big desktops, 1440px and up < 1920)
16
- // }
17
- // @include media-breakpoint("gt-lg") {
18
- // Show styles in XX-Large devices (larger desktops, 1920px and up)
19
- // }
20
- // -------------------------------------------------------------------------------------------------------------------
21
- @mixin media-breakpoint($breakpointName) {
22
- $mediaQuery: map-get($breakpoints, $breakpointName);
23
-
24
- @if ($mediaQuery ==null) {
25
- @content;
26
- }
27
-
28
- @else {
29
- @media #{$mediaQuery} {
30
- @content;
31
- }
32
- }
33
- }
@@ -1,163 +0,0 @@
1
- // -------------------------------------------------------------------------------------------------------------------
2
- // @ Display grids generator
3
- // -------------------------------------------------------------------------------------------------------------------
4
- @mixin display-grid($grid-prefix, $grid-length, $grid-sizes, $helper-breakpoints) {
5
- @each $sizeLabel, $value in $grid-sizes {
6
- .row-#{$sizeLabel} {
7
- display: flex;
8
- flex-direction: column;
9
- }
10
-
11
- @media only screen and (min-width: #{$value}) {
12
- @for $i from 1 through $grid-length {
13
- .row > .#{$grid-prefix}-#{$sizeLabel}-#{$i} {
14
- $calculated-flex-basis: calc($i / $grid-length) * 100%;
15
- flex-basis: $calculated-flex-basis;
16
- }
17
-
18
- .row > .#{$grid-prefix}-offset-#{$sizeLabel}-#{$i} {
19
- $calculated-margin-left: calc($i / $grid-length) * 100%;
20
- margin-left: $calculated-margin-left;
21
- }
22
- }
23
-
24
- .row-#{$sizeLabel} {
25
- flex-direction: row;
26
- }
27
- }
28
- }
29
-
30
- [class^="grid-"] {
31
- display: grid;
32
- grid-template-columns: minmax(0, 1fr);
33
- }
34
-
35
- @for $i from 0 through 12 {
36
- $size: $i * 4;
37
- .gap-#{$size} {
38
- column-gap: #{$size}px;
39
- row-gap: #{$size}px;
40
- }
41
- @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
42
- @include media-breakpoint($materialBreakpoint) {
43
- $infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
44
- .gap#{$infix}-#{$size} {
45
- column-gap: #{$size}px;
46
- row-gap: #{$size}px;
47
- }
48
- }
49
- }
50
- }
51
-
52
- @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
53
- @include media-breakpoint($materialBreakpoint) {
54
- $infix: if($materialBreakpoint ==null, "", "-#{$breakpoint}");
55
-
56
- @for $i from 1 through $grid-length {
57
- .grid#{$infix}-#{$i} {
58
- @include _grid-prop($i);
59
- }
60
-
61
- .colspan#{$infix}-#{$i} {
62
- grid-column-end: span #{$i};
63
- }
64
-
65
- .rowspan#{$infix}-#{$i} {
66
- grid-row-end: span #{$i};
67
- }
68
- }
69
- }
70
- }
71
- }
72
-
73
-
74
-
75
- @mixin _grid-prop($i) {
76
- display: grid;
77
- grid-template-columns: repeat($i, minmax(0, 1fr));
78
- }
79
-
80
- // -------------------------------------------------------------------------------------------------------------------
81
- // @ Display flex generator
82
- // -------------------------------------------------------------------------------------------------------------------
83
- @mixin display-flex($grid-prefix, $grid-length, $grid-sizes) {
84
- .row {
85
- display: flex;
86
- flex-wrap: wrap;
87
-
88
- > div[class*="#{$grid-prefix}-"] {
89
- box-sizing: border-box;
90
- }
91
-
92
- > div:not([class*="#{$grid-prefix}-"]) {
93
- flex: 1;
94
- }
95
-
96
- @for $i from 1 through $grid-length {
97
- .#{$grid-prefix}-#{$i} {
98
- $calculated-flex-basis: calc($i / $grid-length) * 100%;
99
- flex-basis: $calculated-flex-basis;
100
- }
101
-
102
- .#{$grid-prefix}-offset-#{$i} {
103
- $calculated-margin-left: calc($i / $grid-length) * 100%;
104
- margin-left: $calculated-margin-left;
105
- }
106
-
107
- @each $sizeLabel, $value in $grid-sizes {
108
- [class*="#{$grid-prefix}-offset-#{$sizeLabel}-"] {
109
- margin-left: 0;
110
- }
111
-
112
- .#{$grid-prefix}-#{$sizeLabel}-#{$i} {
113
- flex-basis: 100%;
114
- }
115
- }
116
- }
117
-
118
- @each $classLabel, $cssValue in (align-start flex-start, align-center center, align-end flex-end) {
119
- > div[class*="#{$grid-prefix}-"].#{$classLabel} {
120
- align-self: $cssValue;
121
- }
122
- }
123
-
124
- @each $classLabel,
125
- $cssValue
126
- in (
127
- align-start flex-start,
128
- align-center center,
129
- align-end flex-end,
130
- space-around space-around,
131
- space-between space-between
132
- )
133
- {
134
- &.#{$classLabel} {
135
- justify-content: $cssValue;
136
- }
137
- }
138
- }
139
- }
140
-
141
- @include display-grid($grid-prefix, $grid-length, $grid-sizes, $helper-breakpoints);
142
- @include display-flex($grid-prefix, $grid-length, $grid-sizes);
143
-
144
- // -------------------------------------------------------------------------------------------------------------------
145
- // Dynamic gaps
146
- // -------------------------------------------------------------------------------------------------------------------
147
- .gap-inside {
148
- -moz-column-gap: 16px;
149
- column-gap: 16px;
150
- row-gap: 16px;
151
- }
152
- .gap-outside {
153
- -moz-column-gap: 16px;
154
- column-gap: 16px;
155
- row-gap: 16px;
156
- }
157
- @media screen and (min-width: 600px) {
158
- .gap-outside {
159
- -moz-column-gap: 24px;
160
- column-gap: 24px;
161
- row-gap: 24px;
162
- }
163
- }