@trilogy-ds/styles 0.0.1-beta-1
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/framework/src/_all.scss +8 -0
- package/framework/src/base/_all.scss +9 -0
- package/framework/src/base/_color.scss +58 -0
- package/framework/src/base/_elements.scss +34 -0
- package/framework/src/base/_fonts.scss +2 -0
- package/framework/src/base/_generic.scss +68 -0
- package/framework/src/base/_helpers.scss +880 -0
- package/framework/src/base/_loading.scss +102 -0
- package/framework/src/base/_reset.scss +138 -0
- package/framework/src/components/_accordion.scss +178 -0
- package/framework/src/components/_all.scss +30 -0
- package/framework/src/components/_autolayout2.scss +38 -0
- package/framework/src/components/_breadcrumb.scss +45 -0
- package/framework/src/components/_card.scss +298 -0
- package/framework/src/components/_countdown.scss +55 -0
- package/framework/src/components/_disclaimer.scss +84 -0
- package/framework/src/components/_divider.scss +18 -0
- package/framework/src/components/_dropdown.scss +128 -0
- package/framework/src/components/_fab.scss +60 -0
- package/framework/src/components/_level.scss +120 -0
- package/framework/src/components/_media.scss +64 -0
- package/framework/src/components/_menu.scss +213 -0
- package/framework/src/components/_modal.scss +201 -0
- package/framework/src/components/_otp.scss +92 -0
- package/framework/src/components/_pagination.scss +182 -0
- package/framework/src/components/_plus-symbol.scss +32 -0
- package/framework/src/components/_popover.scss +340 -0
- package/framework/src/components/_price.scss +209 -0
- package/framework/src/components/_product-tour.scss +131 -0
- package/framework/src/components/_progress-radial.scss +23 -0
- package/framework/src/components/_range.scss +84 -0
- package/framework/src/components/_scroll-view.scss +19 -0
- package/framework/src/components/_search-modal.scss +197 -0
- package/framework/src/components/_segmented-control.scss +60 -0
- package/framework/src/components/_slices.scss +316 -0
- package/framework/src/components/_slider.scss +92 -0
- package/framework/src/components/_stepper.scss +397 -0
- package/framework/src/components/_switch.scss +209 -0
- package/framework/src/components/_tabs.scss +212 -0
- package/framework/src/components/_timeline.scss +367 -0
- package/framework/src/elements/_alert.scss +91 -0
- package/framework/src/elements/_all.scss +35 -0
- package/framework/src/elements/_badge.scss +81 -0
- package/framework/src/elements/_box.scss +267 -0
- package/framework/src/elements/_button.scss +192 -0
- package/framework/src/elements/_checkbox.scss +39 -0
- package/framework/src/elements/_checkradio.scss +173 -0
- package/framework/src/elements/_chips.scss +100 -0
- package/framework/src/elements/_container.scss +108 -0
- package/framework/src/elements/_dot.scss +6 -0
- package/framework/src/elements/_entry.scss +109 -0
- package/framework/src/elements/_form.scss +593 -0
- package/framework/src/elements/_icon.scss +384 -0
- package/framework/src/elements/_image.scss +59 -0
- package/framework/src/elements/_input-gauge.scss +37 -0
- package/framework/src/elements/_input-icons.scss +41 -0
- package/framework/src/elements/_link.scss +79 -0
- package/framework/src/elements/_list.scss +61 -0
- package/framework/src/elements/_loader.scss +126 -0
- package/framework/src/elements/_notification.scss +151 -0
- package/framework/src/elements/_options.scss +146 -0
- package/framework/src/elements/_other.scss +44 -0
- package/framework/src/elements/_paragraph.scss +101 -0
- package/framework/src/elements/_progress.scss +212 -0
- package/framework/src/elements/_radio.scss +67 -0
- package/framework/src/elements/_select.scss +315 -0
- package/framework/src/elements/_sticker.scss +151 -0
- package/framework/src/elements/_switch.scss +108 -0
- package/framework/src/elements/_table.scss +298 -0
- package/framework/src/elements/_tag.scss +131 -0
- package/framework/src/elements/_textarea.scss +125 -0
- package/framework/src/elements/_timeline.scss +283 -0
- package/framework/src/elements/_title.scss +139 -0
- package/framework/src/elements/_toaster.scss +128 -0
- package/framework/src/grid/_all.scss +3 -0
- package/framework/src/grid/_columns.scss +952 -0
- package/framework/src/grid/_rows.scss +47 -0
- package/framework/src/grid/_tiles.scss +78 -0
- package/framework/src/layout/_all.scss +6 -0
- package/framework/src/layout/_hero.scss +268 -0
- package/framework/src/layout/_main.scss +36 -0
- package/framework/src/layout/_section.scss +65 -0
- package/framework/src/layout/_toolbar.scss +100 -0
- package/framework/src/trilogy-core.scss +16 -0
- package/framework/src/trilogy-mangled.scss +14 -0
- package/framework/src/trilogy-namespaced.scss +14 -0
- package/framework/src/trilogy.scss +8 -0
- package/framework/src/utilities/_all.scss +9 -0
- package/framework/src/utilities/_animations.scss +71 -0
- package/framework/src/utilities/_controls.scss +67 -0
- package/framework/src/utilities/_derived-variables.scss +104 -0
- package/framework/src/utilities/_functions.scss +94 -0
- package/framework/src/utilities/_initial-variables.scss +150 -0
- package/framework/src/utilities/_mixins.scss +745 -0
- package/framework/src/utilities/_post.scss +6 -0
- package/framework/src/utilities/_pre.scss +5 -0
- package/framework/src/utilities/_spacing.scss +10 -0
- package/framework/src/utilities/_tools.scss +3 -0
- package/package.json +22 -0
- package/themes/default/src/_all.scss +1 -0
- package/themes/default/src/assets.scss +11 -0
- package/themes/default/src/utilities/_all.scss +0 -0
- package/themes/default/src/utilities/_post.scss +0 -0
- package/themes/default/src/utilities/_pre.scss +3 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
$loader-item-width: 60px;
|
|
2
|
+
$loader-item-height: 30px;
|
|
3
|
+
$loader-items-lateral-offset: -25px;
|
|
4
|
+
$loader-items-bottom-offset: -40px;
|
|
5
|
+
|
|
6
|
+
.loader {
|
|
7
|
+
width: $loader-item-width;
|
|
8
|
+
height: $loader-item-height;
|
|
9
|
+
background-color: transparent;
|
|
10
|
+
position: relative;
|
|
11
|
+
|
|
12
|
+
&::after,
|
|
13
|
+
&::before,
|
|
14
|
+
.loader-body {
|
|
15
|
+
content: '';
|
|
16
|
+
display: block;
|
|
17
|
+
width: $loader-item-width;
|
|
18
|
+
height: $loader-item-height;
|
|
19
|
+
border-radius: 50%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.loader-body {
|
|
23
|
+
visibility: hidden;
|
|
24
|
+
background-color: getColor('alternate');
|
|
25
|
+
animation: 2.5s linear 0s forwards infinite top_item;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&::after,
|
|
29
|
+
&::before {
|
|
30
|
+
position: absolute;
|
|
31
|
+
bottom: $loader-items-bottom-offset;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&::before {
|
|
35
|
+
width: 20px;
|
|
36
|
+
height: 20px;
|
|
37
|
+
left: calc(50% - 10px);
|
|
38
|
+
z-index: zindex('small');
|
|
39
|
+
background-color: getColor('font');
|
|
40
|
+
animation: 2.5s linear 0s forwards infinite left_item;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&::after {
|
|
44
|
+
width: 20px;
|
|
45
|
+
height: 20px;
|
|
46
|
+
right: calc(50% - 20px);
|
|
47
|
+
background-color: getColor('main');
|
|
48
|
+
animation: 2.5s linear 0s forwards infinite right_item;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes top_item {
|
|
52
|
+
0% {
|
|
53
|
+
visibility: visible;
|
|
54
|
+
transform: scale(0, 0);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
50% {
|
|
58
|
+
visibility: visible;
|
|
59
|
+
transform: scale(1, 0);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
65%,
|
|
63
|
+
100% {
|
|
64
|
+
visibility: visible;
|
|
65
|
+
transform: scale(1);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@keyframes left_item {
|
|
70
|
+
0% {
|
|
71
|
+
transform: rotate(55deg) scale(1);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
45% {
|
|
75
|
+
width: $loader-item-width;
|
|
76
|
+
height: $loader-item-height;
|
|
77
|
+
transform: rotate(55deg) scale(1);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
50%,
|
|
81
|
+
54% {
|
|
82
|
+
transform: rotate(55deg) scale(1.5);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
60% {
|
|
86
|
+
transform: rotate(55deg) scale(1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
65%,
|
|
90
|
+
100% {
|
|
91
|
+
transform: rotate(55deg) scale(1);
|
|
92
|
+
width: $loader-item-width;
|
|
93
|
+
height: $loader-item-height;
|
|
94
|
+
left: $loader-items-lateral-offset;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
@keyframes right_item {
|
|
99
|
+
0% {
|
|
100
|
+
transform: rotate(-55deg) scale(1);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
45% {
|
|
104
|
+
width: $loader-item-width;
|
|
105
|
+
height: $loader-item-height;
|
|
106
|
+
transform: rotate(-55deg) scale(1);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
50%,
|
|
110
|
+
54% {
|
|
111
|
+
transform: rotate(-55deg) scale(1.5);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
60% {
|
|
115
|
+
transform: rotate(-55deg) scale(1);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
65%,
|
|
119
|
+
100% {
|
|
120
|
+
transform: rotate(-55deg) scale(1);
|
|
121
|
+
width: $loader-item-width;
|
|
122
|
+
height: $loader-item-height;
|
|
123
|
+
right: $loader-items-lateral-offset;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
.notification {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
transition: box-shadow $animation-duration;
|
|
4
|
+
|
|
5
|
+
&:hover,
|
|
6
|
+
&:active,
|
|
7
|
+
&:focus {
|
|
8
|
+
box-shadow: $shadow;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.icon,
|
|
12
|
+
.call-to-action {
|
|
13
|
+
color: getColor('font');
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@include apply-shadow-box();
|
|
17
|
+
|
|
18
|
+
padding: 2em 2em;
|
|
19
|
+
background-color: getColor('background');
|
|
20
|
+
border-radius: $radius;
|
|
21
|
+
margin-bottom: 20px;
|
|
22
|
+
position: relative;
|
|
23
|
+
|
|
24
|
+
@include mobile {
|
|
25
|
+
flex-wrap: wrap;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
pre code {
|
|
29
|
+
background: transparent;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
& > .delete {
|
|
33
|
+
position: absolute;
|
|
34
|
+
right: 5px;
|
|
35
|
+
top: 5px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.call-to-action .button {
|
|
39
|
+
background-color: getColor('main');
|
|
40
|
+
border-color: getColor('main');
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@each $name in $colors-brand-funcionnal {
|
|
44
|
+
$brandName: getColorBrandName($name);
|
|
45
|
+
$color: getColor($name);
|
|
46
|
+
$color-invert: invertColor($name);
|
|
47
|
+
|
|
48
|
+
&.is-#{$brandName} {
|
|
49
|
+
.icon, .title {
|
|
50
|
+
color: $color;
|
|
51
|
+
}
|
|
52
|
+
.call-to-action .button {
|
|
53
|
+
color: $color-invert;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&.is-banner {
|
|
59
|
+
@include desktop {
|
|
60
|
+
padding-left: 150px;
|
|
61
|
+
padding-right: 150px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
box-shadow: none;
|
|
65
|
+
border-radius: 0;
|
|
66
|
+
padding: $spacing-4;
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:not(.has-description) > .icon {
|
|
71
|
+
align-self: center;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&.has-description {
|
|
75
|
+
@include mobile {
|
|
76
|
+
justify-content: center;
|
|
77
|
+
text-align: center;
|
|
78
|
+
|
|
79
|
+
.icon {
|
|
80
|
+
padding: 0;
|
|
81
|
+
margin-bottom: 30px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.body {
|
|
85
|
+
flex: 0 1 auto;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&.has-body {
|
|
91
|
+
display: flex;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
> .icon {
|
|
95
|
+
flex: none;
|
|
96
|
+
align-self: flex-start;
|
|
97
|
+
padding-right: 27px;
|
|
98
|
+
font-size: 32px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
> .body {
|
|
102
|
+
align-self: center;
|
|
103
|
+
color: getColor('font');
|
|
104
|
+
margin-bottom: 0;
|
|
105
|
+
flex-grow: 1;
|
|
106
|
+
padding: 1px; /* Fixes flex behavior on Safari mobile */
|
|
107
|
+
|
|
108
|
+
@include mobile {
|
|
109
|
+
flex: 1;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
> .call-to-action {
|
|
114
|
+
padding-left: 4em;
|
|
115
|
+
align-self: center;
|
|
116
|
+
flex: none;
|
|
117
|
+
|
|
118
|
+
@include mobile {
|
|
119
|
+
flex: 0 1 100%;
|
|
120
|
+
margin-top: 20px;
|
|
121
|
+
padding-left: 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
&.is-small {
|
|
126
|
+
box-shadow: none;
|
|
127
|
+
padding: 14px;
|
|
128
|
+
|
|
129
|
+
> .icon {
|
|
130
|
+
padding-right: 10px;
|
|
131
|
+
width: 40px;
|
|
132
|
+
font-size: 20px;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.title,
|
|
136
|
+
.text,
|
|
137
|
+
.paragraph {
|
|
138
|
+
font-size: $text-14 !important;
|
|
139
|
+
text-align: left;
|
|
140
|
+
}
|
|
141
|
+
color: getColor('font');
|
|
142
|
+
|
|
143
|
+
@each $name, $pair in $colors-feedback {
|
|
144
|
+
$bg-color: nth($pair, 1);
|
|
145
|
+
&.is-#{$name} {
|
|
146
|
+
background-color: getColor($bg-color);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
}
|
|
151
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
.options {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-wrap: wrap;
|
|
4
|
+
align-items: center;
|
|
5
|
+
|
|
6
|
+
@include desktop {
|
|
7
|
+
flex-wrap: nowrap;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.field {
|
|
11
|
+
margin: 15px 20px 15px 0;
|
|
12
|
+
min-width: 70px;
|
|
13
|
+
|
|
14
|
+
&:last-child {
|
|
15
|
+
margin: 15px 0 15px 0;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
input[type=radio] {
|
|
19
|
+
@include checkradio;
|
|
20
|
+
|
|
21
|
+
+ label {
|
|
22
|
+
border: 1px solid currentColor;
|
|
23
|
+
border-radius: $radius-small;
|
|
24
|
+
color: getColor('font');
|
|
25
|
+
font-weight: $weight-medium;
|
|
26
|
+
padding: 6px 15px;
|
|
27
|
+
|
|
28
|
+
&::before {
|
|
29
|
+
border-radius: 100%;
|
|
30
|
+
border-width: 2px;
|
|
31
|
+
border-color: currentColor;
|
|
32
|
+
min-width: 12px;
|
|
33
|
+
min-height: 12px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&:checked + label {
|
|
38
|
+
color: getColor('alternate');
|
|
39
|
+
border-color: currentColor;
|
|
40
|
+
border-width: 2px;
|
|
41
|
+
|
|
42
|
+
&::before {
|
|
43
|
+
content: "";
|
|
44
|
+
mask-image: url('./assets/icons/all/check.svg');
|
|
45
|
+
background-color: getColor('alternate');
|
|
46
|
+
border-width: 0;
|
|
47
|
+
width: 20px;
|
|
48
|
+
height: 20px;
|
|
49
|
+
margin: 0 6px 0 -4px;
|
|
50
|
+
mask-size: 20px;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&[disabled] + label {
|
|
55
|
+
cursor: not-allowed;
|
|
56
|
+
color: getColor('grey');
|
|
57
|
+
border-color: currentColor;
|
|
58
|
+
|
|
59
|
+
&::before {
|
|
60
|
+
border-color: currentColor;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&.has-icon {
|
|
66
|
+
input[type=radio] {
|
|
67
|
+
+ label {
|
|
68
|
+
padding-right: 45px;
|
|
69
|
+
|
|
70
|
+
.icon {
|
|
71
|
+
position: absolute;
|
|
72
|
+
right: 15px;
|
|
73
|
+
top: 50%;
|
|
74
|
+
transform: translateY(-50%);
|
|
75
|
+
height: 20px;
|
|
76
|
+
width: 20px;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&:checked + label {
|
|
81
|
+
.icon {
|
|
82
|
+
color: getColor('alternate');
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&[disabled] + label {
|
|
87
|
+
.icon {
|
|
88
|
+
color: getColor('grey');
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&.is-multiline {
|
|
95
|
+
min-width: 120px;
|
|
96
|
+
|
|
97
|
+
input[type=radio] {
|
|
98
|
+
+ label {
|
|
99
|
+
padding-top: 55px;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
|
|
103
|
+
&::before {
|
|
104
|
+
position: absolute;
|
|
105
|
+
top: 15px;
|
|
106
|
+
left: 15px;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&.is-descriptive > span:not(.icon) {
|
|
110
|
+
font-size: $text-12;
|
|
111
|
+
font-weight: $weight-medium;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.icon {
|
|
115
|
+
position: absolute;
|
|
116
|
+
top: 0;
|
|
117
|
+
font-size:30px;
|
|
118
|
+
width:100%;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&:checked + label {
|
|
123
|
+
color: getColor('alternate');
|
|
124
|
+
|
|
125
|
+
&::before {
|
|
126
|
+
margin-top: -5px;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&[disabled] + label {
|
|
132
|
+
color: getColor('grey');
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&.is-inverted {
|
|
139
|
+
input[type=radio]:checked {
|
|
140
|
+
+ label {
|
|
141
|
+
border-color: getColor('font');
|
|
142
|
+
color: getColor('font');
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
.block {
|
|
2
|
+
@include block;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.delete {
|
|
6
|
+
@include delete;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.heading {
|
|
10
|
+
display: block;
|
|
11
|
+
font-size: 11px;
|
|
12
|
+
letter-spacing: 1px;
|
|
13
|
+
margin-bottom: 5px;
|
|
14
|
+
text-transform: uppercase;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.highlight {
|
|
18
|
+
@include block;
|
|
19
|
+
|
|
20
|
+
font-weight: $weight-normal;
|
|
21
|
+
max-width: 100%;
|
|
22
|
+
overflow: hidden;
|
|
23
|
+
padding: 0;
|
|
24
|
+
|
|
25
|
+
pre {
|
|
26
|
+
overflow: auto;
|
|
27
|
+
max-width: 100%;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.number {
|
|
32
|
+
align-items: center;
|
|
33
|
+
background-color: getColor('grey-light');
|
|
34
|
+
border-radius: $radius-rounded;
|
|
35
|
+
display: inline-flex;
|
|
36
|
+
font-size: $size-medium;
|
|
37
|
+
height: 2em;
|
|
38
|
+
justify-content: center;
|
|
39
|
+
margin-right: 15px;
|
|
40
|
+
min-width: 2.5em;
|
|
41
|
+
padding: 2.5px 5px;
|
|
42
|
+
text-align: center;
|
|
43
|
+
vertical-align: top;
|
|
44
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
$text-levels: (
|
|
2
|
+
($text-16, $text-20, $text-16),
|
|
3
|
+
($text-14, $text-18, $text-16),
|
|
4
|
+
($text-12, $text-15, $text-16),
|
|
5
|
+
($text-10, $text-12, $text-16)
|
|
6
|
+
);
|
|
7
|
+
$text-levels-mobile: (
|
|
8
|
+
($text-16, $text-20, $text-8),
|
|
9
|
+
($text-14, $text-18, $text-8),
|
|
10
|
+
($text-12, $text-15, $text-8),
|
|
11
|
+
($text-10, $text-12, $text-8)
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
.paragraph {
|
|
16
|
+
&.text {
|
|
17
|
+
@each $text-level in $text-levels {
|
|
18
|
+
$i: index($text-levels, $text-level);
|
|
19
|
+
$font-size: nth($text-level, 1);
|
|
20
|
+
$line-height: nth($text-level, 2);
|
|
21
|
+
$margin-bottom: nth($text-level, 3);
|
|
22
|
+
|
|
23
|
+
&.is-level-#{$i} {
|
|
24
|
+
font-size: $font-size;
|
|
25
|
+
line-height: $line-height;
|
|
26
|
+
font-family: $family-primary;
|
|
27
|
+
margin-bottom: $margin-bottom;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&.is-inverted {
|
|
31
|
+
color: getColor('background');
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
@include mobile {
|
|
36
|
+
@each $text-level-mobile in $text-levels-mobile {
|
|
37
|
+
$i: index($text-levels-mobile, $text-level-mobile);
|
|
38
|
+
$margin-bottom: nth($text-level-mobile, 3);
|
|
39
|
+
|
|
40
|
+
&.is-level-#{$i} {
|
|
41
|
+
margin-bottom: $margin-bottom;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&.is-wrapped {
|
|
47
|
+
word-break: break-word;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.bold {
|
|
51
|
+
font-weight: $weight-bold;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
.paragraph,
|
|
58
|
+
.text {
|
|
59
|
+
& a.link:not([disabled]),
|
|
60
|
+
a {
|
|
61
|
+
padding: $spacing-1;
|
|
62
|
+
margin: -4px;
|
|
63
|
+
text-decoration: underline;
|
|
64
|
+
font-size: unset;
|
|
65
|
+
font-weight: $weight-medium;
|
|
66
|
+
|
|
67
|
+
&::after {
|
|
68
|
+
content: none;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.is-static::after {
|
|
72
|
+
margin-bottom: 0;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.paragraph:not(:last-child) {
|
|
78
|
+
margin-bottom: 10px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.span {
|
|
82
|
+
font-style: inherit;
|
|
83
|
+
font-weight: inherit;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.strong {
|
|
87
|
+
color: inherit;
|
|
88
|
+
font-weight: $weight-bold;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.sup {
|
|
92
|
+
line-height: 0;
|
|
93
|
+
position: relative;
|
|
94
|
+
vertical-align: baseline;
|
|
95
|
+
top: -0.4em;
|
|
96
|
+
font-size: 0.7em;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.small {
|
|
100
|
+
font-size: 0.875em;
|
|
101
|
+
}
|