@trilogy-ds/styles 0.0.1-beta.14 → 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.
@@ -208,7 +208,10 @@ $alignments: (
208
208
  color: $color-invert !important;
209
209
  }
210
210
  .has-background-#{$brandName} {
211
- background-color: getBGColor($brandName) !important;
211
+ background-color: getColor($name) !important;
212
+ }
213
+ .has-background-#{$brandName}-fade {
214
+ background-color: getBGColor($name) !important;
212
215
  }
213
216
  }
214
217
  }
@@ -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 {
@@ -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.14",
3
+ "version": "0.0.1-beta.16",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [