ctt-babylon 0.8.17 → 0.8.18

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.
Files changed (33) hide show
  1. package/lib/styles/styles/babylon/_spacing.css +1 -0
  2. package/lib/styles/styles/babylon/_spacing.scss +72 -0
  3. package/lib/styles/styles/babylon/common.css +1 -0
  4. package/lib/styles/styles/babylon/common.scss +1823 -0
  5. package/lib/styles/styles/babylon/globals.css +1 -0
  6. package/lib/styles/styles/babylon/globals.scss +848 -0
  7. package/lib/styles/styles/babylon/mixins.css +1 -0
  8. package/lib/styles/styles/babylon/mixins.scss +1031 -0
  9. package/lib/styles/styles/babylon/reset.css +1 -0
  10. package/lib/styles/styles/babylon/reset.scss +136 -0
  11. package/lib/styles/styles/babylon/slide.css +1 -0
  12. package/lib/styles/styles/babylon/slider.css +1 -0
  13. package/lib/styles/styles/babylon/slider.scss +876 -0
  14. package/lib/styles/styles/babylon/structure.css +0 -0
  15. package/lib/styles/styles/babylon/structure.scss +1 -0
  16. package/lib/styles/styles/babylon/variables-v2.css +0 -0
  17. package/lib/styles/styles/babylon/variables.css +1 -0
  18. package/lib/styles/styles/babylon/variables.scss +330 -0
  19. package/package.json +1 -1
  20. /package/lib/styles/styles/babylon/{scss-daba/airDatePicker.min.css → airDatePicker.min.css} +0 -0
  21. /package/lib/styles/styles/babylon/{scss-daba/aos.min.css → aos.min.css} +0 -0
  22. /package/lib/styles/styles/babylon/{scss-daba/buttons.css → buttons.css} +0 -0
  23. /package/lib/styles/styles/babylon/{scss-daba/buttons.scss → buttons.scss} +0 -0
  24. /package/lib/styles/styles/babylon/{scss-daba/fancybox.css → fancybox.css} +0 -0
  25. /package/lib/styles/styles/babylon/{scss-daba/fancybox.min.css → fancybox.min.css} +0 -0
  26. /package/lib/styles/styles/babylon/{scss-daba/funciones.css → funciones.css} +0 -0
  27. /package/lib/styles/styles/babylon/{scss-daba/funciones.scss → funciones.scss} +0 -0
  28. /package/lib/styles/styles/babylon/{scss-daba/inputs.css → inputs.css} +0 -0
  29. /package/lib/styles/styles/babylon/{scss-daba/inputs.scss → inputs.scss} +0 -0
  30. /package/lib/styles/styles/babylon/{scss-daba/jquery.fancybox.min.css → jquery.fancybox.min.css} +0 -0
  31. /package/lib/styles/styles/babylon/{scss-daba/style.css → style.css} +0 -0
  32. /package/lib/styles/styles/babylon/{scss-daba/style.scss → style.scss} +0 -0
  33. /package/lib/styles/styles/babylon/{scss-daba/swiper-bundle.min.css → swiper-bundle.min.css} +0 -0
