@trilogy-ds/styles 0.0.1-beta.9 → 0.0.3-beta-v4

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 (94) 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 +9 -39
  5. package/framework/src/base/_generic.scss +4 -1
  6. package/framework/src/base/_helpers.scss +13 -38
  7. package/framework/src/base/_loading.scss +8 -1
  8. package/framework/src/base/_reset.scss +8 -3
  9. package/framework/src/components/_accordion.scss +53 -88
  10. package/framework/src/components/_all.scss +1 -7
  11. package/framework/src/components/_autolayout.scss +302 -0
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +8 -79
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +10 -15
  16. package/framework/src/components/_fab.scss +25 -38
  17. package/framework/src/components/_modal.scss +161 -158
  18. package/framework/src/components/_otp.scss +10 -29
  19. package/framework/src/components/_pagination.scss +59 -161
  20. package/framework/src/components/_plus-symbol.scss +1 -1
  21. package/framework/src/components/_popover.scss +260 -260
  22. package/framework/src/components/_price.scss +119 -170
  23. package/framework/src/components/_product-tour.scss +2 -4
  24. package/framework/src/components/_progress-radial.scss +24 -19
  25. package/framework/src/components/_range.scss +73 -72
  26. package/framework/src/components/_segmented-control.scss +51 -53
  27. package/framework/src/components/_stepper.scss +42 -222
  28. package/framework/src/components/_tabs.scss +46 -81
  29. package/framework/src/components/_timeline.scss +27 -112
  30. package/framework/src/elements/_alert.scss +13 -10
  31. package/framework/src/elements/_all.scss +1 -4
  32. package/framework/src/elements/_autocomplete.scss +32 -0
  33. package/framework/src/elements/_badge.scss +67 -61
  34. package/framework/src/elements/_box.scss +64 -161
  35. package/framework/src/elements/_button.scss +15 -141
  36. package/framework/src/elements/_checkbox.scss +29 -26
  37. package/framework/src/elements/_chips.scss +69 -85
  38. package/framework/src/elements/_container.scss +7 -39
  39. package/framework/src/elements/_entry.scss +76 -88
  40. package/framework/src/elements/_form.scss +26 -23
  41. package/framework/src/elements/_icon.scss +4 -4
  42. package/framework/src/elements/_image.scss +50 -40
  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 +45 -44
  47. package/framework/src/elements/_loader.scss +2 -2
  48. package/framework/src/elements/_other.scss +0 -37
  49. package/framework/src/elements/_paragraph.scss +35 -69
  50. package/framework/src/elements/_progress.scss +33 -22
  51. package/framework/src/elements/_radio.scss +45 -31
  52. package/framework/src/elements/_select.scss +85 -304
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +101 -99
  55. package/framework/src/elements/_table.scss +175 -228
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +113 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +4 -5
  60. package/framework/src/grid/_columns.scss +257 -764
  61. package/framework/src/grid/_rows.scss +45 -38
  62. package/framework/src/layout/_all.scss +0 -1
  63. package/framework/src/layout/_hero.scss +89 -215
  64. package/framework/src/layout/_section.scss +5 -29
  65. package/framework/src/theming/_all.scss +3 -0
  66. package/framework/src/theming/buttons_partial.scss +32 -0
  67. package/framework/src/theming/common_partials.scss +10 -0
  68. package/framework/src/theming/links_partial.scss +20 -0
  69. package/framework/src/utilities/_a11y.scss +13 -0
  70. package/framework/src/utilities/_all.scss +4 -0
  71. package/framework/src/utilities/_background.scss +19 -0
  72. package/framework/src/utilities/_colors.scss +40 -0
  73. package/framework/src/utilities/_controls.scss +38 -49
  74. package/framework/src/utilities/_derived-variables.scss +4 -15
  75. package/framework/src/utilities/_initial-variables.scss +4 -36
  76. package/framework/src/utilities/_mixins.scss +483 -592
  77. package/framework/src/utilities/_pre.scss +1 -0
  78. package/package.json +3 -3
  79. package/framework/src/components/_autolayout2.scss +0 -38
  80. package/framework/src/components/_disclaimer.scss +0 -84
  81. package/framework/src/components/_dropdown.scss +0 -128
  82. package/framework/src/components/_level.scss +0 -120
  83. package/framework/src/components/_media.scss +0 -64
  84. package/framework/src/components/_menu.scss +0 -213
  85. package/framework/src/components/_search-modal.scss +0 -197
  86. package/framework/src/components/_slices.scss +0 -316
  87. package/framework/src/components/_slider.scss +0 -92
  88. package/framework/src/components/_switch.scss +0 -209
  89. package/framework/src/elements/_checkradio.scss +0 -173
  90. package/framework/src/elements/_dot.scss +0 -6
  91. package/framework/src/elements/_notification.scss +0 -151
  92. package/framework/src/elements/_options.scss +0 -146
  93. package/framework/src/elements/_timeline.scss +0 -283
  94. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,209 +1,158 @@
