matcha-core 1.0.2 → 1.1.3
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/core.scss +123 -99
- package/matcha-core.css +972 -616
- package/matcha-core.min.css +1 -1
- package/package.json +1 -1
package/core.scss
CHANGED
|
@@ -274,29 +274,6 @@ $helper-breakpoints: (
|
|
|
274
274
|
@mixin generate-layout-grid($helper-breakpoints) {
|
|
275
275
|
$grid-length: 12;
|
|
276
276
|
$grid-prefix: "col";
|
|
277
|
-
// @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
278
|
-
// @include media-breakpoint($materialBreakpoint) {
|
|
279
|
-
// $infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
|
|
280
|
-
|
|
281
|
-
// .row#{$infix} {
|
|
282
|
-
// display: flex;
|
|
283
|
-
// flex-direction: column;
|
|
284
|
-
// }
|
|
285
|
-
|
|
286
|
-
// @for $i from 1 through $grid-length {
|
|
287
|
-
// .row#{$infix} > .#{$grid-prefix}-#{$i} {
|
|
288
|
-
// flex-basis: #{($i / $grid-length) * 100%};
|
|
289
|
-
// }
|
|
290
|
-
// .row#{$infix} > .#{$grid-prefix}-offset-#{$i} {
|
|
291
|
-
// margin-left: #{($i / $grid-length) * 100%};
|
|
292
|
-
// }
|
|
293
|
-
// }
|
|
294
|
-
|
|
295
|
-
// .row#{$infix} {
|
|
296
|
-
// flex-direction: row;
|
|
297
|
-
// }
|
|
298
|
-
// }
|
|
299
|
-
// }
|
|
300
277
|
|
|
301
278
|
[class^="grid-"] {
|
|
302
279
|
display: grid;
|
|
@@ -412,26 +389,24 @@ $helper-breakpoints: (
|
|
|
412
389
|
// -----------------------------------------------------------------------------------------------------
|
|
413
390
|
// @ Z-index classes
|
|
414
391
|
// -----------------------------------------------------------------------------------------------------
|
|
415
|
-
@mixin generate-z-index-classes($
|
|
416
|
-
@each $breakpoint, $
|
|
417
|
-
@include media-breakpoint($
|
|
418
|
-
|
|
419
|
-
@for $z from -1 through $zIndex {
|
|
420
|
-
$class-name: if($materialBreakpoint == null, ".z-index-#{$z}", ".z-index-#{$materialBreakpoint}-#{$z}");
|
|
421
|
-
$class-name-force: if($materialBreakpoint == null, ".z-index-#{$z}--force", ".z-index-#{$materialBreakpoint}-#{$z}--force");
|
|
392
|
+
@mixin generate-z-index-classes($helper-breakpoints) {
|
|
393
|
+
@each $breakpoint, $breakpointName in $helper-breakpoints {
|
|
394
|
+
@include media-breakpoint($breakpointName) {
|
|
395
|
+
$infix: if($breakpointName == null, "", "-#{$breakpoint}");
|
|
422
396
|
|
|
423
|
-
|
|
424
|
-
|
|
397
|
+
@for $i from -1 through 24 {
|
|
398
|
+
.z-index#{$infix}-#{$i} {
|
|
399
|
+
z-index: #{$i};
|
|
425
400
|
}
|
|
426
401
|
|
|
427
|
-
#{$
|
|
428
|
-
z-index: #{$
|
|
402
|
+
.z-index#{$infix}-#{$i}--force {
|
|
403
|
+
z-index: #{$i} !important;
|
|
429
404
|
}
|
|
430
405
|
}
|
|
431
406
|
}
|
|
432
407
|
}
|
|
433
408
|
}
|
|
434
|
-
@include generate-z-index-classes(
|
|
409
|
+
@include generate-z-index-classes($helper-breakpoints);
|
|
435
410
|
|
|
436
411
|
// -----------------------------------------------------------------------------------------------------
|
|
437
412
|
// @ Order classes
|
|
@@ -603,6 +578,24 @@ $helper-breakpoints: (
|
|
|
603
578
|
}
|
|
604
579
|
}
|
|
605
580
|
}
|
|
581
|
+
// For margins, include negative values
|
|
582
|
+
@for $index from 0 through 3 {
|
|
583
|
+
.flex#{$infix}-grow-#{$index} {
|
|
584
|
+
flex-grow: $index;
|
|
585
|
+
}
|
|
586
|
+
.flex#{$infix}-shrink-#{$index} {
|
|
587
|
+
flex-shrink: $index;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
.flex#{$infix}-full {
|
|
591
|
+
flex-grow: 1;
|
|
592
|
+
flex-shrink: 1;
|
|
593
|
+
flex-basis: 100%;
|
|
594
|
+
;
|
|
595
|
+
}
|
|
596
|
+
.flex#{$infix}-basis-1 {
|
|
597
|
+
flex-basis: 100%;
|
|
598
|
+
}
|
|
606
599
|
}
|
|
607
600
|
}
|
|
608
601
|
}
|
|
@@ -987,30 +980,30 @@ $helper-breakpoints: (
|
|
|
987
980
|
|
|
988
981
|
// Classes para overflow geral
|
|
989
982
|
@each $class, $value in $overflow-classes {
|
|
990
|
-
.overflow
|
|
983
|
+
.overflow#{$infix}-#{$class} {
|
|
991
984
|
overflow: $value;
|
|
992
985
|
}
|
|
993
|
-
.overflow
|
|
986
|
+
.overflow#{$infix}-#{$class}--force {
|
|
994
987
|
overflow: $value !important;
|
|
995
988
|
}
|
|
996
989
|
}
|
|
997
990
|
|
|
998
991
|
// Classes para overflow no eixo x
|
|
999
992
|
@each $class, $value in map-get($overflow-directions, x) {
|
|
1000
|
-
.overflow-x
|
|
993
|
+
.overflow-x#{$infix}-#{$class} {
|
|
1001
994
|
overflow-x: $value;
|
|
1002
995
|
}
|
|
1003
|
-
.overflow-x
|
|
996
|
+
.overflow-x#{$infix}-#{$class}--force {
|
|
1004
997
|
overflow-x: $value !important;
|
|
1005
998
|
}
|
|
1006
999
|
}
|
|
1007
1000
|
|
|
1008
1001
|
// Classes para overflow no eixo y
|
|
1009
1002
|
@each $class, $value in map-get($overflow-directions, y) {
|
|
1010
|
-
.overflow-y
|
|
1003
|
+
.overflow-y#{$infix}-#{$class} {
|
|
1011
1004
|
overflow-y: $value;
|
|
1012
1005
|
}
|
|
1013
|
-
.overflow-y
|
|
1006
|
+
.overflow-y#{$infix}-#{$class}--force {
|
|
1014
1007
|
overflow-y: $value !important;
|
|
1015
1008
|
}
|
|
1016
1009
|
}
|
|
@@ -1064,9 +1057,8 @@ $helper-breakpoints: (
|
|
|
1064
1057
|
// -----------------------------------------------------------------------------------------------------
|
|
1065
1058
|
// @ Border Radius Helpers
|
|
1066
1059
|
// -----------------------------------------------------------------------------------------------------
|
|
1067
|
-
@mixin
|
|
1068
|
-
|
|
1069
|
-
// Classes para todos os cantos e para formatos especiais
|
|
1060
|
+
@mixin generate-border-radius-classes($helper-breakpoints) {
|
|
1061
|
+
// Aplicar os mixins para cada breakpoint
|
|
1070
1062
|
@for $i from 0 through 8 {
|
|
1071
1063
|
$radius-value: $i * 2;
|
|
1072
1064
|
$radius-suffix: "-#{$radius-value}";
|
|
@@ -1079,67 +1071,68 @@ $helper-breakpoints: (
|
|
|
1079
1071
|
border-radius: #{$radius-value}px !important; // Com !important
|
|
1080
1072
|
}
|
|
1081
1073
|
}
|
|
1082
|
-
|
|
1083
|
-
.radius
|
|
1084
|
-
.radius
|
|
1074
|
+
// Classes para todos os cantos e para formatos especiais
|
|
1075
|
+
.radius-circle,
|
|
1076
|
+
.radius-full,
|
|
1077
|
+
.radius-round {
|
|
1085
1078
|
border-radius: 999px !important;
|
|
1086
1079
|
}
|
|
1087
|
-
}
|
|
1088
|
-
@mixin _border-radius-individual($direction, $breakpoint) {
|
|
1089
|
-
// Define o sufixo do breakpoint
|
|
1090
|
-
$infix: if($breakpoint == null, "", "-#{$breakpoint}");
|
|
1091
|
-
|
|
1092
|
-
// Seletores para as classes de borda
|
|
1093
|
-
$direction-selector: unquote(".radius#{$infix}-#{$direction}");
|
|
1094
|
-
|
|
1095
|
-
// Aplica o raio dependendo da direção
|
|
1096
|
-
@for $i from 0 through 8 {
|
|
1097
|
-
$radius-value: $i * 2;
|
|
1098
|
-
$radius-suffix: "-#{$radius-value}";
|
|
1099
|
-
|
|
1100
|
-
@if $direction == bottom {
|
|
1101
|
-
#{$direction-selector}#{$radius-suffix} {
|
|
1102
|
-
border-radius: 0 0 #{$radius-value}px #{$radius-value}px; // Sem !important
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
#{$direction-selector}#{$radius-suffix}--force {
|
|
1106
|
-
border-radius: 0 0 #{$radius-value}px #{$radius-value}px !important; // Com !important
|
|
1107
|
-
}
|
|
1108
|
-
} @else if $direction == top {
|
|
1109
|
-
#{$direction-selector}#{$radius-suffix} {
|
|
1110
|
-
border-radius: #{$radius-value}px #{$radius-value}px 0 0; // Sem !important
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
#{$direction-selector}#{$radius-suffix}--force {
|
|
1114
|
-
border-radius: #{$radius-value}px #{$radius-value}px 0 0 !important; // Com !important
|
|
1115
|
-
}
|
|
1116
|
-
} @else if $direction == left {
|
|
1117
|
-
#{$direction-selector}#{$radius-suffix} {
|
|
1118
|
-
border-radius: #{$radius-value}px 0 0 #{$radius-value}px; // Sem !important
|
|
1119
|
-
}
|
|
1120
|
-
|
|
1121
|
-
#{$direction-selector}#{$radius-suffix}--force {
|
|
1122
|
-
border-radius: #{$radius-value}px 0 0 #{$radius-value}px !important; // Com !important
|
|
1123
|
-
}
|
|
1124
|
-
} @else if $direction == right {
|
|
1125
|
-
#{$direction-selector}#{$radius-suffix} {
|
|
1126
|
-
border-radius: 0 #{$radius-value}px #{$radius-value}px 0; // Sem !important
|
|
1127
|
-
}
|
|
1128
1080
|
|
|
1129
|
-
#{$direction-selector}#{$radius-suffix}--force {
|
|
1130
|
-
border-radius: 0 #{$radius-value}px #{$radius-value}px 0 !important; // Com !important
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
@mixin generate-border-radius-classes($helper-breakpoints) {
|
|
1136
|
-
// Aplicar os mixins para cada breakpoint
|
|
1137
1081
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
1138
1082
|
@include media-breakpoint($materialBreakpoint) {
|
|
1139
|
-
|
|
1140
|
-
|
|
1083
|
+
// Define o sufixo do breakpoint
|
|
1084
|
+
$infix: if($breakpoint == null, "", "-#{$breakpoint}");
|
|
1085
|
+
|
|
1141
1086
|
@each $direction in (bottom, top, left, right) {
|
|
1142
|
-
|
|
1087
|
+
// Seletores para as classes de borda
|
|
1088
|
+
$direction-selector: unquote(".radius#{$infix}-#{$direction}");
|
|
1089
|
+
|
|
1090
|
+
// Aplica o raio dependendo da direção
|
|
1091
|
+
@for $i from 0 through 8 {
|
|
1092
|
+
$radius-value: $i * 2;
|
|
1093
|
+
$radius-suffix: "-#{$radius-value}";
|
|
1094
|
+
|
|
1095
|
+
@if $direction == bottom {
|
|
1096
|
+
#{$direction-selector}#{$radius-suffix} {
|
|
1097
|
+
border-radius: 0 0 #{$radius-value}px #{$radius-value}px; // Sem !important
|
|
1098
|
+
}
|
|
1099
|
+
|
|
1100
|
+
#{$direction-selector}#{$radius-suffix}--force {
|
|
1101
|
+
border-radius: 0 0 #{$radius-value}px #{$radius-value}px !important; // Com !important
|
|
1102
|
+
}
|
|
1103
|
+
} @else if $direction == top {
|
|
1104
|
+
#{$direction-selector}#{$radius-suffix} {
|
|
1105
|
+
border-radius: #{$radius-value}px #{$radius-value}px 0 0; // Sem !important
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
#{$direction-selector}#{$radius-suffix}--force {
|
|
1109
|
+
border-radius: #{$radius-value}px #{$radius-value}px 0 0 !important; // Com !important
|
|
1110
|
+
}
|
|
1111
|
+
} @else if $direction == left {
|
|
1112
|
+
#{$direction-selector}#{$radius-suffix} {
|
|
1113
|
+
border-radius: #{$radius-value}px 0 0 #{$radius-value}px; // Sem !important
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
#{$direction-selector}#{$radius-suffix}--force {
|
|
1117
|
+
border-radius: #{$radius-value}px 0 0 #{$radius-value}px !important; // Com !important
|
|
1118
|
+
}
|
|
1119
|
+
} @else if $direction == right {
|
|
1120
|
+
#{$direction-selector}#{$radius-suffix} {
|
|
1121
|
+
border-radius: 0 #{$radius-value}px #{$radius-value}px 0; // Sem !important
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
#{$direction-selector}#{$radius-suffix}--force {
|
|
1125
|
+
border-radius: 0 #{$radius-value}px #{$radius-value}px 0 !important; // Com !important
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
// Classes para todos os cantos e para formatos especiais
|
|
1132
|
+
.radius#{$infix}-circle,
|
|
1133
|
+
.radius#{$infix}-full,
|
|
1134
|
+
.radius#{$infix}-round {
|
|
1135
|
+
border-radius: 999px !important;
|
|
1143
1136
|
}
|
|
1144
1137
|
}
|
|
1145
1138
|
}
|
|
@@ -1199,3 +1192,34 @@ $helper-breakpoints: (
|
|
|
1199
1192
|
}
|
|
1200
1193
|
}
|
|
1201
1194
|
@include generate-rotate-animation-classes();
|
|
1195
|
+
|
|
1196
|
+
// -----------------------------------------------------------------------------------------------------
|
|
1197
|
+
// @ Border Size Helpers
|
|
1198
|
+
// -----------------------------------------------------------------------------------------------------
|
|
1199
|
+
@mixin generate-line-clamp-classes($helper-breakpoints){
|
|
1200
|
+
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
1201
|
+
@include media-breakpoint($materialBreakpoint) {
|
|
1202
|
+
$infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
|
|
1203
|
+
@for $i from 0 through 6 {
|
|
1204
|
+
// Classes para borda geral
|
|
1205
|
+
.line-clamp#{$infix}-#{$i}{
|
|
1206
|
+
overflow: hidden;
|
|
1207
|
+
display: -webkit-box;
|
|
1208
|
+
-webkit-box-orient: vertical;
|
|
1209
|
+
-webkit-line-clamp: $i;
|
|
1210
|
+
text-overflow: ellipsis;
|
|
1211
|
+
word-break: break-word;
|
|
1212
|
+
white-space: initial;
|
|
1213
|
+
-webkit-box-orient: vertical;
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
.line-clamp#{$infix}-none{
|
|
1217
|
+
overflow: visible;
|
|
1218
|
+
display: block;
|
|
1219
|
+
-webkit-box-orient: horizontal;
|
|
1220
|
+
-webkit-line-clamp: none;
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
@include generate-line-clamp-classes($helper-breakpoints);
|