@trilogy-ds/styles 0.0.1-beta.13 → 0.0.1-beta.16
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/_helpers.scss +6 -0
- package/framework/src/components/_modal.scss +5 -10
- package/framework/src/elements/_box.scss +1 -27
- package/framework/src/elements/_button.scss +2 -2
- package/framework/src/elements/_title.scss +3 -3
- package/framework/src/grid/_columns.scss +1 -1
- package/framework/src/layout/_hero.scss +0 -14
- package/framework/src/utilities/_all.scss +1 -0
- package/framework/src/utilities/_background.scss +20 -0
- package/package.json +1 -1
|
@@ -207,6 +207,12 @@ $alignments: (
|
|
|
207
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
|
|
|
@@ -65,11 +65,6 @@ body:has(.modal.is-active) {
|
|
|
65
65
|
position: static;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// ancien overlay : n'a plus d'utilité mais conservée pour rétrocompatibilité
|
|
69
|
-
.modal-background {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
68
|
.modal-content {
|
|
74
69
|
background-color: getColor('background');
|
|
75
70
|
border-radius: $radius $radius 0 0;
|
|
@@ -85,8 +80,8 @@ body:has(.modal.is-active) {
|
|
|
85
80
|
transition: transform ease-in-out 250ms;
|
|
86
81
|
transform: translateY(100%);
|
|
87
82
|
|
|
88
|
-
|
|
89
|
-
|
|
83
|
+
&:has(.modal-footer) {
|
|
84
|
+
padding-bottom: 0;
|
|
90
85
|
}
|
|
91
86
|
|
|
92
87
|
@include tablet {
|
|
@@ -115,10 +110,10 @@ body:has(.modal.is-active) {
|
|
|
115
110
|
|
|
116
111
|
.modal-footer {
|
|
117
112
|
position: sticky;
|
|
113
|
+
width: 100%;
|
|
118
114
|
background: getColor('background');
|
|
119
|
-
bottom:
|
|
120
|
-
|
|
121
|
-
padding: 20px 30px;
|
|
115
|
+
bottom: 0;
|
|
116
|
+
padding: 16px;
|
|
122
117
|
}
|
|
123
118
|
|
|
124
119
|
// If Close Icon Modal & Title Modal are sibling elements, override margin
|
|
@@ -18,10 +18,9 @@ a.box {
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.box {
|
|
21
|
-
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
|
22
21
|
background-color: getColor('background');
|
|
22
|
+
box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
|
|
23
23
|
border-radius: $radius;
|
|
24
|
-
color: getColor('font');
|
|
25
24
|
display: flex;
|
|
26
25
|
flex-direction: column;
|
|
27
26
|
justify-content: flex-start;
|
|
@@ -36,29 +35,6 @@ a.box {
|
|
|
36
35
|
margin-bottom: 15px;
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
&.has-background {
|
|
40
|
-
background-repeat: no-repeat;
|
|
41
|
-
|
|
42
|
-
&.is-inverted {
|
|
43
|
-
.box-content {
|
|
44
|
-
color: getColor('background');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.title,
|
|
48
|
-
.subtitle,
|
|
49
|
-
.text,
|
|
50
|
-
.paragraph,
|
|
51
|
-
p {
|
|
52
|
-
color: getColor('background');
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.box-content {
|
|
57
|
-
background-color: transparent;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
|
|
62
38
|
&.is-active {
|
|
63
39
|
border: 2px solid getColor('main');
|
|
64
40
|
|
|
@@ -199,8 +175,6 @@ a.box {
|
|
|
199
175
|
}
|
|
200
176
|
|
|
201
177
|
.box-content {
|
|
202
|
-
background-color: getColor('background');
|
|
203
|
-
color: getColor('font');
|
|
204
178
|
margin: -$padding-box;
|
|
205
179
|
padding: $padding-box;
|
|
206
180
|
|
|
@@ -7,13 +7,13 @@ $title-strong-weight: inherit;
|
|
|
7
7
|
$title-sub-size: 0.5em;
|
|
8
8
|
$title-sup-size: 0.5em;
|
|
9
9
|
|
|
10
|
-
$subtitle-size: $text-
|
|
11
|
-
$subtitle-weight: $weight-
|
|
10
|
+
$subtitle-size: $text-16;
|
|
11
|
+
$subtitle-weight: $weight-medium;
|
|
12
12
|
$subtitle-size-tablet: $text-15;
|
|
13
13
|
$subtitle-line-height: 1.2;
|
|
14
14
|
$subtitle-strong-weight: $weight-semibold;
|
|
15
15
|
|
|
16
|
-
$overline-size: $text-
|
|
16
|
+
$overline-size: $text-14;
|
|
17
17
|
$overline-weight: $weight-semibold;
|
|
18
18
|
$overline-line-height: 1.2;
|
|
19
19
|
$overline-size-tablet: $text-15;
|
|
@@ -169,18 +169,4 @@ $overlap-desktop: 30px;
|
|
|
169
169
|
&.is-centered {
|
|
170
170
|
text-align: center;
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
&.is-main {
|
|
174
|
-
color: invertColor('main');
|
|
175
|
-
background-color: getColor('main');
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
&.is-info {
|
|
179
|
-
background: getColor('info');
|
|
180
|
-
color: invertColor('info');
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.subtitle {
|
|
184
|
-
padding-left: 0.2em;
|
|
185
|
-
}
|
|
186
172
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
.is-inverted {
|
|
2
|
+
color: getColor('background');
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.is-inverted .is-base {
|
|
6
|
+
color: getColor('font');
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.has-background {
|
|
10
|
+
background-repeat: no-repeat;
|
|
11
|
+
text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
|
|
12
|
+
|
|
13
|
+
&.is-inverted {
|
|
14
|
+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.box-content {
|
|
18
|
+
background-color: transparent;
|
|
19
|
+
}
|
|
20
|
+
}
|