1
1
  $price-levels: (
2
- ($text-64),
3
- ($text-56),
4
- ($text-44),
5
- ($text-32),
6
- ($text-28),
7
- ($text-24),
8
- ($text-20),
2
+ [$text-64, $text-44, $text-28, $text-16],
3
+ [$text-56, $text-32, $text-22, $text-16],
4
+ [$text-48, $text-28, $text-16, $text-16],
5
+ [$text-40, $text-24, $text-10, $text-10],
6
+ [$text-36, $text-20, $text-10, $text-10],
7
+ [$text-24, $text-20, $text-10, $text-10],
8
+ [$text-20, $text-20, $text-10, $text-10],
9
9
  );
10
10
 
11
+ .price-container {
12
+ display: flex;
13
+ align-items: baseline;
14
+ column-gap: 12px;
15
+ flex-wrap: wrap;
16
+ --font-size: #{$text-64};
11
17
 
12
- .price {
13
- display: inline-flex;
14
- // flex-wrap: wrap;
15
- &:not(.is-inlined){
16
- font-size: 44px;
17
- }
18
-
19
-
20
- @each $price-level in $price-levels {
21
- $i: index($price-levels, $price-level);
22
- $font-size: nth($price-level , 1);
23
-
24
- &.is-level-#{$i} {
25
- font-size: $font-size;
26
-
27
- @if $i > 4 {
28
- .price-details {
29
- padding-left: 2px !important;
30
- }
31
- }
32
- }
18
+ @each $price-level in $price-levels {
19
+ $i: index($price-levels, $price-level);
20
+ $font-size: nth($price-level, 1);
21
+ $strike-font-size: nth($price-level, 2);
33
22
 
34
- // the details : cents + period
35
-
36
- .price-details {
37
- padding-left: $spacing-1;
38
-
39
- .cents,
40
- .centimes,
41
- .periode,
42
- .period {
43
- line-height: 1;
44
- display: block;
45
- }
46
-
47
- .cents,
48
- .centimes {
49
- font-weight: 600;
50
- font-size: 0.475em;
51
- vertical-align: top;
52
- text-align: left;
53
-
54
- sup {
55
- font-weight: $weight-medium;
56
- padding-left: 2px;
57
- top: -0.3em;
58
- }
59
- }
23
+ &.is-level-#{$i} {
24
+ --font-size: #{$font-size};
25
+ --strike-font-size: #{$strike-font-size};
60
26
 
61
- .period,
62
- .periode {
63
- font-size: 0.375em;
64
- margin-top: 0;
65
- padding-left: 0.1em;
66
- text-align: left;
27
+ @if $i > 4 {
28
+ .price-details {
29
+ padding-left: 2px;
67
30
  }
31
+ }
68
32
  }
33
+ }
69
34
 
35
+ .overline {
36
+ width: 100%;
37
+ flex: none;
38
+ margin: 0;
39
+ font-size: calc(var(--font-size) * 0.4);
40
+ }
70
41
 
71
- }
42
+ .price {
43
+ font-size: var(--font-size);
72
44
 
73
- // FIXME : le nom de cette classe devrait être préfixé de "price-"
74
- .main,
75
- .price-main {
76
- font-weight: $weight-semibold;
77
- line-height: 0.8;
78
- margin-bottom: 0;
45
+ &.strike {
46
+ font-size: var(--strike-font-size);
79
47
  }
48
+ }
80
49
 
50
+ }
81
51
 
52
+ .price {
53
+ display: inline-flex;
54
+ font-weight: $weight-semibold;
55
+ line-height: 0.8;
56
+ margin-bottom: 0;
82
57
 
58
+ // the details : cents + period
83
59
 
60
+ .price-details {
61
+ padding-left: $spacing-1;
84
62
 
85
- // rendre les is-n deprecated dans 4 versions - v1.18.11 -
86
-
87
- &.is-1 {
88
- font-size: 56px;
89
- }
90
-
91
- &.is-2 {
92
- font-size: 44px;
63
+ .cents,
64
+ .centimes,
65
+ .periode,
66
+ .period {
67
+ line-height: 1;
68
+ display: block;
93
69
  }
94
70
 
95
- &.is-3 {
96
- font-size: 32px;
97
- }
71
+ .cents,
72
+ .centimes {
73
+ font-weight: 600;
74
+ font-size: 0.475em;
75
+ vertical-align: top;
76
+ text-align: left;
98
77
 
99
- &.is-4 {
100
- font-size: 29px;
78
+ sup {
79
+ font-weight: $weight-medium;
80
+ padding-left: 2px;
81
+ top: -0.3em;
82
+ }
101
83
  }
102
84
 
103
- &.is-5 {
104
- font-size: 23px;
85
+ .period,
86
+ .periode {
87
+ font-size: 0.375em;
88
+ margin-top: 0;
89
+ padding-left: 0.1em;
90
+ text-align: left;
105
91
  }
92
+ }
106
93
 
107
- &.is-6 {
108
- font-size: 14px;
109
- }
94
+ &.is-inverted {
95
+ color: getColor('background');
96
+ }
110
97
 
111
- &.is-huge {
112
- font-size: 62px;
98
+ &.has-description {
99
+ .cents,
100
+ .centimes {
101
+ align-items: flex-start;
102
+ display: flex;
113
103
  }
114
104
 
115
- &.is-main-price {
116
- color: getColor('alternate');
105
+ .icon {
106
+ height: inherit;
107
+ width: inherit;
117
108
  }
109
+ }
118
110
 
119
- &.is-inverted {
120
- color: getColor('background');
111
+ &.is-inlined {
112
+ .price-details {
113
+ display: inline-flex;
114
+ margin-left: 0;
115
+ padding-left: 0 !important;
116
+
117
+ .cents,
118
+ .centimes,
119
+ .periode,
120
+ .period {
121
+ font-size: inherit;
122
+ line-height: 0.8;
123
+ padding-left: 0;
124
+ }
121
125
  }
122
126
 
123
- &.has-suptitle {
124
- display: flex;
125
- flex-wrap: wrap;
126
-
127
- .price-suptitle {
128
- flex-basis: 100%;
129
- font-size: 0.375em;
130
- }
127
+ &.strike {
128
+ &::before {
129
+ transform: rotate(-12deg);
130
+ }
131
131
  }
132
+ }
132
133
 
133
- &.has-description {
134
- .cents,
135
- .centimes {
136
- align-items: flex-start;
137
- display: flex;
138
- }
134
+ &.strike {
135
+ position: relative;
136
+ color: getColor('neutral');
139
137
 
140
- .icon {
141
- height: inherit;
142
- width: inherit;
143
- }
138
+ &::before {
139
+ position: absolute;
140
+ content: "";
141
+ left: 0;
142
+ top: 50%;
143
+ right: 0;
144
+ border-top: 2px solid;
145
+ border-color: getColor('neutral');
146
+ border-radius: 5px;
147
+ transform: rotate(-20deg);
144
148
  }
145
149
 
146
- &.is-inlined {
147
- .price-details {
148
- display: inline-flex;
149
- margin-left: 0;
150
- padding-left: 0 !important;
151
- .cents,
152
- .centimes,
153
- .periode,
154
- .period {
155
- font-size: inherit;
156
- line-height: 0.8;
157
- padding-left: 0;
158
- }
159
- }
160
-
161
- &.is-striked {
162
- &::before {
163
- transform: rotate(-12deg);
164
- }
165
- }
166
- }
167
-
168
- &.is-striked {
169
- position: relative;
170
- color: getVariantColor('font', 2);
171
-
172
- &::before {
173
- position: absolute;
174
- content: "";
175
- left: 0;
176
- top: 50%;
177
- right: 0;
178
- border-top: 2px solid;
179
- border-color: getColor('font');
180
- border-radius: 5px;
181
- transform: rotate(-20deg);
182
- }
183
-
184
- &.is-main-price {
185
- color: getVariantColor('alternate', 2);
186
- &::before {
187
- border-color: getColor('alternate');
188
- }
189
- }
190
-
191
- &.is-inverted {
192
- color: getVariantColor('background', 2);
193
-
194
- &::before {
195
- border-color: getColor('background');
196
- }
197
- }
198
-
199
- &.has-suptitle {
200
- display: inline-flex;
201
- margin-top: 0.55em;
150
+ &.is-inverted {
151
+ color: getColor('background');
202
152
 
203
- .price-suptitle {
204
- position: absolute;
205
- top: -1.4em;
206
- }
207
- }
153
+ &::before {
154
+ border-color: getColor('background');
155
+ }
208
156
  }
157
+ }
209
158
  }
@@ -1,5 +1,3 @@
1
- $product-tour-target-outline: rgba(10,10,10,.86); // comes from Bulma's .modal-background defaults
2
-
3
1
  .product-tour {
4
2
  position: absolute;
5
3
  z-index: zindex('modal');
@@ -94,7 +92,7 @@ $product-tour-target-outline: rgba(10,10,10,.86); // comes from Bulma's .modal-b
94
92
  top: 0;
95
93
  left: 0;
96
94
  background: white;
97
- border-radius: 100%;
95
+ border-radius: 9999px;
98
96
  box-shadow: $shadow;
99
97
  transform: translate(-50%, -50%);
100
98
 
@@ -124,7 +122,7 @@ $product-tour-target-outline: rgba(10,10,10,.86); // comes from Bulma's .modal-b
124
122
 
125
123
  .product-tour-target {
126
124
  &-active {
127
- outline: 999em solid $product-tour-target-outline !important;
125
+ outline: 999em solid getColor('main') !important;
128
126
  outline-offset: 10px !important;
129
127
  z-index: zindex('modal');
130
128
  }
@@ -1,23 +1,28 @@
1
1
  .progress-radial {
2
- background: radial-gradient(white 58%, transparent 51%),
3
- conic-gradient(gainsboro 0deg 360deg, gainsboro 0deg 360deg);
2
+ background: radial-gradient(white 58%, transparent 51%),
3
+ conic-gradient(gainsboro 0deg 360deg, gainsboro 0deg 360deg);
4
+ border-radius: 50%;
5
+ width: 124px;
6
+ height: 124px;
7
+ position: relative;
8
+
9
+ .progress-radial-content {
10
+ border: 1px solid white;
4
11
  border-radius: 50%;
5
- width: 124px;
6
- height: 124px;
7
- position: relative;
12
+ width: 100%;
13
+ height: 100%;
14
+ position: absolute;
15
+ top: 50%;
16
+ left: 50%;
17
+ transform: translate(-50%, -50%);
18
+ display: flex;
19
+ flex-direction: column;
20
+ justify-content: center;
21
+ align-items: center;
22
+ }
8
23
 
9
- .progress-radial-content {
10
- border: 1px solid white;
11
- border-radius: 50%;
12
- width: 102px;
13
- height: 102px;
14
- position: absolute;
15
- top: 50%;
16
- left: 50%;
17
- transform: translate(-50%, -50%);
18
- display: flex;
19
- flex-direction: column;
20
- justify-content: center;
21
- align-items: center;
22
- }
24
+ &.is-small {
25
+ width: 75px;
26
+ height: 75px;
27
+ }
23
28
  }
@@ -1,84 +1,85 @@
1
1
  .range-container {
2
- @mixin appearence {
3
- appearance: none;
4
- height: 5px;
5
- }
2
+ @mixin appearence {
3
+ appearance: none;
4
+ height: 5px;
5
+ }
6
6
 
7
- @mixin slider-thumb {
8
- appearance: none;
9
- width: 20px;
10
- height: 20px;
11
- background-color: white;
12
- pointer-events: auto;
13
- border-radius: 50%;
14
- box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
15
- outline: none;
16
- border: none;
17
- }
18
- .range {
19
- width: 100%;
20
- position: relative;
21
- margin-top: 18px;
22
- margin-bottom: 20px;
7
+ @mixin slider-thumb {
8
+ appearance: none;
9
+ width: 20px;
10
+ height: 20px;
11
+ background-color: white;
12
+ pointer-events: auto;
13
+ border-radius: 50%;
14
+ box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
15
+ outline: none;
16
+ border: none;
17
+ }
18
+
19
+ .range {
20
+ width: 100%;
21
+ position: relative;
22
+ margin-top: 18px;
23
+ margin-bottom: 20px;
23
24
 
24
- .range-track {
25
- width: 100%;
26
- height: 8px;
27
- border-radius: 8px;
28
- position: absolute;
29
- margin: auto;
30
- top: 0;
31
- bottom: 0;
32
- color: getColor('alternate');
33
- @include mobile {
34
- height: 4px;
35
- border-radius: 4px;
36
- }
37
- }
25
+ .range-track {
26
+ width: 100%;
27
+ height: 8px;
28
+ border-radius: var(--radius);
29
+ position: absolute;
30
+ margin: auto;
31
+ top: 0;
32
+ bottom: 0;
33
+ @include mobile {
34
+ height: 4px;
35
+ border-radius: var(--radius-small);
36
+ }
37
+ }
38
38
 
39
- .range-cursor {
40
- appearance: none;
41
- -webkit-appearance: none;
42
- -moz-appearance: none;
43
- width: 100%;
44
- outline: none;
45
- position: absolute;
46
- margin: auto;
47
- top: 0;
48
- bottom: 0;
49
- background-color: transparent;
50
- pointer-events: none;
39
+ .range-cursor {
40
+ appearance: none;
41
+ -webkit-appearance: none;
42
+ -moz-appearance: none;
43
+ width: 100%;
44
+ outline: none;
45
+ position: absolute;
46
+ margin: auto;
47
+ top: 0;
48
+ bottom: 0;
49
+ background-color: transparent;
50
+ pointer-events: none;
51
51
 
52
- &::-webkit-slider-runnable-track {
53
- @include appearence;
54
- }
52
+ &::-webkit-slider-runnable-track {
53
+ @include appearence;
54
+ }
55
55
 
56
- &::-moz-range-track {
57
- @include appearence;
58
- }
56
+ &::-moz-range-track {
57
+ @include appearence;
58
+ }
59
59
 
60
- &::-ms-track {
61
- @include appearence;
62
- }
60
+ &::-ms-track {
61
+ @include appearence;
62
+ }
63
63
 
64
- &::-webkit-slider-thumb {
65
- @include slider-thumb;
66
- margin-top: -8px;
67
- }
64
+ &::-webkit-slider-thumb {
65
+ @include slider-thumb;
66
+ margin-top: -8px;
67
+ }
68
68
 
69
- &::-moz-range-thumb {
70
- @include slider-thumb;
71
- }
69
+ &::-moz-range-thumb {
70
+ @include slider-thumb;
71
+ }
72
72
 
73
- &::-ms-thumb {
74
- @include slider-thumb;
75
- }
76
- }
77
- }
78
- .range-values {
79
- display: flex;
80
- justify-content: space-between;
81
- padding-top: 14px;
82
- font-weight: bold;
73
+ &::-ms-thumb {
74
+ @include slider-thumb;
75
+ }
83
76
  }
77
+ }
78
+
79
+ .range-values {
80
+ display: flex;
81
+ justify-content: space-between;
82
+ padding-top: 14px;
83
+ font-weight: bold;
84
+ }
84
85
  }
@@ -1,60 +1,58 @@
1
1
  .segmented-control {
2
- border-radius: 6px;
3
- padding: $spacing-1;
4
- border: 1px solid getColor('grey-light');
5
- background-color: getColor('grey-lighter');
6
- display: inline-block;
7
- margin: 16px 0;
2
+ border-radius: 6px;
3
+ padding: $spacing-1;
4
+ background-color: getColor('neutral-fade');
5
+ display: flex;
6
+ margin-left: auto;
7
+ margin-right: auto;
8
+ width: fit-content;
9
+
10
+ &.justified-start {
11
+ margin-left: 0;
12
+ margin-right: auto;
13
+ }
14
+
15
+ &.justified-end {
16
+ margin-right: 0;
17
+ margin-left: auto;
18
+ }
19
+
20
+ @include mobile {
21
+ display: flex;
22
+ margin: 24px auto;
23
+ width: 100%;
24
+ }
25
+
26
+ .segmented-control-item {
27
+ padding: 0 $spacing-5;
28
+ border-radius: var(--radius-small);
29
+ font-size: 16px;
30
+ text-align: center;
31
+ border: 2px solid transparent;
32
+ height: 42px;
33
+ color: getColor('font');
34
+ background-color: getColor('neutral-fade');
35
+
36
+ &:not(:last-child) {
37
+ margin-right: 4px;
38
+ }
8
39
 
9
40
  @include mobile {
10
- display: flex;
11
- margin: 24px auto;
12
- width: 100%;
41
+ padding: 0 $spacing-4;
42
+ flex: 1 1 0;
43
+ width: 0;
44
+ text-overflow: ellipsis;
45
+ overflow: hidden;
46
+ }
47
+
48
+ &:hover:not([disabled], [aria-disabled=true], .is-active) {
49
+ cursor: pointer;
50
+ @include hoverRules()
13
51
  }
14
52
 
15
- .segmented-control-item {
16
- padding: 0 $spacing-5;
17
- border-radius: 4px;
18
- font-size: 16px;
19
- text-align: center;
20
- border: 2px solid transparent;
21
- height: 42px;
22
- color: getColor('font');
23
- background-color: getColor('grey-lighter');
24
- font-family: $body-family;
25
-
26
- &:not(:last-child) {
27
- margin-right: 4px;
28
- }
29
-
30
- @include mobile {
31
- padding: 0 $spacing-4;
32
- flex: 1 1 0;
33
- width: 0;
34
- text-overflow: ellipsis;
35
- overflow: hidden;
36
- }
37
-
38
- &:hover {
39
- cursor: pointer;
40
- background-color: transparent;
41
- color: getColor('alternate');
42
- border-color: currentColor;
43
- }
44
-
45
- &.is-active {
46
- background-color: getColor('alternate');
47
- color: invertColor('alternate');
48
- font-weight: 600;
49
- }
50
-
51
- &[disabled] {
52
- background-color: getColor('grey-disabled');
53
- border-color: getColor('grey-disabled');
54
- color: getColor('grey-darker');
55
- &:hover {
56
- cursor: not-allowed;
57
- }
58
- }
53
+ &.is-active {
54
+ background-color: getColor('main');
55
+ color: invertColor('main');
59
56
  }
57
+ }
60
58
  }