@trilogy-ds/styles 4.0.6 → 4.0.7-SC-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.
@@ -19,7 +19,7 @@
19
19
  cursor: pointer;
20
20
  padding: calc($spacing-1 - 0.25px) calc($spacing-1 + 1px);
21
21
 
22
- &.is-active, &[data-autocomplete-item-hover] {
22
+ &.is-active, &[data-autocomplete-item-hover], &:hover {
23
23
  @include hoverRules();
24
24
  margin-left: calc(2px - $spacing-3 );
25
25
  margin-right: calc(2px - $spacing-3 );
@@ -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.6",
3
+ "version": "4.0.7-SC-beta-2",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [