@trilogy-ds/styles 0.0.1-beta.5 → 0.0.1-beta.50

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.
Files changed (87) hide show
  1. package/README.md +47 -0
  2. package/dist/default/trilogy-mangled.css +1 -1
  3. package/dist/default/trilogy-partials.css +1 -1
  4. package/dist/default/trilogy.css +1 -1
  5. package/framework/src/base/_color.scss +14 -36
  6. package/framework/src/base/_generic.scss +4 -1
  7. package/framework/src/base/_helpers.scss +20 -37
  8. package/framework/src/base/_loading.scss +8 -1
  9. package/framework/src/base/_reset.scss +8 -3
  10. package/framework/src/components/_accordion.scss +40 -86
  11. package/framework/src/components/_all.scss +0 -6
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +7 -78
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +2 -2
  16. package/framework/src/components/_fab.scss +12 -26
  17. package/framework/src/components/_level.scss +1 -1
  18. package/framework/src/components/_media.scss +2 -2
  19. package/framework/src/components/_modal.scss +167 -166
  20. package/framework/src/components/_otp.scss +9 -28
  21. package/framework/src/components/_pagination.scss +104 -133
  22. package/framework/src/components/_plus-symbol.scss +1 -1
  23. package/framework/src/components/_popover.scss +255 -255
  24. package/framework/src/components/_price.scss +196 -166
  25. package/framework/src/components/_product-tour.scss +2 -4
  26. package/framework/src/components/_range.scss +73 -72
  27. package/framework/src/components/_segmented-control.scss +37 -51
  28. package/framework/src/components/_stepper.scss +18 -142
  29. package/framework/src/components/_tabs.scss +32 -59
  30. package/framework/src/components/_timeline.scss +52 -45
  31. package/framework/src/elements/_alert.scss +5 -8
  32. package/framework/src/elements/_all.scss +1 -3
  33. package/framework/src/elements/_autocomplete.scss +32 -0
  34. package/framework/src/elements/_badge.scss +54 -59
  35. package/framework/src/elements/_box.scss +8 -115
  36. package/framework/src/elements/_button.scss +15 -133
  37. package/framework/src/elements/_checkbox.scss +21 -27
  38. package/framework/src/elements/_chips.scss +74 -83
  39. package/framework/src/elements/_dot.scss +1 -1
  40. package/framework/src/elements/_entry.scss +76 -88
  41. package/framework/src/elements/_form.scss +17 -15
  42. package/framework/src/elements/_icon.scss +3 -3
  43. package/framework/src/elements/_input-gauge.scss +32 -33
  44. package/framework/src/elements/_input-icons.scss +33 -31
  45. package/framework/src/elements/_link.scss +38 -65
  46. package/framework/src/elements/_list.scss +38 -46
  47. package/framework/src/elements/_loader.scss +1 -1
  48. package/framework/src/elements/_other.scss +2 -2
  49. package/framework/src/elements/_paragraph.scss +4 -26
  50. package/framework/src/elements/_progress.scss +12 -21
  51. package/framework/src/elements/_radio.scss +2 -2
  52. package/framework/src/elements/_select.scss +84 -301
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +85 -88
  55. package/framework/src/elements/_table.scss +173 -226
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +95 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +3 -4
  60. package/framework/src/grid/_columns.scss +5 -5
  61. package/framework/src/layout/_all.scss +0 -1
  62. package/framework/src/layout/_hero.scss +109 -207
  63. package/framework/src/layout/_section.scss +7 -14
  64. package/framework/src/theming/_all.scss +3 -0
  65. package/framework/src/theming/buttons_partial.scss +30 -0
  66. package/framework/src/theming/common_partials.scss +9 -0
  67. package/framework/src/theming/links_partial.scss +20 -0
  68. package/framework/src/utilities/_all.scss +3 -0
  69. package/framework/src/utilities/_background.scss +15 -0
  70. package/framework/src/utilities/_controls.scss +37 -48
  71. package/framework/src/utilities/_derived-variables.scss +3 -14
  72. package/framework/src/utilities/_initial-variables.scss +22 -26
  73. package/framework/src/utilities/_mixins.scss +481 -593
  74. package/framework/src/utilities/_pre.scss +1 -0
  75. package/package.json +3 -2
  76. package/framework/src/components/_disclaimer.scss +0 -84
  77. package/framework/src/components/_dropdown.scss +0 -128
  78. package/framework/src/components/_menu.scss +0 -213
  79. package/framework/src/components/_search-modal.scss +0 -197
  80. package/framework/src/components/_slices.scss +0 -316
  81. package/framework/src/components/_slider.scss +0 -92
  82. package/framework/src/components/_switch.scss +0 -209
  83. package/framework/src/elements/_checkradio.scss +0 -173
  84. package/framework/src/elements/_notification.scss +0 -151
  85. package/framework/src/elements/_options.scss +0 -146
  86. package/framework/src/elements/_timeline.scss +0 -283
  87. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,125 +1,115 @@
