@trilogy-ds/styles 4.0.0-textarea-native → 4.0.1-beta-1

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.
@@ -5,14 +5,14 @@
5
5
  .otp {
6
6
  @include hover();
7
7
  outline: none;
8
- border: 1px solid currentColor;
8
+ border: var(--border);
9
9
  border-radius: var(--radius-small);
10
10
  background: transparent;
11
11
  width: 33px;
12
12
  height: 40px;
13
13
  margin: 4px 4px 0 4px;
14
14
  text-align: center;
15
- color: getColor('neutral');
15
+ color: getColor('main');
16
16
 
17
17
  &:first-child {
18
18
  margin: 4px 4px 0 0;
@@ -33,6 +33,10 @@
33
33
  padding-left: 0.75em;
34
34
  padding-right: 0.75em;
35
35
  white-space: nowrap;
36
+
37
+ &[aria-disabled=true]{
38
+ border-color: transparent !important;
39
+ }
36
40
  }
37
41
 
38
42
  .pagination-list {
@@ -37,6 +37,7 @@ $price-levels: (
37
37
  flex: none;
38
38
  margin: 0;
39
39
  font-size: calc(var(--font-size) * 0.4);
40
+ font-weight: 400;
40
41
  }
41
42
 
42
43
  .price {
@@ -54,6 +55,30 @@ $price-levels: (
54
55
  font-weight: $weight-semibold;
55
56
  line-height: 0.8;
56
57
  margin-bottom: 0;
58
+ font-size: var(--font-size);
59
+
60
+ &.strike {
61
+ font-size: var(--strike-font-size);
62
+ }
63
+
64
+
65
+ @each $price-level in $price-levels {
66
+ $i: index($price-levels, $price-level);
67
+ $font-size: nth($price-level, 1);
68
+ $strike-font-size: nth($price-level, 2);
69
+
70
+ &.is-level-#{$i} {
71
+ --font-size: #{$font-size};
72
+ --strike-font-size: #{$strike-font-size};
73
+
74
+ @if $i > 4 {
75
+ .price-details {
76
+ padding-left: 2px;
77
+ }
78
+ }
79
+ }
80
+ }
81
+
57
82
 
58
83
  // the details : cents + period
59
84
 
@@ -204,7 +204,7 @@
204
204
 
205
205
  @keyframes progress {
206
206
  0%, 100% {
207
- background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral-fade') 50%, getColor('neutral-fade') 100%);
207
+ background-image: linear-gradient(to right, transparent 0, transparent 50%, getColor('neutral') 50%, getColor('neutral') 100%);
208
208
  }
209
209
  0% {
210
210
  background-position: 100% 0;
@@ -97,7 +97,6 @@ a.box {
97
97
  padding-left: var(--padding-box);
98
98
  padding-right: var(--padding-box);
99
99
  box-shadow: none;
100
- font-size: 15px;
101
100
  display: flex;
102
101
  justify-content: center;
103
102
  flex-direction: column;
@@ -163,8 +162,14 @@ a.box {
163
162
  margin-right: calc(var(--padding-box) * -1);
164
163
  margin-bottom: calc(var(--padding-box) * -1);
165
164
  padding: var(--padding-box);
166
- border-top: 1px solid getColor('neutral-fade');
167
165
  border-bottom-left-radius: var(--radius);
168
166
  border-bottom-right-radius: var(--radius);
169
167
  }
168
+ .box-footer:not(.is-borderless):not([class*="has-background"])::before{
169
+ content: '';
170
+ display: block;
171
+ border-top: var(--border);
172
+ position: relative;
173
+ top: calc(var(--padding-box) * -1);
174
+ }
170
175
  }
@@ -60,6 +60,7 @@ $button-border-width: 2px !default;
60
60
 
61
61
  &[disabled],
62
62
  &[aria-disabled=true] {
63
+ border-color: transparent !important;
63
64
  background-color: getColorValue('main-fade') !important;
64
65
  color: getColorValue('disabled-fade') !important
65
66
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "4.0.0-textarea-native",
3
+ "version": "4.0.1-beta-1",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [