@trilogy-ds/styles 0.0.1-beta.9 → 0.0.3-beta-v4
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/base/_color.scss +9 -39
- package/framework/src/base/_generic.scss +4 -1
- package/framework/src/base/_helpers.scss +13 -38
- package/framework/src/base/_loading.scss +8 -1
- package/framework/src/base/_reset.scss +8 -3
- package/framework/src/components/_accordion.scss +53 -88
- package/framework/src/components/_all.scss +1 -7
- package/framework/src/components/_autolayout.scss +302 -0
- package/framework/src/components/_breadcrumb.scss +39 -34
- package/framework/src/components/_card.scss +8 -79
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_divider.scss +10 -15
- package/framework/src/components/_fab.scss +25 -38
- package/framework/src/components/_modal.scss +161 -158
- package/framework/src/components/_otp.scss +10 -29
- package/framework/src/components/_pagination.scss +59 -161
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_popover.scss +260 -260
- package/framework/src/components/_price.scss +119 -170
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_progress-radial.scss +24 -19
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +51 -53
- package/framework/src/components/_stepper.scss +42 -222
- package/framework/src/components/_tabs.scss +46 -81
- package/framework/src/components/_timeline.scss +27 -112
- package/framework/src/elements/_alert.scss +13 -10
- package/framework/src/elements/_all.scss +1 -4
- package/framework/src/elements/_autocomplete.scss +32 -0
- package/framework/src/elements/_badge.scss +67 -61
- package/framework/src/elements/_box.scss +64 -161
- package/framework/src/elements/_button.scss +15 -141
- package/framework/src/elements/_checkbox.scss +29 -26
- package/framework/src/elements/_chips.scss +69 -85
- package/framework/src/elements/_container.scss +7 -39
- package/framework/src/elements/_entry.scss +76 -88
- package/framework/src/elements/_form.scss +26 -23
- package/framework/src/elements/_icon.scss +4 -4
- package/framework/src/elements/_image.scss +50 -40
- package/framework/src/elements/_input-gauge.scss +32 -33
- package/framework/src/elements/_input-icons.scss +33 -31
- package/framework/src/elements/_link.scss +38 -65
- package/framework/src/elements/_list.scss +45 -44
- package/framework/src/elements/_loader.scss +2 -2
- package/framework/src/elements/_other.scss +0 -37
- package/framework/src/elements/_paragraph.scss +35 -69
- package/framework/src/elements/_progress.scss +33 -22
- package/framework/src/elements/_radio.scss +45 -31
- package/framework/src/elements/_select.scss +85 -304
- package/framework/src/elements/_sticker.scss +12 -27
- package/framework/src/elements/_switch.scss +101 -99
- package/framework/src/elements/_table.scss +175 -228
- package/framework/src/elements/_tag.scss +104 -105
- package/framework/src/elements/_textarea.scss +113 -105
- package/framework/src/elements/_title.scss +89 -87
- package/framework/src/elements/_toaster.scss +4 -5
- package/framework/src/grid/_columns.scss +257 -764
- package/framework/src/grid/_rows.scss +45 -38
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +89 -215
- package/framework/src/layout/_section.scss +5 -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/utilities/_a11y.scss +13 -0
- package/framework/src/utilities/_all.scss +4 -0
- package/framework/src/utilities/_background.scss +19 -0
- package/framework/src/utilities/_colors.scss +40 -0
- package/framework/src/utilities/_controls.scss +38 -49
- package/framework/src/utilities/_derived-variables.scss +4 -15
- package/framework/src/utilities/_initial-variables.scss +4 -36
- package/framework/src/utilities/_mixins.scss +483 -592
- package/framework/src/utilities/_pre.scss +1 -0
- package/package.json +3 -3
- 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/_search-modal.scss +0 -197
- package/framework/src/components/_slices.scss +0 -316
- package/framework/src/components/_slider.scss +0 -92
- package/framework/src/components/_switch.scss +0 -209
- package/framework/src/elements/_checkradio.scss +0 -173
- package/framework/src/elements/_dot.scss +0 -6
- package/framework/src/elements/_notification.scss +0 -151
- package/framework/src/elements/_options.scss +0 -146
- package/framework/src/elements/_timeline.scss +0 -283
- package/framework/src/layout/_toolbar.scss +0 -100
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
$sticker-height: 35px;
|
|
2
|
-
$sticker-radius: $radius-large;
|
|
3
2
|
|
|
4
3
|
.sticker {
|
|
5
|
-
border-radius:
|
|
4
|
+
border-radius: 9999px;
|
|
6
5
|
font-size: 16px;
|
|
7
6
|
flex-grow: 0;
|
|
8
7
|
display: inline-flex;
|
|
@@ -16,58 +15,44 @@ $sticker-radius: $radius-large;
|
|
|
16
15
|
&:not(.is-hat) {
|
|
17
16
|
width: fit-content;
|
|
18
17
|
|
|
19
|
-
@include mobile{
|
|
20
|
-
border-radius: 16px;
|
|
18
|
+
@include mobile {
|
|
21
19
|
font-size: 12px;
|
|
22
20
|
padding: $spacing-1 $spacing-2;
|
|
23
21
|
height: auto;
|
|
24
22
|
line-height: 15px;
|
|
25
23
|
|
|
26
|
-
&.is-flag {
|
|
27
|
-
border-radius: 0 $sticker-radius 0 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
24
|
}
|
|
31
25
|
}
|
|
32
26
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
background-color: getColor('main');
|
|
27
|
+
&.is-accent {
|
|
28
|
+
background-color: getColor('accent');
|
|
36
29
|
color: getColor('background') !important;
|
|
37
30
|
}
|
|
38
31
|
|
|
39
|
-
&.is-
|
|
40
|
-
|
|
32
|
+
&.is-info {
|
|
33
|
+
background-color: getColor('info');
|
|
34
|
+
color: getColor('background') !important;
|
|
41
35
|
}
|
|
42
36
|
|
|
43
|
-
&.is-outlined,
|
|
44
37
|
&.is-inverted {
|
|
45
38
|
background-color: white !important;
|
|
46
39
|
border-style: solid;
|
|
47
40
|
border-width: 2px;
|
|
48
41
|
border-color: currentColor;
|
|
49
|
-
color:
|
|
50
|
-
|
|
51
|
-
&.is-primary {
|
|
52
|
-
color: getColor('main') !important;
|
|
53
|
-
}
|
|
42
|
+
color: currentColor;
|
|
54
43
|
}
|
|
55
44
|
|
|
56
45
|
&.is-small {
|
|
57
|
-
border-radius: 16px;
|
|
58
46
|
font-size: 12px;
|
|
59
47
|
padding: $spacing-1 $spacing-2;
|
|
60
48
|
height: auto;
|
|
61
49
|
line-height: 15px;
|
|
62
50
|
|
|
63
|
-
&.is-flag {
|
|
64
|
-
border-radius: 0 $sticker-radius 0 0;
|
|
65
|
-
}
|
|
66
51
|
}
|
|
67
52
|
|
|
68
53
|
// deprecated
|
|
69
54
|
&.is-stretched {
|
|
70
|
-
border-radius:
|
|
55
|
+
border-radius: var(--radius) 0;
|
|
71
56
|
padding: 0 10px;
|
|
72
57
|
position: relative;
|
|
73
58
|
margin-right: 10px;
|
|
@@ -87,12 +72,12 @@ $sticker-radius: $radius-large;
|
|
|
87
72
|
}
|
|
88
73
|
|
|
89
74
|
&::before {
|
|
90
|
-
border-radius:
|
|
75
|
+
border-radius: var(--radius) 0 0 var(--radius);
|
|
91
76
|
left: -6px;
|
|
92
77
|
}
|
|
93
78
|
|
|
94
79
|
&::after {
|
|
95
|
-
border-radius: 0
|
|
80
|
+
border-radius: 0 var(--radius) var(--radius) 0;
|
|
96
81
|
right: -7px;
|
|
97
82
|
}
|
|
98
83
|
}
|
|
@@ -111,7 +96,7 @@ $sticker-radius: $radius-large;
|
|
|
111
96
|
.has-hat-mobile {
|
|
112
97
|
.is-hat {
|
|
113
98
|
display: inline-block;
|
|
114
|
-
border-radius:
|
|
99
|
+
border-radius: var(--radius) var(--radius) 0 0;
|
|
115
100
|
position: absolute;
|
|
116
101
|
top: -$sticker-height;
|
|
117
102
|
left: 0;
|
|
@@ -1,108 +1,110 @@
|
|
|
1
1
|
.switch {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
&:after {
|
|
21
|
-
$colorSvg: encodecolor(getColorValue('grey-dark'));
|
|
22
|
-
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&:disabled:checked ~ label {
|
|
27
|
-
&:after {
|
|
28
|
-
$colorSvg: encodecolor(getColorValue('grey-dark'));
|
|
29
|
-
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
30
|
-
}
|
|
31
|
-
}
|
|
2
|
+
position: relative;
|
|
3
|
+
margin: 8px;
|
|
4
|
+
width: fit-content;
|
|
5
|
+
|
|
6
|
+
&.is-fullwidth {
|
|
7
|
+
width: 100%;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
input {
|
|
11
|
+
display: none;
|
|
12
|
+
|
|
13
|
+
&:disabled ~ label,
|
|
14
|
+
&:disabled:checked ~ label {
|
|
15
|
+
cursor: not-allowed;
|
|
16
|
+
|
|
17
|
+
&:before {
|
|
18
|
+
background-color: getColor('disabled');
|
|
19
|
+
}
|
|
32
20
|
}
|
|
33
21
|
|
|
34
|
-
label {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
22
|
+
&:disabled ~ label {
|
|
23
|
+
&:after {
|
|
24
|
+
$colorSvg: encodecolor(getColorValue('disabled'));
|
|
25
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:disabled:checked ~ label {
|
|
30
|
+
&:after {
|
|
31
|
+
$colorSvg: encodecolor(getColorValue('disabled'));
|
|
32
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
label {
|
|
38
|
+
width: 100%;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: center;
|
|
41
|
+
cursor: pointer;
|
|
42
|
+
padding: $spacing-1;
|
|
43
|
+
padding-right: 60px;
|
|
44
|
+
|
|
45
|
+
&:before {
|
|
46
|
+
content: '';
|
|
47
|
+
position: absolute;
|
|
48
|
+
top: 50%;
|
|
49
|
+
transform: translateY(-50%);
|
|
50
|
+
right: 0;
|
|
51
|
+
border-radius: 9999px;
|
|
52
|
+
width: 44px;
|
|
53
|
+
height: 22px;
|
|
54
|
+
background-color: getColor('neutral');
|
|
68
55
|
}
|
|
69
56
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
57
|
+
&:after {
|
|
58
|
+
$colorSvg: encodecolor(getColorValue('neutral'));
|
|
59
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
|
|
60
|
+
position: absolute;
|
|
61
|
+
top: 50%;
|
|
62
|
+
transform: translateY(-50%);
|
|
63
|
+
right: calc(44px - 18px - 2px);
|
|
64
|
+
border-radius: 9999px;
|
|
65
|
+
width: 18px;
|
|
66
|
+
height: 18px;
|
|
67
|
+
background-color: getColorValue('background');
|
|
68
|
+
transition: 0.3s;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
input:checked {
|
|
73
|
+
& ~ label {
|
|
74
|
+
font-weight: bold;
|
|
75
|
+
|
|
76
|
+
&:before {
|
|
77
|
+
background-color: getColorValue('main');
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:after {
|
|
81
|
+
right: 2px;
|
|
82
|
+
$colorSvg: encodecolor(getColorValue('main'));
|
|
83
|
+
content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
|
|
84
|
+
background-color: getColorValue('background');
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.is-reversed {
|
|
90
|
+
label {
|
|
91
|
+
flex-direction: row-reverse;
|
|
92
|
+
padding-right: 0;
|
|
93
|
+
padding-left: 60px;
|
|
94
|
+
|
|
95
|
+
&:before {
|
|
96
|
+
left: 0;
|
|
97
|
+
margin-left: 0;
|
|
98
|
+
margin-right: 16px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&:after {
|
|
102
|
+
left: 2px;
|
|
103
|
+
}
|
|
85
104
|
}
|
|
86
105
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
flex-direction: row-reverse;
|
|
90
|
-
padding-right: 0;
|
|
91
|
-
padding-left: 60px;
|
|
92
|
-
|
|
93
|
-
&:before {
|
|
94
|
-
left: 0;
|
|
95
|
-
margin-left: 0;
|
|
96
|
-
margin-right: 16px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
&:after {
|
|
100
|
-
left: 2px;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
input:checked ~ label:after {
|
|
105
|
-
left: calc(44px - 18px - 2px);
|
|
106
|
-
}
|
|
106
|
+
input:checked ~ label:after {
|
|
107
|
+
left: calc(44px - 18px - 2px);
|
|
107
108
|
}
|
|
109
|
+
}
|
|
108
110
|
}
|