@trilogy-ds/styles 4.14.0-tab-fix → 4.14.2-fix

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.
@@ -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
  }
@@ -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,
@@ -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';
@@ -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
5
  $desktop: 984px + 2 * $gap !default;
6
- $widescreen: 1200px + 2 * $gap !default;
7
- $fullhd: 1348px + 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": "4.14.0-tab-fix",
3
+ "version": "4.14.2-fix",
4
4
  "author": "Bouygues Telecom",
5
5
  "repository": {
6
6
  "type": "git",