@sorocraft/ui 1.2.24 → 1.2.25

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.
@@ -225,3 +225,35 @@ $xxl: 1440px;
225
225
  width: functions.toRem(map.get($avatar-sizes, $size));
226
226
  height: functions.toRem(map.get($avatar-sizes, $size));
227
227
  }
228
+
229
+ // Headings with responsive font sizes
230
+ @mixin heading($default, $xl: null, $lg: null, $md: null, $sm: null) {
231
+ font-size: $default;
232
+ margin-bottom: 1rem;
233
+ line-height: calc($default * 1.5);
234
+
235
+ @if $xl {
236
+ @include media-xl-down {
237
+ font-size: $xl;
238
+ line-height: calc($xl * 1.5);
239
+ }
240
+ }
241
+ @if $lg {
242
+ @include media-lg-down {
243
+ font-size: $lg;
244
+ line-height: calc($lg * 1.5);
245
+ }
246
+ }
247
+ @if $md {
248
+ @include media-md-down {
249
+ font-size: $md;
250
+ line-height: calc($md * 1.5);
251
+ }
252
+ }
253
+ @if $sm {
254
+ @include media-sm-down {
255
+ font-size: $sm;
256
+ line-height: calc($sm * 1.5);
257
+ }
258
+ }
259
+ }