matcha-core 1.1.3 → 1.1.5
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 +27 -46
- package/matcha-core.css +841 -765
- package/matcha-core.min.css +1 -1
- package/package.json +1 -1
package/core.scss
CHANGED
|
@@ -1054,90 +1054,71 @@ $helper-breakpoints: (
|
|
|
1054
1054
|
}
|
|
1055
1055
|
@include generate-border-size-classes($helper-breakpoints);
|
|
1056
1056
|
|
|
1057
|
+
|
|
1057
1058
|
// -----------------------------------------------------------------------------------------------------
|
|
1058
|
-
// @ Border
|
|
1059
|
+
// @ Border Size Helpers
|
|
1059
1060
|
// -----------------------------------------------------------------------------------------------------
|
|
1060
|
-
@mixin generate-
|
|
1061
|
-
|
|
1062
|
-
@for $i from 0 through 8 {
|
|
1063
|
-
$radius-value: $i * 2;
|
|
1064
|
-
$radius-suffix: "-#{$radius-value}";
|
|
1065
|
-
|
|
1066
|
-
.radius#{$radius-suffix} {
|
|
1067
|
-
border-radius: #{$radius-value}px; // Sem !important
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
.radius#{$radius-suffix}--force {
|
|
1071
|
-
border-radius: #{$radius-value}px !important; // Com !important
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
// Classes para todos os cantos e para formatos especiais
|
|
1075
|
-
.radius-circle,
|
|
1076
|
-
.radius-full,
|
|
1077
|
-
.radius-round {
|
|
1078
|
-
border-radius: 999px !important;
|
|
1079
|
-
}
|
|
1061
|
+
@mixin generate-radius-classes($helper-breakpoints){
|
|
1062
|
+
$radius-directions: (bottom: b, top: t, left: l, right: r);
|
|
1080
1063
|
|
|
1081
1064
|
@each $breakpoint, $materialBreakpoint in $helper-breakpoints {
|
|
1082
1065
|
@include media-breakpoint($materialBreakpoint) {
|
|
1083
|
-
|
|
1084
|
-
$infix: if($breakpoint == null, "", "-#{$breakpoint}");
|
|
1066
|
+
$infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
|
|
1085
1067
|
|
|
1086
|
-
@
|
|
1087
|
-
|
|
1088
|
-
$
|
|
1068
|
+
@for $i from 0 through 8 {
|
|
1069
|
+
$radius-value: $i * 2;
|
|
1070
|
+
$radius-suffix: "-#{$radius-value}";
|
|
1089
1071
|
|
|
1090
|
-
//
|
|
1091
|
-
|
|
1092
|
-
$radius-value
|
|
1093
|
-
|
|
1072
|
+
// Classes para borda geral
|
|
1073
|
+
.radius#{$infix}#{$radius-suffix} {
|
|
1074
|
+
border-radius: #{$radius-value}px; // Sem !important
|
|
1075
|
+
}
|
|
1094
1076
|
|
|
1077
|
+
// Classes para bordas individuais
|
|
1078
|
+
@each $direction, $abbrev in $radius-directions {
|
|
1095
1079
|
@if $direction == bottom {
|
|
1096
|
-
#{$direction
|
|
1080
|
+
.radius#{$infix}-#{$direction}#{$radius-suffix} {
|
|
1097
1081
|
border-radius: 0 0 #{$radius-value}px #{$radius-value}px; // Sem !important
|
|
1098
1082
|
}
|
|
1099
1083
|
|
|
1100
|
-
#{$direction
|
|
1084
|
+
.radius#{$infix}-#{$direction}#{$radius-suffix}--force {
|
|
1101
1085
|
border-radius: 0 0 #{$radius-value}px #{$radius-value}px !important; // Com !important
|
|
1102
1086
|
}
|
|
1103
1087
|
} @else if $direction == top {
|
|
1104
|
-
#{$direction
|
|
1088
|
+
.radius#{$infix}-#{$direction}#{$radius-suffix} {
|
|
1105
1089
|
border-radius: #{$radius-value}px #{$radius-value}px 0 0; // Sem !important
|
|
1106
1090
|
}
|
|
1107
1091
|
|
|
1108
|
-
#{$direction
|
|
1092
|
+
.radius#{$infix}-#{$direction}#{$radius-suffix}--force {
|
|
1109
1093
|
border-radius: #{$radius-value}px #{$radius-value}px 0 0 !important; // Com !important
|
|
1110
1094
|
}
|
|
1111
1095
|
} @else if $direction == left {
|
|
1112
|
-
#{$direction
|
|
1096
|
+
.radius#{$infix}-#{$direction}#{$radius-suffix} {
|
|
1113
1097
|
border-radius: #{$radius-value}px 0 0 #{$radius-value}px; // Sem !important
|
|
1114
1098
|
}
|
|
1115
1099
|
|
|
1116
|
-
#{$direction
|
|
1100
|
+
.radius#{$infix}-#{$direction}#{$radius-suffix}--force {
|
|
1117
1101
|
border-radius: #{$radius-value}px 0 0 #{$radius-value}px !important; // Com !important
|
|
1118
1102
|
}
|
|
1119
1103
|
} @else if $direction == right {
|
|
1120
|
-
#{$direction
|
|
1104
|
+
.radius#{$infix}-#{$direction}#{$radius-suffix} {
|
|
1121
1105
|
border-radius: 0 #{$radius-value}px #{$radius-value}px 0; // Sem !important
|
|
1122
1106
|
}
|
|
1123
1107
|
|
|
1124
|
-
#{$direction
|
|
1108
|
+
.radius#{$infix}-#{$direction}#{$radius-suffix}--force {
|
|
1125
1109
|
border-radius: 0 #{$radius-value}px #{$radius-value}px 0 !important; // Com !important
|
|
1126
1110
|
}
|
|
1127
1111
|
}
|
|
1128
1112
|
}
|
|
1129
1113
|
}
|
|
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;
|
|
1136
|
-
}
|
|
1137
1114
|
}
|
|
1138
1115
|
}
|
|
1116
|
+
// Classe para borda nula
|
|
1117
|
+
.border-none {
|
|
1118
|
+
border: none !important;
|
|
1119
|
+
}
|
|
1139
1120
|
}
|
|
1140
|
-
@include generate-
|
|
1121
|
+
@include generate-radius-classes($helper-breakpoints);
|
|
1141
1122
|
|
|
1142
1123
|
// -----------------------------------------------------------------------------------------------------
|
|
1143
1124
|
// @ Hover - Show/Hide
|