@trilogy-ds/styles 0.0.1-beta.33 → 0.0.1-beta.35

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.
@@ -23,7 +23,6 @@ a.alert {
23
23
  .text:first-child,
24
24
  .title:first-child {
25
25
  line-height: normal;
26
- font-size: $text-16 !important;
27
26
  }
28
27
 
29
28
  .title,
@@ -80,7 +79,6 @@ a.alert {
80
79
  }
81
80
  }
82
81
 
83
- .title,
84
82
  .text,
85
83
  .paragraph {
86
84
  font-size: $text-14;
@@ -13,13 +13,11 @@
13
13
  label {
14
14
  left: 45px;
15
15
  }
16
-
17
16
  .icon-left {
18
17
  position: absolute;
19
18
  height: 100%;
20
19
  width: 45px;
21
20
  left: 0;
22
-
23
21
  i {
24
22
  font-size: 20px;
25
23
  }
@@ -27,19 +25,18 @@
27
25
 
28
26
 
29
27
  }
30
-
31
- .has-icons-right {
32
- .icon-right {
33
- position: absolute;
34
- height: 100%;
35
- width: 45px;
36
- z-index: 10;
37
- right: 0;
38
- left: auto;
39
-
40
- i {
41
- font-size: 20px;
42
- }
28
+ }
29
+ .has-icons-right {
30
+ .icon-right {
31
+ position: absolute;
32
+ height: 100%;
33
+ width: 45px;
34
+ z-index: 10;
35
+ right: 0;
36
+ left: auto;
37
+
38
+ i {
39
+ font-size: 20px;
43
40
  }
44
41
  }
45
42
  }
@@ -1,277 +1,97 @@
1
- [data-blur-select] {
2
- position: absolute;
3
- z-index: zindex('large');
4
- min-width: 100%;
5
- min-height: 100%;
6
- left: 0;
7
- top: 0;
8
- }
9
-
10
-
11
- @mixin arrow-style($direction:"up") {
12
- @include arrow($direction);
13
- right: 16px;
14
- margin-left: 16px;
15
- top: calc(50% - 7px);
16
- }
17
1
 
18
2
  .select {
19
- border: var(--border);
20
- display: inline-block;
21
- max-width: 100%;
22
3
  position: relative;
23
- border-radius: var(--radius-small);
24
- background-color: getColor('background');
25
- display: block;
26
- font-size: 1em;
27
- max-width: 100%;
28
- outline: none;
29
- cursor: pointer;
30
- height: 56px;
31
-
32
- select {
33
- height: 100%;
34
- border: 1px solid transparent;
35
- border-radius: 3px;
36
- max-width: 100%;
37
- width: 100%;
38
- font-size: 1em;
39
- font-family: $family-sans-serif;
40
- color: getColor('font');
41
- cursor: pointer;
42
- -webkit-appearance: none;
43
- -moz-appearance: none;
44
- appearance: none;
45
- z-index: 10;
46
- background-color: transparent;
47
- opacity: 100;
48
- outline: none;
49
- padding-left: $spacing-4;
4
+ input { cursor: pointer;}
50
5
 
51
- &::-ms-expand {
52
- display: none !important;
53
- }
54
-
55
- @include hover();
56
-
57
- }
6
+ .field.focus .control input:first-child,
7
+ .field.focus .input.select-native {
8
+ border: 2px solid currentColor;
9
+ }
58
10
 
59
- label {
11
+ &-options {
12
+ box-shadow: 0 0 8px #0000001a;
13
+ border-radius: 4px;
14
+ overflow: hidden;
60
15
  position: absolute;
61
- top: 50%;
62
- transform: translate(0, -50%);
63
- left: 16px !important;
64
- color: getColor('neutral') !important
65
- }
66
-
67
- &.select-native {
68
- .icon {
69
- position: absolute;
70
- }
71
-
72
- &.has-icon {
73
- select {
74
- padding-left: 50px;
75
-
76
- &:not(.no-label) {
77
- padding-bottom: 5px;
16
+ top: 64px;
17
+ z-index: 1001;
18
+ left: 0;
19
+ right: 0;
20
+ }
21
+
22
+ .radio-tile {
23
+ input:checked {
24
+ &~label.radio-label {
25
+ font-weight: $weight-black ;
26
+ &:after {
27
+ content: "" !important;
28
+ mask-image: url('./assets/icons/all/check.svg') !important;
29
+ background-color: getColor('main') !important;
30
+ mask-size: 18px !important;
31
+ top: 25px !important;
32
+ right: 18px !important;
33
+ height:18px !important;
34
+ width: 18px !important
78
35
  }
79
- }
80
- }
81
- }
82
-
83
- .has-dynamic-placeholder {
84
- label {
85
- top: 18px;
86
- color: getColor('neutral') !important
87
- }
88
- }
89
-
90
-
91
- &-value {
92
- position: absolute;
93
- left: 16px;
94
- top: 50%;
95
- transform: translateY(-20%);
96
-
97
- &.no-label {
98
- transform: translateY(-50%);
99
-
100
- }
101
- }
102
-
103
- .icon {
104
- height: 100%;
105
- width: 50px;
106
- }
107
-
108
- &.has-icon {
109
- label {
110
- left: 50px !important;
111
- }
112
-
113
- .select-value {
114
- left: 50px !important;
115
- }
116
- }
117
-
118
-
119
- &:not(.is-loading) {
120
- &:not(.select-disabled) {
121
- &::after {
122
- @include arrow-style("down")
123
- }
124
-
125
- &:not(.select-native) {
126
- @include hover();
127
- }
128
- }
129
- }
130
-
131
- &.select-show-options:not(.is-loading) {
132
- outline: 1px auto getColor('main');
133
-
134
- &::after {
135
- @include arrow-style()
36
+ }
136
37
  }
137
38
 
138
- #{$hoverSelector} {
139
- &::after {
140
- border-color: getColor('font');
141
- }
142
- }
143
- }
144
-
145
- // Sizes
146
- &.is-small {
147
- @include control-small;
148
- }
149
-
150
- &.is-large {
151
- @include control-large;
152
- }
39
+ label.radio-label {
40
+ border:none !important;
41
+ border-radius: 0 !important;
42
+ height: 52px;
43
+ &:before { display: none; }
44
+ @include hover
45
+ }
153
46
 
154
- &.is-loading {
155
- &::after {
156
- @include spinner;
157
- margin-top: 0;
158
- position: absolute;
159
- right: 0.625em;
160
- top: 0.625em;
161
- transform: none;
162
- }
47
+ &.focus label.radio-label { @include hoverRules(); }
163
48
 
164
- &.is-small::after {
165
- font-size: $size-small;
49
+ .icon.is-medium {
50
+ font-size: $text-20 !important;
166
51
  }
52
+ }
167
53
 
168
- &.is-large::after {
169
- font-size: $size-large;
54
+ .control:not(.has-icons-left.has-icons-right) {
55
+ .select-native.multiple.input {
56
+ padding-left:0 !important;
57
+ select option {padding-left: 16px;}
170
58
  }
171
59
  }
172
- }
173
-
174
- .select-options {
175
- position: absolute;
176
- margin-top: 8px;
177
- display: flex;
178
- flex-direction: column;
179
- align-items: flex-start;
180
- background: getColor('background');
181
- box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
182
- border-radius: var(--radius-small);
183
- overflow: auto;
184
- width: 100%;
185
- max-height: 260px;
186
- z-index: zindex('large');
187
60
 
188
-
189
- &-option {
190
- display: flex;
191
- flex-direction: row;
192
- align-items: center;
193
- justify-content: space-between;
194
- padding: 14px $spacing-4;
195
- width: 100%;
196
-
197
- .has-icon {
198
- display: flex;
199
- align-items: center;
200
-
201
- .icon {
202
- margin-right: 16px;
203
- width: 20px;
204
- height: 20px;
205
- }
61
+ &-native {
62
+ position: relative;
63
+ select {
64
+ width: 100%;
65
+ border:none;
66
+ height: 100%;
67
+ background-color: transparent;
68
+ -webkit-appearance: none;
69
+ -moz-appearance: none;
70
+ text-indent: 1px;
71
+ outline: none;
72
+ color: getColor('main');
73
+ font-size: $text-16 !important;
206
74
  }
207
75
 
208
- &-activated {
209
- color: getColor('main');
210
- font-weight: $weight-bold;
211
-
212
- &::after {
213
- content: "";
214
- mask-image: url('./assets/icons/all/check.svg');
215
- background-color: getColor('main');
216
- min-width: 15px;
217
- min-height: 15px;
218
- display: inline-block;
219
- margin-left: 16px;
220
- mask-size: 20px;
221
- }
76
+ &.input {
77
+ padding-top: 0px !important;
78
+ padding-bottom: 0px !important;
222
79
  }
223
80
 
224
- }
225
-
226
- .option-container, &-option {
227
- outline: none;
228
-
229
- &:focus {
230
- background-color: #E4EAED;
231
- }
232
-
233
- &:not([data-is-disabled='true']) {
234
- cursor: pointer;
81
+ &.multiple.input{
82
+ height: auto !important;
83
+ padding-right: 0 !important;
84
+ select { padding-top: 0 !important; }
235
85
  }
236
86
  }
237
- }
238
-
239
- [data-is-open-options="false"] {
240
- display: none;
241
- }
242
87
 
243
- [data-is-open-options="true"] {
244
- display: block
245
- }
246
-
247
- //AutoComplete
248
- .is-autocomplete {
249
- .autocomplete-menu {
250
- display: none;
251
- }
252
-
253
- &.is-active {
254
- .autocomplete-menu {
255
- display: block;
256
- border: var(--border);
257
- border-radius: var(--radius-small);
258
- max-height: 220px;
259
- overflow-y: auto;
260
- background-color: getColor('background');
261
- z-index: 10000;
262
- }
263
-
264
- .autocomplete-item {
265
- cursor: pointer;
266
- padding: 16px;
267
-
268
- @include hover();
269
-
270
- &.is-active, &[data-autocomplete-item-hover] {
271
- @include hoverRules();
272
- font-weight: bold;
273
- }
274
- }
88
+ &-trilogy_modal_open {
89
+ position: fixed;
90
+ top:0;
91
+ left:0;
92
+ right:0;
93
+ bottom:0;
94
+ z-index: 1000;
275
95
  }
276
96
  }
277
97
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta.33",
3
+ "version": "0.0.1-beta.35",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [