@trilogy-ds/styles 0.0.1-beta-73 → 0.0.1-beta-75

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.
Files changed (43) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/base/_color.scss +13 -13
  5. package/framework/src/base/_generic.scss +1 -1
  6. package/framework/src/base/_helpers.scss +3 -3
  7. package/framework/src/components/_all.scss +0 -1
  8. package/framework/src/components/_card.scss +1 -1
  9. package/framework/src/components/_divider.scss +1 -1
  10. package/framework/src/components/_fab.scss +10 -2
  11. package/framework/src/components/_modal.scss +1 -1
  12. package/framework/src/components/_pagination.scss +6 -3
  13. package/framework/src/components/_plus-symbol.scss +1 -1
  14. package/framework/src/components/_price.scss +2 -2
  15. package/framework/src/components/_segmented-control.scss +2 -2
  16. package/framework/src/components/_stepper.scss +2 -2
  17. package/framework/src/components/_timeline.scss +9 -12
  18. package/framework/src/elements/_alert.scss +1 -1
  19. package/framework/src/elements/_all.scss +0 -1
  20. package/framework/src/elements/_autocomplete.scss +3 -3
  21. package/framework/src/elements/_box.scss +1 -1
  22. package/framework/src/elements/_button.scss +2 -2
  23. package/framework/src/elements/_chips.scss +1 -1
  24. package/framework/src/elements/_form.scss +4 -4
  25. package/framework/src/elements/_other.scss +0 -37
  26. package/framework/src/elements/_progress.scss +3 -3
  27. package/framework/src/elements/_switch.scss +4 -4
  28. package/framework/src/elements/_table.scss +10 -10
  29. package/framework/src/elements/_tag.scss +3 -3
  30. package/framework/src/elements/_toaster.scss +2 -2
  31. package/framework/src/grid/_columns.scss +1 -1
  32. package/framework/src/layout/_section.scss +0 -17
  33. package/framework/src/theming/buttons_partial.scss +1 -1
  34. package/framework/src/theming/common_partials.scss +1 -1
  35. package/framework/src/utilities/_all.scss +1 -1
  36. package/framework/src/utilities/_background.scss +2 -2
  37. package/framework/src/utilities/_colors.scss +23 -0
  38. package/framework/src/utilities/_initial-variables.scss +1 -29
  39. package/framework/src/utilities/_mixins.scss +13 -6
  40. package/package.json +1 -1
  41. package/framework/src/components/_level.scss +0 -120
  42. package/framework/src/components/_media.scss +0 -64
  43. package/framework/src/elements/_dot.scss +0 -6
@@ -4,6 +4,6 @@
4
4
  --radius: 8px;
5
5
  --radius-small: 4px;
6
6
  --radius-large: 16px;
7
- --border: 1px solid #{getBGColor('font')};
7
+ --border: 1px solid #{getFadeColor('font')};
8
8
  --border-active: 2px solid #{getColor('main')};
9
9
  }
@@ -7,6 +7,6 @@
7
7
  @import '../theming/buttons_partial';
8
8
  @import "mixins";
9
9
  @import "controls";
10
- @import "background";
10
+ //@import "background";
11
11
  @import "animations";
12
12
  @import "spacing";
@@ -1,5 +1,5 @@
1
1
  .is-inverted {
2
- color: getColor('background');
2
+ color: #{getColor('background')};
3
3
  }
4
4
 
5
5
  .is-inverted .is-base {
@@ -8,7 +8,7 @@
8
8
 
9
9
  .has-background {
10
10
  background-repeat: no-repeat;
11
-
11
+
12
12
  .box-content {
13
13
  background-color: transparent;
14
14
  }
@@ -0,0 +1,23 @@
1
+ $suffix: '';
2
+
3
+ /*
4
+ All color variables are defined here
5
+ @string slug name used in classname (You can use your brand name)
6
+ @color A valid css color value
7
+ @invert The slug name of the best inverted color
8
+ @hover A valid css color value (a variant color for the hover case)
9
+ @visited A valid css color value (a variant color for the pressed case) -- optional
10
+ @background A valid css color value (a variant color for background) -- optional
11
+ */
12
+ $colors: (
13
+ 'background': [#fff, #E9E9E9, 'white', 'main'],
14
+ 'main':[ #3d5d7e, #eff2f8, 'main', 'white'],
15
+ 'alternate':[ #da641b, #bb5118,'accent', 'white'],
16
+ 'font':[ #3d5d7e, #BBC6CD, 'main', 'white'],
17
+ 'success':[ #007B52, #cae8ca,'success', 'white'],
18
+ 'info':[ #1A688A, #c8dbec, 'info','white'],
19
+ 'warning':[ #FFBB33, #ecdbc6,'warning', 'white'],
20
+ 'error':[ #D42D02,#eecccc,'error', 'white'],
21
+ 'disabled':[ #646464, #D1D1D1,'disabled', 'white'],
22
+ 'neutral':[ #707070, #F4F4F4,'grey', 'white' ],
23
+ ) !default;
@@ -1,33 +1,5 @@
1
1
  @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
2
-
3
- $suffix: '';
4
-
5
- /*
6
- All color variables are defined here
7
- @string slug name used in classname (You can use your brand name)
8
- @color A valid css color value
9
- @invert The slug name of the best inverted color
10
- @hover A valid css color value (a variant color for the hover case)
11
- @visited A valid css color value (a variant color for the pressed case) -- optional
12
- @background A valid css color value (a variant color for background) -- optional
13
- */
14
- $colors: (
15
- 'background': ['white', #fff, 'main', #E9E9E9],
16
- 'main':['main', #3d5d7e, 'white', #eff2f8],
17
- 'alternate':['accent', #da641b, 'white', #bb5118],
18
- 'font':['main', #3d5d7e, 'white', #BBC6CD],
19
- 'success':['success', #007B52, 'white', #cae8ca],
20
- 'info':['info', #1A688A, 'white', #c8dbec],
21
- 'warning':['warning', #FFBB33, 'white', #ecdbc6],
22
- 'error':['error', #D42D02, 'white',#eecccc],
23
- /* Grey disabled // BG : bg-disabled */
24
- 'disabled':['disabled', #646464, 'white', #D1D1D1],
25
- 'hovered': ['hovered', #24374a, 'font',#e4eaed],
26
- /* grey , BG : grey-lighter */
27
- 'neutral':['grey', #707070, 'white', #F4F4F4 ],
28
- /* grey dark , BG : grey-light */
29
- 'neutral-dark':['grey-dark', #646464, 'white', #E9E9E9 ]
30
- ) !default;
2
+ @import "colors";
31
3
 
32
4
  $hoverSelector: "&:hover:not([disabled]):not([aria-disabled=true])";
33
5
 
@@ -147,7 +147,7 @@
147
147
 
148
148
  @mixin spinner {
149
149
  animation: spinAround 500ms infinite linear;
150
- border: 2px solid getBGColor('neutral-dark');
150
+ border: 2px solid getFadeColor('neutral');
151
151
  border-radius: 290486px;
152
152
  border-right-color: transparent;
153
153
  border-top-color: transparent;
@@ -365,7 +365,7 @@
365
365
  @include control;
366
366
  height: 56px;
367
367
  background-color: getColor('background');
368
- border-color: getBGColor('font');
368
+ border-color: getFadeColor('font');
369
369
  color: getColor('font');
370
370
 
371
371
  @include placeholder {
@@ -419,7 +419,7 @@
419
419
  &:disabled:checked {
420
420
  & ~ label.#{$type}-label {
421
421
  &:after {
422
- background-color: getBGColor('disabled');
422
+ background-color: getFadeColor('disabled');
423
423
  }
424
424
  }
425
425
  }
@@ -606,7 +606,15 @@
606
606
  }
607
607
 
608
608
  @mixin hoverRules {
609
- background-color: var(--color-bg-hovered);
609
+ background-color: getFadeColor('neutral');
610
+ }
611
+
612
+ @mixin hoverRulesOnOdd {
613
+ background: linear-gradient(
614
+ to top,
615
+ rgba(0, 0, 0, 0.25),
616
+ rgba(0, 0, 0, 0.25)
617
+ ) getFadeColor('neutral');
610
618
  }
611
619
 
612
620
  @mixin hover {
@@ -618,7 +626,6 @@
618
626
  }
619
627
  }
620
628
 
621
-
622
629
  @mixin disabledRulesWithoutBG {
623
630
  border-color: transparent !important;
624
631
  box-shadow: none !important;
@@ -628,6 +635,6 @@
628
635
  }
629
636
 
630
637
  @mixin disabledRules {
631
- background-color: getBGColor('disabled') !important;
638
+ background-color: getFadeColor('disabled') !important;
632
639
  @include disabledRulesWithoutBG;
633
640
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta-73",
3
+ "version": "0.0.1-beta-75",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [
@@ -1,120 +0,0 @@
1
- .level {
2
- @include block;
3
-
4
- align-items: center;
5
- justify-content: space-between;
6
-
7
- code {
8
- border-radius: var(--radius);
9
- }
10
-
11
- img {
12
- display: inline-block;
13
- vertical-align: top;
14
- }
15
-
16
- // Modifiers
17
- &.is-mobile {
18
- display: flex;
19
-
20
- .level-left,
21
- .level-right {
22
- display: flex;
23
- }
24
-
25
- .level-left + .level-right {
26
- margin-top: 0;
27
- }
28
-
29
- .level-item {
30
- margin-right: 7.4px;
31
-
32
- &:not(:last-child) {
33
- margin-bottom: 0;
34
- }
35
-
36
- &:not(.is-narrow) {
37
- flex-grow: 1;
38
- }
39
- }
40
- }
41
-
42
- // Responsiveness
43
- @include tablet {
44
- display: flex;
45
-
46
- & > .level-item {
47
- &:not(.is-narrow) {
48
- flex-grow: 1;
49
- }
50
- }
51
- }
52
- }
53
-
54
- .level-item {
55
- align-items: center;
56
- display: flex;
57
- flex-basis: auto;
58
- flex-grow: 0;
59
- flex-shrink: 0;
60
- justify-content: center;
61
-
62
- .title,
63
- .subtitle {
64
- margin-bottom: 0;
65
- }
66
-
67
- // Responsiveness
68
- @include mobile {
69
- &:not(:last-child) {
70
- margin-bottom: 7.5px;
71
- }
72
- }
73
- }
74
-
75
- .level-left,
76
- .level-right {
77
- flex-basis: auto;
78
- flex-grow: 0;
79
- flex-shrink: 0;
80
-
81
- .level-item {
82
- // Modifiers
83
- &.is-flexible {
84
- flex-grow: 1;
85
- }
86
-
87
- // Responsiveness
88
- @include tablet {
89
- &:not(:last-child) {
90
- margin-right: 7.5px;
91
- }
92
- }
93
- }
94
- }
95
-
96
- .level-left {
97
- align-items: center;
98
- justify-content: flex-start;
99
-
100
- // Responsiveness
101
- @include mobile {
102
- & + .level-right {
103
- margin-top: 15px;
104
- }
105
- }
106
-
107
- @include tablet {
108
- display: flex;
109
- }
110
- }
111
-
112
- .level-right {
113
- align-items: center;
114
- justify-content: flex-end;
115
-
116
- // Responsiveness
117
- @include tablet {
118
- display: flex;
119
- }
120
- }
@@ -1,64 +0,0 @@
1
- .media {
2
- align-items: flex-start;
3
- display: flex;
4
- text-align: left;
5
-
6
- .content:not(:last-child) {
7
- margin-bottom: 7.5px;
8
- }
9
-
10
- .media {
11
- border-top: 1px solid getBGColor('neutral');
12
- display: flex;
13
- padding-top: 7.5px;
14
-
15
- .content:not(:last-child),
16
- .control:not(:last-child) {
17
- margin-bottom: 5px;
18
- }
19
-
20
- .media {
21
- padding-top: 5px;
22
-
23
- & + .media {
24
- margin-top: 5px;
25
- }
26
- }
27
- }
28
-
29
- & + .media {
30
- border-top: 1px solid getBGColor('neutral');
31
- margin-top: 10px;
32
- padding-top: 10px;
33
- }
34
-
35
- // Sizes
36
- &.is-large {
37
- & + .media {
38
- margin-top: 15px;
39
- padding-top: 15px;
40
- }
41
- }
42
- }
43
-
44
- .media-left,
45
- .media-right {
46
- flex-basis: auto;
47
- flex-grow: 0;
48
- flex-shrink: 0;
49
- }
50
-
51
- .media-left {
52
- margin-right: 10px;
53
- }
54
-
55
- .media-right {
56
- margin-left: 10px;
57
- }
58
-
59
- .media-content {
60
- flex-basis: auto;
61
- flex-grow: 1;
62
- flex-shrink: 1;
63
- text-align: left;
64
- }
@@ -1,6 +0,0 @@
1
- .dot {
2
- display: inline-block;
3
- width: 10px;
4
- height: 10px;
5
- border-radius: 9999px;
6
- }