matcha-theme 1.0.10 → 1.0.12

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.
@@ -179,11 +179,11 @@
179
179
  $display-1: matcha-typography-level(34px, 40px, 400),
180
180
  $headline: matcha-typography-level(24px, 32px, 400),
181
181
  $title: matcha-typography-level(20px, 32px, 700),
182
- $subheading-2: matcha-typography-level(16px, 28px, 700),
183
- $subheading-1: matcha-typography-level(15px, 24px, 700),
182
+ $subheading-2: matcha-typography-level(16px, 28px, 900),
183
+ $subheading-1: matcha-typography-level(15px, 24px, 900),
184
184
  $body-2: matcha-typography-level(14px, 24px, 500),
185
185
  $body-1: matcha-typography-level(14px, 20px, 400),
186
- $caption: matcha-typography-level(12px, 20px, 400),
186
+ $caption: matcha-typography-level(12px, 20px, 500),
187
187
  $button: matcha-typography-level(14px, 14px, 500),
188
188
  $input: matcha-typography-level(inherit, 1.125, 400)
189
189
  ) {
@@ -390,12 +390,9 @@ $base-font-size: 16px;
390
390
 
391
391
  // Function to convert pixels to rem.
392
392
  @function px-to-rem($value-in-px) {
393
- @return calc($value-in-px / $base-font-size) * 1rem;
394
- }
395
-
396
- // Example of use of the function:
397
- // .example {
398
- // font-size: px-to-rem(24px); // Converte 24px para rem.
399
- // margin: px-to-rem(16px); // Converte 16px para rem.
400
- // padding: px-to-rem(8px); // Converte 8px para rem.
401
- // }
393
+ @if $value-in-px != 0 {
394
+ @return calc($value-in-px / $base-font-size) * 1rem;
395
+ } @else {
396
+ @return $value-in-px;
397
+ }
398
+ }
@@ -32,11 +32,19 @@
32
32
 
33
33
  @for $i from 0 through 12 {
34
34
  $size: $i * 4;
35
-
36
35
  .gap-#{$size} {
37
36
  column-gap: #{$size}px;
38
37
  row-gap: #{$size}px;
39
38
  }
39
+ @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
40
+ @include media-breakpoint($materialBreakpoint) {
41
+ $infix: if($materialBreakpoint == null, "", "-#{$breakpoint}");
42
+ .gap#{$infix}-#{$size} {
43
+ column-gap: #{$size}px;
44
+ row-gap: #{$size}px;
45
+ }
46
+ }
47
+ }
40
48
  }
41
49
 
42
50
  @each $breakpoint, $materialBreakpoint in $helper-breakpoints {
@@ -77,8 +77,8 @@
77
77
  .h2,
78
78
  h2 {
79
79
  font-size: px-to-rem(32px);
80
- font-family: matcha-font-family($config, title);
81
- font-weight: matcha-font-weight($config, title);
80
+ font-family: matcha-font-family($config, body-2);
81
+ font-weight: matcha-font-weight($config, body-2);
82
82
  }
83
83
 
84
84
  .h3,
@@ -104,25 +104,9 @@
104
104
 
105
105
  .h6,
106
106
  h6 {
107
- font-size: px-to-rem(14px);
108
- font-family: matcha-font-family($config, title);
109
- font-weight: matcha-font-weight($config, title);
110
- }
111
-
112
- .h7,
113
- .subheading-2 {
114
107
  font-size: px-to-rem(12px);
115
- font-family: matcha-font-family($config, title);
116
- font-weight: matcha-font-weight($config, title);
117
- }
118
-
119
- .h8,
120
- .subheading-1 {
121
- font-size: px-to-rem(12px);
122
- font-family: matcha-font-family($config, title);
123
- font-weight: matcha-font-weight($config, title);
124
- text-transform: uppercase;
125
- letter-spacing: px-to-rem(0.8px);
108
+ font-family: matcha-font-family($config, subheading-2);
109
+ font-weight: matcha-font-weight($config, subheading-2);
126
110
  }
127
111
 
128
112
  .text-bold,