@trilogy-ds/styles 4.0.7-test-svg → 4.1.0

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.
@@ -4,47 +4,33 @@
4
4
 
5
5
  ul,
6
6
  ol {
7
- @include desktop {
8
- display: flex;
9
- flex-wrap: wrap;
10
- }
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ gap: $spacing-2;
11
10
  }
12
11
 
13
12
  li {
14
- display: inline;
15
13
  position: relative;
14
+ display: flex;
15
+ align-items: center;
16
+ font-weight: 500;
16
17
 
17
- @include desktop {
18
- display: flex;
19
- align-items: center;
20
- }
21
-
22
- &:first-child a {
23
- margin-left: 0;
24
- }
25
-
26
- &.is-active {
27
- a {
28
- color: getColor('font');
29
- cursor: default;
30
- pointer-events: none;
31
- text-decoration: none;
32
- }
33
- }
34
-
35
- + li a::before {
36
- content: ">";
37
- text-align: center;
38
- padding-right: 0.5em;
39
- text-decoration: none;
40
- display: inline-block;
18
+ + li::before {
19
+ content: "";
20
+ width: 18px;
21
+ height: 18px;
22
+ mask-image: url('./assets/icons/all/arrow-right.svg');
23
+ mask-position: center;
24
+ mask-repeat: no-repeat;
25
+ mask-size: cover;
26
+ background-color: #1b3650;
27
+ margin-right: $spacing-2;
41
28
  }
42
29
  }
43
30
 
44
31
  a {
45
32
  color: getColor('main');
46
- margin: 0 0.5em;
47
- text-decoration: underline;
33
+ text-decoration: underline 2px solid;
48
34
  text-underline-offset: 4px;
49
35
  }
50
36
  }
@@ -153,8 +153,9 @@ body:has(.modal.is-active) {
153
153
  }
154
154
 
155
155
  .modal-body {
156
- padding: $spacing-5;
157
- padding-top: 0;
156
+ padding: 0 $spacing-5 $spacing-5 ;
157
+ }
158
+ &:has(>.modal-footer) > .modal-body {
158
159
  padding-bottom: 0;
159
160
  }
160
161
 
@@ -72,6 +72,39 @@
72
72
  padding-left: 0;
73
73
  padding-right: 0;
74
74
  }
75
+
76
+ &::-webkit-search-cancel-button{
77
+ $colorSvg: encodecolor(getColorValue('main'));
78
+ position:absolute;
79
+ right: 0px;
80
+ bottom : 0px;
81
+ top:0px;
82
+ padding: 0 24px;
83
+ opacity: 1;
84
+ display: block;
85
+ background-image: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="#{$colorSvg}" stroke-linecap="round" stroke-width="3.2" fill="none"><path d="M12.6 12.6L31.4 31.4M12.6 31.4L31.4 12.6"/></svg>');
86
+ background-size : 20px;
87
+ -webkit-appearance: none;
88
+ background-repeat: no-repeat;
89
+ background-color: getColor('background') ;
90
+ background-position: center;
91
+ }
92
+
93
+ &[type="search"] {
94
+ padding-right: 45px;
95
+ &:hover:not(:focus){
96
+ &::-webkit-search-cancel-button {
97
+ background-color: getColor('main-fade');
98
+ }
99
+ }
100
+ &:focus{
101
+ &::-webkit-search-cancel-button {
102
+ padding: 0 23px;
103
+ }
104
+ }
105
+ }
106
+
107
+
75
108
  }
76
109
 
77
110
  .textarea {
@@ -1,58 +1,59 @@
1
1
  // Bullet list classiques
2
+ ol.list {
3
+ counter-reset: customCounter;
4
+
5
+ li.list-item {
6
+ counter-increment: customCounter;
7
+ &:not(:has(.icon)) {
8
+ &::before{
9
+ content: counter(customCounter) ". ";
10
+ margin-right:$spacing-4;
11
+ font-weight: $weight-bold;
12
+ font-size: $text-14 !important;
13
+ font-family: $family-secondary;
14
+ line-height: 1.5 !important;
15
+
16
+ }
17
+ }
18
+ }
19
+ }
20
+
21
+ ul.list {
22
+ li.list-item {
23
+ &:not(:has(.icon)) {
24
+ &::before{
25
+ content:'.';
26
+ margin-right:$spacing-4;
27
+ font-weight: 900;
28
+ font-size: $text-24;
29
+ line-height: 8px;
30
+ }
31
+ }
32
+ }
33
+ }
34
+
2
35
  ul.list,
3
36
  ol.list {
4
- list-style: disc ;
5
37
  display: grid;
6
38
  row-gap: $spacing-3;
7
39
 
8
40
  li.list-item {
41
+ display: flex;
9
42
  &:has(.icon) {
10
43
  list-style: none;
11
44
  display: flex;
12
45
  }
13
-
14
46
  .icon {
15
47
  margin-right: $spacing-2;
16
48
  justify-content: flex-start;
17
49
  align-items: flex-start;
18
50
  }
19
-
20
- .list-item-content {
21
- display: inline-grid;
22
-
23
- &_puce {
24
- margin-right: $spacing-4;
25
- }
26
- }
27
-
28
- &.has-action {
29
- display: flex;
30
- justify-content: space-between;
31
- align-items: center;
32
-
33
- .list-item_action {
34
- & > :first-child {
35
- margin: 0 !important;
36
- cursor: pointer;
37
- }
38
-
39
- .radio label.radio-label:empty,
40
- .checkbox label.checkbox-label:empty {
41
- padding: $spacing-1 $spacing-1 $spacing-1 calc($spacing-1 + 10px);
42
- }
43
- }
44
- }
45
-
46
- div b {
47
- margin-bottom: $spacing-2;
48
- }
49
51
  }
50
52
 
51
53
  &.has-divider {
52
54
  li {
53
55
  border-bottom: var(--border);
54
56
  padding-bottom: $spacing-3;
55
-
56
57
  &:last-child {
57
58
  border-bottom: none;
58
59
  padding-bottom: 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "4.0.7-test-svg",
3
+ "version": "4.1.0",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [