@trilogy-ds/styles 0.0.26-esm-cjs → 0.0.28-esm-cjs

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.
@@ -1,6 +1,5 @@
1
1
  @charset "utf-8";
2
2
 
3
- @import "color";
4
3
  @import "reset";
5
4
  @import "generic";
6
5
  @import "fonts";
@@ -18,7 +18,7 @@
18
18
  flex-direction: column;
19
19
  background-color: getColor('background');
20
20
  font-size: $size-normal;
21
- border: var(--border);
21
+ border: 1px solid #{getColor('stroke-fade')};
22
22
  border-radius: var(--radius);
23
23
  margin: 8px 0;
24
24
  min-height: 56px;
@@ -29,6 +29,9 @@ body:not(.is-tight) {
29
29
  .stepper:not(.flex-box > .stepper):not(:last-child) {
30
30
  margin-bottom: 24px;
31
31
  }
32
+ .alert:not(.flex-box > .alert):not(:last-child) {
33
+ margin-bottom: 24px;
34
+ }
32
35
  .pagination:not(.flex-box > .pagination):not(:last-child) {
33
36
  margin-bottom: 24px;
34
37
  }
@@ -41,9 +44,6 @@ body:not(.is-tight) {
41
44
  .range:not(.flex-box > .range):not(:last-child) {
42
45
  margin-bottom: 24px;
43
46
  }
44
- .stepper:not(.flex-box > .stepper):not(:last-child) {
45
- margin-bottom: 24px;
46
- }
47
47
  .price-container:not(.flex-box > .price-container):not(:last-child) {
48
48
  margin-bottom: 12px;
49
49
  }
@@ -195,6 +195,9 @@ body:not(.is-tight) {
195
195
  .stepper:not(.flex-box > .stepper):not(:last-child) {
196
196
  margin-bottom: 16px;
197
197
  }
198
+ .alert:not(.flex-box > .alert):not(:last-child) {
199
+ margin-bottom: 16px;
200
+ }
198
201
  .pagination:not(.flex-box > .pagination):not(:last-child) {
199
202
  margin-bottom: 16px;
200
203
  }
@@ -207,9 +210,6 @@ body:not(.is-tight) {
207
210
  .range:not(.flex-box > .range):not(:last-child) {
208
211
  margin-bottom: 16px;
209
212
  }
210
- .stepper:not(.flex-box > .stepper):not(:last-child) {
211
- margin-bottom: 16px;
212
- }
213
213
  .price-container:not(.flex-box > .price-container):not(:last-child) {
214
214
  margin-bottom: 8px;
215
215
  }
@@ -54,7 +54,7 @@ a.box {
54
54
 
55
55
  &.is-flat {
56
56
  box-shadow: none;
57
- border: var(--border);
57
+ border: 1px solid #{getColor('stroke-fade')};
58
58
 
59
59
  .box-header {
60
60
  margin-top: calc(var(--padding-box) * -1 - 1px);
@@ -67,7 +67,7 @@ $basis-values: (
67
67
 
68
68
  &.is-flat {
69
69
  box-shadow: none;
70
- border: var(--border);
70
+ border: 1px solid #{getColor('stroke-fade')};
71
71
 
72
72
  .card-content {
73
73
  padding-left: 20px;
@@ -112,7 +112,7 @@ $basis-values: (
112
112
  flex-basis: map-get($basis-values, 'is-#{$i}');
113
113
  }
114
114
  }
115
-
115
+
116
116
  .card-image {
117
117
  max-width: 100%;
118
118
 
@@ -236,7 +236,7 @@ $basis-values: (
236
236
  .card-image {
237
237
  order: 2;
238
238
  }
239
-
239
+
240
240
  .card-content {
241
241
  order: 1;
242
242
  }
@@ -40,24 +40,17 @@
40
40
 
41
41
  @include widescreen {
42
42
  max-width: $widescreen - 2 * $gap;
43
- width: $widescreen - 2 * $gap;
44
43
  }
45
44
 
46
45
  @include fullhd {
47
46
  margin: 0 auto;
48
47
  max-width: $fullhd - 2 * $gap;
49
- width: $fullhd - 2 * $gap;
50
48
  }
51
49
 
52
50
  &.is-medium {
53
51
  max-width: 960px;
54
52
  margin: auto;
55
53
  }
56
-
57
- &.is-fullwidth {
58
- max-width: 100%;
59
- width: 100%;
60
- }
61
54
  }
62
55
 
63
56
  main,
@@ -3,6 +3,7 @@
3
3
  flex: 1;
4
4
  height: 1px;
5
5
  background-color: getColor('neutral');
6
+ border: 1px solid #{getColor('stroke-fade')};
6
7
  }
7
8
 
8
9
  .divider {
@@ -0,0 +1,195 @@
1
+ @use 'sass:math';
2
+ @import "../utilities/spacing";
3
+
4
+ $dropdown-border-radius: var(--radius-small);
5
+ $dropdown-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
6
+ $dropdown-item-padding-vertical: 12px;
7
+ $dropdown-item-padding-horizontal: 16px;
8
+
9
+ .dropdown {
10
+ position: relative;
11
+ display: block;
12
+
13
+ &.is-active {
14
+ .dropdown-menu {
15
+ display: block;
16
+ }
17
+ }
18
+ }
19
+
20
+ .dropdown-trigger {
21
+ display: inline-block;
22
+ }
23
+
24
+ .dropdown-manual {
25
+ .dropdown-menu {
26
+ top: 100%;
27
+ margin-top: 0px;
28
+ &[data-position="upward"] {
29
+ top: auto;
30
+ bottom: 100%;
31
+ margin-top: 0;
32
+ margin-bottom: 85px;
33
+ }
34
+ }
35
+ }
36
+
37
+ .dropdown-menu {
38
+ position: absolute;
39
+ top: 100%;
40
+ left: 0;
41
+ z-index: 1000;
42
+ display: none;
43
+ margin-top: 15px;
44
+ background-color: getColor('background');
45
+ border-radius: $dropdown-border-radius;
46
+ box-shadow: $dropdown-shadow;
47
+ overflow: hidden;
48
+ max-height: 300px;
49
+ overflow-y: auto;
50
+ padding-top: 12px;
51
+ padding-bottom: 12px;
52
+ padding-left: 16px;
53
+ padding-right: 16px;
54
+ width: max-content;
55
+ min-width: 200px;
56
+ opacity: 0;
57
+ transform: translateY(-10px);
58
+ transition: opacity 0.2s ease, transform 0.2s ease;
59
+
60
+ &[data-position="upward"] {
61
+ top: auto;
62
+ bottom: 100%;
63
+ margin-top: 0;
64
+ margin-bottom: 15px;
65
+ transform: translateY(10px);
66
+ }
67
+
68
+ &::-webkit-scrollbar {
69
+ width: 6px;
70
+ }
71
+
72
+ &::-webkit-scrollbar-track {
73
+ background: transparent;
74
+ }
75
+
76
+ &::-webkit-scrollbar-thumb {
77
+ background: getColor('main-fade');
78
+ border-radius: 3px;
79
+ }
80
+ }
81
+
82
+ .dropdown-content {
83
+ padding: 0;
84
+ }
85
+
86
+ .dropdown-item {
87
+ display: flex;
88
+ align-items: center;
89
+ padding: $dropdown-item-padding-vertical $dropdown-item-padding-horizontal;
90
+ color: getColor('font');
91
+ text-decoration: none;
92
+ cursor: pointer;
93
+ transition: background-color 0.2s ease;
94
+ border: none;
95
+ border-radius: $dropdown-border-radius;
96
+ background: none;
97
+ width: 100%;
98
+ text-align: left;
99
+ font-size: inherit;
100
+ font-family: inherit;
101
+ line-height: 1.4;
102
+
103
+ .icon {
104
+ margin-right: 12px;
105
+ flex-shrink: 0;
106
+
107
+ &.is-smaller {
108
+ width: 16px;
109
+ height: 16px;
110
+ }
111
+ }
112
+
113
+ &:not(:disabled):not([aria-disabled="true"]) {
114
+ #{$hoverSelector},
115
+ &:focus {
116
+ background-color: getColor('main-fade');
117
+ outline: none;
118
+ }
119
+
120
+ &:active {
121
+ background-color: getColor('main-fade');
122
+ }
123
+ }
124
+
125
+ &.is-active {
126
+ background-color: getColor('main-fade');
127
+ font-weight: $weight-semibold;
128
+ }
129
+
130
+ &:disabled,
131
+ &[aria-disabled="true"] {
132
+ color: getColor('disabled');
133
+ cursor: not-allowed;
134
+ background-color: transparent;
135
+
136
+ .icon {
137
+ opacity: 0.5;
138
+ }
139
+ }
140
+ }
141
+
142
+ .dropdown-item:disabled, .dropdown-item[aria-disabled=true] {
143
+ background-color: transparent !important;
144
+ }
145
+
146
+ .dropdown-group {
147
+ &:not(:first-child) {
148
+ border-top: 2px solid getColor('neutral-fade');
149
+ }
150
+
151
+ &:not(:last-child) {
152
+ margin-bottom: 0;
153
+ }
154
+
155
+ .dropdown-item {
156
+ &:first-child {
157
+ border-top: none;
158
+ }
159
+ }
160
+
161
+ &.is-no-separator {
162
+ border-top: none;
163
+ }
164
+ }
165
+
166
+ @include mobile {
167
+ .dropdown-menu {
168
+ left: 0;
169
+ max-height: 250px;
170
+ width: max-content;
171
+ min-width: 200px;
172
+ }
173
+ }
174
+
175
+ .dropdown.is-active .dropdown-menu {
176
+ opacity: 1;
177
+ transform: translateY(0);
178
+
179
+ &[data-position="upward"] {
180
+ opacity: 1;
181
+ transform: translateY(0);
182
+ }
183
+ }
184
+
185
+ .dropdown-menu.is-visible {
186
+ display: block;
187
+ opacity: 1;
188
+ transform: translateY(0);
189
+
190
+ &[data-position="upward"] {
191
+ display: block;
192
+ opacity: 1;
193
+ transform: translateY(0);
194
+ }
195
+ }
@@ -859,6 +859,7 @@
859
859
  .flex-item {
860
860
  flex-grow: 1;
861
861
  &.is-narrow {
862
+ flex: none;
862
863
  width: auto;
863
864
  }
864
865
 
@@ -16,6 +16,7 @@
16
16
  @import 'container';
17
17
  @import 'countdown';
18
18
  @import 'date-picker';
19
+ @import 'dropdown';
19
20
  @import 'divider';
20
21
  @import 'fab';
21
22
  @import 'flex-box';
@@ -26,7 +26,7 @@
26
26
 
27
27
  td,
28
28
  th {
29
- border: var(--border);
29
+ border: 1px solid #{getColor('stroke-fade')};
30
30
  border-width: 0;
31
31
  padding: 20px;
32
32
  vertical-align: top;
@@ -71,7 +71,7 @@
71
71
  }
72
72
 
73
73
  td {
74
- border-bottom: var(--border);
74
+ border-bottom: 1px solid #{getColor('stroke-fade')};
75
75
 
76
76
  > p {
77
77
  margin: 0;
@@ -153,15 +153,15 @@
153
153
  }
154
154
 
155
155
  &.has-border-all {
156
- border: var(--border);
156
+ border: 1px solid #{getColor('stroke-fade')};
157
157
 
158
158
  th {
159
- border-right: var(--border);
159
+ border-right: 1px solid #{getColor('stroke-fade')};
160
160
  }
161
161
 
162
162
  td {
163
163
  &:not(:last-child) {
164
- border-right: var(--border);
164
+ border-right: 1px solid #{getColor('stroke-fade')};
165
165
  }
166
166
  }
167
167
  }
@@ -169,13 +169,13 @@
169
169
  &.has-border-inner {
170
170
  th {
171
171
  &:not(:last-child) {
172
- border-right: var(--border);
172
+ border-right: 1px solid #{getColor('stroke-fade')};
173
173
  }
174
174
  }
175
175
 
176
176
  td {
177
177
  &:not(:last-child) {
178
- border-right: var(--border);
178
+ border-right: 1px solid #{getColor('stroke-fade')};
179
179
  }
180
180
  }
181
181
  }
@@ -215,7 +215,7 @@
215
215
 
216
216
  tr:not(:first-child) {
217
217
  td {
218
- border-top: var(--border);
218
+ border-top: 1px solid #{getColor('stroke-fade')};
219
219
  }
220
220
  }
221
221
 
@@ -41,7 +41,7 @@ a.alert {
41
41
  padding-bottom: 0 !important;
42
42
  }
43
43
 
44
- .icon {
44
+ &-icon {
45
45
  padding: 0;
46
46
  }
47
47
 
@@ -58,7 +58,7 @@ a.alert {
58
58
  background-color: fadeColor($name);
59
59
  border: 1px solid getColor($name);
60
60
 
61
- .icon {
61
+ .alert-icon {
62
62
  color: getColor($name);
63
63
  }
64
64
  }
@@ -1,7 +1,5 @@
1
1
  @use "sass:math";
2
2
 
3
- @import "../../base/color";
4
-
5
3
  $progressbar-height: 10px;
6
4
  $progressbar-small: 5px;
7
5
 
@@ -1,6 +1,7 @@
1
1
  @charset "utf-8";
2
2
 
3
3
  @import "utilities/all";
4
+ @import "base/color";
4
5
  @import "base/all";
5
6
  @import "elements";
6
7
  @import "components";
@@ -12,6 +12,7 @@ $suffix: '';
12
12
  $colors: (
13
13
  'background': [#fff, 'white', 'main'],
14
14
  'stroke':[ #727272, 'stroke', 'white' ],
15
+ 'stroke-fade':[ #cadbe8, 'stroke-fade', 'white' ],
15
16
  'transparent': ['transparent', 'transparent', 'transparent'],
16
17
  'main':[ #3d5d7e, 'main', 'white'],
17
18
  'main-fade':[ #eff2f8, 'main-fade', 'white'],
@@ -1,7 +1,7 @@
1
1
  // The container horizontal gap, which acts as the offset for breakpoints
2
- $gap: 20px !default;
2
+ $gap: 24px !default;
3
3
 
4
4
  $tablet: 768px !default;
5
- $desktop: 984px + 2 * $gap !default;
6
- $widescreen: 1200px + 2 * $gap !default;
7
- $fullhd: 1348px + 2 * $gap !default;
5
+ $desktop: 976px + 2 * $gap !default;
6
+ $widescreen: 1192px + 2 * $gap !default;
7
+ $fullhd: 1340px + 2 * $gap !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.26-esm-cjs",
3
+ "version": "0.0.28-esm-cjs",
4
4
  "author": "Bouygues Telecom",
5
5
  "repository": {
6
6
  "type": "git",