@trilogy-ds/styles 4.4.0-beta-1 → 4.4.0-beta-2

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.
@@ -120,19 +120,19 @@ body:not(.is-tight) {
120
120
  margin-bottom: 40px;
121
121
  }
122
122
  .title.is-level-2:not(:last-child) {
123
- margin-bottom: 32px;
123
+ margin-bottom: 40px;
124
124
  }
125
125
  .title.is-level-3:not(:last-child) {
126
- margin-bottom: 16px;
126
+ margin-bottom: 24px;
127
127
  }
128
128
  .title.is-level-4:not(:last-child) {
129
- margin-bottom: 12px;
129
+ margin-bottom: 24px;
130
130
  }
131
131
  .title.is-level-5:not(:last-child) {
132
- margin-bottom: 12px;
132
+ margin-bottom: 16px;
133
133
  }
134
134
  .title.is-level-6:not(:last-child) {
135
- margin-bottom: 12px;
135
+ margin-bottom: 8px;
136
136
  }
137
137
  .overline:not(:last-child) {
138
138
  margin-bottom: 0px;
@@ -220,7 +220,7 @@ body:not(.is-tight) {
220
220
  margin-bottom: 12px;
221
221
  }
222
222
  p.text:not(:last-child) {
223
- margin-bottom: 8px;
223
+ margin-bottom: 12px;
224
224
  }
225
225
  .progress:not(:last-child) {
226
226
  margin-bottom: 8px;
@@ -283,19 +283,19 @@ body:not(.is-tight) {
283
283
  margin-bottom: 32px;
284
284
  }
285
285
  .title.is-level-2:not(:last-child) {
286
- margin-bottom: 24px;
286
+ margin-bottom: 32px;
287
287
  }
288
288
  .title.is-level-3:not(:last-child) {
289
- margin-bottom: 12px;
289
+ margin-bottom: 24px;
290
290
  }
291
291
  .title.is-level-4:not(:last-child) {
292
- margin-bottom: 8px;
292
+ margin-bottom: 16px;
293
293
  }
294
294
  .title.is-level-5:not(:last-child) {
295
- margin-bottom: 8px;
295
+ margin-bottom: 12px;
296
296
  }
297
297
  .title.is-level-6:not(:last-child) {
298
- margin-bottom: 8px;
298
+ margin-bottom: 12px;
299
299
  }
300
300
  .overline:not(:last-child) {
301
301
  margin-bottom: 0px;
@@ -1,7 +1,4 @@
1
1
  .textarea-wrapper {
2
- display: inline;
3
- position: relative;
4
- margin: 16px 0;
5
2
 
6
3
  .textarea-label {
7
4
  display: inline-block;
@@ -13,88 +10,14 @@
13
10
  }
14
11
 
15
12
  textarea.textarea {
16
- padding: $spacing-4;
17
- border-radius: var(--radius-small);
18
- outline: none;
19
-
20
- &:focus,
21
- &:focus-visible {
22
- padding: 15px;
23
- }
24
-
25
- &::placeholder {
13
+ &::placeholder, label {
26
14
  font-size: 16px;
27
15
  }
28
-
29
- &.has-dynamic-label {
30
- &.has-icon ~ label {
31
- left: $spacing-9;
32
- margin-right: 2px;
33
- width: calc(100% - 98px);
34
- }
35
-
36
- ~ label {
37
- visibility: visible;
38
- position: absolute;
39
- top: 2px;
40
- left: $spacing-4;
41
- padding-top: $spacing-2;
42
- width: calc(100% - 28px - 2px);
43
- font-size: 12px;
44
- color: getColor('font');
45
- filter: grayscale(100%);
46
- transition: top 0.2s ease-out;
47
- }
48
-
49
- &:placeholder-shown {
50
- ~ label {
51
- visibility: hidden;
52
- top: $spacing-4;
53
- background-color: getColor('background');
54
- transition: none;
55
- }
56
- }
57
-
58
- &:not(:placeholder-shown) {
59
- padding-top: $spacing-5;
60
- }
61
- }
62
-
63
- &.has-icon {
64
- padding-left: $spacing-9;
65
- padding-right: $spacing-9;
66
-
67
- &:focus,
68
- &:focus-visible {
69
- padding-left: 55px !important;
70
- padding-right: 55px;
71
- }
72
- }
73
- }
74
-
75
- label {
76
- font-size: 16px;
77
- }
78
-
79
- .textarea-label + .textarea-sample ~ span.icon {
80
- top: 72px !important;
81
- }
82
-
83
- .textarea-label ~ span.icon {
84
- top: 45px !important;
85
16
  }
86
17
 
87
- span.icon {
88
- position: absolute;
89
- top: $spacing-4;
90
-
91
- &:first-of-type {
92
- left: $spacing-4;
93
- }
94
-
95
- &:nth-of-type(2) {
96
- right: $spacing-4;
97
- }
18
+ .icon {
19
+ align-items: flex-start !important;
20
+ padding-top: 18px !important;
98
21
  }
99
22
 
100
23
  // Colors
@@ -105,19 +28,8 @@
105
28
  &.is-#{$brandName} {
106
29
  textarea.textarea {
107
30
  border-color: $color;
108
-
109
- &:active,
110
- &:focus,
111
- &:focus-visible {
112
- &:not(:placeholder-shown) {
113
- padding-top: 29px;
114
- }
115
- }
116
31
  }
117
32
 
118
- span.icon:nth-of-type(2) {
119
- color: $color;
120
- }
121
33
  }
122
34
  }
123
35
 
@@ -3,7 +3,7 @@
3
3
  &:active,
4
4
  &:focus,
5
5
  &:focus-visible:not(.icon) {
6
- padding-left: 15px !important;
6
+ padding-left: 15px ;
7
7
  }
8
8
  }
9
9
  }
@@ -47,10 +47,6 @@
47
47
  display: inline;
48
48
  }
49
49
 
50
- .icon-status {
51
- color: aqua !important;
52
- }
53
-
54
50
  & label {
55
51
  margin-top: 10px;
56
52
  }
@@ -131,4 +127,9 @@
131
127
  &.has-fixed-size {
132
128
  resize: none;
133
129
  }
130
+
131
+ &:focus-visible{
132
+ padding-top: 14px;
133
+ padding-bottom: 4px;
134
+ }
134
135
  }
