@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.
@@ -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
- &.is-fullwidth {
89
- width: 100% !important;
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: -30px;
120
- margin: 30px -30px -30px;
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
 
@@ -53,11 +53,11 @@ $button-border-width: 2px !default;
53
53
  }
54
54
 
55
55
  #{$hoverSelector} {
56
- filter: brightness(0.8)
56
+ filter: brightness(0.9)
57
57
  }
58
58
 
59
59
  &:active {
60
- filter: brightness(0.7)
60
+ filter: brightness(0.8)
61
61
  }
62
62
 
63
63
  @each $name, $pair in $btn-colors {
@@ -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-15;
11
- $subtitle-weight: $weight-semibold;
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-15;
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;
@@ -781,7 +781,7 @@
781
781
  }
782
782
 
783
783
  &::-webkit-scrollbar-track {
784
- background-color: getColor('disabled');
784
+ background-color: getBGColor('font');
785
785
  border-radius: $radius;
786
786
  margin: 0 8px;
787
787
  }
@@ -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
  }
@@ -5,5 +5,6 @@
5
5
  @import "derived-variables";
6
6
  @import "mixins";
7
7
  @import "controls";
8
+ @import "background";
8
9
  @import "animations";
9
10
  @import "spacing";
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta.13",
3
+ "version": "0.0.1-beta.16",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [