@trilogy-ds/styles 0.0.1-beta-148 → 0.0.1-beta-149

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,69 +1,59 @@
1
1
  .image {
2
- display: block;
3
- position: relative;
4
-
5
- &.is-justified-start,
6
- &.is-justified-center,
7
- &.is-justified-end {
8
- display: flex;
9
- }
10
-
11
- img {
12
2
  display: block;
13
- max-width: 100%;
3
+ position: relative;
14
4
 
15
- &.b-loaded {
16
- height: auto;
17
- }
5
+ img {
6
+ display: block;
7
+ max-width: 100%;
18
8
 
19
- &.is-circled {
20
- border-radius: 50%;
9
+ &.b-loaded {
10
+ height: auto;
11
+ }
21
12
  }
22
- }
23
13
  }
24
14
 
25
15
  .b-lazy {
26
- transition: opacity 250ms ease-in-out;
27
- opacity: 0;
16
+ transition: opacity 250ms ease-in-out;
17
+ opacity: 0;
28
18
 
29
- &.b-loaded {
30
- opacity: 1;
19
+ &.b-loaded {
20
+ opacity: 1;
31
21
 
32
- &.has-bg-image {
33
- &.has-bg-gradient {
34
- &::before {
35
- opacity: 0;
22
+ &.has-bg-image {
23
+ &.has-bg-gradient {
24
+ &::before {
25
+ opacity: 0;
26
+ }
27
+ }
36
28
  }
37
- }
38
29
  }
39
- }
40
30
 
41
- &.has-bg-image {
42
- background-repeat: no-repeat;
43
- background-position: center center;
44
- background-size: cover;
45
- position: absolute;
46
- top: 0;
47
- bottom: 0;
48
- left: 0;
49
- right: 0;
50
- height: 100%;
51
-
52
- &.has-bg-gradient {
53
- z-index: zindex('void');
54
- opacity: 1;
55
-
56
- &::before {
57
- content: '';
58
- opacity: 1;
31
+ &.has-bg-image {
32
+ background-repeat: no-repeat;
33
+ background-position: center center;
34
+ background-size: cover;
59
35
  position: absolute;
60
36
  top: 0;
37
+ bottom: 0;
61
38
  left: 0;
62
39
  right: 0;
63
- bottom: 0;
64
- z-index: zindex('tiny');
65
- transition: opacity 750ms ease-in-out;
66
- }
40
+ height: 100%;
41
+
42
+ &.has-bg-gradient {
43
+ z-index: zindex('void');
44
+ opacity: 1;
45
+
46
+ &::before {
47
+ content: '';
48
+ opacity: 1;
49
+ position: absolute;
50
+ top: 0;
51
+ left: 0;
52
+ right: 0;
53
+ bottom: 0;
54
+ z-index: zindex('tiny');
55
+ transition: opacity 750ms ease-in-out;
56
+ }
57
+ }
67
58
  }
68
- }
69
59
  }
@@ -1,62 +1,53 @@
1
1
  // Bullet list classiques
2
2
  ul.list,
3
3
  ol.list {
4
- list-style: disc inside;
5
- display: grid;
6
- row-gap: $spacing-3;
4
+ list-style-type: none;
7
5
 
8
- li.list-item {
9
- &:has(.icon) {
10
- list-style: none;
11
- display: flex;
12
- }
13
-
14
- .icon {
15
- margin-right: $spacing-2;
16
- justify-content: flex-start;
17
- align-items: flex-start;
18
- }
19
-
20
- .list-item-content {
21
- display: inline-grid;
6
+ li {
7
+ padding: $spacing-4;
8
+ position: relative;
22
9
 
10
+ .list-item_content {
11
+ display: flex;
12
+ align-items: center;
23
13
  &_puce {
24
14
  margin-right: $spacing-4;
25
15
  }
26
16
  }
27
17
 
18
+
28
19
  &.has-action {
29
20
  display: flex;
30
21
  justify-content: space-between;
31
22
  align-items: center;
23
+ @include hover();
32
24
 
33
25
  .list-item_action {
34
- & > :first-child {
35
- margin: 0 !important;
26
+ & >:first-child {
27
+ margin: 0px !important;
36
28
  cursor: pointer;
37
29
  }
38
30
 
39
- .radio label.radio-label:empty,
31
+ .radio label.radio-label:empty,
40
32
  .checkbox label.checkbox-label:empty {
41
- padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
33
+ padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
42
34
  }
43
- }
35
+
36
+ }
37
+
44
38
  }
45
39
 
46
40
  div b {
47
- margin-bottom: $spacing-2;
41
+ margin-bottom: $spacing-2 ;
48
42
  }
49
- }
50
43
 
51
- &.has-divider {
52
- li {
53
- border-bottom: var(--border);
54
- padding-bottom: $spacing-3;
55
-
56
- &:last-child {
57
- border-bottom: none;
58
- padding-bottom: 0;
59
- }
44
+ .divider {
45
+ position: absolute;
46
+ bottom: calc(-1 * $spacing-4);
47
+ width: 100%;
60
48
  }
49
+
61
50
  }
51
+
62
52
  }
53
+
@@ -14,54 +14,66 @@ $text-levels-mobile: (
14
14
 
15
15
  .text {
16
16
  @each $text-level in $text-levels {
17
- $i: index($text-levels, $text-level);
18
- $font-size: nth($text-level, 1);
19
- $line-height: nth($text-level, 2);
17
+ $i: index($text-levels, $text-level);
18
+ $font-size: nth($text-level, 1);
19
+ $line-height: nth($text-level, 2);
20
+ $margin-bottom: nth($text-level, 3);
20
21
 
21
- &.is-level-#{$i} {
22
- font-size: $font-size;
23
- line-height: $line-height;
24
- font-family: $family-primary;
25
- }
26
- }
22
+ &.is-level-#{$i} {
23
+ font-size: $font-size;
24
+ line-height: $line-height;
25
+ font-family: $family-primary;
26
+ margin-bottom: $margin-bottom;
27
+ }
28
+ }
29
+
30
+ &.is-inverted {
31
+ color: getColor('background');
32
+ }
33
+
34
+ @include mobile {
35
+ @each $text-level-mobile in $text-levels-mobile {
36
+ $i: index($text-levels-mobile, $text-level-mobile);
37
+ $margin-bottom: nth($text-level-mobile, 3);
27
38
 
28
- &.is-inverted {
29
- color: getColor('background');
30
- }
39
+ &.is-level-#{$i} {
40
+ margin-bottom: $margin-bottom;
41
+ }
42
+ }
43
+ }
31
44
 
32
- @include mobile {
33
- @each $text-level-mobile in $text-levels-mobile {
34
- $i: index($text-levels-mobile, $text-level-mobile);
45
+ &.is-wrapped {
46
+ word-break: break-word;
47
+ }
48
+
49
+ &.bold {
50
+ font-weight: $weight-bold;
51
+ }
35
52
  }
36
- }
37
53
 
38
- &.is-wrapped {
39
- word-break: break-word;
40
- }
41
54
 
42
- &.bold {
43
- font-weight: $weight-bold;
44
- }
55
+ .paragraph:not(:last-child) {
56
+ margin-bottom: 10px;
45
57
  }
46
58
 
47
59
  .span {
48
- font-style: inherit;
49
- font-weight: inherit;
60
+ font-style: inherit;
61
+ font-weight: inherit;
50
62
  }
51
63
 
52
64
  .strong {
53
- color: inherit;
54
- font-weight: $weight-bold;
65
+ color: inherit;
66
+ font-weight: $weight-bold;
55
67
  }
56
68
 
57
69
  .sup {
58
- line-height: 0;
59
- position: relative;
60
- vertical-align: baseline;
61
- top: -0.4em;
62
- font-size: 0.7em;
70
+ line-height: 0;
71
+ position: relative;
72
+ vertical-align: baseline;
73
+ top: -0.4em;
74
+ font-size: 0.7em;
63
75
  }
64
76
 
65
77
  .small {
66
- font-size: 0.875em;
78
+ font-size: 0.875em;
67
79
  }
@@ -201,23 +201,3 @@ $slides-concat: '';
201
201
  $slides-concat: $slides-concat + ' + ' + var(--#{$name});
202
202
  }
203
203
  }
204
-
205
- .progress-legends {
206
- display: grid;
207
- grid-template-columns: repeat(3, 1fr);
208
-
209
- .progress-legend-start {
210
- grid-column: 1;
211
- text-align: left;
212
- }
213
-
214
- .progress-legend-center {
215
- grid-column: 2;
216
- text-align: center;
217
- }
218
-
219
- .progress-legend-end {
220
- grid-column: 3;
221
- text-align: right;
222
- }
223
- }
@@ -2,22 +2,17 @@
2
2
 
3
3
  .radios {
4
4
  width: 100%;
5
- gap: 16px;
5
+ column-gap: 16px;
6
6
  display: flex;
7
7
  flex-wrap: wrap;
8
- flex-direction: column;
9
8
 
10
- @include tablet {
11
- flex-direction: row;
12
-
13
- &.is-vertical-desktop {
14
- flex-direction: column;
15
- }
9
+ &.is-vertical {
10
+ row-gap: 16px;
16
11
  }
17
12
 
18
13
  @include mobile {
19
- &.is-horizontal-mobile {
20
- flex-direction: row;
14
+ &:not(.is-mobile){
15
+ display: block;
21
16
  }
22
17
  }
23
18
 
@@ -30,52 +25,51 @@
30
25
 
31
26
  .radio,
32
27
  .radio-tile {
33
- input:checked ~ label.radio-label {
34
- cursor: default;
35
-
36
- &:after {
37
- content: '';
38
- width: 12px;
39
- height: 12px;
28
+ input:checked ~ label.radio-label {
29
+ cursor: default;
30
+ &:after {
31
+ content: '';
32
+ width: 12px;
33
+ height: 12px;
34
+ }
40
35
  }
41
- }
42
36
 
43
- label.radio-label {
44
- &:before,
45
- &:after {
46
- border-radius: 9999px;
37
+ label.radio-label {
38
+ &:before,
39
+ &:after {
40
+ border-radius: 9999px;
41
+ }
47
42
  }
48
- }
49
43
  }
50
44
 
51
45
  .radio {
52
- input:checked ~ label.radio-label {
53
- &:after {
54
- left: 3px;
46
+ input:checked ~ label.radio-label {
47
+ &:after {
48
+ left: 3px;
49
+ }
55
50
  }
56
- }
57
51
 
58
- input:not(:disabled):not(:checked) ~ label.radio-label:hover {
59
- &:before {
60
- @include hoverRules()
52
+ input:not(:disabled):not(:checked) ~ label.radio-label:hover {
53
+ &:before {
54
+ @include hoverRules()
55
+ }
61
56
  }
62
- }
63
-
57
+
64
58
  }
65
59
 
66
60
  .radio-tile {
67
- input:checked ~ label.radio-label {
68
- &:after {
69
- top: 18px;
70
- right: 18px;
61
+ input:checked ~ label.radio-label {
62
+ &:after {
63
+ top: 18px;
64
+ right: 18px;
65
+ }
71
66
  }
72
- }
73
67
 
74
- input:checked:disabled ~ label.radio-label {
75
- &:after {
76
- background-color: getColor('neutral');
77
- top: 19px;
78
- right: 19px;
68
+ input:checked:disabled ~ label.radio-label {
69
+ &:after {
70
+ background-color: getColor('neutral');
71
+ top: 19px;
72
+ right: 19px;
73
+ }
79
74
  }
80
- }
81
75
  }
@@ -1,11 +1,6 @@
1
1
  .switch {
2
2
  position: relative;
3
3
  margin: 8px;
4
- width: fit-content;
5
-
6
- &.is-fullwidth {
7
- width: 100%;
8
- }
9
4
 
10
5
  input {
11
6
  display: none;
@@ -13,7 +8,6 @@
13
8
  &:disabled ~ label,
14
9
  &:disabled:checked ~ label {
15
10
  cursor: not-allowed;
16
-
17
11
  &:before {
18
12
  background-color: getColor('disabled');
19
13
  }
@@ -153,9 +153,7 @@
153
153
  }
154
154
  }
155
155
 
156
- &.has-border-all {
157
- border: 1px solid getColor('neutral-fade');
158
-
156
+ &:not(.is-bordered).is-comparative {
159
157
  th {
160
158
  border-right: 1px solid getColor('neutral-fade');
161
159
  }
@@ -167,24 +165,26 @@
167
165
  }
168
166
  }
169
167
 
170
- &.has-border-inner {
168
+ &.is-compact {
169
+ td,
171
170
  th {
172
- &:not(:last-child) {
173
- border-right: 1px solid getColor('neutral-fade');
174
- }
175
- }
176
-
177
- td {
178
- &:not(:last-child) {
179
- border-right: 1px solid getColor('neutral-fade');
180
- }
171
+ padding: math.div(20px, 3) math.div(20px, 3);
181
172
  }
182
173
  }
183
174
 
184
- &.is-compact {
175
+ &.is-bordered {
185
176
  td,
186
177
  th {
187
- padding: math.div(20px, 3) math.div(20px, 3);
178
+ border-width: 1px;
179
+ }
180
+
181
+ tr {
182
+ &:last-child {
183
+ td,
184
+ th {
185
+ border-bottom-width: 1px;
186
+ }
187
+ }
188
188
  }
189
189
  }
190
190
 
@@ -2,10 +2,10 @@ $tag-delete-margin: 1px !default;
2
2
 
3
3
  // container pour multi-tags ou tags avec actions
4
4
  .tags {
5
- display: flex;
6
- justify-content: flex-start;
7
5
  align-items: center;
6
+ display: inline-flex;
8
7
  flex-wrap: wrap;
8
+ justify-content: flex-start;
9
9
  margin-bottom: 16px;
10
10
 
11
11
  // multi-tags : ajout d'une marge bottom, supprimable par facette