@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50
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/README.md +47 -0
- 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 +14 -36
- package/framework/src/base/_generic.scss +4 -1
- package/framework/src/base/_helpers.scss +20 -37
- package/framework/src/base/_loading.scss +8 -1
- package/framework/src/base/_reset.scss +8 -3
- package/framework/src/components/_accordion.scss +40 -86
- package/framework/src/components/_all.scss +0 -6
- package/framework/src/components/_breadcrumb.scss +39 -34
- package/framework/src/components/_card.scss +7 -78
- package/framework/src/components/_countdown.scss +49 -47
- package/framework/src/components/_divider.scss +2 -2
- package/framework/src/components/_fab.scss +12 -26
- package/framework/src/components/_level.scss +1 -1
- package/framework/src/components/_media.scss +2 -2
- package/framework/src/components/_modal.scss +167 -166
- package/framework/src/components/_otp.scss +9 -28
- package/framework/src/components/_pagination.scss +104 -133
- package/framework/src/components/_plus-symbol.scss +1 -1
- package/framework/src/components/_popover.scss +255 -255
- package/framework/src/components/_price.scss +196 -166
- package/framework/src/components/_product-tour.scss +2 -4
- package/framework/src/components/_range.scss +73 -72
- package/framework/src/components/_segmented-control.scss +37 -51
- package/framework/src/components/_stepper.scss +18 -142
- package/framework/src/components/_tabs.scss +32 -59
- package/framework/src/components/_timeline.scss +52 -45
- package/framework/src/elements/_alert.scss +5 -8
- package/framework/src/elements/_all.scss +1 -3
- package/framework/src/elements/_autocomplete.scss +32 -0
- package/framework/src/elements/_badge.scss +54 -59
- package/framework/src/elements/_box.scss +8 -115
- package/framework/src/elements/_button.scss +15 -133
- package/framework/src/elements/_checkbox.scss +21 -27
- package/framework/src/elements/_chips.scss +74 -83
- package/framework/src/elements/_dot.scss +1 -1
- package/framework/src/elements/_entry.scss +76 -88
- package/framework/src/elements/_form.scss +17 -15
- package/framework/src/elements/_icon.scss +3 -3
- 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 +38 -46
- package/framework/src/elements/_loader.scss +1 -1
- package/framework/src/elements/_other.scss +2 -2
- package/framework/src/elements/_paragraph.scss +4 -26
- package/framework/src/elements/_progress.scss +12 -21
- package/framework/src/elements/_radio.scss +2 -2
- package/framework/src/elements/_select.scss +84 -301
- package/framework/src/elements/_sticker.scss +12 -27
- package/framework/src/elements/_switch.scss +85 -88
- package/framework/src/elements/_table.scss +173 -226
- package/framework/src/elements/_tag.scss +104 -105
- package/framework/src/elements/_textarea.scss +95 -105
- package/framework/src/elements/_title.scss +89 -87
- package/framework/src/elements/_toaster.scss +3 -4
- package/framework/src/grid/_columns.scss +5 -5
- package/framework/src/layout/_all.scss +0 -1
- package/framework/src/layout/_hero.scss +109 -207
- package/framework/src/layout/_section.scss +7 -14
- package/framework/src/theming/_all.scss +3 -0
- package/framework/src/theming/buttons_partial.scss +30 -0
- package/framework/src/theming/common_partials.scss +9 -0
- package/framework/src/theming/links_partial.scss +20 -0
- package/framework/src/utilities/_all.scss +3 -0
- package/framework/src/utilities/_background.scss +15 -0
- package/framework/src/utilities/_controls.scss +37 -48
- package/framework/src/utilities/_derived-variables.scss +3 -14
- package/framework/src/utilities/_initial-variables.scss +22 -26
- package/framework/src/utilities/_mixins.scss +481 -593
- package/framework/src/utilities/_pre.scss +1 -0
- package/package.json +3 -2
- package/framework/src/components/_disclaimer.scss +0 -84
- package/framework/src/components/_dropdown.scss +0 -128
- 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/_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,6 +1,10 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
2
|
|
|
3
3
|
@function getColor( $name ) {
|
|
4
|
+
@if str-slice($name, 0, 3) == 'bg-' {
|
|
5
|
+
$submane: str-slice($name, 4);
|
|
6
|
+
@return getBGColor( $submane );
|
|
7
|
+
}
|
|
4
8
|
@return var(--color-#{nth(map-get($colors,$name),1)})
|
|
5
9
|
}
|
|
6
10
|
|
|
@@ -8,51 +12,25 @@
|
|
|
8
12
|
@return #{nth(map-get($colors,$name),2)}
|
|
9
13
|
}
|
|
10
14
|
|
|
15
|
+
@function getBGColorValue( $name ) {
|
|
16
|
+
@return #{nth(map-get($colors,$name),4)}
|
|
17
|
+
}
|
|
18
|
+
|
|
11
19
|
@function getColorBrandName( $name ) {
|
|
12
20
|
@return #{nth(map-get($colors,$name),1)}
|
|
13
21
|
}
|
|
14
22
|
|
|
15
|
-
@function
|
|
16
|
-
@return
|
|
17
|
-
}
|
|
23
|
+
@function getBGColor( $name ) {
|
|
24
|
+
@return var(--color-bg-#{nth(map-get($colors,$name),1)})
|
|
25
|
+
}
|
|
18
26
|
|
|
19
27
|
:root {
|
|
20
28
|
@each $name, $color in $colors {
|
|
21
29
|
--color-#{nth($color,1)}: #{nth($color,2)};
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// Colors
|
|
25
|
-
@each $name, $color in $colors {
|
|
26
|
-
$colorname: nth($color, 1);
|
|
27
|
-
$bgcolorval: nth($color, 2);
|
|
28
|
-
$colorval: nth($color, 3);
|
|
29
|
-
.has-background-#{$colorname} {
|
|
30
|
-
background-color: var(--color-#{$colorname}) !important;
|
|
31
|
-
color: var(--color-#{$colorval});
|
|
32
|
-
}
|
|
30
|
+
--color-bg-#{nth($color,1)}: #{nth($color,4)};
|
|
33
31
|
}
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@function invertColor ($colorName, $context:'') {
|
|
41
|
-
$invertcolormap: ('tertiary': 'grey-dark', 'grey-dark': 'grey-light', 'grey-light': 'grey-dark');
|
|
42
|
-
$defaultInvert: white;
|
|
43
|
-
|
|
44
|
-
@if ($context == 'dark') {
|
|
45
|
-
$invertcolormap: ('tertiary':'var(--color-success)');
|
|
46
|
-
$defaultInvert: black;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
@if ($context == 'accordion') {
|
|
50
|
-
$defaultInvert: 'grey-lighter'
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
$result: map.get($invertcolormap, $colorName);
|
|
54
|
-
@if ($result) {
|
|
55
|
-
@return $result
|
|
56
|
-
}
|
|
57
|
-
@return $defaultInvert
|
|
34
|
+
@function invertColor ($colorName) {
|
|
35
|
+
@return var(--color-#{nth(map-get($colors,$colorName),3)})
|
|
58
36
|
}
|
|
@@ -7,7 +7,7 @@ $body-line-height: 1.5 !default;
|
|
|
7
7
|
.html-wrap {
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: 0;
|
|
10
|
-
background-color:
|
|
10
|
+
background-color: getBGColor('neutral');
|
|
11
11
|
font-size: $body-size;
|
|
12
12
|
-moz-osx-font-smoothing: grayscale;
|
|
13
13
|
-webkit-font-smoothing: antialiased;
|
|
@@ -55,6 +55,9 @@ $body-line-height: 1.5 !default;
|
|
|
55
55
|
z-index: zindex('small');
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
[disabled], [aria-disabled="true"] {
|
|
59
|
+
@include disabledRules;
|
|
60
|
+
}
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
.body-wrap {
|
|
@@ -195,47 +195,29 @@ $alignments: (
|
|
|
195
195
|
font-weight: $weight-semibold !important;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
-
@mixin typography-colors(
|
|
198
|
+
@mixin typography-colors() {
|
|
199
199
|
@each $name, $color in $colors {
|
|
200
|
-
$brandName:nth($color, 1);
|
|
200
|
+
$brandName: nth($color, 1);
|
|
201
201
|
$color: nth($color, 2);
|
|
202
202
|
$color-invert: invertColor($name);
|
|
203
203
|
|
|
204
|
-
.has-text-#{$brandName}
|
|
204
|
+
.has-text-#{$brandName} {
|
|
205
205
|
color: $color !important;
|
|
206
206
|
}
|
|
207
|
-
.has-text-#{$brandName}-invert
|
|
207
|
+
.has-text-#{$brandName}-invert {
|
|
208
208
|
color: $color-invert !important;
|
|
209
209
|
}
|
|
210
|
+
.has-background-#{$brandName} {
|
|
211
|
+
background-color: getColor($name) !important;
|
|
212
|
+
}
|
|
213
|
+
.has-background-#{$brandName}-fade {
|
|
214
|
+
background-color: getBGColor($name) !important;
|
|
215
|
+
}
|
|
210
216
|
}
|
|
211
217
|
}
|
|
212
218
|
|
|
213
219
|
@include typography-colors;
|
|
214
220
|
|
|
215
|
-
@include mobile {
|
|
216
|
-
@include typography-colors('mobile');
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
@include tablet {
|
|
220
|
-
@include typography-colors('tablet');
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
@include touch {
|
|
224
|
-
@include typography-colors('touch');
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
@include desktop {
|
|
228
|
-
@include typography-colors('desktop');
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
@include widescreen {
|
|
232
|
-
@include typography-colors('widescreen');
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
@include fullhd {
|
|
236
|
-
@include typography-colors('fullhd');
|
|
237
|
-
}
|
|
238
|
-
|
|
239
221
|
// Visibility
|
|
240
222
|
$displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
|
|
241
223
|
|
|
@@ -441,11 +423,11 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
|
|
|
441
423
|
}
|
|
442
424
|
|
|
443
425
|
.is-rounded {
|
|
444
|
-
border-radius:
|
|
426
|
+
border-radius: 9999px !important;
|
|
445
427
|
}
|
|
446
428
|
|
|
447
429
|
.is-bordered {
|
|
448
|
-
border:
|
|
430
|
+
border: var(--border);
|
|
449
431
|
}
|
|
450
432
|
|
|
451
433
|
.is-vertical-paddingless {
|
|
@@ -454,15 +436,11 @@ $displays: 'block' 'flex' 'inline' 'inline-block' 'inline-flex';
|
|
|
454
436
|
}
|
|
455
437
|
|
|
456
438
|
// Radius
|
|
457
|
-
$radius-list:
|
|
458
|
-
'radius-small': $radius-small,
|
|
459
|
-
'radius': $radius,
|
|
460
|
-
'radius-large': $radius-large,
|
|
461
|
-
);
|
|
439
|
+
$radius-list: ['radius-small', 'radius'];
|
|
462
440
|
|
|
463
|
-
@each $label
|
|
441
|
+
@each $label in $radius-list {
|
|
464
442
|
.has-border-#{$label} {
|
|
465
|
-
border-radius: $
|
|
443
|
+
border-radius: var(--#{$label});
|
|
466
444
|
}
|
|
467
445
|
}
|
|
468
446
|
|
|
@@ -645,6 +623,11 @@ $positions: (
|
|
|
645
623
|
);
|
|
646
624
|
|
|
647
625
|
@each $justification, $justify-content in $positions {
|
|
626
|
+
|
|
627
|
+
.is-justified-self {
|
|
628
|
+
justify-self: #{$justify-content} !important;
|
|
629
|
+
}
|
|
630
|
+
|
|
648
631
|
.is-justified-#{$justification} {
|
|
649
632
|
justify-content: #{$justify-content} !important;
|
|
650
633
|
}
|
|
@@ -35,6 +35,11 @@ p.is-loading,
|
|
|
35
35
|
.is-checkradio[type="checkbox"] + label::after {
|
|
36
36
|
visibility: hidden;
|
|
37
37
|
}
|
|
38
|
+
&::after {
|
|
39
|
+
@include spinner;
|
|
40
|
+
@include center(1em);
|
|
41
|
+
position: absolute !important;
|
|
42
|
+
}
|
|
38
43
|
|
|
39
44
|
&.field,
|
|
40
45
|
.field {
|
|
@@ -54,11 +59,13 @@ p.is-loading,
|
|
|
54
59
|
|
|
55
60
|
filter: grayscale(1);
|
|
56
61
|
cursor: default !important;
|
|
62
|
+
color: transparent !important;
|
|
63
|
+
pointer-events: none;
|
|
57
64
|
|
|
58
65
|
// make the text elements like subtle animated lines
|
|
59
66
|
@include text-tags {
|
|
60
67
|
display: inline;
|
|
61
|
-
border-radius:
|
|
68
|
+
border-radius: 9999px;
|
|
62
69
|
background: currentColor !important;
|
|
63
70
|
box-decoration-break: clone;
|
|
64
71
|
font-size: 70%;
|
|
@@ -3,61 +3,68 @@
|
|
|
3
3
|
padding-right: 0;
|
|
4
4
|
margin: $spacing-4 0;
|
|
5
5
|
|
|
6
|
+
details.accordion ::-webkit-details-marker {
|
|
7
|
+
display: none;
|
|
8
|
+
content: "";
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
.accordion {
|
|
12
|
+
|
|
7
13
|
box-sizing: border-box;
|
|
8
14
|
display: flex;
|
|
9
15
|
flex-direction: column;
|
|
10
|
-
background-color:
|
|
16
|
+
background-color: getColor('background');
|
|
11
17
|
font-size: $size-normal;
|
|
12
|
-
border:
|
|
13
|
-
border-radius:
|
|
18
|
+
border: var(--border);
|
|
19
|
+
border-radius: var(--radius);
|
|
14
20
|
margin: 8px 0;
|
|
15
21
|
min-height: 56px;
|
|
16
22
|
max-height: max-content;
|
|
17
23
|
|
|
24
|
+
.accordion-header {
|
|
25
|
+
font-weight: bold;
|
|
26
|
+
}
|
|
27
|
+
|
|
18
28
|
.accordion-body {
|
|
19
|
-
display: none;
|
|
20
29
|
padding: $spacing-4;
|
|
21
30
|
padding-top: 0 !important;
|
|
22
31
|
}
|
|
23
32
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
& .toggle {
|
|
27
|
-
&::before {
|
|
28
|
-
@include arrow(getColor('font'), 'up');
|
|
29
|
-
}
|
|
30
|
-
}
|
|
33
|
+
&:hover:not(.is-disabled) {
|
|
34
|
+
@include hoverRules();
|
|
31
35
|
}
|
|
32
36
|
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
&:focus-visible {
|
|
38
|
+
outline: var(--border-active);
|
|
39
|
+
outline-offset: 2px;
|
|
35
40
|
}
|
|
36
41
|
|
|
37
|
-
|
|
38
|
-
|
|
42
|
+
.accordion-header:after {
|
|
43
|
+
max-width: 15px;
|
|
44
|
+
max-height: 15px;
|
|
45
|
+
position: absolute;
|
|
46
|
+
margin-top: 0;
|
|
47
|
+
right: 20px;
|
|
48
|
+
}
|
|
39
49
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}
|
|
50
|
+
&[open] {
|
|
51
|
+
transition: 1s;
|
|
52
|
+
}
|
|
44
53
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
padding-top: 1px !important;
|
|
48
|
-
}
|
|
54
|
+
&[open]:not([aria-disabled="true"]) .accordion-header:after {
|
|
55
|
+
@include arrow('up');
|
|
49
56
|
}
|
|
50
57
|
|
|
51
|
-
&:not(:
|
|
52
|
-
|
|
53
|
-
border-radius: 0;
|
|
54
|
-
}
|
|
58
|
+
&:not([open]) .accordion-header:after, &[aria-disabled="true"] .accordion-header:after {
|
|
59
|
+
@include arrow();
|
|
55
60
|
}
|
|
56
61
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
62
|
+
&[aria-disabled="true"] .accordion-body {
|
|
63
|
+
display: none !important;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.accordion-header {
|
|
67
|
+
border-radius: var(--radius);
|
|
61
68
|
}
|
|
62
69
|
|
|
63
70
|
&:first-child {
|
|
@@ -68,22 +75,6 @@
|
|
|
68
75
|
margin-bottom: 0;
|
|
69
76
|
}
|
|
70
77
|
|
|
71
|
-
&.is-disabled {
|
|
72
|
-
background-color: getColor('bg-disabled');
|
|
73
|
-
cursor: no-drop;
|
|
74
|
-
.accordion-header,
|
|
75
|
-
.accordion-header .toggle::before {
|
|
76
|
-
color: getColor('disabled');
|
|
77
|
-
cursor: no-drop;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&.is-active {
|
|
81
|
-
.accordion-header:not(input) + .accordion-body {
|
|
82
|
-
color: getColor('grey');
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
78
|
.accordion-header {
|
|
88
79
|
align-items: center;
|
|
89
80
|
display: flex;
|
|
@@ -112,52 +103,15 @@
|
|
|
112
103
|
}
|
|
113
104
|
}
|
|
114
105
|
|
|
115
|
-
.toggle {
|
|
116
|
-
-moz-appearance: none;
|
|
117
|
-
-webkit-appearance: none;
|
|
118
|
-
user-select: none;
|
|
119
|
-
border: none;
|
|
120
|
-
background-color: transparent;
|
|
121
|
-
cursor: pointer;
|
|
122
|
-
display: inline-block;
|
|
123
|
-
flex-grow: 0;
|
|
124
|
-
flex-shrink: 0;
|
|
125
|
-
height: 20px;
|
|
126
|
-
width: 20px;
|
|
127
|
-
max-height: 20px;
|
|
128
|
-
max-width: 20px;
|
|
129
|
-
min-height: 20px;
|
|
130
|
-
min-width: 20px;
|
|
131
|
-
outline-offset: 8px;
|
|
132
|
-
position: relative;
|
|
133
|
-
vertical-align: top;
|
|
134
|
-
margin-left: auto;
|
|
135
|
-
padding: 0 0 0 10px;
|
|
136
|
-
|
|
137
|
-
&::after {
|
|
138
|
-
display: none;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
&::before {
|
|
142
|
-
@include arrow(getColor('grey-dark'));
|
|
143
|
-
top: -0.25em;
|
|
144
|
-
left: 0;
|
|
145
|
-
right: 0;
|
|
146
|
-
bottom: 0;
|
|
147
|
-
width: 15px;
|
|
148
|
-
height: 5px;
|
|
149
|
-
margin: auto;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
106
|
p {
|
|
154
107
|
margin-bottom: 0;
|
|
155
108
|
}
|
|
156
109
|
|
|
157
110
|
& + .accordion-body {
|
|
158
111
|
overflow-y: hidden;
|
|
112
|
+
|
|
159
113
|
.accordion-content {
|
|
160
|
-
border-radius:
|
|
114
|
+
border-radius: var(--radius);
|
|
161
115
|
margin-bottom: 10px;
|
|
162
116
|
|
|
163
117
|
@include mobile() {
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
@charset "utf-8";
|
|
2
2
|
@import '../utilities/spacing';
|
|
3
3
|
|
|
4
|
-
@import 'disclaimer';
|
|
5
4
|
@import 'divider';
|
|
6
5
|
@import 'breadcrumb';
|
|
7
|
-
@import 'switch';
|
|
8
6
|
@import 'card';
|
|
9
|
-
@import 'dropdown';
|
|
10
7
|
@import 'level';
|
|
11
|
-
@import 'menu';
|
|
12
8
|
@import 'modal';
|
|
13
9
|
@import 'pagination';
|
|
14
10
|
@import 'popover';
|
|
@@ -18,9 +14,7 @@
|
|
|
18
14
|
@import 'accordion';
|
|
19
15
|
@import 'countdown';
|
|
20
16
|
@import 'timeline';
|
|
21
|
-
@import 'slices';
|
|
22
17
|
@import 'stepper';
|
|
23
|
-
@import 'slider';
|
|
24
18
|
@import 'plus-symbol';
|
|
25
19
|
@import 'otp';
|
|
26
20
|
@import 'segmented-control';
|
|
@@ -1,45 +1,50 @@
|
|
|
1
1
|
.breadcrumb {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
@include block;
|
|
3
|
+
@include unselectable;
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
5
|
+
ul,
|
|
6
|
+
ol {
|
|
7
|
+
@include desktop {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-wrap: wrap;
|
|
11
10
|
}
|
|
11
|
+
}
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
li {
|
|
14
|
+
display: inline;
|
|
15
|
+
position: relative;
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
&:first-child a {
|
|
23
|
-
margin-left: 0;
|
|
24
|
-
}
|
|
17
|
+
@include desktop {
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
}
|
|
25
21
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
cursor: default;
|
|
30
|
-
pointer-events: none;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
22
|
+
&:first-child a {
|
|
23
|
+
margin-left: 0;
|
|
24
|
+
}
|
|
33
25
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
26
|
+
&.is-active {
|
|
27
|
+
a {
|
|
28
|
+
color: getColor('font');
|
|
29
|
+
cursor: default;
|
|
30
|
+
pointer-events: none;
|
|
31
|
+
text-decoration: none;
|
|
32
|
+
}
|
|
39
33
|
}
|
|
40
34
|
|
|
41
|
-
a {
|
|
42
|
-
|
|
43
|
-
|
|
35
|
+
+ li a::before {
|
|
36
|
+
content: ">";
|
|
37
|
+
text-align: center;
|
|
38
|
+
padding-right: 0.5em;
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
display: inline-block;
|
|
44
41
|
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
a {
|
|
45
|
+
color: getColor('main');
|
|
46
|
+
margin: 0 0.5em;
|
|
47
|
+
text-decoration: underline;
|
|
48
|
+
text-underline-offset: 4px;
|
|
49
|
+
}
|
|
45
50
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
.card {
|
|
2
2
|
max-width: 100%;
|
|
3
3
|
display: flex;
|
|
4
|
-
border-radius:
|
|
4
|
+
border-radius: var(--radius);
|
|
5
|
+
overflow: hidden;
|
|
5
6
|
flex-direction: column;
|
|
6
7
|
position: relative;
|
|
7
8
|
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
|
@@ -16,12 +17,9 @@
|
|
|
16
17
|
position: relative;
|
|
17
18
|
flex-shrink: 0;
|
|
18
19
|
overflow: hidden;
|
|
19
|
-
border-radius: 8px 8px 0px 0px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
.card-content {
|
|
23
|
-
border-bottom-left-radius: $radius;
|
|
24
|
-
border-bottom-right-radius: $radius;
|
|
25
23
|
padding: $spacing-5;
|
|
26
24
|
flex-grow: 1;
|
|
27
25
|
|
|
@@ -31,7 +29,7 @@
|
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
.card-footer {
|
|
34
|
-
border-top: 1px solid getColor('
|
|
32
|
+
border-top: 1px solid getColor('neutral');
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
.mention {
|
|
@@ -56,13 +54,9 @@
|
|
|
56
54
|
|
|
57
55
|
&.is-flat {
|
|
58
56
|
box-shadow: none;
|
|
59
|
-
|
|
60
|
-
.card-image {
|
|
61
|
-
margin-bottom: -1px;
|
|
62
|
-
}
|
|
57
|
+
border: var(--border);
|
|
63
58
|
|
|
64
59
|
.card-content {
|
|
65
|
-
border: 1px solid getColor('grey');
|
|
66
60
|
padding-left: 20px;
|
|
67
61
|
padding-right: 20px;
|
|
68
62
|
|
|
@@ -74,26 +68,15 @@
|
|
|
74
68
|
}
|
|
75
69
|
|
|
76
70
|
&.is-active {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
.card-image {
|
|
80
|
-
border-radius: 6px 6px 0px 0px;
|
|
81
|
-
}
|
|
71
|
+
outline: var(--border-active);
|
|
82
72
|
|
|
83
73
|
.card-content {
|
|
84
|
-
|
|
85
|
-
border-bottom-right-radius: ($radius - 2px);
|
|
74
|
+
|
|
86
75
|
padding: 22px;
|
|
87
76
|
@include mobile {
|
|
88
77
|
padding: 14px;
|
|
89
78
|
}
|
|
90
79
|
}
|
|
91
|
-
|
|
92
|
-
&.is-horizontal {
|
|
93
|
-
.card-image {
|
|
94
|
-
border-radius: ($radius - 2px) 0px 0px ($radius - 2px);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
80
|
}
|
|
98
81
|
|
|
99
82
|
&.is-horizontal {
|
|
@@ -113,7 +96,6 @@
|
|
|
113
96
|
|
|
114
97
|
.card-image {
|
|
115
98
|
max-width: 100%;
|
|
116
|
-
border-radius: 8px 0px 0px 8px;
|
|
117
99
|
|
|
118
100
|
@include tablet {
|
|
119
101
|
img {
|
|
@@ -179,31 +161,11 @@
|
|
|
179
161
|
top: 50%;
|
|
180
162
|
transform: translateY(-50%);
|
|
181
163
|
}
|
|
182
|
-
&.is-polyfilled {
|
|
183
|
-
border-top-left-radius: $radius;
|
|
184
|
-
border-top-right-radius: 0;
|
|
185
|
-
border-bottom-left-radius: $radius;
|
|
186
|
-
position: absolute;
|
|
187
|
-
top: 0;
|
|
188
|
-
left: 0;
|
|
189
|
-
bottom: 0;
|
|
190
|
-
right: 0;
|
|
191
|
-
background-size: cover;
|
|
192
|
-
background-repeat: no-repeat;
|
|
193
|
-
background-position: 50% 50%;
|
|
194
|
-
|
|
195
|
-
img {
|
|
196
|
-
visibility: hidden;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
164
|
}
|
|
200
165
|
}
|
|
201
166
|
}
|
|
202
167
|
|
|
203
168
|
.card-content {
|
|
204
|
-
border-top-right-radius: $radius;
|
|
205
|
-
border-bottom-right-radius: $radius;
|
|
206
|
-
border-bottom-left-radius: 0;
|
|
207
169
|
padding-left: 20px;
|
|
208
170
|
padding-right: 20px;
|
|
209
171
|
|
|
@@ -223,10 +185,8 @@
|
|
|
223
185
|
box-shadow: none;
|
|
224
186
|
background: transparent;
|
|
225
187
|
|
|
226
|
-
&.is-inverted .card-image .image img,
|
|
227
|
-
&.is-reversed .card-image .image img,
|
|
228
188
|
.card-image .image img {
|
|
229
|
-
border-radius:
|
|
189
|
+
border-radius: var(--radius);
|
|
230
190
|
}
|
|
231
191
|
|
|
232
192
|
.card-content {
|
|
@@ -256,42 +216,11 @@
|
|
|
256
216
|
&.is-reversed {
|
|
257
217
|
.card-image {
|
|
258
218
|
order: 1;
|
|
259
|
-
border-radius: 0;
|
|
260
|
-
|
|
261
|
-
.image {
|
|
262
|
-
img {
|
|
263
|
-
border-bottom-left-radius: $radius;
|
|
264
|
-
border-bottom-right-radius: $radius;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.card-content {
|
|
270
|
-
border-top-left-radius: $radius;
|
|
271
|
-
border-top-right-radius: $radius;
|
|
272
|
-
border-bottom-left-radius: 0;
|
|
273
|
-
border-bottom-right-radius: 0;
|
|
274
219
|
}
|
|
275
220
|
|
|
276
221
|
&.is-horizontal {
|
|
277
222
|
.card-image {
|
|
278
223
|
order: 1;
|
|
279
|
-
|
|
280
|
-
.image {
|
|
281
|
-
img {
|
|
282
|
-
border-top-left-radius: 0;
|
|
283
|
-
border-top-right-radius: $radius;
|
|
284
|
-
border-bottom-left-radius: 0;
|
|
285
|
-
border-bottom-right-radius: $radius;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.card-content {
|
|
291
|
-
border-top-left-radius: $radius;
|
|
292
|
-
border-top-right-radius: 0;
|
|
293
|
-
border-bottom-left-radius: $radius;
|
|
294
|
-
border-bottom-right-radius: 0;
|
|
295
224
|
}
|
|
296
225
|
}
|
|
297
226
|
}
|