@@ -0,0 +1,1031 @@
1
+ @use './variables.scss' as *;
2
+ @use 'sass:map';
3
+ @use 'sass:math';
4
+ @use 'sass:list';
5
+
6
+ // MEDIA QUERYS
7
+ $mobile: 375px;
8
+ $small-tablet: 540px;
9
+ $medium-tablet: 768px;
10
+ $full-tablet: 1025px;
11
+ $small-desktop: 1280px;
12
+ $medium-desktop: 1366px;
13
+ $full-desktop: 1680px;
14
+ $full-desktop-xl: 1920px;
15
+
16
+ //-------------------- Responsive sizes -------------------- //
17
+ $extra-large-device-width: 1280px; // Large devices (desktops, less than 1280px)
18
+ $large-device-width: 1199px; // Large devices (desktops, less than 1200px)
19
+ $medium-device-width: 1025px; // Medium devices (tablets, less than 1025px)
20
+ $small-device-width: 767px; // Small devices (landscape phones, less than 768px)
21
+ $extra-small-device-width: 575px; // Extra small devices (portrait phones, less than 576px)
22
+
23
+ $container-max-widths: (
24
+ sm: 540px,
25
+ md: 768px,
26
+ lg: 1025px,
27
+ xl: 1280px,
28
+ xxl: 1366px,
29
+ xxxl: 1600px,
30
+ xxxxl: 1921px,
31
+ ) !default;
32
+ $grid-breakpoints: (
33
+ xs: 0,
34
+ sm: 540px,
35
+ md: 768px,
36
+ lg: 1025px,
37
+ xl: 1280px,
38
+ xxl: 1366px,
39
+ xxxl: 1680px,
40
+ xxxxl: 1921px,
41
+ ) !default;
42
+
43
+ // breakpoints
44
+ $breakpoints: (
45
+ 'xs': 540px,
46
+ 'sm': 768px,
47
+ 'md': 1024px,
48
+ 'lg': 1280px,
49
+ 'xl': 1366px,
50
+ '2xl': 1680px,
51
+ '3xl': 1800px,
52
+ '4xl': 1900px,
53
+ ) !default;
54
+
55
+ //-------------------- MediaQuery --------//
56
+ @mixin full-desktop-xl {
57
+ //1920px
58
+ @media (max-width: #{$full-desktop-xl - 1px}) {
59
+ @content;
60
+ }
61
+ }
62
+ @mixin full-desktop {
63
+ //1680px
64
+ @media (max-width: #{$full-desktop - 1px}) {
65
+ @content;
66
+ }
67
+ }
68
+
69
+ @mixin medium-desktop {
70
+ //1366px
71
+ @media (max-width: #{$medium-desktop - 1px}) {
72
+ @content;
73
+ }
74
+ }
75
+
76
+ @mixin small-desktop {
77
+ //1280px
78
+ @media (max-width: #{$small-desktop - 1px}) {
79
+ @content;
80
+ }
81
+ }
82
+
83
+ @mixin full-tablet {
84
+ //992
85
+ @media (max-width: #{$full-tablet - 1px}) {
86
+ @content;
87
+ }
88
+ }
89
+
90
+ @mixin medium-tablet {
91
+ //768px
92
+ @media (max-width: #{$medium-tablet - 1px}) {
93
+ @content;
94
+ }
95
+ }
96
+
97
+ @mixin small-tablet {
98
+ //540px
99
+ @media (max-width: #{$small-tablet - 1px}) {
100
+ @content;
101
+ }
102
+ }
103
+
104
+ @mixin mobile {
105
+ //375px
106
+ @media (max-width: #{$mobile - 1px}) {
107
+ @content;
108
+ }
109
+ }
110
+ @mixin min-full-desktop-xl {
111
+ @media (min-width: #{$full-desktop-xl}) {
112
+ @content;
113
+ }
114
+ }
115
+ @mixin min-full-desktop {
116
+ @media (min-width: #{$full-desktop}) {
117
+ @content;
118
+ }
119
+ }
120
+
121
+ @mixin min-medium-desktop {
122
+ @media (min-width: #{$medium-desktop}) {
123
+ @content;
124
+ }
125
+ }
126
+
127
+ @mixin min-small-desktop {
128
+ @media (min-width: #{$small-desktop}) {
129
+ @content;
130
+ }
131
+ }
132
+
133
+ @mixin min-full-tablet {
134
+ @media (min-width: #{$full-tablet}) {
135
+ @content;
136
+ }
137
+ }
138
+
139
+ @mixin min-medium-tablet {
140
+ @media (min-width: #{$medium-tablet}) {
141
+ @content;
142
+ }
143
+ }
144
+
145
+ @mixin min-small-tablet {
146
+ @media (min-width: #{$small-tablet}) {
147
+ @content;
148
+ }
149
+ }
150
+
151
+ @mixin min-mobile {
152
+ @media (min-width: #{$mobile}) {
153
+ @content;
154
+ }
155
+ }
156
+
157
+ @mixin tablet {
158
+ @media (max-width: #{$medium-device-width}) {
159
+ @content;
160
+ }
161
+ }
162
+
163
+ //-------------------- Font size Rem conversion --------//
164
+ @function calculateRem($size) {
165
+ $remSize: calc($size / 16px);
166
+ @return #{$remSize}rem;
167
+ }
168
+ @mixin fontSize($size) {
169
+ font-size: $size; //Fallback in px
170
+ font-size: calculateRem($size);
171
+ }
172
+ //-------------------- Border radius --------------------//
173
+ @mixin border-radius($top, $right, $bottom, $left) {
174
+ -webkit-border-radius: $top $right $bottom $left;
175
+ -moz-border-radius: $top $right $bottom $left;
176
+ -ms-border-radius: $top $right $bottom $left;
177
+ border-radius: $top $right $bottom $left;
178
+ }
179
+
180
+ @mixin border-radius($radius) {
181
+ -webkit-border-radius: $radius;
182
+ -moz-border-radius: $radius;
183
+ -ms-border-radius: $radius;
184
+ border-radius: $radius;
185
+ }
186
+
187
+ //-------------------- Transition --------------------//
188
+ @mixin transition-default($what: all, $length: 0.3s, $easing: '') {
189
+ @if ($what == transform) {
190
+ @if ($easing != '') {
191
+ -moz-transition: -moz-transform $length $easing;
192
+ -o-transition: -o-transform $length $easing;
193
+ -webkit-transition: -webkit-transform $length $easing;
194
+ -ms-transition: -ms-transform $length $easing;
195
+ transition: transform $length $easing;
196
+ } @else {
197
+ -moz-transition: -moz-transform $length;
198
+ -o-transition: -o-transform $length;
199
+ -webkit-transition: -webkit-transform $length;
200
+ -ms-transition: -ms-transform $length;
201
+ transition: transform $length;
202
+ }
203
+ } @else {
204
+ @if ($easing != '') {
205
+ -moz-transition: $what $length $easing;
206
+ -o-transition: $what $length $easing;
207
+ -webkit-transition: $what $length $easing;
208
+ -ms-transition: $what $length $easing;
209
+ transition: $what $length $easing;
210
+ } @else {
211
+ -moz-transition: $what $length ease-in-out;
212
+ -o-transition: $what $length ease-in-out;
213
+ -webkit-transition: $what $length ease-in-out;
214
+ -ms-transition: $what $length ease-in-out;
215
+ transition: $what $length ease-in-out;
216
+ }
217
+ }
218
+ }
219
+ @mixin transition-default-cubic-bezier(
220
+ $what: all,
221
+ $length: 0.3s cubic-bezier(0.77, 0, 0.175, 1)
222
+ ) {
223
+ -webkit-transition: $what $length;
224
+ -moz-transition: $what $length;
225
+ -ms-transition: $what $length;
226
+ -o-transition: $what $length;
227
+ transition: $what $length;
228
+ }
229
+
230
+ //-------------------- Transform, Translate3d, TranslateX, TranslateY, Rotate --------------------//
231
+ @mixin transform($params) {
232
+ -webkit-transform: $params;
233
+ -moz-transform: $params;
234
+ -ms-transform: $params;
235
+ -o-transform: $params;
236
+ transform: $params;
237
+ }
238
+ //-------------------- Center vertically and/or horizontally --------------------//
239
+ @mixin center($xy: xy) {
240
+ @if $xy == xy {
241
+ left: 50%;
242
+ top: 50%;
243
+ bottom: auto;
244
+ right: auto;
245
+ @include transform(translateX(-50%) translateY(-50%));
246
+ } @else if $xy == x {
247
+ left: 50%;
248
+ right: auto;
249
+ @include transform(translateX(-50%));
250
+ } @else if $xy == y {
251
+ top: 50%;
252
+ bottom: auto;
253
+ @include transform(translateY(-50%));
254
+ }
255
+ }
256
+
257
+ //-------------------- Transform, Translate3d, TranslateX, TranslateY, Rotate --------------------//
258
+ @mixin translate3d($val, $val2, $val3) {
259
+ -webkit-transform: translate3d($val, $val2, $val3);
260
+ -ms-transform: translate3d($val, $val2, $val3);
261
+ -o-transform: translate3d($val, $val2, $val3);
262
+ transform: translate3d($val, $val2, $val3);
263
+ }
264
+ @mixin translateX($val...) {
265
+ -webkit-transform: translateX($val);
266
+ -ms-transform: translateX($val);
267
+ -o-transform: translateX($val);
268
+ transform: translateX($val);
269
+ }
270
+ @mixin translateY($val...) {
271
+ -webkit-transform: translateY($val);
272
+ -ms-transform: translateY($val);
273
+ -o-transform: translateY($val);
274
+ transform: translateY($val);
275
+ }
276
+ @mixin rotate($val) {
277
+ -webkit-transform: rotate($val);
278
+ -moz-transform: rotate($val);
279
+ -ms-transform: rotate($val);
280
+ -o-transform: rotate($val);
281
+ transform: rotate($val);
282
+ }
283
+ @mixin perspective($val) {
284
+ -webkit-perspective: $val;
285
+ -moz-perspective: $val;
286
+ -ms-perspective: $val;
287
+ perspective: $val;
288
+ }
289
+ //-------------------- Background-size --------------------//
290
+ @mixin background-size($background-size) {
291
+ -webkit-background-size: $background-size;
292
+ -moz-background-size: $background-size;
293
+ -o-background-size: $background-size;
294
+ background-size: $background-size;
295
+ }
296
+
297
+ //-------------------- Gradients --------------------//
298
+ @mixin linear-gradient($from, $to) {
299
+ background: $to;
300
+ background: -moz-linear-gradient(to right, $from 0%, $to 100%);
301
+ background: -webkit-gradient(
302
+ to right,
303
+ color-stop(0%, $from),
304
+ color-stop(100%, $to)
305
+ );
306
+ background: -webkit-linear-gradient(to right, $from 0%, $to 100%);
307
+ background: -o-linear-gradient(to right, $from 0%, $to 100%);
308
+ background: linear-gradient(to right, $from 0%, $to 100%);
309
+ filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr=#{$from}, endColorstr=#{$to});
310
+ }
311
+ @mixin background-gradient($start-color, $end-color, $orientation) {
312
+ background: $start-color;
313
+ @if $orientation == 'vertical' {
314
+ background: -webkit-linear-gradient(top, $start-color, $end-color);
315
+ background: linear-gradient(to bottom, $start-color, $end-color);
316
+ } @else if $orientation == 'horizontal' {
317
+ background: -webkit-linear-gradient(left, $start-color, $end-color);
318
+ background: linear-gradient(to right, $start-color, $end-color);
319
+ } @else {
320
+ background: -webkit-radial-gradient(
321
+ center,
322
+ ellipse cover,
323
+ $start-color,
324
+ $end-color
325
+ );
326
+ background: radial-gradient(
327
+ ellipse at center,
328
+ $start-color,
329
+ $end-color
330
+ );
331
+ }
332
+ }
333
+
334
+ //-------------------- Background color and color --------------------//
335
+ @function solid-lighten($color, $percentage) {
336
+ @return lighten($color, (1-$percentage) * 5%);
337
+ }
338
+ @function solid-darken($color, $percentage) {
339
+ @return darken($color, (1-$percentage) * 5%);
340
+ }
341
+ @mixin rgba-main($type, $color, $percentage, $shade: ligthen) {
342
+ @if $shade == lighten {
343
+ @if $type == color {
344
+ color: solid-lighten($color, $percentage);
345
+ color: rgba($color, $percentage);
346
+ }
347
+ @if $type == bg {
348
+ background-color: solid-lighten($color, $percentage);
349
+ background-color: rgba($color, $percentage);
350
+ }
351
+ } @else {
352
+ @if $type == color {
353
+ color: solid-darken($color, $percentage);
354
+ color: rgba($color, $percentage);
355
+ }
356
+ @if $type == bg {
357
+ background-color: solid-darken($color, $percentage);
358
+ background-color: rgba($color, $percentage);
359
+ }
360
+ }
361
+ }
362
+
363
+ //-------------------- Animation --------------------//
364
+ @mixin animation($animationname, $time) {
365
+ animation: $animationname $time;
366
+ -webkit-animation: $animationname $time;
367
+ -moz-animation-name: $animationname $time;
368
+ }
369
+
370
+ @mixin animation-name($animationname) {
371
+ animation-name: $animationname;
372
+ -webkit-animation-name: $animationname;
373
+ -moz-animation-name: $animationname;
374
+ }
375
+
376
+ @mixin animation-duration($time) {
377
+ animation-duration: $time;
378
+ -webkit-animation-duration: $time;
379
+ -moz-animation-duration: $time;
380
+ }
381
+
382
+ @mixin animation-timing($timing) {
383
+ animation-timing-function: $timing;
384
+ -webkit-animation-timing-function: $timing;
385
+ -moz-animation-timing-function: $timing;
386
+ }
387
+
388
+ @mixin animation-delay($delay) {
389
+ animation-delay: $delay;
390
+ -webkit-animation-delay: $delay;
391
+ -moz-animation-delay: $delay;
392
+ }
393
+
394
+ @mixin animation-count($count) {
395
+ animation-iteration-count: $count;
396
+ -webkit-animation-iteration-count: $count;
397
+ -moz-animation-iteration-count: $count;
398
+ }
399
+
400
+ @mixin animation-direction($direction) {
401
+ animation-direction: $direction;
402
+ -webkit-animation-direction: $direction;
403
+ }
404
+
405
+ @mixin animation-fill($fill-mode) {
406
+ animation-fill-mode: $fill-mode;
407
+ -webkit-animation-fill-mode: $fill-mode;
408
+ -moz-animation-fill-mode: $fill-mode;
409
+ }
410
+
411
+ @mixin backface-visibility($arguments) {
412
+ -webkit-backface-visibility: $arguments;
413
+ -moz-backface-visibility: $arguments;
414
+ -ms-backface-visibility: $arguments;
415
+ -o-backface-visibility: $arguments;
416
+ backface-visibility: $arguments;
417
+ }
418
+ //-------------------- Box shadow --------------------//
419
+ @mixin box-shadow($val...) {
420
+ -webkit-box-shadow: $val;
421
+ -moz-box-shadow: $val;
422
+ box-shadow: $val;
423
+ }
424
+ @mixin box-shadow-main() {
425
+ box-shadow: 0px 0px 10px 0px var(--cl_shadow);
426
+ }
427
+ @mixin box-shadow-bottom() {
428
+ box-shadow: 0px 3px 4px 0px var(--cl_shadow);
429
+ }
430
+
431
+ //-------------------- Center vertically and/or horizontally --------------------//
432
+ @mixin center($xy: xy) {
433
+ @if $xy == xy {
434
+ left: 50%;
435
+ top: 50%;
436
+ bottom: auto;
437
+ right: auto;
438
+ @include transform(translateX(-50%) translateY(-50%));
439
+ } @else if $xy == x {
440
+ left: 50%;
441
+ right: auto;
442
+ @include transform(translateX(-50%));
443
+ } @else if $xy == y {
444
+ top: 50%;
445
+ bottom: auto;
446
+ @include transform(translateY(-50%));
447
+ }
448
+ }
449
+
450
+ //-------------------- Responsive --------------------//
451
+ @mixin extra-desktop {
452
+ @media (max-width: #{$extra-large-device-width}) {
453
+ @content;
454
+ }
455
+ }
456
+ @mixin desktop {
457
+ @media (max-width: #{$large-device-width}) {
458
+ @content;
459
+ }
460
+ }
461
+ @mixin tablet {
462
+ @media (max-width: #{$medium-device-width}) {
463
+ @content;
464
+ }
465
+ }
466
+ @mixin mobile {
467
+ @media (max-width: #{$small-device-width}) {
468
+ @content;
469
+ }
470
+ }
471
+ @mixin extra-small-mobile {
472
+ @media (max-width: #{$extra-small-device-width}) {
473
+ @content;
474
+ }
475
+ }
476
+
477
+ @media (min-width: 1280px) {
478
+ .order-custom-xl-xxl-1 {
479
+ order: 1;
480
+ }
481
+ .order-custom-xl-xxl-2 {
482
+ order: 2;
483
+ }
484
+ }
485
+
486
+ /// MIXIMS BREAKPOINTS
487
+ @function breakpoint-next(
488
+ $name,
489
+ $breakpoints: $grid-breakpoints,
490
+ $breakpoint-names: map-keys($breakpoints)
491
+ ) {
492
+ $n: index($breakpoint-names, $name);
493
+ @return if(
494
+ $n != null and $n < length($breakpoint-names),
495
+ nth($breakpoint-names, $n + 1),
496
+ null
497
+ );
498
+ }
499
+
500
+ @function breakpoint-min($name, $breakpoints: $grid-breakpoints) {
501
+ $min: map.get($breakpoints, $name);
502
+ @return if($min != 0, $min, null);
503
+ }
504
+
505
+ @function breakpoint-max($name, $breakpoints: $grid-breakpoints) {
506
+ $next: breakpoint-next($name, $breakpoints);
507
+ @return if($next, breakpoint-min($next, $breakpoints) - 0.02, null);
508
+ }
509
+
510
+ @function breakpoint-infix($name, $breakpoints: $grid-breakpoints) {
511
+ @return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
512
+ }
513
+
514
+ @mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
515
+ $min: breakpoint-min($name, $breakpoints);
516
+ @if $min {
517
+ @media (min-width: $min) {
518
+ @content;
519
+ }
520
+ } @else {
521
+ @content;
522
+ }
523
+ }
524
+
525
+ @mixin media-breakpoint-down($name, $breakpoints: $grid-breakpoints) {
526
+ $max: breakpoint-max($name, $breakpoints);
527
+ @if $max {
528
+ @media (max-width: $max) {
529
+ @content;
530
+ }
531
+ } @else {
532
+ @content;
533
+ }
534
+ }
535
+
536
+ @mixin media-breakpoint-between(
537
+ $lower,
538
+ $upper,
539
+ $breakpoints: $grid-breakpoints
540
+ ) {
541
+ $min: breakpoint-min($lower, $breakpoints);
542
+ $max: breakpoint-max($upper, $breakpoints);
543
+
544
+ @if $min != null and $max != null {
545
+ @media (min-width: $min) and (max-width: $max) {
546
+ @content;
547
+ }
548
+ } @else if $max == null {
549
+ @include media-breakpoint-up($lower, $breakpoints) {
550
+ @content;
551
+ }
552
+ } @else if $min == null {
553
+ @include media-breakpoint-down($upper, $breakpoints) {
554
+ @content;
555
+ }
556
+ }
557
+ }
558
+
559
+ @mixin media-breakpoint-only($name, $breakpoints: $grid-breakpoints) {
560
+ $min: breakpoint-min($name, $breakpoints);
561
+ $max: breakpoint-max($name, $breakpoints);
562
+
563
+ @if $min != null and $max != null {
564
+ @media (min-width: $min) and (max-width: $max) {
565
+ @content;
566
+ }
567
+ } @else if $max == null {
568
+ @include media-breakpoint-up($name, $breakpoints) {
569
+ @content;
570
+ }
571
+ } @else if $min == null {
572
+ @include media-breakpoint-down($name, $breakpoints) {
573
+ @content;
574
+ }
575
+ }
576
+ }
577
+
578
+ /// MIXIMS Grid system
579
+
580
+ @mixin make-container($gutter: $grid-gutter-width) {
581
+ width: 100%;
582
+ // padding-right: $gutter / 2;
583
+ // padding-left: $gutter / 2;
584
+ margin-right: auto;
585
+ margin-left: auto;
586
+ }
587
+
588
+ @mixin make-row($gutter: $grid-gutter-width) {
589
+ display: flex;
590
+ flex-wrap: wrap;
591
+ margin-right: calc(-#{$gutter} / 2);
592
+ margin-left: calc(-#{$gutter} / 2);
593
+ }
594
+
595
+ // For each breakpoint, define the maximum width of the container in a media query
596
+ @mixin make-container-max-widths(
597
+ $max-widths: $container-max-widths,
598
+ $breakpoints: $grid-breakpoints
599
+ ) {
600
+ @each $breakpoint, $container-max-width in $max-widths {
601
+ @include media-breakpoint-up($breakpoint, $breakpoints) {
602
+ max-width: $container-max-width;
603
+ }
604
+ }
605
+ @include deprecate('The `make-container-max-widths` mixin', 'v4.5.2', 'v5');
606
+ }
607
+
608
+ @mixin make-col-ready($gutter: $grid-gutter-width) {
609
+ position: relative;
610
+ width: 100%;
611
+ padding-right: calc($gutter / 2);
612
+ padding-left: calc($gutter / 2);
613
+ }
614
+
615
+ @mixin make-col($size, $columns: $grid-columns) {
616
+ flex: 0 0 percentage(calc($size / $columns));
617
+ max-width: percentage(calc($size / $columns));
618
+ }
619
+
620
+ @mixin make-col-auto() {
621
+ flex: 0 0 auto;
622
+ width: auto;
623
+ max-width: 100%; // Reset earlier grid tiers
624
+ }
625
+
626
+ @mixin make-col-offset($size, $columns: $grid-columns) {
627
+ $num: calc($size / $columns);
628
+ margin-left: if($num == 0, 0, percentage($num));
629
+ }
630
+
631
+ @mixin row-cols($count) {
632
+ & > * {
633
+ flex: 0 0 calc(100% / $count);
634
+ max-width: calc(100% / $count);
635
+ }
636
+ }
637
+
638
+ @mixin make-grid-columns(
639
+ $columns: $grid-columns,
640
+ $gutter: $grid-gutter-width,
641
+ $breakpoints: $grid-breakpoints
642
+ ) {
643
+ // Common properties for all breakpoints
644
+ %grid-column {
645
+ position: relative;
646
+ width: 100%;
647
+ padding-right: calc($gutter / 2);
648
+ padding-left: calc($gutter / 2);
649
+ }
650
+
651
+ @each $breakpoint in map.keys($breakpoints) {
652
+ $infix: breakpoint-infix($breakpoint, $breakpoints);
653
+
654
+ @if $columns > 0 {
655
+ // Allow columns to stretch full width below their breakpoints
656
+ @for $i from 1 through $columns {
657
+ .col#{$infix}-#{$i} {
658
+ @extend %grid-column;
659
+ }
660
+ }
661
+ }
662
+
663
+ .col#{$infix},
664
+ .col#{$infix}-auto {
665
+ @extend %grid-column;
666
+ }
667
+
668
+ @include media-breakpoint-up($breakpoint, $breakpoints) {
669
+ // Provide basic `.col-{bp}` classes for equal-width flexbox columns
670
+ .col#{$infix} {
671
+ flex-basis: 0;
672
+ flex-grow: 1;
673
+ max-width: 100%;
674
+ }
675
+
676
+ @if $grid-row-columns > 0 {
677
+ @for $i from 1 through $grid-row-columns {
678
+ .row-cols#{$infix}-#{$i} {
679
+ @include row-cols($i);
680
+ }
681
+ }
682
+ }
683
+
684
+ .col#{$infix}-auto {
685
+ @include make-col-auto();
686
+ }
687
+
688
+ @if $columns > 0 {
689
+ @for $i from 1 through $columns {
690
+ .col#{$infix}-#{$i} {
691
+ @include make-col($i, $columns);
692
+ }
693
+ }
694
+ }
695
+
696
+ .order#{$infix}-first {
697
+ order: -1;
698
+ }
699
+
700
+ .order#{$infix}-last {
701
+ order: $columns + 1;
702
+ }
703
+
704
+ @for $i from 0 through $columns {
705
+ .order#{$infix}-#{$i} {
706
+ order: $i;
707
+ }
708
+ }
709
+
710
+ @if $columns > 0 {
711
+ // `$columns - 1` because offsetting by the width of an entire row isn't possible
712
+ @for $i from 0 through ($columns - 1) {
713
+ @if not($infix == '' and $i == 0) {
714
+ // Avoid emitting useless .offset-0
715
+ .offset#{$infix}-#{$i} {
716
+ @include make-col-offset($i, $columns);
717
+ }
718
+ }
719
+ }
720
+ }
721
+ }
722
+ }
723
+ }
724
+
725
+ @each $breakpoint in map.keys($grid-breakpoints) {
726
+ @include media-breakpoint-up($breakpoint) {
727
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
728
+
729
+ .flex#{$infix}-row {
730
+ flex-direction: row !important;
731
+ }
732
+ .flex#{$infix}-column {
733
+ flex-direction: column !important;
734
+ }
735
+ .flex#{$infix}-row-reverse {
736
+ flex-direction: row-reverse !important;
737
+ }
738
+ .flex#{$infix}-column-reverse {
739
+ flex-direction: column-reverse !important;
740
+ }
741
+
742
+ .flex#{$infix}-wrap {
743
+ flex-wrap: wrap !important;
744
+ }
745
+ .flex#{$infix}-nowrap {
746
+ flex-wrap: nowrap !important;
747
+ }
748
+ .flex#{$infix}-wrap-reverse {
749
+ flex-wrap: wrap-reverse !important;
750
+ }
751
+ .flex#{$infix}-fill {
752
+ flex: 1 1 auto !important;
753
+ }
754
+ .flex#{$infix}-grow-0 {
755
+ flex-grow: 0 !important;
756
+ }
757
+ .flex#{$infix}-grow-1 {
758
+ flex-grow: 1 !important;
759
+ }
760
+ .flex#{$infix}-shrink-0 {
761
+ flex-shrink: 0 !important;
762
+ }
763
+ .flex#{$infix}-shrink-1 {
764
+ flex-shrink: 1 !important;
765
+ }
766
+
767
+ .justify-content#{$infix}-start {
768
+ justify-content: flex-start !important;
769
+ }
770
+ .justify-content#{$infix}-end {
771
+ justify-content: flex-end !important;
772
+ }
773
+ .justify-content#{$infix}-center {
774
+ justify-content: center !important;
775
+ }
776
+ .justify-content#{$infix}-between {
777
+ justify-content: space-between !important;
778
+ }
779
+ .justify-content#{$infix}-around {
780
+ justify-content: space-around !important;
781
+ }
782
+
783
+ .align-items#{$infix}-start {
784
+ align-items: flex-start !important;
785
+ }
786
+ .align-items#{$infix}-end {
787
+ align-items: flex-end !important;
788
+ }
789
+ .align-items#{$infix}-center {
790
+ align-items: center !important;
791
+ }
792
+ .align-items#{$infix}-baseline {
793
+ align-items: baseline !important;
794
+ }
795
+ .align-items#{$infix}-stretch {
796
+ align-items: stretch !important;
797
+ }
798
+
799
+ .align-content#{$infix}-start {
800
+ align-content: flex-start !important;
801
+ }
802
+ .align-content#{$infix}-end {
803
+ align-content: flex-end !important;
804
+ }
805
+ .align-content#{$infix}-center {
806
+ align-content: center !important;
807
+ }
808
+ .align-content#{$infix}-between {
809
+ align-content: space-between !important;
810
+ }
811
+ .align-content#{$infix}-around {
812
+ align-content: space-around !important;
813
+ }
814
+ .align-content#{$infix}-stretch {
815
+ align-content: stretch !important;
816
+ }
817
+
818
+ .align-self#{$infix}-auto {
819
+ align-self: auto !important;
820
+ }
821
+ .align-self#{$infix}-start {
822
+ align-self: flex-start !important;
823
+ }
824
+ .align-self#{$infix}-end {
825
+ align-self: flex-end !important;
826
+ }
827
+ .align-self#{$infix}-center {
828
+ align-self: center !important;
829
+ }
830
+ .align-self#{$infix}-baseline {
831
+ align-self: baseline !important;
832
+ }
833
+ .align-self#{$infix}-stretch {
834
+ align-self: stretch !important;
835
+ }
836
+
837
+ // Some special margin utils
838
+ .m#{$infix}-auto {
839
+ margin: auto !important;
840
+ }
841
+ .mt#{$infix}-auto,
842
+ .my#{$infix}-auto {
843
+ margin-top: auto !important;
844
+ }
845
+ .mr#{$infix}-auto,
846
+ .mx#{$infix}-auto {
847
+ margin-right: auto !important;
848
+ }
849
+ .mb#{$infix}-auto,
850
+ .my#{$infix}-auto {
851
+ margin-bottom: auto !important;
852
+ }
853
+ .ml#{$infix}-auto,
854
+ .mx#{$infix}-auto {
855
+ margin-left: auto !important;
856
+ }
857
+ }
858
+ }
859
+
860
+ /* Margenes Padding*/
861
+ $sizes: 0, 10, 20, 25, 30, 40, 50, 60, 70, 80, 90, 100, 150, 180;
862
+ @each $size in $sizes {
863
+ .mt--#{$size} {
864
+ margin-top: #{$size}px !important;
865
+ }
866
+ .mb--#{$size} {
867
+ margin-bottom: #{$size}px !important;
868
+ }
869
+ .pt--#{$size} {
870
+ padding-top: #{$size}px;
871
+ }
872
+ .pb--#{$size} {
873
+ padding-bottom: #{$size}px;
874
+ }
875
+ .mblock--#{$size} {
876
+ margin-block: #{$size}px;
877
+ }
878
+ .pblock--#{$size} {
879
+ padding-block: #{$size}px;
880
+ }
881
+ }
882
+
883
+ @mixin fade-animation(
884
+ $fromOpacity: 0,
885
+ $toOpacity: 1,
886
+ $fromPosition: 20%,
887
+ $toPosition: 0,
888
+ $duration: 0.7s,
889
+ $transition: cubic-bezier(0.785, 0.135, 0.15, 0.86)
890
+ ) {
891
+ @keyframes opacity-animation {
892
+ from {
893
+ opacity: $fromOpacity;
894
+ top: $fromPosition;
895
+ }
896
+ to {
897
+ opacity: $toOpacity;
898
+ top: $toPosition;
899
+ }
900
+ }
901
+
902
+ animation: opacity-animation $duration $transition;
903
+ }
904
+
905
+ @mixin position-animation(
906
+ $fromValue: 100%,
907
+ $toValue: 0,
908
+ $duration: 0.7s,
909
+ $transition: cubic-bezier(0.785, 0.135, 0.15, 0.86)
910
+ ) {
911
+ @keyframes position-animation {
912
+ from {
913
+ top: $fromValue;
914
+ }
915
+ to {
916
+ top: $toValue;
917
+ }
918
+ }
919
+
920
+ animation: position-animation $duration $transition;
921
+ }
922
+
923
+ @keyframes move-right {
924
+ 0% {
925
+ right: 30px;
926
+ }
927
+ 50% {
928
+ right: 20px;
929
+ }
930
+ 100% {
931
+ right: 30px;
932
+ }
933
+ }
934
+
935
+ //-------------------- Blanco --------------------//
936
+
937
+ // breakpoints Mixin
938
+ @mixin mq-min($key) {
939
+ $size: map.get($breakpoints, $key);
940
+ @media (min-width: $size) {
941
+ @content;
942
+ }
943
+ }
944
+ @mixin mq-max($key) {
945
+ $size: map.get($breakpoints, $key);
946
+ @media (max-width: ($size - 0.02)) {
947
+ @content;
948
+ }
949
+ }
950
+
951
+ //Border Radius
952
+ $list-of-directions: (
953
+ 'top',
954
+ 'top-right',
955
+ 'right',
956
+ 'bottom-right',
957
+ 'bottom',
958
+ 'bottom-left',
959
+ 'left',
960
+ 'top-left'
961
+ ) !default;
962
+
963
+ //Border Radius Mixin
964
+ @mixin border-radius($args...) {
965
+ $list: list.join($list-of-directions, ('cross-left', 'cross-right', 'all'));
966
+ @if list.length($args) == 1 {
967
+ $value: list.nth($args, 1);
968
+ border-radius: $value;
969
+ } @else if list.length($args) == 2 {
970
+ $corner: list.nth($args, 1);
971
+ $value: list.nth($args, 2);
972
+ @if index($list, $corner) {
973
+ @if $corner == 'top' {
974
+ border-top-left-radius: $value;
975
+ border-top-right-radius: $value;
976
+ } @else if $corner == 'top-right' {
977
+ border-top-right-radius: $value;
978
+ } @else if $corner == 'right' {
979
+ border-top-right-radius: $value;
980
+ border-bottom-right-radius: $value;
981
+ } @else if $corner == 'bottom-right' {
982
+ border-bottom-right-radius: $value;
983
+ } @else if $corner == 'bottom' {
984
+ border-bottom-left-radius: $value;
985
+ border-bottom-right-radius: $value;
986
+ } @else if $corner == 'bottom-left' {
987
+ border-bottom-left-radius: $value;
988
+ } @else if $corner == 'left' {
989
+ border-top-left-radius: $value;
990
+ border-bottom-left-radius: $value;
991
+ } @else if $corner == 'top-left' {
992
+ border-top-left-radius: $value;
993
+ } @else if $corner == 'all' {
994
+ border-radius: $value;
995
+ } @else if $corner == 'cross-left' {
996
+ border-top-left-radius: $value;
997
+ border-bottom-right-radius: $value;
998
+ } @else if $corner == 'cross-right' {
999
+ border-top-right-radius: $value;
1000
+ border-bottom-left-radius: $value;
1001
+ }
1002
+ } @else {
1003
+ @error "Corner value must be one of the followings: #{quote($list)}.";
1004
+ }
1005
+ } @else if list.length($args) == 4 {
1006
+ $args: __null($args, space, true);
1007
+ border-top-left-radius: list.nth($args, 1);
1008
+ border-top-right-radius: list.nth($args, 2);
1009
+ border-bottom-right-radius: list.nth($args, 3);
1010
+ border-bottom-left-radius: list.nth($args, 4);
1011
+ }
1012
+ }
1013
+
1014
+ //Line Height Mixin
1015
+ @mixin lineHeight($lhv, $fs) {
1016
+ font-size: #{math.div($fs, 10)}rem;
1017
+ line-height: math.div($lhv, $fs);
1018
+ }
1019
+
1020
+ //Letter Spacing Mixin
1021
+ @mixin letterSpacingPercent($ls, $fs) {
1022
+ letter-spacing: #{math.div(($ls * $fs), 1000)}rem;
1023
+ }
1024
+
1025
+ $header-height-xxs: 6rem;
1026
+ $header-height-xs: 7rem;
1027
+ $header-height-sm: 8rem;
1028
+ $header-height-xxl: 9rem;
1029
+ $header-mobile-nav-height-xxs: 6.6rem;
1030
+ $header-mobile-nav-height-xs: 7.6rem;
1031
+ $header-mobile-nav-height-sm: 8.6rem;