@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50

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 (87) hide show
  1. package/README.md +47 -0
  2. package/dist/default/trilogy-mangled.css +1 -1
  3. package/dist/default/trilogy-partials.css +1 -1
  4. package/dist/default/trilogy.css +1 -1
  5. package/framework/src/base/_color.scss +14 -36
  6. package/framework/src/base/_generic.scss +4 -1
  7. package/framework/src/base/_helpers.scss +20 -37
  8. package/framework/src/base/_loading.scss +8 -1
  9. package/framework/src/base/_reset.scss +8 -3
  10. package/framework/src/components/_accordion.scss +40 -86
  11. package/framework/src/components/_all.scss +0 -6
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +7 -78
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_fab.scss +12 -26
  17. package/framework/src/components/_level.scss +1 -1
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +167 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +104 -133
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +255 -255
  24. package/framework/src/components/_price.scss +196 -166
  25. package/framework/src/components/_product-tour.scss +2 -4
  26. package/framework/src/components/_range.scss +73 -72
  27. package/framework/src/components/_segmented-control.scss +37 -51
  28. package/framework/src/components/_stepper.scss +18 -142
  29. package/framework/src/components/_tabs.scss +32 -59
  30. package/framework/src/components/_timeline.scss +52 -45
  31. package/framework/src/elements/_alert.scss +5 -8
  32. package/framework/src/elements/_all.scss +1 -3
  33. package/framework/src/elements/_autocomplete.scss +32 -0
  34. package/framework/src/elements/_badge.scss +54 -59
  35. package/framework/src/elements/_box.scss +8 -115
  36. package/framework/src/elements/_button.scss +15 -133
  37. package/framework/src/elements/_checkbox.scss +21 -27
  38. package/framework/src/elements/_chips.scss +74 -83
  39. package/framework/src/elements/_dot.scss +1 -1
  40. package/framework/src/elements/_entry.scss +76 -88
  41. package/framework/src/elements/_form.scss +17 -15
  42. package/framework/src/elements/_icon.scss +3 -3
  43. package/framework/src/elements/_input-gauge.scss +32 -33
  44. package/framework/src/elements/_input-icons.scss +33 -31
  45. package/framework/src/elements/_link.scss +38 -65
  46. package/framework/src/elements/_list.scss +38 -46
  47. package/framework/src/elements/_loader.scss +1 -1
  48. package/framework/src/elements/_other.scss +2 -2
  49. package/framework/src/elements/_paragraph.scss +4 -26
  50. package/framework/src/elements/_progress.scss +12 -21
  51. package/framework/src/elements/_radio.scss +2 -2
  52. package/framework/src/elements/_select.scss +84 -301
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +85 -88
  55. package/framework/src/elements/_table.scss +173 -226
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +95 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +3 -4
  60. package/framework/src/grid/_columns.scss +5 -5
  61. package/framework/src/layout/_all.scss +0 -1
  62. package/framework/src/layout/_hero.scss +109 -207
  63. package/framework/src/layout/_section.scss +7 -14
  64. package/framework/src/theming/_all.scss +3 -0
  65. package/framework/src/theming/buttons_partial.scss +30 -0
  66. package/framework/src/theming/common_partials.scss +9 -0
  67. package/framework/src/theming/links_partial.scss +20 -0
  68. package/framework/src/utilities/_all.scss +3 -0
  69. package/framework/src/utilities/_background.scss +15 -0
  70. package/framework/src/utilities/_controls.scss +37 -48
  71. package/framework/src/utilities/_derived-variables.scss +3 -14
  72. package/framework/src/utilities/_initial-variables.scss +22 -26
  73. package/framework/src/utilities/_mixins.scss +481 -593
  74. package/framework/src/utilities/_pre.scss +1 -0
  75. package/package.json +3 -2
  76. package/framework/src/components/_disclaimer.scss +0 -84
  77. package/framework/src/components/_dropdown.scss +0 -128
  78. package/framework/src/components/_menu.scss +0 -213
  79. package/framework/src/components/_search-modal.scss +0 -197
  80. package/framework/src/components/_slices.scss +0 -316
  81. package/framework/src/components/_slider.scss +0 -92
  82. package/framework/src/components/_switch.scss +0 -209
  83. package/framework/src/elements/_checkradio.scss +0 -173
  84. package/framework/src/elements/_notification.scss +0 -151
  85. package/framework/src/elements/_options.scss +0 -146
  86. package/framework/src/elements/_timeline.scss +0 -283
  87. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,79 +1,52 @@