@@ -248,6 +248,7 @@ $label-weight: $weight-bold;
248
248
 
249
249
  &.has-icons-left {
250
250
  .input,
251
+ .textarea,
251
252
  .select select {
252
253
  padding-left: 45px;
253
254
  }
@@ -259,13 +260,6 @@ $label-weight: $weight-bold;
259
260
  padding: 0 24px;
260
261
  }
261
262
 
262
- .textarea {
263
- padding-left: 50px;
264
- padding-right: $spacing-4;
265
- padding-bottom: $spacing-4 !important;
266
- padding-top: $spacing-4;
267
- }
268
-
269
263
  & .textarea + label {
270
264
  left: 5rem;
271
265
  }
@@ -291,6 +285,7 @@ $label-weight: $weight-bold;
291
285
 
292
286
  &.has-icons-right {
293
287
  .input,
288
+ .textarea,
294
289
  .select select {
295
290
  padding-right: 45px;
296
291
  }
@@ -445,7 +440,7 @@ $label-weight: $weight-bold;
445
440
  }
446
441
  }
447
442
 
448
- &:has(input[disabled]), &:has(select[disabled]) {
443
+ &:has(input[disabled]), &:has(select[disabled]), &:has(textarea[disabled]) {
449
444
  @include disabledRulesWithoutBG;
450
445
  .icon {
451
446
  color: getColor('disabled');
@@ -1,7 +1,7 @@
1
1
  .field {
2
2
 
3
3
  .has-icons-left {
4
- input {
4
+ input, textarea {
5
5
  padding-left: 45px;
6
6
 
7
7
  &:active,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "4.4.0-beta-1",
3
+ "version": "4.4.0-beta-2",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [