matcha-core 1.1.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 +74 -97
- 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;
|
|
@@ -413,17 +390,17 @@ $helper-breakpoints: (
|
|
|
413
390
|
// @ Z-index classes
|
|
414
391
|
// -----------------------------------------------------------------------------------------------------
|
|
415
392
|
@mixin generate-z-index-classes($helper-breakpoints) {
|
|
416
|
-
$
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
z-index: #{$z};
|
|
393
|
+
@each $breakpoint, $breakpointName in $helper-breakpoints {
|
|
394
|
+
@include media-breakpoint($breakpointName) {
|
|
395
|
+
$infix: if($breakpointName == null, "", "-#{$breakpoint}");
|
|
396
|
+
|
|
397
|
+
@for $i from -1 through 24 {
|
|
398
|
+
.z-index#{$infix}-#{$i} {
|
|
399
|
+
z-index: #{$i};
|
|
424
400
|
}
|
|
425
|
-
|
|
426
|
-
|
|
401
|
+
|
|
402
|
+
.z-index#{$infix}-#{$i}--force {
|
|
403
|
+
z-index: #{$i} !important;
|
|
427
404
|
}
|
|
428
405
|
}
|
|
429
406
|
}
|
|
@@ -1003,30 +980,30 @@ $helper-breakpoints: (
|
|
|
1003
980
|
|
|
1004
981
|
// Classes para overflow geral
|
|
1005
982
|
@each $class, $value in $overflow-classes {
|
|
1006
|
-
.overflow
|
|
983
|
+
.overflow#{$infix}-#{$class} {
|
|
1007
984
|
overflow: $value;
|
|
1008
985
|
}
|
|
1009
|
-
.overflow
|
|
986
|
+
.overflow#{$infix}-#{$class}--force {
|
|
1010
987
|
overflow: $value !important;
|
|
1011
988
|
}
|
|
1012
989
|
}
|
|
1013
990
|
|
|
1014
991
|
// Classes para overflow no eixo x
|
|
1015
992
|
@each $class, $value in map-get($overflow-directions, x) {
|
|
1016
|
-
.overflow-x
|
|
993
|
+
.overflow-x#{$infix}-#{$class} {
|
|
1017
994
|
overflow-x: $value;
|
|
1018
995
|
}
|
|
1019
|
-
.overflow-x
|
|
996
|
+
.overflow-x#{$infix}-#{$class}--force {
|
|
1020
997
|
overflow-x: $value !important;
|
|
1021
998
|
}
|
|
1022
999
|
}
|
|
1023
1000
|
|
|
1024
1001
|
// Classes para overflow no eixo y
|
|
1025
1002
|
@each $class, $value in map-get($overflow-directions, y) {
|
|
1026
|
-
.overflow-y
|
|
1003
|
+
.overflow-y#{$infix}-#{$class} {
|
|
1027
1004
|
overflow-y: $value;
|
|
1028
1005
|
}
|
|
1029
|
-
.overflow-y
|
|
1006
|
+
.overflow-y#{$infix}-#{$class}--force {
|
|
1030
1007
|
overflow-y: $value !important;
|
|
1031
1008
|
}
|
|
1032
1009
|
}
|
|
@@ -1080,9 +1057,8 @@ $helper-breakpoints: (
|
|
|
1080
1057
|
// -----------------------------------------------------------------------------------------------------
|
|
1081
1058
|
// @ Border Radius Helpers
|
|
1082
1059
|
// -----------------------------------------------------------------------------------------------------
|
|
1083
|
-
@mixin
|
|
1084
|
-
|
|
1085
|
-
// Classes para todos os cantos e para formatos especiais
|
|
1060
|
+
@mixin generate-border-radius-classes($helper-breakpoints) {
|
|
1061
|
+
// Aplicar os mixins para cada breakpoint
|
|
1086
1062
|
@for $i from 0 through 8 {
|
|
1087
1063
|
$radius-value: $i * 2;
|
|
1088
1064
|
$radius-suffix: "-#{$radius-value}";
|
|
@@ -1095,67 +1071,68 @@ $helper-breakpoints: (
|
|
|
1095
1071
|
border-radius: #{$radius-value}px !important; // Com !important
|
|
1096
1072
|
}
|
|
1097
1073
|
}
|
|
1098
|
-
|
|
1099
|
-
.radius
|
|
1100
|
-
.radius
|
|
1074
|
+
// Classes para todos os cantos e para formatos especiais
|
|
1075
|
+
.radius-circle,
|
|
1076
|
+
.radius-full,
|
|
1077
|
+
.radius-round {
|
|
1101
1078
|
border-radius: 999px !important;
|
|
1102
1079
|
}
|
|
1103
|
-
}
|
|
1104
|
-
@mixin _border-radius-individual($direction, $breakpoint) {
|
|
1105
|
-
// Define o sufixo do breakpoint
|
|
1106
|
-
$infix: if($breakpoint == null, "", "-#{$breakpoint}");
|
|
1107
|
-
|
|
1108
|
-
// Seletores para as classes de borda
|
|
1109
|
-
$direction-selector: unquote(".radius#{$infix}-#{$direction}");
|
|
1110
|
-
|
|
1111
|
-
// Aplica o raio dependendo da direção
|
|
1112
|
-
@for $i from 0 through 8 {
|
|
1113
|
-
$radius-value: $i * 2;
|
|
1114
|
-
$radius-suffix: "-#{$radius-value}";
|
|
1115
|
-
|
|
1116
|
-
@if $direction == bottom {
|
|
1117
|
-
#{$direction-selector}#{$radius-suffix} {
|
|
1118
|
-
border-radius: 0 0 #{$radius-value}px #{$radius-value}px; // Sem !important
|
|
1119
|
-
}
|
|
1120
1080
|
|
|
1121
|
-
#{$direction-selector}#{$radius-suffix}--force {
|
|
1122
|
-
border-radius: 0 0 #{$radius-value}px #{$radius-value}px !important; // Com !important
|
|
1123
|
-
}
|
|
1124
|
-
} @else if $direction == top {
|
|
1125
|
-
#{$direction-selector}#{$radius-suffix} {
|
|
1126
|
-
border-radius: #{$radius-value}px #{$radius-value}px 0 0; // Sem !important
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1129
|
-
#{$direction-selector}#{$radius-suffix}--force {
|
|
1130
|
-
border-radius: #{$radius-value}px #{$radius-value}px 0 0 !important; // Com !important
|
|
1131
|
-
}
|
|
1132
|
-
} @else if $direction == left {
|
|
1133
|
-
#{$direction-selector}#{$radius-suffix} {
|
|
1134
|
-
border-radius: #{$radius-value}px 0 0 #{$radius-value}px; // Sem !important
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
#{$direction-selector}#{$radius-suffix}--force {
|
|
1138
|
-
border-radius: #{$radius-value}px 0 0 #{$radius-value}px !important; // Com !important
|
|
1139
|
-
}
|
|
1140
|
-
} @else if $direction == right {
|
|
1141
|
-
#{$direction-selector}#{$radius-suffix} {
|
|
1142
|
-
border-radius: 0 #{$radius-value}px #{$radius-value}px 0; // Sem !important
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
#{$direction-selector}#{$radius-suffix}--force {
|
|
1146
|
-
border-radius: 0 #{$radius-value}px #{$radius-value}px 0 !important; // Com !important
|
|
1147
|
-
}
|
|
1148
|
-
}
|
|
1149
|
-
}
|
|
1150
|
-
}
|
|
1151
|
-
@mixin generate-border-radius-classes($helper-breakpoints) {
|
|
1152
|
-
// Aplicar os mixins para cada breakpoint
|
|
1153
1081
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
1154
1082
|
@include media-breakpoint($materialBreakpoint) {
|
|
1155
|
-
|
|
1156
|
-
|
|
1083
|
+
// Define o sufixo do breakpoint
|
|
1084
|
+
$infix: if($breakpoint == null, "", "-#{$breakpoint}");
|
|
1085
|
+
|
|
1157
1086
|
@each $direction in (bottom, top, left, right) {
|
|
1158
|
-
|
|
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;
|
|
1159
1136
|
}
|
|
1160
1137
|
}
|
|
1161
1138
|
}
|