holygrail2 1.3.27 → 1.3.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "holygrail2",
3
- "version": "1.3.27",
3
+ "version": "1.3.30",
4
4
  "description": "A minimal, responsive, style-agnostic CSS framework.",
5
5
  "main": "scss/style.scss",
6
6
  "style": "dist/style.css",
@@ -96,7 +96,7 @@ $padding-mobile: 24px !default;
96
96
  $padding-desktop: 40px !default;
97
97
  $padding-button: 8px !default;
98
98
  $height-inputs: 40px !default;
99
- $height-btn: 40px !default;
99
+ $height-btn: 32px !default;
100
100
  $text-input-m: 12px;
101
101
  $text-input-d: 12px;
102
102
  $container: 800px !default;
@@ -1,3 +1,6 @@
1
+ @use 'sass:list';
2
+ @use 'sass:map';
3
+
1
4
  $minbreakpoints: (
2
5
  xs: 1px,
3
6
  md: 992px
@@ -17,11 +20,11 @@ $breakpointscols: (
17
20
  xl: 1440px
18
21
  ) !default;
19
22
 
20
- $colBreakpoints: length($breakpoints) !default;
21
- $colBreakpointscols: length($breakpointscols) !default;
22
- $break-xs: nth(map-values($breakpoints), 1) !default;
23
- $break-sm: nth(map-values($breakpoints), 2) !default;
24
- $break-md: nth(map-values($breakpoints), 3) !default;
25
- $break-lg: nth(map-values($breakpoints), 4) !default;
26
- $break-xl: nth(map-values($breakpointscols), 5) !default;
23
+ $colBreakpoints: list.length($breakpoints) !default;
24
+ $colBreakpointscols: list.length($breakpointscols) !default;
25
+ $break-xs: list.nth(map.values($breakpoints), 1) !default;
26
+ $break-sm: list.nth(map.values($breakpoints), 2) !default;
27
+ $break-md: list.nth(map.values($breakpoints), 3) !default;
28
+ $break-lg: list.nth(map.values($breakpoints), 4) !default;
29
+ $break-xl: list.nth(map.values($breakpointscols), 5) !default;
27
30
  $min-width: 320px !default;
@@ -1,4 +1,7 @@
1
+ @use 'sass:list';
2
+ @use 'sass:map';
1
3
  @use 'sass:math';
4
+
2
5
  @import 'breakpoints';
3
6
 
4
7
  // Define los puntos de ruptura si no están definidos
@@ -100,8 +103,8 @@ $max-vw: 1500px !default;
100
103
  @mixin typesFixers($headersFixers, $cssattr) {
101
104
  @for $i from 1 through 1 {
102
105
  @each $name, $fsize in $headersFixers {
103
- $fontsize: nth($fsize, $i);
104
- $fontheight: nth($fsize, 2);
106
+ $fontsize: list.nth($fsize, $i);
107
+ $fontheight: list.nth($fsize, 2);
105
108
  .text-#{$name}-r {
106
109
  @include fonters(regular);
107
110
 
@@ -151,14 +154,14 @@ $max-vw: 1500px !default;
151
154
  @mixin typesFluids($headersFluids) {
152
155
  @for $i from 1 through 1 {
153
156
  @each $name, $fsize in $headersFluids {
154
- $u1: unit($min-vw);
155
- $u2: unit($max-vw);
156
- $min-font-size: nth($fsize, $i);
157
- $max-font-size: nth($fsize, 2);
158
- $fluid-line-height: nth($fsize, 3);
159
- $u3: unit($min-font-size);
160
- $u4: unit($max-font-size);
161
- $u5: nth($fsize, 3);
157
+ $u1: math.unit($min-vw);
158
+ $u2: math.unit($max-vw);
159
+ $min-font-size: list.nth($fsize, $i);
160
+ $max-font-size: list.nth($fsize, 2);
161
+ $fluid-line-height: list.nth($fsize, 3);
162
+ $u3: math.unit($min-font-size);
163
+ $u4: math.unit($max-font-size);
164
+ $u5: list.nth($fsize, 3);
162
165
 
163
166
  .fluid-#{$name}-l {
164
167
  @include font-light;
@@ -365,14 +368,14 @@ $max-vw: 1500px !default;
365
368
  }
366
369
 
367
370
  @mixin types($breakpoints, $headers, $cssattr) {
368
- @for $i from 1 through length($breakpoints) {
369
- @media (min-width: nth(map-values($breakpoints), $i)) {
371
+ @for $i from 1 through list.length($breakpoints) {
372
+ @media (min-width: list.nth(map.values($breakpoints), $i)) {
370
373
  @each $name, $fsize in $headers {
371
- $fontsize: nth($fsize, $i);
372
- $fontheight: nth($fsize, 5);
373
- $fontweight: nth($fsize, 6);
374
+ $fontsize: list.nth($fsize, $i);
375
+ $fontheight: list.nth($fsize, 5);
376
+ $fontweight: list.nth($fsize, 6);
374
377
  .#{$name} {
375
- @if nth(map-values($breakpoints), $i) == 1px {
378
+ @if list.nth(map.values($breakpoints), $i) == 1px {
376
379
  @include fonters($fontweight);
377
380
  }
378
381
 
@@ -385,10 +388,10 @@ $max-vw: 1500px !default;
385
388
  }
386
389
 
387
390
  @mixin space($breakpoints, $paddings, $cssattr) {
388
- @for $i from 1 through length($breakpoints) {
389
- @media (min-width: nth(map-values($breakpoints), $i)) {
391
+ @for $i from 1 through list.length($breakpoints) {
392
+ @media (min-width: list.nth(map.values($breakpoints), $i)) {
390
393
  @each $name, $pad in $paddings {
391
- $padding: nth($pad, $i);
394
+ $padding: list.nth($pad, $i);
392
395
  .#{$name} {
393
396
  #{$cssattr}: $padding;
394
397
  }
@@ -644,14 +647,14 @@ $spriteHeight: 400;
644
647
  }
645
648
 
646
649
  @mixin mintypes($minbreakpoints, $headers, $cssattr) {
647
- @for $i from 1 through length($minbreakpoints) {
648
- @media (min-width: nth(map-values($minbreakpoints), $i)) {
650
+ @for $i from 1 through list.length($minbreakpoints) {
651
+ @media (min-width: list.nth(map.values($minbreakpoints), $i)) {
649
652
  @each $name, $fsize in $headers {
650
- $fontsize: nth($fsize, $i);
651
- $fontheight: nth($fsize, 3);
652
- $fontweight: nth($fsize, 4);
653
+ $fontsize: list.nth($fsize, $i);
654
+ $fontheight: list.nth($fsize, 3);
655
+ $fontweight: list.nth($fsize, 4);
653
656
  .#{$name} {
654
- @if nth(map-values($minbreakpoints), $i) == 1px {
657
+ @if list.nth(map.values($minbreakpoints), $i) == 1px {
655
658
  @include fonters($fontweight);
656
659
  }
657
660
 
@@ -664,13 +667,13 @@ $spriteHeight: 400;
664
667
  }
665
668
 
666
669
  @mixin heights-mix() {
667
- @each $height-name in map-keys($heights) {
668
- $values: map-get($heights, $height-name);
670
+ @each $height-name in map.keys($heights) {
671
+ $values: map.get($heights, $height-name);
669
672
  .#{$height-name} {
670
- min-height: nth($values, 1);
673
+ min-height: list.nth($values, 1);
671
674
 
672
675
  @media (min-width: $break-sm) {
673
- min-height: nth($values, 2);
676
+ min-height: list.nth($values, 2);
674
677
  }
675
678
  }
676
679
  }
@@ -137,7 +137,7 @@ $font-weight-secondary-light: 300;
137
137
  $font-weight-secondary-medium: 400;
138
138
  $font-weight-secondary-bold: 700;
139
139
  $height-inputs: 40px;
140
- $height-btn: 40px;
140
+ $height-btn: 32px;
141
141
  $text-input-m: 12px;
142
142
  $text-input-d: 12px;
143
143
  $breakpointscols: ( xs: 1px, sm: 768px, md: 992px, lg: 1280px, xl: 1440px ) !default;
@@ -21,7 +21,8 @@
21
21
  }
22
22
 
23
23
  a:focus .product-card-img::before,
24
- .product-media__img:focus::before {
24
+ .product-media__img:focus::before,
25
+ a:focus .media-image::before {
25
26
  content: '';
26
27
  display: block;
27
28
  outline: 2px solid #383bff !important;
@@ -37,6 +38,7 @@
37
38
  display: block;
38
39
  outline: 2px solid #383bff !important;
39
40
  outline-offset: -2px;
41
+ inset: 0;
40
42
  }
41
43
 
42
44
  .btn-grid .btn:focus,
@@ -1,4 +1,7 @@
1
+ @use 'sass:list';
2
+ @use 'sass:map';
1
3
  @use 'sass:math';
4
+
2
5
  @import '../abstract/_all';
3
6
 
4
7
  .container-full {
@@ -8,16 +11,16 @@
8
11
  padding-inline: $padding-global;
9
12
  position: relative;
10
13
  @media (min-width: $break-sm) {
11
- max-width: nth(map-values($breakpoints), 2);
14
+ max-width: list.nth(map.values($breakpoints), 2);
12
15
  padding-inline: $padding-global;
13
16
  width: 90%;
14
17
  }
15
18
  @media (min-width: $break-md) {
16
- max-width: nth(map-values($breakpoints), 3);
19
+ max-width: list.nth(map.values($breakpoints), 3);
17
20
  width: 80%;
18
21
  }
19
22
  @media (min-width: $break-lg) {
20
- max-width: nth(map-values($breakpoints), 4);
23
+ max-width: list.nth(map.values($breakpoints), 4);
21
24
  width: 80%;
22
25
  }
23
26
  }
@@ -70,20 +73,20 @@
70
73
  position: relative;
71
74
  width: 100%;
72
75
  @media (min-width: $break-sm) {
73
- max-width: nth(map-values($breakpoints), 2);
76
+ max-width: list.nth(map.values($breakpoints), 2);
74
77
  padding-inline: $padding-global;
75
78
  width: 90%;
76
79
  }
77
80
  @media (min-width: $break-md) {
78
- max-width: nth(map-values($breakpoints), 3);
81
+ max-width: list.nth(map.values($breakpoints), 3);
79
82
  width: 80%;
80
83
  }
81
84
  @media (min-width: $break-lg) {
82
- max-width: nth(map-values($breakpoints), 4);
85
+ max-width: list.nth(map.values($breakpoints), 4);
83
86
  width: 80%;
84
87
  }
85
88
  @media (min-width: $break-xl) {
86
- max-width: nth(map-values($breakpointscols), 5);
89
+ max-width: list.nth(map.values($breakpointscols), 5);
87
90
  width: 100%;
88
91
  }
89
92
  }
@@ -211,17 +214,17 @@
211
214
  flex-wrap: wrap;
212
215
  margin-left: -$padding-global;
213
216
  margin-right: -$padding-global;
214
- @for $i from 2 through length($breakpointscols) {
215
- @media (min-width: nth(map-values($breakpointscols), $i)) {
217
+ @for $i from 2 through list.length($breakpointscols) {
218
+ @media (min-width: list.nth(map.values($breakpointscols), $i)) {
216
219
  margin-left: -$padding-global;
217
220
  margin-right: -$padding-global;
218
221
  }
219
222
  }
220
223
  }
221
224
  @for $i from 1 through 4 {
222
- @media (min-width: nth(map-values($breakpointscols), $i)) {
225
+ @media (min-width: list.nth(map.values($breakpointscols), $i)) {
223
226
  @for $c from 1 through $totalCols {
224
- .col-#{nth(map-keys($breakpointscols), $i)}-#{$c} {
227
+ .col-#{list.nth(map.keys($breakpointscols), $i)}-#{$c} {
225
228
  flex: 0 0 math.percentage(math.div($c, $totalCols));
226
229
  max-width: math.percentage(math.div($c, $totalCols));
227
230
  }
@@ -229,9 +232,9 @@
229
232
  }
230
233
  }
231
234
  @for $i from 5 through $colBreakpointscols {
232
- @media (min-width: nth(map-values($breakpointscols), $i)) {
235
+ @media (min-width: list.nth(map.values($breakpointscols), $i)) {
233
236
  @for $c from 1 through $totalColsXl {
234
- .col-#{nth(map-keys($breakpointscols), $i)}-#{$c} {
237
+ .col-#{list.nth(map.keys($breakpointscols), $i)}-#{$c} {
235
238
  flex: 0 0 math.percentage(math.div($c, $totalColsXl));
236
239
  max-width: math.percentage(math.div($c, $totalColsXl));
237
240
  }
@@ -1,4 +1,7 @@
1
+ @use 'sass:list';
2
+
1
3
  @import '../abstract/_all';
4
+
2
5
  .is-rtl {
3
6
  .fl-left {
4
7
  float: right;
@@ -64,8 +67,8 @@
64
67
  .select:not(.is-multiple, .is-loading).select-box::after {
65
68
  left: 8px;
66
69
  }
67
- @for $i from 1 through length($espaciados) {
68
- $espaciado: nth($espaciados, $i);
70
+ @for $i from 1 through list.length($espaciados) {
71
+ $espaciado: list.nth($espaciados, $i);
69
72
  .mr-#{$espaciado} {
70
73
  margin-right: 0;
71
74
  margin-left: #{$espaciado}px;
@@ -1,3 +1,5 @@
1
+ @use 'sass:list';
2
+
1
3
  @import '../abstract/_breakpoints';
2
4
  @import '../abstract/_all';
3
5
 
@@ -10,8 +12,8 @@ $break-xl: 1200px !default;
10
12
  margin: 0 auto;
11
13
  }
12
14
 
13
- @for $i from 1 through length($espaciados) {
14
- $espaciado: nth($espaciados, $i);
15
+ @for $i from 1 through list.length($espaciados) {
16
+ $espaciado: list.nth($espaciados, $i);
15
17
  .m-#{$espaciado} {
16
18
  margin: #{$espaciado}px;
17
19
  }
@@ -18,7 +18,7 @@ button {
18
18
  border: none;
19
19
  white-space: nowrap;
20
20
  cursor: pointer;
21
- padding: 10px 16px 8px;
21
+ padding: 7px 16px 8px;
22
22
  background-color: transparent;
23
23
  min-height: $height-btn;
24
24
  @include font-regular;
@@ -448,7 +448,7 @@ button {
448
448
  }
449
449
  .btn-limited {
450
450
  height: auto;
451
- min-height: 40px;
451
+ min-height: $height-btn;
452
452
  color: $c-white;
453
453
  background-color: $c-limited;
454
454
  border: 1px solid $c-limited;
@@ -1,5 +1,9 @@
1
1
  @use './variables' as *;
2
2
 
3
+ @use 'sass:list';
4
+ @use 'sass:map';
5
+ @use 'sass:meta';
6
+
3
7
  @mixin mq($min-screen: false, $max-screen: false, $orientation: false) {
4
8
  @if $min-screen and $max-screen {
5
9
  @media all and (min-width: $min-screen) and (max-width: $max-screen) {
@@ -17,21 +21,21 @@
17
21
  }
18
22
 
19
23
  @mixin generate-utility($utility, $breakpoint: false, $prefix: $hg-prefix) {
20
- $values: map-get($utility, values);
24
+ $values: map.get($utility, values);
21
25
 
22
26
  @if not $prefix {
23
27
  $prefix: '';
24
28
  }
25
29
 
26
- @if type-of($values) == 'string' or type-of(nth($values, 1)) != 'list' {
27
- $values: zip($values, $values);
30
+ @if meta.type-of($values) == 'string' or meta.type-of(list.nth($values, 1)) != 'list' {
31
+ $values: list.zip($values, $values);
28
32
  }
29
33
 
30
34
  @each $key, $value in $values {
31
- $property: map-get($utility, property);
35
+ $property: map.get($utility, property);
32
36
  $property-class: if(
33
- map-has-key($utility, class),
34
- map-get($utility, class),
37
+ map.has-key($utility, class),
38
+ map.get($utility, class),
35
39
  $property
36
40
  );
37
41
  $property-class-modifier: if($key, '-' + $key, '');
@@ -1,3 +1,5 @@
1
+ @use 'sass:map';
2
+
1
3
  @use './functions' as *;
2
4
 
3
5
  $hg-prefix: 'hg-' !default;
@@ -10,11 +12,11 @@ $hg-breakpoints: (
10
12
  xl: 1440px
11
13
  ) !default;
12
14
 
13
- $hg-breakpoint-xs: map-get($hg-breakpoints, xs) !default;
14
- $hg-breakpoint-sm: map-get($hg-breakpoints, sm) !default;
15
- $hg-breakpoint-md: map-get($hg-breakpoints, md) !default;
16
- $hg-breakpoint-lg: map-get($hg-breakpoints, lg) !default;
17
- $hg-breakpoint-xl: map-get($hg-breakpoints, xl) !default;
15
+ $hg-breakpoint-xs: map.get($hg-breakpoints, xs) !default;
16
+ $hg-breakpoint-sm: map.get($hg-breakpoints, sm) !default;
17
+ $hg-breakpoint-md: map.get($hg-breakpoints, md) !default;
18
+ $hg-breakpoint-lg: map.get($hg-breakpoints, lg) !default;
19
+ $hg-breakpoint-xl: map.get($hg-breakpoints, xl) !default;
18
20
 
19
21
  $hg-spacers: (
20
22
  12: to-rem(1),
@@ -44,30 +46,30 @@ $hg-spacers: (
44
46
  2000: to-rem(160)
45
47
  ) !default;
46
48
 
47
- $hg-spacer-12: map-get($hg-spacers, 12) !default;
48
- $hg-spacer-25: map-get($hg-spacers, 25) !default;
49
- $hg-spacer-50: map-get($hg-spacers, 50) !default;
50
- $hg-spacer-100: map-get($hg-spacers, 100) !default;
51
- $hg-spacer-150: map-get($hg-spacers, 150) !default;
52
- $hg-spacer-200: map-get($hg-spacers, 200) !default;
53
- $hg-spacer-250: map-get($hg-spacers, 250) !default;
54
- $hg-spacer-300: map-get($hg-spacers, 300) !default;
55
- $hg-spacer-400: map-get($hg-spacers, 400) !default;
56
- $hg-spacer-500: map-get($hg-spacers, 500) !default;
57
- $hg-spacer-600: map-get($hg-spacers, 600) !default;
58
- $hg-spacer-700: map-get($hg-spacers, 700) !default;
59
- $hg-spacer-800: map-get($hg-spacers, 800) !default;
60
- $hg-spacer-900: map-get($hg-spacers, 900) !default;
61
- $hg-spacer-1000: map-get($hg-spacers, 1000) !default;
62
- $hg-spacer-1200: map-get($hg-spacers, 1200) !default;
63
- $hg-spacer-1300: map-get($hg-spacers, 1300) !default;
64
- $hg-spacer-1400: map-get($hg-spacers, 1400) !default;
65
- $hg-spacer-1500: map-get($hg-spacers, 1500) !default;
66
- $hg-spacer-1600: map-get($hg-spacers, 1600) !default;
67
- $hg-spacer-1700: map-get($hg-spacers, 1700) !default;
68
- $hg-spacer-1800: map-get($hg-spacers, 1800) !default;
69
- $hg-spacer-1900: map-get($hg-spacers, 1900) !default;
70
- $hg-spacer-2000: map-get($hg-spacers, 2000) !default;
49
+ $hg-spacer-12: map.get($hg-spacers, 12) !default;
50
+ $hg-spacer-25: map.get($hg-spacers, 25) !default;
51
+ $hg-spacer-50: map.get($hg-spacers, 50) !default;
52
+ $hg-spacer-100: map.get($hg-spacers, 100) !default;
53
+ $hg-spacer-150: map.get($hg-spacers, 150) !default;
54
+ $hg-spacer-200: map.get($hg-spacers, 200) !default;
55
+ $hg-spacer-250: map.get($hg-spacers, 250) !default;
56
+ $hg-spacer-300: map.get($hg-spacers, 300) !default;
57
+ $hg-spacer-400: map.get($hg-spacers, 400) !default;
58
+ $hg-spacer-500: map.get($hg-spacers, 500) !default;
59
+ $hg-spacer-600: map.get($hg-spacers, 600) !default;
60
+ $hg-spacer-700: map.get($hg-spacers, 700) !default;
61
+ $hg-spacer-800: map.get($hg-spacers, 800) !default;
62
+ $hg-spacer-900: map.get($hg-spacers, 900) !default;
63
+ $hg-spacer-1000: map.get($hg-spacers, 1000) !default;
64
+ $hg-spacer-1200: map.get($hg-spacers, 1200) !default;
65
+ $hg-spacer-1300: map.get($hg-spacers, 1300) !default;
66
+ $hg-spacer-1400: map.get($hg-spacers, 1400) !default;
67
+ $hg-spacer-1500: map.get($hg-spacers, 1500) !default;
68
+ $hg-spacer-1600: map.get($hg-spacers, 1600) !default;
69
+ $hg-spacer-1700: map.get($hg-spacers, 1700) !default;
70
+ $hg-spacer-1800: map.get($hg-spacers, 1800) !default;
71
+ $hg-spacer-1900: map.get($hg-spacers, 1900) !default;
72
+ $hg-spacer-2000: map.get($hg-spacers, 2000) !default;
71
73
 
72
74
  $hg-utilities: (
73
75
  'display': (
@@ -1,24 +1,28 @@
1
+ @use 'sass:list';
2
+ @use 'sass:map';
3
+ @use 'sass:meta';
4
+
1
5
  @use '../abstract' as *;
2
6
 
3
- @each $breakpoint in map-keys($hg-breakpoints) {
7
+ @each $breakpoint in map.keys($hg-breakpoints) {
4
8
  $break: if(
5
- $breakpoint == nth(map-keys($hg-breakpoints), 1),
9
+ $breakpoint == list.nth(map.keys($hg-breakpoints), 1),
6
10
  '',
7
11
  '#{$breakpoint}'
8
12
  );
9
- $breakpoint-value: map-get($hg-breakpoints, $breakpoint);
13
+ $breakpoint-value: map.get($hg-breakpoints, $breakpoint);
10
14
 
11
15
  @if $break != '' {
12
16
  @include mq($min-screen: $breakpoint-value) {
13
17
  @each $key, $utility in $hg-utilities {
14
- @if type-of($utility) == 'map' and (map-get($utility, responsive)) {
18
+ @if meta.type-of($utility) == 'map' and (map.get($utility, responsive)) {
15
19
  @include generate-utility($utility, $break);
16
20
  }
17
21
  }
18
22
  }
19
23
  } @else {
20
24
  @each $key, $utility in $hg-utilities {
21
- @if type-of($utility) == 'map' {
25
+ @if meta.type-of($utility) == 'map' {
22
26
  @include generate-utility($utility);
23
27
  }
24
28
  }