@trilogy-ds/styles 0.0.1-beta.41 → 0.0.1-beta.45
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/components/_accordion.scss +5 -0
- package/framework/src/components/_price.scss +36 -4
- package/framework/src/elements/_all.scss +1 -0
- package/framework/src/elements/_autocomplete.scss +32 -0
- package/framework/src/elements/_input-gauge.scss +0 -5
- package/framework/src/elements/_link.scss +4 -2
- package/package.json +1 -1
|
@@ -47,9 +47,14 @@
|
|
|
47
47
|
right: 20px;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
+
&[open] {
|
|
51
|
+
transition: 1s;
|
|
52
|
+
}
|
|
53
|
+
|
|
50
54
|
&[open]:not([aria-disabled="true"]) .accordion-header:after {
|
|
51
55
|
@include arrow('up');
|
|
52
56
|
}
|
|
57
|
+
|
|
53
58
|
&:not([open]) .accordion-header:after, &[aria-disabled="true"] .accordion-header:after {
|
|
54
59
|
@include arrow();
|
|
55
60
|
}
|
|
@@ -15,7 +15,7 @@ $price-levels: (
|
|
|
15
15
|
margin-bottom: 0;
|
|
16
16
|
|
|
17
17
|
&:not(.is-inlined) {
|
|
18
|
-
font-size:
|
|
18
|
+
font-size: $text-44;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@each $price-level in $price-levels {
|
|
@@ -25,10 +25,35 @@ $price-levels: (
|
|
|
25
25
|
&.is-level-#{$i} {
|
|
26
26
|
font-size: $font-size;
|
|
27
27
|
|
|
28
|
+
@if $i == 1 {
|
|
29
|
+
+ .price-tag {
|
|
30
|
+
span:nth-child(2) {
|
|
31
|
+
font-size: $text-16;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@if $i == 2 {
|
|
37
|
+
+ .price-tag {
|
|
38
|
+
font-size: 22px;
|
|
39
|
+
span:nth-child(2) {
|
|
40
|
+
font-size: $text-16;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@if $i == 3 {
|
|
46
|
+
+ .price-tag {
|
|
47
|
+
font-size: 16px;
|
|
48
|
+
span:nth-child(2) {
|
|
49
|
+
font-size: $text-16;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
28
54
|
@if $i < 4 {
|
|
29
55
|
+ .price-tag {
|
|
30
56
|
span:nth-child(2) {
|
|
31
|
-
font-size: 10px;
|
|
32
57
|
place-self: flex-end;
|
|
33
58
|
margin-bottom: 3px;
|
|
34
59
|
}
|
|
@@ -48,7 +73,7 @@ $price-levels: (
|
|
|
48
73
|
margin-top: 4px;
|
|
49
74
|
border-radius: 1px;
|
|
50
75
|
}
|
|
51
|
-
font-size:
|
|
76
|
+
font-size: $text-10;
|
|
52
77
|
padding: 4px !important;
|
|
53
78
|
}
|
|
54
79
|
}
|
|
@@ -187,6 +212,10 @@ $price-levels: (
|
|
|
187
212
|
color: getColor('background');
|
|
188
213
|
height: fit-content;
|
|
189
214
|
padding: 8px;
|
|
215
|
+
font-size: 28px;
|
|
216
|
+
line-height: 1em;
|
|
217
|
+
align-items: baseline;
|
|
218
|
+
position: relative;
|
|
190
219
|
&::before {
|
|
191
220
|
content: '';
|
|
192
221
|
border-color: transparent;
|
|
@@ -199,7 +228,10 @@ $price-levels: (
|
|
|
199
228
|
pointer-events: none;
|
|
200
229
|
position: absolute;
|
|
201
230
|
margin-left: -12px;
|
|
202
|
-
|
|
231
|
+
top: 0;
|
|
232
|
+
bottom: 0;
|
|
233
|
+
margin-top: auto;
|
|
234
|
+
margin-bottom: auto;
|
|
203
235
|
transform-origin: center;
|
|
204
236
|
height: 0;
|
|
205
237
|
width: 0;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.is-autocomplete {
|
|
2
|
+
.autocomplete-menu {
|
|
3
|
+
display: none;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&.is-active {
|
|
7
|
+
.autocomplete-menu {
|
|
8
|
+
display: block;
|
|
9
|
+
border: 1px solid rgba(0,38,60,.4);
|
|
10
|
+
padding: calc($spacing-1 + 1px) calc($spacing-2 + 2px);
|
|
11
|
+
border-radius: 4px;
|
|
12
|
+
max-height: 220px;
|
|
13
|
+
overflow-y: auto;
|
|
14
|
+
background-color: getColor('background');
|
|
15
|
+
z-index: 10000;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.autocomplete-item {
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
padding: calc($spacing-1 - 0.25px) calc($spacing-1 + 1px);
|
|
21
|
+
|
|
22
|
+
&.is-active, &[data-autocomplete-item-hover] {
|
|
23
|
+
@include hoverRules();
|
|
24
|
+
margin-left: calc(2px - $spacing-3 );
|
|
25
|
+
margin-right: calc(2px - $spacing-3 );
|
|
26
|
+
border-top: 1px solid var(--color-bg-hovered);
|
|
27
|
+
border-bottom: 1px solid var(--color-bg-hovered);
|
|
28
|
+
padding: calc($spacing-1 - 1.25px) calc($spacing-4 - 1px);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
font-weight: $weight-normal;
|
|
12
12
|
color: getColor($link-colors);
|
|
13
13
|
box-decoration-break: clone;
|
|
14
|
-
text-decoration: underline
|
|
15
|
-
text-underline-offset:
|
|
14
|
+
text-decoration: underline 2px solid;
|
|
15
|
+
text-underline-offset: 4px;
|
|
16
16
|
cursor: pointer;
|
|
17
17
|
|
|
18
18
|
&.has-icon {
|
|
@@ -43,6 +43,8 @@
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.text .link:not([disabled]) {
|
|
46
|
+
text-underline-offset: 2px;
|
|
47
|
+
text-decoration: underline 1px solid;
|
|
46
48
|
&:hover {
|
|
47
49
|
font-weight: $weight-normal;
|
|
48
50
|
filter: brightness(0.8);
|