1
1
  .textarea-wrapper {
2
- position: relative;
3
- margin: 16px 0;
2
+ position: relative;
3
+ margin: 16px 0;
4
4
 
5
- textarea.textarea {
6
- padding: $spacing-4;
7
- border-radius: 4px;
8
- outline: none;
5
+ textarea.textarea {
6
+ padding: $spacing-4;
7
+ border-radius: var(--radius-small);
8
+ outline: none;
9
9
 
10
- &::placeholder {
11
- font-size: 16px;
12
- }
13
-
14
- &.has-dynamic-label {
15
- &.has-icon ~ label {
16
- left: $spacing-9;
17
- margin-right: 2px;
18
- width: calc(100% - 96px - 2px);
19
- }
20
-
21
- ~ label {
22
- visibility: visible;
23
- position: absolute;
24
- top: 2px;
25
- left: $spacing-4;
26
- padding-top: $spacing-2;
27
- width: calc(100% - 28px - 2px);
28
- font-size: 12px;
29
- color: getColor('grey');
30
- transition: top 0.2s ease-out;
31
- background-color: getColor('background');
32
- }
33
-
34
- &:placeholder-shown {
35
- ~ label {
36
- visibility: hidden;
37
- top: $spacing-4;
38
- background-color: getColor('background');
39
- transition: none;
40
- }
41
- }
42
-
43
- &:not(:placeholder-shown) {
44
- padding-top: $spacing-5;
45
- }
46
- }
10
+ &:focus,
11
+ &:focus-visible {
12
+ padding: 15px;
13
+ }
47
14
 
48
- &:disabled {
49
- background-color: getColor('grey-disabled');
50
- border-color: getColor('grey-disabled');
51
- color: getColor('grey-dark');
15
+ &::placeholder {
16
+ font-size: 16px;
17
+ }
52
18
 
53
- &::placeholder {
54
- color: black;
55
- }
19
+ &.has-dynamic-label {
20
+ &.has-icon ~ label {
21
+ left: $spacing-9;
22
+ margin-right: 2px;
23
+ width: calc(100% - 98px);
24
+ }
56
25
 
57
- & ~ span.icon {
58
- color: getColor('grey');
59
- }
26
+ ~ label {
27
+ visibility: visible;
28
+ position: absolute;
29
+ top: 2px;
30
+ left: $spacing-4;
31
+ padding-top: $spacing-2;
32
+ width: calc(100% - 28px - 2px);
33
+ font-size: 12px;
34
+ color: getColor('neutral');
35
+ transition: top 0.2s ease-out;
36
+ }
37
+
38
+ &:placeholder-shown {
39
+ ~ label {
40
+ visibility: hidden;
41
+ top: $spacing-4;
42
+ background-color: getColor('background');
43
+ transition: none;
60
44
  }
45
+ }
61
46
 
62
- &.has-icon {
63
- padding-left: $spacing-9;
64
- padding-right: $spacing-9;
65
-
66
- &:hover,
67
- &:focus,
68
- &:focus-visible {
69
- padding-left: 55px;
70
- padding-right: 55px;
71
- }
72
- }
47
+ &:not(:placeholder-shown) {
48
+ padding-top: $spacing-5;
49
+ }
73
50
  }
74
51
 
75
- label {
76
- font-size: 16px;
77
- }
52
+ &.has-icon {
53
+ padding-left: $spacing-9;
54
+ padding-right: $spacing-9;
78
55
 
79
- span.icon {
80
- position: absolute;
81
- top: $spacing-4;
56
+ &:focus,
57
+ &:focus-visible {
58
+ padding-left: 55px;
59
+ padding-right: 55px;
60
+ }
61
+ }
62
+ }
82
63
 
83
- &:first-of-type {
84
- left: $spacing-4;
85
- }
64
+ label {
65
+ font-size: 16px;
66
+ }
86
67
 
87
- &:nth-of-type(2) {
88
- right: $spacing-4;
89
- }
90
- }
68
+ span.icon {
69
+ position: absolute;
70
+ top: $spacing-4;
91
71
 
92
- // Colors
93
- @each $name, $pair in $colors-brand-funcionnal {
94
- $color: getColor($name);
95
- $color-invert: invertColor($name);
96
- $brandName: getColorBrandName($name);
97
- &.is-#{$brandName} {
98
- textarea.textarea {
99
- border-color: $color;
100
- &:active,
101
- &:focus,
102
- &:focus-visible {
103
- &:not(:placeholder-shown) {
104
- padding-top: 29px;
105
- }
106
- }
107
- }
108
-
109
- span.icon:nth-of-type(2) {
110
- color: $color;
111
- }
112
- }
72
+ &:first-of-type {
73
+ left: $spacing-4;
113
74
  }
114
75
 
115
- .counter {
116
- position: absolute;
117
- bottom: $spacing-2;
118
- right: $spacing-4;
119
- font-size: 10px;
76
+ &:nth-of-type(2) {
77
+ right: $spacing-4;
120
78
  }
79
+ }
80
+
81
+ // Colors
82
+ @each $name, $pair in $colors-brand-funcionnal {
83
+ $color: getColor($name);
84
+ $color-invert: invertColor($name);
85
+ $brandName: getColorBrandName($name);
86
+ &.is-#{$brandName} {
87
+ textarea.textarea {
88
+ border-color: $color;
89
+
90
+ &:active,
91
+ &:focus,
92
+ &:focus-visible {
93
+ &:not(:placeholder-shown) {
94
+ padding-top: 29px;
95
+ }
96
+ }
97
+ }
121
98
 
122
- .help ~ .counter {
123
- bottom: $spacing-6;
99
+ span.icon:nth-of-type(2) {
100
+ color: $color;
101
+ }
124
102
  }
103
+ }
104
+
105
+ .counter {
106
+ position: absolute;
107
+ bottom: $spacing-2;
108
+ right: $spacing-4;
109
+ font-size: 10px;
110
+ }
111
+
112
+ .help ~ .counter {
113
+ bottom: $spacing-6;
114
+ }
125
115
  }
@@ -7,13 +7,13 @@ $title-strong-weight: inherit;
7
7
  $title-sub-size: 0.5em;
8
8
  $title-sup-size: 0.5em;
9
9
 
10
- $subtitle-size: $text-15;
11
- $subtitle-weight: $weight-semibold;
10
+ $subtitle-size: $text-16;
11
+ $subtitle-weight: $weight-medium;
12
12
  $subtitle-size-tablet: $text-15;
13
13
  $subtitle-line-height: 1.2;
14
14
  $subtitle-strong-weight: $weight-semibold;
15
15
 
16
- $overline-size: $text-15;
16
+ $overline-size: $text-14;
17
17
  $overline-weight: $weight-semibold;
18
18
  $overline-line-height: 1.2;
19
19
  $overline-size-tablet: $text-15;
@@ -38,102 +38,104 @@ $title-levels-mobile: (
38
38
  .title,
39
39
  .subtitle,
40
40
  .overline {
41
- word-break: break-word;
41
+ word-break: break-word;
42
42
 
43
- em,
44
- span {
45
- font-weight: inherit;
46
- }
43
+ em,
44
+ span {
45
+ font-weight: inherit;
46
+ }
47
47
 
48
- .tag {
49
- vertical-align: middle;
50
- }
48
+ .tag {
49
+ vertical-align: middle;
50
+ }
51
51
  }
52
52
 
53
53
  .title {
54
- font-size: $text-32;
55
- font-weight: $title-weight;
56
- line-height: $title-line-height;
57
-
58
- // new typography
59
- @each $title-level in $title-levels {
60
- $i: index($title-levels, $title-level);
61
- $font-size: nth($title-level, 1);
62
- $line-height: nth($title-level, 2);
63
- $font-family: nth($title-level, 3);
64
-
65
- &.is-level-#{$i} {
66
- font-size: $font-size;
67
- line-height: $line-height;
68
- font-family: $font-family;
69
- }
70
-
71
- &.is-medium {
72
- font-weight: $weight-medium;
73
- }
74
-
75
- &.is-inverted {
76
- color: getColor('background');
77
- }
78
-
79
- .details {
80
- font-size: 80%;
81
- color: getColor('grey');
82
- font-weight: $weight-normal;
83
- }
84
-
85
- &.is-section-title {
86
- text-align: center;
87
- }
88
-
89
- @include tablet {
90
- font-size: $text-40;
91
- }
92
-
93
- sup {
94
- top: -0.5em;
95
- font-size: $title-sup-size;
96
- }
97
-
98
- sub {
99
- bottom: -0.5em;
100
- font-size: $title-sub-size;
101
- }
102
-
103
- &.is-centered {
104
- text-align: center;
105
- }
54
+ font-size: $text-32;
55
+ font-weight: $title-weight;
56
+ line-height: $title-line-height;
57
+
58
+ // new typography
59
+ @each $title-level in $title-levels {
60
+ $i: index($title-levels, $title-level);
61
+ $font-size: nth($title-level, 1);
62
+ $line-height: nth($title-level, 2);
63
+ $font-family: nth($title-level, 3);
64
+
65
+ &.is-level-#{$i} {
66
+ font-size: $font-size;
67
+ line-height: $line-height;
68
+ font-family: $font-family;
106
69
  }
107
70
 
108
- @include mobile {
109
- @each $title-level-mobile in $title-levels-mobile {
110
- $i: index($title-levels-mobile, $title-level-mobile);
111
- $font-size-mobile: nth($title-level-mobile, 1);
112
- $line-height-mobile: nth($title-level-mobile, 2);
113
- &.is-level-#{$i} {
114
- font-size: $font-size-mobile;
115
- line-height: $line-height-mobile;
116
- }
117
- }
71
+ &.is-medium {
72
+ font-weight: $weight-medium;
118
73
  }
119
- }
120
74
 
121
- .subtitle {
122
- color: getColor('alternate');
123
- font-size: $subtitle-size;
124
- font-weight: $subtitle-weight;
125
- line-height: $subtitle-line-height;
126
75
  &.is-inverted {
127
- color: getColor('background');
76
+ color: getColor('background');
77
+ }
78
+
79
+ .details {
80
+ font-size: 80%;
81
+ color: getColor('neutral');
82
+ font-weight: $weight-normal;
83
+ }
84
+
85
+ &.is-section-title {
86
+ text-align: center;
87
+ }
88
+
89
+ @include tablet {
90
+ font-size: $text-40;
91
+ }
92
+
93
+ sup {
94
+ top: -0.5em;
95
+ font-size: $title-sup-size;
96
+ }
97
+
98
+ sub {
99
+ bottom: -0.5em;
100
+ font-size: $title-sub-size;
101
+ }
102
+
103
+ &.is-centered {
104
+ text-align: center;
105
+ }
106
+ }
107
+
108
+ @include mobile {
109
+ @each $title-level-mobile in $title-levels-mobile {
110
+ $i: index($title-levels-mobile, $title-level-mobile);
111
+ $font-size-mobile: nth($title-level-mobile, 1);
112
+ $line-height-mobile: nth($title-level-mobile, 2);
113
+ &.is-level-#{$i} {
114
+ font-size: $font-size-mobile;
115
+ line-height: $line-height-mobile;
116
+ }
128
117
  }
118
+ }
119
+ }
120
+
121
+ .subtitle {
122
+ color: getColor('font');
123
+ font-size: $subtitle-size;
124
+ font-weight: $subtitle-weight;
125
+ line-height: $subtitle-line-height;
126
+
127
+ &.is-inverted {
128
+ color: getColor('background');
129
+ }
129
130
  }
130
131
 
131
132
  .overline {
132
- color: getColor('alternate');
133
- font-size: $overline-size;
134
- font-weight: $overline-weight;
135
- line-height: $overline-line-height;
136
- &.is-inverted {
137
- color: getColor('background');
138
- }
133
+ color: getColor('font');
134
+ font-size: $overline-size;
135
+ font-weight: $overline-weight;
136
+ line-height: $overline-line-height;
137
+
138
+ &.is-inverted {
139
+ color: getColor('background');
140
+ }
139
141
  }
@@ -14,7 +14,7 @@ a.toaster {
14
14
 
15
15
 
16
16
  background-color: getColor('bg-info');
17
- border-radius: $radius;
17
+ border-radius: var(--radius);
18
18
  margin-bottom: 16px;
19
19
  position: relative;
20
20
  margin-left: 24px;
@@ -62,10 +62,9 @@ a.toaster {
62
62
  background: transparent;
63
63
  }
64
64
 
65
- @each $name, $pair in $colors-feedback {
66
- $bg-color: nth($pair, 1);
65
+ @each $name in $colors-feedback {
67
66
  &.is-#{$name} {
68
- background-color: getColor($bg-color);
67
+ background-color: getBGColor($name);
69
68
  border: 2px solid getColor($name);
70
69
 
71
70
  .icon {
@@ -772,7 +772,7 @@
772
772
  scroll-behavior: smooth;
773
773
  scroll-snap-type: x mandatory;
774
774
 
775
- >.column {
775
+ > .column {
776
776
  scroll-snap-align: start;
777
777
  }
778
778
 
@@ -781,14 +781,14 @@
781
781
  }
782
782
 
783
783
  &::-webkit-scrollbar-track {
784
- background-color: getColor('grey-disabled');
785
- border-radius: 8px;
784
+ background-color: getBGColor('font');
785
+ border-radius: var(--radius);
786
786
  margin: 0 8px;
787
787
  }
788
788
 
789
789
  &::-webkit-scrollbar-thumb {
790
- background: getColor('alternate');
791
- border-radius: 8px;
790
+ background: getColor('main');
791
+ border-radius: var(--radius);
792
792
  }
793
793
  }
794
794
 
@@ -3,4 +3,3 @@
3
3
  @import "main";
4
4
  @import "section";
5
5
  @import "hero";
6
- @import "toolbar";