@trilogy-ds/styles 0.0.1-beta.9 → 0.0.1-calendar
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/dist/default/trilogy-mangled.css +1 -1
- package/dist/default/trilogy-partials.css +1 -1
- package/dist/default/trilogy.css +1 -1
- package/framework/src/_all.scss +2 -2
- package/framework/src/base/_all.scss +1 -1
- package/framework/src/base/_color.scss +1 -52
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +9 -1
- package/framework/src/base/_helpers.scss +34 -44
- package/framework/src/base/_loading.scss +9 -2
- package/framework/src/base/_reset.scss +11 -1
- package/framework/src/components/_accordion.scss +55 -89
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +332 -0
- package/framework/src/components/_badge.scss +87 -0
- package/framework/src/components/_box.scss +168 -0
- package/framework/src/components/_breadcrumb.scss +29 -38
- package/framework/src/components/_button.scss +79 -0
- package/framework/src/components/_calendar.scss +125 -0
- package/framework/src/components/_card.scss +33 -87
- package/framework/src/components/_checkbox.scss +71 -0
- package/framework/src/components/_chips.scss +84 -0
- package/framework/src/{elements → components}/_container.scss +7 -39
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_divider.scss +25 -14
- package/framework/src/components/_fab.scss +25 -38
- package/framework/src/components/_flex-box.scss +457 -0
- package/framework/src/{elements → components}/_icon.scss +4 -4
- package/framework/src/components/_image.scss +69 -0
- package/framework/src/components/_index.scss +48 -0
- package/framework/src/components/_link.scss +58 -0
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/{elements → components}/_loader.scss +2 -2
- package/framework/src/components/_modal.scss +182 -158
- package/framework/src/components/_otp.scss +11 -30
- package/framework/src/components/_pagination.scss +60 -159
- package/framework/src/components/_popover.scss +260 -260
- package/framework/src/components/_price.scss +140 -165
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_radio.scss +82 -0
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +55 -53
- package/framework/src/components/_select.scss +131 -0
- package/framework/src/components/_stepper.scss +42 -222
- package/framework/src/{elements → components}/_sticker.scss +25 -28
- package/framework/src/components/_switch.scss +97 -191
- package/framework/src/components/_table.scss +244 -0
- package/framework/src/components/_tabs.scss +101 -98
- package/framework/src/components/_tag.scss +114 -0
- package/framework/src/components/_text.scss +55 -0
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +28 -113
- package/framework/src/components/_title.scss +151 -0
- package/framework/src/{elements → components/alert}/_alert.scss +13 -10
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
- package/framework/src/components/input/_entry.scss +135 -0
- package/framework/src/{elements → components/input}/_form.scss +42 -33
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/components/input/_input-gauge.scss +44 -0
- package/framework/src/components/input/_input-icons.scss +55 -0
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/progress/_progress-radial.scss +28 -0
- package/framework/src/{elements → components/progress}/_progress.scss +34 -23
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -41
- package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
- package/framework/src/grid/_columns.scss +278 -763
- package/framework/src/grid/_rows.scss +45 -38
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +92 -214
- package/framework/src/layout/_section.scss +10 -29
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +32 -0
- package/framework/src/theming/common_partials.scss +10 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/trilogy-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +4 -0
- package/framework/src/utilities/_background.scss +21 -0
- package/framework/src/utilities/_controls.scss +38 -49
- package/framework/src/utilities/_derived-variables.scss +0 -103
- package/framework/src/utilities/_initial-variables.scss +4 -144
- package/framework/src/utilities/_pre.scss +4 -1
- package/framework/src/utilities/mixins/_arrow.scss +21 -0
- package/framework/src/utilities/mixins/_delete.scss +86 -0
- package/framework/src/utilities/mixins/_index.scss +11 -0
- package/framework/src/utilities/mixins/_markup-group.scss +27 -0
- package/framework/src/utilities/mixins/_mixins.scss +293 -0
- package/framework/src/utilities/mixins/_overlay.scss +7 -0
- package/framework/src/utilities/mixins/_pattern.scss +10 -0
- package/framework/src/utilities/mixins/_responsiveness.scss +84 -0
- package/framework/src/utilities/mixins/_spinner.scss +12 -0
- package/framework/src/utilities/mixins/_state.scss +25 -0
- package/framework/src/utilities/mixins/_unselectable.scss +10 -0
- package/framework/src/utilities/mixins/_utils.scss +24 -0
- package/framework/src/utilities/variables/_animation.scss +2 -0
- package/framework/src/utilities/variables/_color.scss +85 -0
- package/framework/src/utilities/variables/_font.scss +97 -0
- package/framework/src/utilities/variables/_index.scss +6 -0
- package/framework/src/utilities/variables/_responsiveness.scss +7 -0
- package/framework/src/utilities/variables/_shadow.scss +3 -0
- package/framework/src/utilities/variables/_zindex.scss +14 -0
- package/package.json +3 -3
- package/framework/src/components/_all.scss +0 -30
- package/framework/src/components/_autolayout2.scss +0 -38
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_dropdown.scss +0 -128
- package/framework/src/components/_level.scss +0 -120
- package/framework/src/components/_media.scss +0 -64
- package/framework/src/components/_menu.scss +0 -213
- package/framework/src/components/_progress-radial.scss +0 -23
- package/framework/src/components/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_slider.scss +0 -92
- package/framework/src/elements/_all.scss +0 -35
- package/framework/src/elements/_badge.scss +0 -81
- package/framework/src/elements/_box.scss +0 -267
- package/framework/src/elements/_button.scss +0 -192
- package/framework/src/elements/_checkbox.scss +0 -39
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_chips.scss +0 -100
- package/framework/src/elements/_dot.scss +0 -6
- package/framework/src/elements/_entry.scss +0 -109
- package/framework/src/elements/_image.scss +0 -59
- package/framework/src/elements/_input-gauge.scss +0 -37
- package/framework/src/elements/_input-icons.scss +0 -41
- package/framework/src/elements/_link.scss +0 -79
- package/framework/src/elements/_list.scss +0 -61
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_paragraph.scss +0 -101
- package/framework/src/elements/_radio.scss +0 -67
- package/framework/src/elements/_select.scss +0 -315
- package/framework/src/elements/_switch.scss +0 -108
- package/framework/src/elements/_table.scss +0 -298
- package/framework/src/elements/_tag.scss +0 -131
- package/framework/src/elements/_textarea.scss +0 -125
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/elements/_title.scss +0 -139
- package/framework/src/layout/_toolbar.scss +0 -100
- package/framework/src/utilities/_mixins.scss +0 -744
|
@@ -1,55 +1,57 @@
|
|
|
1
1
|
.countdown {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
border: 1px solid currentcolor;
|
|
3
|
+
border-radius: var(--radius);
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
padding: $spacing-2;
|
|
6
|
+
color: getColor('font');
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.value {
|
|
28
|
-
font-size: $text-24;
|
|
29
|
-
font-weight: 600;
|
|
30
|
-
}
|
|
8
|
+
.count {
|
|
9
|
+
font-family: $family-primary;
|
|
10
|
+
font-size: $text-14;
|
|
11
|
+
font-weight: 400;
|
|
12
|
+
list-style-type: none;
|
|
13
|
+
text-align: center;
|
|
14
|
+
padding: 0 $spacing-2;
|
|
15
|
+
position: relative;
|
|
16
|
+
|
|
17
|
+
&:not(:last-child)::before {
|
|
18
|
+
content: ' ';
|
|
19
|
+
border-left: 1px solid currentcolor;
|
|
20
|
+
height: 100%;
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 0;
|
|
23
|
+
bottom: 0;
|
|
24
|
+
right: 0;
|
|
31
25
|
}
|
|
32
26
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.count {
|
|
37
|
-
font-size: $text-12;
|
|
38
|
-
padding: 0 $spacing-2;
|
|
39
|
-
font-weight: 500;
|
|
40
|
-
|
|
41
|
-
.value {
|
|
42
|
-
font-size: $text-16;
|
|
43
|
-
font-weight: 600;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
27
|
+
.value {
|
|
28
|
+
font-size: $text-24;
|
|
29
|
+
font-weight: 600;
|
|
46
30
|
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&.is-small {
|
|
34
|
+
padding: $spacing-2 0;
|
|
35
|
+
border-radius: var(--radius-small);
|
|
36
|
+
|
|
37
|
+
.count {
|
|
38
|
+
font-size: $text-12;
|
|
39
|
+
padding: 0 $spacing-2;
|
|
40
|
+
font-weight: 500;
|
|
47
41
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
.value {
|
|
43
|
+
font-size: $text-16;
|
|
44
|
+
font-weight: 600;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.is-inverted {
|
|
50
|
+
color: invertColor('font');
|
|
51
|
+
|
|
52
|
+
.count {
|
|
53
|
+
&:not(:last-child)::before {
|
|
54
|
+
}
|
|
54
55
|
}
|
|
56
|
+
}
|
|
55
57
|
}
|
|
@@ -1,18 +1,29 @@
|
|
|
1
1
|
.divider {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
margin: 16px 0;
|
|
2
|
+
background-color: getColor('neutral');
|
|
3
|
+
height: 1px;
|
|
4
|
+
display: flex;
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
8
7
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
p.divider-content {
|
|
9
|
+
white-space: nowrap;
|
|
10
|
+
padding: 0 $spacing-4;
|
|
11
|
+
background-color: invertColor('neutral');
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&:not(.is-marginless) {
|
|
15
|
+
margin: $spacing-5 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@include mobile {
|
|
19
|
+
&:not(.is-marginless) {
|
|
20
|
+
margin: $spacing-4 0;
|
|
17
21
|
}
|
|
22
|
+
}
|
|
18
23
|
}
|
|
24
|
+
|
|
25
|
+
*:has(+ .divider) {
|
|
26
|
+
margin-top: 0 !important;
|
|
27
|
+
margin-bottom: 0 !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -1,60 +1,47 @@
|
|
|
1
1
|
.fab {
|
|
2
|
-
background-color: getColor('
|
|
3
|
-
border: 1px getColor('alternate');
|
|
2
|
+
background-color: getColor('font');
|
|
4
3
|
border-radius: 16px;
|
|
5
4
|
cursor: pointer;
|
|
6
5
|
height: 56px;
|
|
7
|
-
color: white;
|
|
8
6
|
padding: $spacing-4;
|
|
9
7
|
display: inline-flex;
|
|
10
8
|
align-items: center;
|
|
11
9
|
box-sizing: border-box;
|
|
12
|
-
transition:
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
font-
|
|
10
|
+
transition: max-width 500ms ease-out;
|
|
11
|
+
color: white;
|
|
12
|
+
border: 0;
|
|
13
|
+
box-shadow: 0px 3px 6px 0px #00000033;
|
|
14
|
+
font-size: 16px;
|
|
17
15
|
font-weight: 600;
|
|
18
|
-
font-size: 0;
|
|
19
16
|
line-height: 20px;
|
|
20
|
-
|
|
21
17
|
z-index: 9;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
margin-right: 16px;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
&:focus, &:focus-visible, &:focus-within {
|
|
38
|
-
background-color:getVariantColor('alternate', 4);
|
|
39
|
-
border-color: getVariantColor('alternate', 4);
|
|
40
|
-
outline: 1px auto getVariantColor('alternate', 4);
|
|
18
|
+
overflow: hidden;
|
|
19
|
+
max-width: 54px;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
|
|
22
|
+
#{$hoverSelector}, &.is-extended, &:focus, &:focus-visible, &:focus-within {
|
|
23
|
+
background: linear-gradient(
|
|
24
|
+
to top,
|
|
25
|
+
rgba(0, 0, 0, 0.25),
|
|
26
|
+
rgba(0, 0, 0, 0.25)
|
|
27
|
+
) getColor('font');
|
|
28
|
+
max-width: 300px;
|
|
41
29
|
}
|
|
42
30
|
|
|
43
31
|
&:active {
|
|
44
|
-
background
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
background-color: getColor('bg-disabled');
|
|
50
|
-
color: getColor('grey-disabled');
|
|
32
|
+
background: linear-gradient(
|
|
33
|
+
to top,
|
|
34
|
+
rgba(0, 0, 0, 0.25),
|
|
35
|
+
rgba(0, 0, 0, 0.25)
|
|
36
|
+
) getColor('font');
|
|
51
37
|
}
|
|
52
38
|
|
|
53
39
|
.icon {
|
|
40
|
+
flex: none;
|
|
54
41
|
font-size: 24px !important;
|
|
55
42
|
margin-left: -6px;
|
|
56
|
-
margin-right:
|
|
43
|
+
margin-right: 8px;
|
|
57
44
|
color: white;
|
|
58
|
-
}
|
|
59
45
|
|
|
46
|
+
}
|
|
60
47
|
}
|
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
@use 'sass:math';
|
|
2
|
+
|
|
3
|
+
.flex-box {
|
|
4
|
+
display: flex;
|
|
5
|
+
gap: 8px;
|
|
6
|
+
--ColumnGap: 8px;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
justify-content: flex-start;
|
|
9
|
+
|
|
10
|
+
// DIRECTION
|
|
11
|
+
&.is-direction-column {
|
|
12
|
+
flex-direction: column;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.is-direction-row {
|
|
16
|
+
flex-direction: row;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&.is-direction-row-reverse {
|
|
20
|
+
flex-direction: row-reverse;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&.is-direction-column-reverse {
|
|
24
|
+
flex-direction: column-reverse;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
@include desktop {
|
|
28
|
+
&.is-direction-row-desktop {
|
|
29
|
+
flex-direction: row;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&.is-direction-column-desktop {
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.is-direction-row-reverse-desktop {
|
|
37
|
+
flex-direction: row-reverse;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.is-direction-column-reverse-desktop {
|
|
41
|
+
flex-direction: column-reverse;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@include tablet {
|
|
46
|
+
&.is-direction-row-tablet {
|
|
47
|
+
flex-direction: row;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.is-direction-column-tablet {
|
|
51
|
+
flex-direction: column;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.is-direction-row-reverse-tablet {
|
|
55
|
+
flex-direction: row-reverse;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.is-direction-column-reverse-tablet {
|
|
59
|
+
flex-direction: column-reverse;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@include mobile {
|
|
64
|
+
&:has(>.flex-item):not([class*='is-direction']) {
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
&.is-direction-row-mobile {
|
|
69
|
+
flex-direction: row;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.is-direction-column-mobile {
|
|
73
|
+
flex-direction: column;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.is-direction-row-reverse-mobile {
|
|
77
|
+
flex-direction: row-reverse;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&.is-direction-column-reverse-mobile {
|
|
81
|
+
flex-direction: column-reverse;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// ALIGN ITEMS
|
|
86
|
+
&.is-aligned-start {
|
|
87
|
+
align-items: flex-start;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.is-aligned-end {
|
|
91
|
+
align-items: flex-end;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.is-aligned-center {
|
|
95
|
+
align-items: center;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&.is-aligned-stretch {
|
|
99
|
+
align-items: stretch;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@include mobile {
|
|
103
|
+
&.is-aligned-start-mobile {
|
|
104
|
+
align-items: flex-start;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&.is-aligned-end-mobile {
|
|
108
|
+
align-items: flex-end;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&.is-aligned-center-mobile {
|
|
112
|
+
align-items: center;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
&.is-aligned-stretch-mobile {
|
|
116
|
+
align-items: stretch;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@include tablet {
|
|
121
|
+
&.is-aligned-start-tablet {
|
|
122
|
+
align-items: flex-start;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.is-aligned-end-tablet {
|
|
126
|
+
align-items: flex-end;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.is-aligned-center-tablet {
|
|
130
|
+
align-items: center;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
&.is-aligned-stretch-tablet {
|
|
134
|
+
align-items: stretch;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
@include desktop {
|
|
139
|
+
&.is-aligned-start-desktop {
|
|
140
|
+
align-items: flex-start;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&.is-aligned-end-desktop {
|
|
144
|
+
align-items: flex-end;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&.is-aligned-center-desktop {
|
|
148
|
+
align-items: center;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
&.is-aligned-stretch-desktop {
|
|
152
|
+
align-items: stretch;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// JUSTIFY CONTENT
|
|
157
|
+
&.is-justified-start {
|
|
158
|
+
justify-content: flex-start;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
&.is-justified-end {
|
|
162
|
+
justify-content: flex-end;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
&.is-justified-center {
|
|
166
|
+
justify-content: center;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
&.is-spaced-between {
|
|
170
|
+
justify-content: space-between;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&.is-spaced-around {
|
|
174
|
+
justify-content: space-around;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
&.is-spaced-evenly {
|
|
178
|
+
justify-content: space-evenly;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
@include mobile {
|
|
182
|
+
&.is-justified-start-mobile {
|
|
183
|
+
justify-content: flex-start;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&.is-justified-end-mobile {
|
|
187
|
+
justify-content: flex-end;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.is-justified-center-mobile {
|
|
191
|
+
justify-content: center;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
&.is-spaced-between-mobile {
|
|
195
|
+
justify-content: space-between;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&.is-spaced-around-mobile {
|
|
199
|
+
justify-content: space-around;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&.is-spaced-evenly-mobile {
|
|
203
|
+
justify-content: space-evenly;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
@include tablet {
|
|
208
|
+
&.is-justified-start-tablet {
|
|
209
|
+
justify-content: flex-start;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
&.is-justified-end-tablet {
|
|
213
|
+
justify-content: flex-end;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&.is-justified-center-tablet {
|
|
217
|
+
justify-content: center;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&.is-spaced-between-tablet {
|
|
221
|
+
justify-content: space-between;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
&.is-spaced-around-tablet {
|
|
225
|
+
justify-content: space-around;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
&.is-spaced-evenly-tablet {
|
|
229
|
+
justify-content: space-evenly;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
@include desktop {
|
|
234
|
+
&.is-justified-start-desktop {
|
|
235
|
+
justify-content: flex-start;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
&.is-justified-end-desktop {
|
|
239
|
+
justify-content: flex-end;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
&.is-justified-center-desktop {
|
|
243
|
+
justify-content: center;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&.is-spaced-between-desktop {
|
|
247
|
+
justify-content: space-between;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
&.is-spaced-around-desktop {
|
|
251
|
+
justify-content: space-around;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&.is-spaced-evenly-desktop {
|
|
255
|
+
justify-content: space-evenly;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
&.is-scrollable {
|
|
260
|
+
overflow: auto;
|
|
261
|
+
width: calc(100% + 48px) !important;
|
|
262
|
+
margin: -24px auto -24px 50% !important;
|
|
263
|
+
transform: translate(-50%);
|
|
264
|
+
padding: 24px;
|
|
265
|
+
scroll-padding: 24px;
|
|
266
|
+
scroll-behavior: smooth;
|
|
267
|
+
scroll-snap-type: x mandatory;
|
|
268
|
+
|
|
269
|
+
@include mobile {
|
|
270
|
+
width: calc(100% + 32px) !important;
|
|
271
|
+
margin: -16px auto -16px 50% !important;
|
|
272
|
+
padding: 16px;
|
|
273
|
+
scroll-padding: 16px;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
&:not(:last-child) {
|
|
277
|
+
margin-bottom: auto !important;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.flex-item {
|
|
281
|
+
scroll-snap-align: center;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
// GAP
|
|
287
|
+
$gap: 4px, 8px, 12px, 16px, 24px, 32px, 40px, 48px, 54px, 62px;
|
|
288
|
+
|
|
289
|
+
@for $i from 1 through length($gap) {
|
|
290
|
+
$item: nth($gap, $i);
|
|
291
|
+
&.is-mobile.has-gap-#{$i} {
|
|
292
|
+
gap: $item;
|
|
293
|
+
|
|
294
|
+
> .flex-item {
|
|
295
|
+
--ColumnGap: #{$item};
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
@include mobile {
|
|
300
|
+
&.has-gap-#{$i}-mobile {
|
|
301
|
+
gap: $item;
|
|
302
|
+
|
|
303
|
+
> .flex-item {
|
|
304
|
+
--ColumnGap: #{$item};
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@include tablet {
|
|
310
|
+
&.has-gap-#{$i}:not(.is-desktop),
|
|
311
|
+
&.has-gap-#{$i}-tablet {
|
|
312
|
+
gap: $item;
|
|
313
|
+
|
|
314
|
+
> .flex-item {
|
|
315
|
+
--ColumnGap: #{$item};
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
@include desktop {
|
|
321
|
+
&.has-gap-#{$i},
|
|
322
|
+
&.has-gap-#{$i}-desktop {
|
|
323
|
+
gap: $item;
|
|
324
|
+
|
|
325
|
+
> .flex-item {
|
|
326
|
+
--ColumnGap: #{$item};
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
@include widescreen {
|
|
332
|
+
&.has-gap-#{$i}-widescreen {
|
|
333
|
+
gap: $item;
|
|
334
|
+
|
|
335
|
+
> .flex-item {
|
|
336
|
+
--ColumnGap: #{$item};
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
@include fullhd {
|
|
342
|
+
&.has-gap-#{$i}-fullhd {
|
|
343
|
+
gap: $item;
|
|
344
|
+
|
|
345
|
+
> .flex-item {
|
|
346
|
+
--ColumnGap: #{$item};
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
&.is-gapless {
|
|
353
|
+
gap: 0;
|
|
354
|
+
|
|
355
|
+
> .flex-item {
|
|
356
|
+
--ColumnGap: 1px;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
$itemWidth: calc((100% / (var(--ColumnFraction))) - ((((var(--ColumnFraction)) - 1) / (var(--ColumnFraction))) * var(--ColumnGap)));
|
|
361
|
+
$itemSize: (
|
|
362
|
+
"1" : math.div(12, 1),
|
|
363
|
+
"2" : math.div(12, 2),
|
|
364
|
+
"3" : math.div(12, 3),
|
|
365
|
+
"4" : math.div(12, 4),
|
|
366
|
+
"5" : math.div(12, 5),
|
|
367
|
+
"6" : math.div(12, 6),
|
|
368
|
+
"7" : math.div(12, 7),
|
|
369
|
+
"8" : math.div(12, 8),
|
|
370
|
+
"9" : math.div(12, 9),
|
|
371
|
+
"10" : math.div(12, 10),
|
|
372
|
+
"11" : math.div(12, 11),
|
|
373
|
+
"12" : math.div(12, 12),
|
|
374
|
+
"full" : math.div(12, 12),
|
|
375
|
+
"half" : math.div(12, 6)
|
|
376
|
+
);
|
|
377
|
+
|
|
378
|
+
// SIZE
|
|
379
|
+
.flex-item {
|
|
380
|
+
width: 100%;
|
|
381
|
+
|
|
382
|
+
&.is-narrow {
|
|
383
|
+
width: auto;
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
&[class*="is-"]:not(.is-narrow) {
|
|
387
|
+
width: #{$itemWidth};
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
&:not(.is-narrow) {
|
|
391
|
+
@include mobile {
|
|
392
|
+
--ColumnFraction: 1;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
@each $key, $value in $itemSize {
|
|
398
|
+
.flex-item.is-#{$key} {
|
|
399
|
+
flex: none;
|
|
400
|
+
--ColumnFraction: #{$value};
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
@include mobile {
|
|
405
|
+
@each $key, $value in $itemSize {
|
|
406
|
+
.flex-item.is-#{$key}-mobile {
|
|
407
|
+
flex: none;
|
|
408
|
+
--ColumnFraction: #{$value};
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
@include tablet {
|
|
414
|
+
@each $key, $value in $itemSize {
|
|
415
|
+
.flex-item.is-#{$key}-tablet {
|
|
416
|
+
flex: none;
|
|
417
|
+
--ColumnFraction: #{$value};
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
@include touch {
|
|
423
|
+
@each $key, $value in $itemSize {
|
|
424
|
+
.flex-item.is-#{$key}-touch {
|
|
425
|
+
flex: none;
|
|
426
|
+
--ColumnFraction: #{$value};
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
@include desktop {
|
|
432
|
+
@each $key, $value in $itemSize {
|
|
433
|
+
.flex-item.is-#{$key}-desktop {
|
|
434
|
+
flex: none;
|
|
435
|
+
--ColumnFraction: #{$value};
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
@include widescreen {
|
|
441
|
+
@each $key, $value in $itemSize {
|
|
442
|
+
.flex-item.is-#{$key}-widescreen {
|
|
443
|
+
flex: none;
|
|
444
|
+
--ColumnFraction: #{$value};
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
@include fullhd {
|
|
450
|
+
@each $key, $value in $itemSize {
|
|
451
|
+
.flex-item.is-#{$key}-fullhd {
|
|
452
|
+
flex: none;
|
|
453
|
+
--ColumnFraction: #{$value};
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|