1
- .link:not([disabled]) {
2
- position: relative;
3
- font-size: 14px;
4
- font-weight: $weight-medium;
5
- color: getColor('alternate');
6
- box-decoration-break: clone;
7
- padding: $spacing-2;
8
- margin: -8px;
9
- text-decoration: underline;
10
- cursor: pointer;
1
+ .link {
2
+ [disabled] {
3
+ @include disabledRulesWithoutBG;
4
+ }
5
+ }
11
6
 
12
- &:not(p .link) {
13
- text-decoration-line: underline;
14
- text-decoration-style: solid;
15
- text-decoration-thickness: 2px;
16
- text-underline-offset: 4px;
17
- }
7
+ .link:not([disabled]) {
8
+ @extend %link-states;
18
9
 
19
- &:hover {
20
- filter: brightness(70%);
21
- }
10
+ position: relative;
11
+ font-weight: $weight-normal;
12
+ color: getColor($link-colors);
13
+ box-decoration-break: clone;
14
+ text-decoration: underline 2px solid;
15
+ text-underline-offset: 4px;
16
+ cursor: pointer;
22
17
 
23
- &:focus,
24
- &:focus-visible,
25
- &.is-focused,
26
- &:active,
27
- &.is-active {
28
- filter: brightness(50%);
29
- }
18
+ &.has-icon {
19
+ display: inline-flex;
20
+ align-items: center;
30
21
 
31
- @include desktop {
32
- &:not(.is-static) {
33
- display: inline-flex;
34
- border-bottom-width: 0;
35
- }
22
+ &::after {
23
+ width: calc(100% - 48px);
24
+ bottom: 5.5px;
36
25
  }
26
+ }
37
27
 
38
- &.has-icon {
39
- display: inline-flex;
40
- align-items: center;
41
-
42
- &::after {
43
- width: calc(100% - 48px);
44
- bottom: 5.5px;
45
- }
46
- }
28
+ &.is-inverted {
29
+ color: getColor('background');
47
30
 
48
- &.is-static::after {
49
- margin-bottom: 4px;
50
- }
51
-
52
- &.is-inverted {
31
+ &.has-icon {
32
+ > .icon {
53
33
  color: getColor('background');
54
-
55
- &.has-icon {
56
- > .icon {
57
- color: getColor('background');
58
- }
59
34
  }
60
35
  }
36
+ }
61
37
 
62
- @include touch {
63
- white-space: normal !important;
64
- box-decoration-break: clone;
65
- display: inline;
66
- }
38
+ @include touch {
39
+ white-space: normal !important;
40
+ box-decoration-break: clone;
41
+ display: inline;
42
+ }
67
43
  }
68
44
 
69
- @keyframes sliding-link {
70
- 50% {
71
- left: 100%;
72
- right: 0;
73
- }
74
-
75
- 50.01% {
76
- left: 0;
77
- right: 100%;
78
- }
45
+ .text .link:not([disabled]) {
46
+ text-underline-offset: 2px;
47
+ text-decoration: underline 1px solid;
48
+ &:hover {
49
+ font-weight: $weight-normal;
50
+ filter: brightness(0.8);
51
+ }
79
52
  }
@@ -1,61 +1,53 @@
1
1
  // Bullet list classiques
2
- ul.list , ol.list{
3
- margin-left: 30px;
4
- li {
5
- margin-bottom: 5px;
2
+ ul.list,
3
+ ol.list {
4
+ list-style-type: none;
5
+
6
+ li {
7
+ padding: $spacing-4;
8
+ position: relative;
9
+
10
+ .list-item_content {
11
+ display: flex;
12
+ align-items: center;
13
+ &_puce {
14
+ margin-right: $spacing-4;
15
+ }
6
16
  }
7
- }
8
-
9
- ul.list {
10
- list-style: disc;
11
17
 
12
- ul.list {
13
- list-style: circle;
14
- }
15
- }
16
18
 
17
- // Listes avec icônes
18
- ul.icon-list > li {
19
- display: flex;
20
- align-items: center;
19
+ &.has-action {
20
+ display: flex;
21
+ justify-content: space-between;
22
+ align-items: center;
23
+ @include hover();
21
24
 
22
- span[disabled] {
23
- opacity: 0.5;
24
- }
25
+ .list-item_action {
26
+ & >:first-child {
27
+ margin: 0px !important;
28
+ cursor: pointer;
29
+ }
25
30
 
26
- .icon {
27
- flex: none;
28
- }
29
- }
31
+ .radio label.radio-label:empty,
32
+ .checkbox label.checkbox-label:empty {
33
+ padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
34
+ }
30
35
 
31
- dl.dl {
32
- dt {
33
- font-weight: $weight-semibold;
34
- margin-bottom: 5px;
36
+ }
35
37
 
36
- &:not(:first-child) {
37
- margin-top: 20px;
38
- }
39
38
  }
40
39
 
41
- dd {
42
- color: getColor('font');
43
- font-size: $size-7;
40
+ div b {
41
+ margin-bottom: $spacing-2 ;
44
42
  }
45
43
 
46
- &:not(:first-child) {
47
- margin-top: 20px;
44
+ .divider {
45
+ position: absolute;
46
+ bottom: calc(-1 * $spacing-4);
47
+ width: 100%;
48
48
  }
49
49
 
50
- &.is-alternate {
51
- dt {
52
- color: getColor('font');
53
- font-size: $size-7;
54
- }
55
-
56
- dd {
57
- color: getColor('font');
58
- font-size: $size-6;
59
- }
60
- }
50
+ }
51
+
61
52
  }
53
+
@@ -16,7 +16,7 @@ $loader-items-bottom-offset: -40px;
16
16
  display: block;
17
17
  width: $loader-item-width;
18
18
  height: $loader-item-height;
19
- border-radius: 50%;
19
+ border-radius: 9999px;
20
20
  }
21
21
 
22
22
  .loader-body {
@@ -30,8 +30,8 @@
30
30
 
31
31
  .number {
32
32
  align-items: center;
33
- background-color: getColor('grey-light');
34
- border-radius: $radius-rounded;
33
+ background-color: getBGColor('neutral-dark');
34
+ border-radius: 9999px;
35
35
  display: inline-flex;
36
36
  font-size: $size-medium;
37
37
  height: 2em;
@@ -12,8 +12,7 @@ $text-levels-mobile: (
12
12
  );
13
13
 
14
14
 
15
- .paragraph {
16
- &.text {
15
+ .text {
17
16
  @each $text-level in $text-levels {
18
17
  $i: index($text-levels, $text-level);
19
18
  $font-size: nth($text-level, 1);
@@ -26,10 +25,10 @@ $text-levels-mobile: (
26
25
  font-family: $family-primary;
27
26
  margin-bottom: $margin-bottom;
28
27
  }
28
+ }
29
29
 
30
- &.is-inverted {
31
- color: getColor('background');
32
- }
30
+ &.is-inverted {
31
+ color: getColor('background');
33
32
  }
34
33
 
35
34
  @include mobile {
@@ -51,28 +50,7 @@ $text-levels-mobile: (
51
50
  font-weight: $weight-bold;
52
51
  }
53
52
  }
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
53
 
71
- &.is-static::after {
72
- margin-bottom: 0;
73
- }
74
- }
75
- }
76
54
 
77
55
  .paragraph:not(:last-child) {
78
56
  margin-bottom: 10px;
@@ -9,7 +9,7 @@ $progressbar-small: 5px;
9
9
  @include block;
10
10
 
11
11
  border: none;
12
- border-radius: $radius-rounded;
12
+ border-radius: 9999px;
13
13
  display: block;
14
14
  height: $progressbar-height;
15
15
  overflow: hidden;
@@ -18,8 +18,10 @@ $progressbar-small: 5px;
18
18
  -moz-appearance: none;
19
19
  -webkit-appearance: none;
20
20
 
21
+ background-color: getBGColor('hovered');
22
+
21
23
  &::-webkit-progress-bar {
22
- background-color: getColor('grey-light');
24
+ background-color: getBGColor('font');
23
25
  border-radius: $progressbar-height;
24
26
  }
25
27
 
@@ -33,12 +35,6 @@ $progressbar-small: 5px;
33
35
  border-radius: $progressbar-height;
34
36
  }
35
37
 
36
- &::-ms-fill {
37
- background-color: getColor('font');
38
- border: none;
39
- border-radius: $progressbar-height;
40
- }
41
-
42
38
  &:not(:last-child) {
43
39
  margin-bottom: 7.5px;
44
40
  }
@@ -71,12 +67,11 @@ $progressbar-small: 5px;
71
67
 
72
68
  .progress.is-stacked {
73
69
  display: flex;
74
- background-color: getColor('grey-light');
75
70
  border-radius: $progressbar-height;
76
71
 
77
72
  .progress-bar {
78
73
  height: $progressbar-height;
79
- background-color: getVariantColor('alternate',2);
74
+ background-color: getColor('font');
80
75
 
81
76
  &:first-child {
82
77
  border-radius: $progressbar-height 0 0 $progressbar-height;
@@ -100,10 +95,10 @@ $progressbar-small: 5px;
100
95
 
101
96
  // Progress Bar circle
102
97
  $progress-circle-slices: (
103
- secondary: getColor('alternate'),
98
+ secondary: getColor('info'),
104
99
  tertiary: getColor('font'),
105
100
  warning: getColor('warning'),
106
- empty: getColor('grey-light')
101
+ empty: getBGColor('neutral-dark')
107
102
  );
108
103
 
109
104
  .progress-circle {
@@ -113,7 +108,7 @@ $progress-circle-slices: (
113
108
  --progress-circle-spacing-color: 255, 255, 255;
114
109
  --progress-circle-spacing-deg: calc(1deg * var(--progress-circle-spacing));
115
110
 
116
- border-radius: 50%;
111
+ border-radius: 9999px;
117
112
  height: var(--progress-circle-size);
118
113
  margin: 40px;
119
114
  position: relative;
@@ -151,8 +146,8 @@ $progress-circle-slices: (
151
146
 
152
147
  .progress-circle-slice::before,
153
148
  .progress-circle-slice::after {
154
- border: var(--progress-circle-border-width) solid rgba(0,0,0,0);
155
- border-radius: 50%;
149
+ border: var(--progress-circle-border-width) solid rgba(0, 0, 0, 0);
150
+ border-radius: 9999px;
156
151
  content: '';
157
152
  height: 100%;
158
153
  left: 0;
@@ -181,9 +176,7 @@ $slides-concat: '';
181
176
 
182
177
  clip-path: inset(0 calc(50% * (var(--#{$name}-check) / var(--#{$name}-check))) 0 0);
183
178
  }
184
- }
185
-
186
- @else {
179
+ } @else {
187
180
  .progress-circle-background-#{$name} {
188
181
  --#{$name}-start: 0;
189
182
  }
@@ -204,9 +197,7 @@ $slides-concat: '';
204
197
 
205
198
  @if $i == 1 {
206
199
  $slides-concat: var(--#{$name});
207
- }
208
-
209
- @else {
200
+ } @else {
210
201
  $slides-concat: $slides-concat + ' + ' + var(--#{$name});
211
202
  }
212
203
  }
@@ -36,7 +36,7 @@
36
36
  label.radio-label {
37
37
  &:before,
38
38
  &:after {
39
- border-radius: 50%;
39
+ border-radius: 9999px;
40
40
  }
41
41
  }
42
42
  }
@@ -59,7 +59,7 @@
59
59
 
60
60
  input:checked:disabled ~ label.radio-label {
61
61
  &:after {
62
- background-color: getColor('grey');
62
+ background-color: getColor('neutral');
63
63
  top: 19px;
64
64
  right: 19px;
65
65
  }