@trilogy-ds/styles 0.0.9-beta-v4 → 0.0.9-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 +0 -21
- package/framework/src/base/_elements.scss +1 -1
- package/framework/src/base/_generic.scss +5 -0
- package/framework/src/base/_helpers.scss +21 -6
- package/framework/src/base/_loading.scss +2 -2
- package/framework/src/base/_reset.scss +6 -1
- package/framework/src/components/_accordion.scss +4 -3
- package/framework/src/components/_autocomplete.scss +38 -0
- package/framework/src/components/_autolayout.scss +119 -125
- package/framework/src/{elements → components}/_box.scss +9 -11
- package/framework/src/components/_breadcrumb.scss +17 -31
- package/framework/src/{elements → components}/_button.scss +12 -4
- package/framework/src/components/_calendar.scss +128 -0
- package/framework/src/components/_card.scss +26 -9
- package/framework/src/{elements → components}/_checkbox.scss +30 -1
- package/framework/src/components/_countdown.scss +1 -1
- package/framework/src/components/_divider.scss +16 -0
- package/framework/src/components/_flex-box.scss +457 -0
- package/framework/src/components/_index.scss +48 -0
- package/framework/src/{elements → components}/_link.scss +9 -3
- package/framework/src/components/_list.scss +66 -0
- package/framework/src/components/_modal.scss +32 -11
- package/framework/src/components/_otp.scss +2 -2
- package/framework/src/components/_pagination.scss +4 -0
- package/framework/src/components/_price.scss +28 -2
- package/framework/src/{elements → components}/_radio.scss +2 -2
- package/framework/src/components/_segmented-control.scss +9 -5
- package/framework/src/{elements → components}/_select.scss +47 -21
- package/framework/src/components/_stepper.scss +1 -1
- package/framework/src/{elements → components}/_sticker.scss +13 -1
- package/framework/src/{elements → components}/_switch.scss +7 -7
- package/framework/src/{elements → components}/_table.scss +9 -10
- package/framework/src/components/_tabs.scss +72 -28
- package/framework/src/{elements/_paragraph.scss → components/_text.scss} +1 -13
- package/framework/src/components/_textarea.scss +46 -0
- package/framework/src/components/_timeline.scss +1 -1
- package/framework/src/{elements → components}/_title.scss +10 -0
- package/framework/src/components/alert/_index.scss +2 -0
- package/framework/src/{elements → components/alert}/_toaster.scss +0 -3
- package/framework/src/{elements → components/input}/_entry.scss +48 -10
- package/framework/src/{elements → components/input}/_form.scss +18 -12
- package/framework/src/components/input/_index.scss +4 -0
- package/framework/src/{elements → components/input}/_input-gauge.scss +8 -0
- package/framework/src/{elements → components/input}/_input-icons.scss +14 -2
- package/framework/src/components/progress/_index.scss +2 -0
- package/framework/src/components/{_progress-radial.scss → progress/_progress-radial.scss} +1 -1
- package/framework/src/{elements → components/progress}/_progress.scss +3 -3
- package/framework/src/elements/_index.scss +5 -0
- package/framework/src/elements/_other.scss +0 -4
- package/framework/src/grid/_columns.scss +5 -9
- package/framework/src/layout/_hero.scss +4 -0
- package/framework/src/layout/_section.scss +5 -0
- package/framework/src/theming/common_partials.scss +1 -1
- package/framework/src/trilogy-mangled.scss +3 -3
- package/framework/src/trilogy.scss +2 -2
- package/framework/src/utilities/_background.scss +3 -1
- package/framework/src/utilities/_derived-variables.scss +0 -92
- package/framework/src/utilities/_initial-variables.scss +3 -111
- package/framework/src/utilities/_pre.scss +3 -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/{_colors.scss → variables/_color.scss} +44 -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 +1 -1
- package/framework/src/components/_all.scss +0 -24
- package/framework/src/elements/_all.scss +0 -32
- package/framework/src/elements/_autocomplete.scss +0 -32
- package/framework/src/elements/_list.scss +0 -62
- package/framework/src/elements/_textarea.scss +0 -133
- package/framework/src/utilities/_mixins.scss +0 -641
- /package/framework/src/{elements → components}/_badge.scss +0 -0
- /package/framework/src/{elements → components}/_chips.scss +0 -0
- /package/framework/src/{elements → components}/_container.scss +0 -0
- /package/framework/src/{elements → components}/_icon.scss +0 -0
- /package/framework/src/{elements → components}/_image.scss +0 -0
- /package/framework/src/{elements → components}/_loader.scss +0 -0
- /package/framework/src/{elements → components}/_tag.scss +0 -0
- /package/framework/src/{elements → components/alert}/_alert.scss +0 -0
- /package/framework/src/{components → elements}/_plus-symbol.scss +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
.calendar {
|
|
2
|
+
border-collapse: separate;
|
|
3
|
+
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
|
4
|
+
padding: 24px;
|
|
5
|
+
border-radius: 8px;
|
|
6
|
+
|
|
7
|
+
button {
|
|
8
|
+
all: unset;
|
|
9
|
+
&:focus-visible:not(.is-disabled, .is-active), &:hover:not(.is-disabled, .is-active){
|
|
10
|
+
background-color: getColor('main-fade');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.is-active:hover, &.is-active:focus-visible,
|
|
14
|
+
&.is-disabled:hover, &.is-disabled:focus-visible {
|
|
15
|
+
filter: brightness(80%);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&-range.calendar-range-init {
|
|
20
|
+
.calendar-week-day:not(.calendar-date-in-range) {
|
|
21
|
+
button:focus-visible:not(.is-disabled, .is-active), button:hover:not(.is-disabled, .is-active){
|
|
22
|
+
background-color: getColor('main');
|
|
23
|
+
color: getColor('background');
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&-date-in-range {
|
|
29
|
+
button:not(.is-disabled, .is-active){
|
|
30
|
+
background-color: getColor('main-fade');
|
|
31
|
+
border-radius: 0px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.calendar-date-rounded-left {
|
|
35
|
+
button:not(.is-disabled, .is-active){
|
|
36
|
+
border-radius: 8px 0 0 8px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.calendar-date-rounded-right {
|
|
41
|
+
button:not(.is-disabled, .is-active){
|
|
42
|
+
border-radius: 0px 8px 8px 0;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&-next-month, &-prev-month {
|
|
48
|
+
padding-bottom: 16px;
|
|
49
|
+
button {
|
|
50
|
+
text-align: center;
|
|
51
|
+
border-radius: 4px;
|
|
52
|
+
width: 36px;
|
|
53
|
+
height: 36px;
|
|
54
|
+
i {
|
|
55
|
+
height: 100%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&-week:not(:last-child) {
|
|
61
|
+
margin-bottom: 8px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-week-day {
|
|
65
|
+
padding: 4px 0px;
|
|
66
|
+
text-align: center !important;
|
|
67
|
+
vertical-align: middle;
|
|
68
|
+
&-disabled {
|
|
69
|
+
button {
|
|
70
|
+
color: getColor('disabled');
|
|
71
|
+
background-color: getColor('disabled-fade');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&-label {
|
|
75
|
+
padding: 4px;
|
|
76
|
+
text-align: center !important;
|
|
77
|
+
width: 36px;
|
|
78
|
+
color: getColor('font-placeholder');
|
|
79
|
+
}
|
|
80
|
+
button {
|
|
81
|
+
display: block;
|
|
82
|
+
width: 36px;
|
|
83
|
+
height: 36px;
|
|
84
|
+
border-radius: 4px;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
&-active-month {
|
|
89
|
+
height: 28px;
|
|
90
|
+
text-align: center !important;
|
|
91
|
+
position: relative;
|
|
92
|
+
padding-bottom: 16px;
|
|
93
|
+
.icon {
|
|
94
|
+
vertical-align: bottom;
|
|
95
|
+
}
|
|
96
|
+
button {
|
|
97
|
+
padding: 2px 6px;
|
|
98
|
+
border-radius: 4px;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
&-active-date button {
|
|
103
|
+
background-color: getColor('main');
|
|
104
|
+
color: getColor('background');
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&-header-dropdown {
|
|
108
|
+
display: flex;
|
|
109
|
+
gap: $spacing-3;
|
|
110
|
+
justify-content: center;
|
|
111
|
+
.select{
|
|
112
|
+
margin-bottom: 0 !important;
|
|
113
|
+
width: 40%;
|
|
114
|
+
select {
|
|
115
|
+
height: 30px !important;
|
|
116
|
+
margin-bottom: 0 !important;
|
|
117
|
+
padding: 0px 25px 0px 5px;
|
|
118
|
+
&:focus{
|
|
119
|
+
padding-left: 4px !important;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
.control:after {
|
|
123
|
+
right: -8px !important;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
$basis-values: (
|
|
2
|
+
'is-1': 70%,
|
|
3
|
+
'is-2': 60%,
|
|
4
|
+
'is-3': 50%,
|
|
5
|
+
'is-4': 40%
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
.card {
|
|
2
10
|
max-width: 100%;
|
|
3
11
|
display: flex;
|
|
@@ -8,8 +16,13 @@
|
|
|
8
16
|
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
|
9
17
|
background-color: getColor('background');
|
|
10
18
|
|
|
11
|
-
&:not(
|
|
12
|
-
|
|
19
|
+
&:not(.is-reversed) .card-image {
|
|
20
|
+
order: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
&:not(.is-reversed) .card-content {
|
|
25
|
+
order: 2;
|
|
13
26
|
}
|
|
14
27
|
|
|
15
28
|
.card-image {
|
|
@@ -47,7 +60,7 @@
|
|
|
47
60
|
|
|
48
61
|
&.is-strong {
|
|
49
62
|
.title {
|
|
50
|
-
font-family: $family-
|
|
63
|
+
font-family: $family-secondary;
|
|
51
64
|
font-size: 24px !important;
|
|
52
65
|
}
|
|
53
66
|
}
|
|
@@ -94,6 +107,12 @@
|
|
|
94
107
|
}
|
|
95
108
|
}
|
|
96
109
|
|
|
110
|
+
@for $i from 1 through 4 {
|
|
111
|
+
&:has(.card-content + .card-image.is-#{$i}) .card-content {
|
|
112
|
+
flex-basis: map-get($basis-values, 'is-#{$i}');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
97
116
|
.card-image {
|
|
98
117
|
max-width: 100%;
|
|
99
118
|
|
|
@@ -215,13 +234,11 @@
|
|
|
215
234
|
&.is-inverted,
|
|
216
235
|
&.is-reversed {
|
|
217
236
|
.card-image {
|
|
218
|
-
order:
|
|
237
|
+
order: 2;
|
|
219
238
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
order: 1;
|
|
224
|
-
}
|
|
239
|
+
|
|
240
|
+
.card-content {
|
|
241
|
+
order: 1;
|
|
225
242
|
}
|
|
226
243
|
}
|
|
227
244
|
}
|
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
@include checkbox-and-radio('checkbox');
|
|
2
2
|
|
|
3
|
+
.checkboxes {
|
|
4
|
+
width: 100%;
|
|
5
|
+
column-gap: $spacing-5;
|
|
6
|
+
row-gap: $spacing-3;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-wrap: wrap;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
|
|
11
|
+
@include tablet {
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
|
|
14
|
+
&.is-vertical-desktop {
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
@include mobile {
|
|
20
|
+
&.is-horizontal-mobile {
|
|
21
|
+
flex-direction: row;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.is-centered,
|
|
26
|
+
&.has-text-centered,
|
|
27
|
+
.has-text-centered & {
|
|
28
|
+
justify-content: center;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
3
32
|
.checkbox,
|
|
4
33
|
.checkbox-tile {
|
|
5
34
|
input:checked ~ label.checkbox-label {
|
|
@@ -27,7 +56,7 @@
|
|
|
27
56
|
input:checked ~ label.checkbox-label {
|
|
28
57
|
&:after {
|
|
29
58
|
top: 15px;
|
|
30
|
-
|
|
59
|
+
left: 15px;
|
|
31
60
|
}
|
|
32
61
|
}
|
|
33
62
|
}
|
|
@@ -10,4 +10,20 @@
|
|
|
10
10
|
padding: 0 $spacing-4;
|
|
11
11
|
background-color: invertColor('neutral');
|
|
12
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;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
13
23
|
}
|
|
24
|
+
|
|
25
|
+
*:has(+ .divider) {
|
|
26
|
+
margin-top: 0 !important;
|
|
27
|
+
margin-bottom: 0 !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
@@ -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
|
+
}
|