@trilogy-ds/styles 0.0.1-beta.30 → 0.0.1-beta.32

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.
@@ -25,6 +25,16 @@ $price-levels: (
25
25
  &.is-level-#{$i} {
26
26
  font-size: $font-size;
27
27
 
28
+ @if $i < 4 {
29
+ + .price-tag {
30
+ span:nth-child(2) {
31
+ font-size: 10px;
32
+ place-self: flex-end;
33
+ margin-bottom: 3px;
34
+ }
35
+ }
36
+ }
37
+
28
38
  @if $i > 4 {
29
39
  .price-details {
30
40
  padding-left: 2px !important;
@@ -20,7 +20,6 @@
20
20
  height: 42px;
21
21
  color: getColor('font');
22
22
  background-color: getBGColor('neutral');
23
- font-family: $body-family;
24
23
 
25
24
  &:not(:last-child) {
26
25
  margin-right: 4px;
@@ -99,7 +99,6 @@
99
99
  background-color: transparent;
100
100
  border: none;
101
101
  color: getColor('font');
102
- font-family: $family-sans-serif;
103
102
  text-decoration: none;
104
103
  outline: none;
105
104
  padding: 6px 14px;
@@ -40,7 +40,6 @@ $button-border-width: 2px !default;
40
40
  cursor: pointer;
41
41
  justify-content: center;
42
42
  text-align: center;
43
- font-family: $body-family;
44
43
  white-space: nowrap;
45
44
  padding: 0 $spacing-4;
46
45
  text-decoration: inherit;
@@ -62,7 +61,7 @@ $button-border-width: 2px !default;
62
61
  }
63
62
  }
64
63
 
65
- &[disabled],
64
+ &[disabled],
66
65
  &[aria-disabled=true] {
67
66
  background-color: getBGColorValue('main') !important;
68
67
  color: getBGColorValue('disabled') !important
@@ -4,7 +4,6 @@
4
4
 
5
5
  padding-left: $spacing-4;
6
6
  padding-right: $spacing-4;
7
- font-family: $body-family;
8
7
  font-size: $size-medium;
9
8
  max-width: 100%;
10
9
  width: 100%;
@@ -20,6 +19,12 @@
20
19
  }
21
20
  }
22
21
 
22
+ &:active,
23
+ &:focus,
24
+ &:focus-visible:not(.icon) {
25
+ padding-left: 15px !important;
26
+ }
27
+
23
28
  // Sizes
24
29
  &.is-small {
25
30
  @include control-small;
@@ -1,41 +1,46 @@
1
1
  .field {
2
2
 
3
- .has-icons-left {
4
- input {
5
- padding-left: 45px;
6
- }
7
- label {
8
- left: 45px;
9
- }
10
- .icon-left
11
- {
12
- position: absolute;
13
- height: 100%;
14
- width: 45px;
15
- left: 0;
16
-
17
- i {
18
- font-size: 20px;
19
- }
3
+ .has-icons-left {
4
+ input {
5
+ padding-left: 45px;
6
+
7
+ &:active,
8
+ &:focus,
9
+ &:focus-visible:not(.has-icons-left):not(disabled) {
10
+ padding-left: 44px !important;
11
+ }
12
+
13
+ label {
14
+ left: 45px;
15
+ }
16
+
17
+ .icon-left {
18
+ position: absolute;
19
+ height: 100%;
20
+ width: 45px;
21
+ left: 0;
22
+
23
+ i {
24
+ font-size: 20px;
20
25
  }
26
+ }
21
27
 
22
28
 
23
29
  }
24
30
 
25
31
  .has-icons-right {
26
- .icon-right
27
- {
28
- position: absolute;
29
- height: 100%;
30
- width: 45px;
31
- z-index: 10;
32
- right: 0;
33
- left: auto;
34
- i {
35
- font-size: 20px;
36
- }
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;
37
42
  }
43
+ }
38
44
  }
39
-
40
-
45
+ }
41
46
  }
@@ -12,7 +12,7 @@
12
12
  color: getColor($link-colors);
13
13
  box-decoration-break: clone;
14
14
  text-decoration: underline 1px solid;
15
- text-underline-offset: 4px;
15
+ text-underline-offset: 2px;
16
16
  cursor: pointer;
17
17
 
18
18
  &.has-icon {
@@ -20,7 +20,6 @@
20
20
  display: inline-block;
21
21
  max-width: 100%;
22
22
  position: relative;
23
- font-family: $body-family;
24
23
  border-radius: var(--radius-small);
25
24
  background-color: getColor('background');
26
25
  display: block;
@@ -37,7 +36,7 @@
37
36
  max-width: 100%;
38
37
  width: 100%;
39
38
  font-size: 1em;
40
- font-family: $body-family;
39
+ font-family: $family-sans-serif;
41
40
  color: getColor('font');
42
41
  cursor: pointer;
43
42
  -webkit-appearance: none;
@@ -610,7 +610,7 @@
610
610
  }
611
611
 
612
612
  @mixin hover {
613
- &:hover:not(.is-disabled) {
613
+ &:hover:not(.is-disabled):not(:focus) {
614
614
  @include hoverRules();
615
615
  }
616
616
  &:focus:not(.is-disabled), &:focus-visible:not(.is-disabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "0.0.1-beta.30",
3
+ "version": "0.0.1-beta.32",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [