@trilogy-ds/styles 0.0.1-beta.9 → 0.0.3-beta-v4

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 (94) hide show
  1. package/dist/default/trilogy-mangled.css +1 -1
  2. package/dist/default/trilogy-partials.css +1 -1
  3. package/dist/default/trilogy.css +1 -1
  4. package/framework/src/base/_color.scss +9 -39
  5. package/framework/src/base/_generic.scss +4 -1
  6. package/framework/src/base/_helpers.scss +13 -38
  7. package/framework/src/base/_loading.scss +8 -1
  8. package/framework/src/base/_reset.scss +8 -3
  9. package/framework/src/components/_accordion.scss +53 -88
  10. package/framework/src/components/_all.scss +1 -7
  11. package/framework/src/components/_autolayout.scss +302 -0
  12. package/framework/src/components/_breadcrumb.scss +39 -34
  13. package/framework/src/components/_card.scss +8 -79
  14. package/framework/src/components/_countdown.scss +49 -47
  15. package/framework/src/components/_divider.scss +10 -15
  16. package/framework/src/components/_fab.scss +25 -38
  17. package/framework/src/components/_modal.scss +161 -158
  18. package/framework/src/components/_otp.scss +10 -29
  19. package/framework/src/components/_pagination.scss +59 -161
  20. package/framework/src/components/_plus-symbol.scss +1 -1
  21. package/framework/src/components/_popover.scss +260 -260
  22. package/framework/src/components/_price.scss +119 -170
  23. package/framework/src/components/_product-tour.scss +2 -4
  24. package/framework/src/components/_progress-radial.scss +24 -19
  25. package/framework/src/components/_range.scss +73 -72
  26. package/framework/src/components/_segmented-control.scss +51 -53
  27. package/framework/src/components/_stepper.scss +42 -222
  28. package/framework/src/components/_tabs.scss +46 -81
  29. package/framework/src/components/_timeline.scss +27 -112
  30. package/framework/src/elements/_alert.scss +13 -10
  31. package/framework/src/elements/_all.scss +1 -4
  32. package/framework/src/elements/_autocomplete.scss +32 -0
  33. package/framework/src/elements/_badge.scss +67 -61
  34. package/framework/src/elements/_box.scss +64 -161
  35. package/framework/src/elements/_button.scss +15 -141
  36. package/framework/src/elements/_checkbox.scss +29 -26
  37. package/framework/src/elements/_chips.scss +69 -85
  38. package/framework/src/elements/_container.scss +7 -39
  39. package/framework/src/elements/_entry.scss +76 -88
  40. package/framework/src/elements/_form.scss +26 -23
  41. package/framework/src/elements/_icon.scss +4 -4
  42. package/framework/src/elements/_image.scss +50 -40
  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 +45 -44
  47. package/framework/src/elements/_loader.scss +2 -2
  48. package/framework/src/elements/_other.scss +0 -37
  49. package/framework/src/elements/_paragraph.scss +35 -69
  50. package/framework/src/elements/_progress.scss +33 -22
  51. package/framework/src/elements/_radio.scss +45 -31
  52. package/framework/src/elements/_select.scss +85 -304
  53. package/framework/src/elements/_sticker.scss +12 -27
  54. package/framework/src/elements/_switch.scss +101 -99
  55. package/framework/src/elements/_table.scss +175 -228
  56. package/framework/src/elements/_tag.scss +104 -105
  57. package/framework/src/elements/_textarea.scss +113 -105
  58. package/framework/src/elements/_title.scss +89 -87
  59. package/framework/src/elements/_toaster.scss +4 -5
  60. package/framework/src/grid/_columns.scss +257 -764
  61. package/framework/src/grid/_rows.scss +45 -38
  62. package/framework/src/layout/_all.scss +0 -1
  63. package/framework/src/layout/_hero.scss +89 -215
  64. package/framework/src/layout/_section.scss +5 -29
  65. package/framework/src/theming/_all.scss +3 -0
  66. package/framework/src/theming/buttons_partial.scss +32 -0
  67. package/framework/src/theming/common_partials.scss +10 -0
  68. package/framework/src/theming/links_partial.scss +20 -0
  69. package/framework/src/utilities/_a11y.scss +13 -0
  70. package/framework/src/utilities/_all.scss +4 -0
  71. package/framework/src/utilities/_background.scss +19 -0
  72. package/framework/src/utilities/_colors.scss +40 -0
  73. package/framework/src/utilities/_controls.scss +38 -49
  74. package/framework/src/utilities/_derived-variables.scss +4 -15
  75. package/framework/src/utilities/_initial-variables.scss +4 -36
  76. package/framework/src/utilities/_mixins.scss +483 -592
  77. package/framework/src/utilities/_pre.scss +1 -0
  78. package/package.json +3 -3
  79. package/framework/src/components/_autolayout2.scss +0 -38
  80. package/framework/src/components/_disclaimer.scss +0 -84
  81. package/framework/src/components/_dropdown.scss +0 -128
  82. package/framework/src/components/_level.scss +0 -120
  83. package/framework/src/components/_media.scss +0 -64
  84. package/framework/src/components/_menu.scss +0 -213
  85. package/framework/src/components/_search-modal.scss +0 -197
  86. package/framework/src/components/_slices.scss +0 -316
  87. package/framework/src/components/_slider.scss +0 -92
  88. package/framework/src/components/_switch.scss +0 -209
  89. package/framework/src/elements/_checkradio.scss +0 -173
  90. package/framework/src/elements/_dot.scss +0 -6
  91. package/framework/src/elements/_notification.scss +0 -151
  92. package/framework/src/elements/_options.scss +0 -146
  93. package/framework/src/elements/_timeline.scss +0 -283
  94. package/framework/src/layout/_toolbar.scss +0 -100
@@ -1,209 +0,0 @@
1
- $switch-margin: 10px !default;
2
- $switch-paddle-offset: 2px !default;
3
- $switch-height: 22px;
4
- $switch-width: $switch-height * 2;
5
- $paddle-height: $switch-height - $switch-paddle-offset * 2;
6
- $paddle-width: $paddle-height;
7
-
8
- .switch[type='checkbox'] {
9
- outline: 0;
10
- user-select: none;
11
- display: inline-block;
12
- position: absolute;
13
- opacity: 0;
14
-
15
- &[disabled] {
16
- cursor: not-allowed;
17
-
18
- + label {
19
- opacity: 0.5;
20
-
21
- &::before,
22
- &::after {
23
- opacity: 0.5;
24
- }
25
-
26
- &:hover {
27
- cursor: not-allowed;
28
- }
29
- }
30
- }
31
-
32
- + label {
33
- flex-direction: row-reverse;
34
- justify-content: space-between;
35
-
36
- &::before,
37
- &::after {
38
- content: '';
39
- border: none;
40
- }
41
-
42
- &::before {
43
- min-width: $switch-width;
44
- flex-basis: $switch-width;
45
- height: $switch-height;
46
- background: getColor('grey-disabled');
47
- border-radius: $radius * 4;
48
- margin-right: 0;
49
- margin-left: $switch-margin;
50
- }
51
-
52
- &::after {
53
- content: '\f103';
54
- margin-left: 0;
55
- margin-right: 0;
56
- display: inline-flex;
57
- align-items: center;
58
- justify-content: center;
59
- width: $paddle-width;
60
- height: $paddle-height;
61
- color: getColor('grey-disabled');
62
- left: auto;
63
- right: $switch-width - $paddle-width - $switch-paddle-offset;
64
- top: 50%;
65
- transform: translateY(-50%);
66
- background: getColor('background');
67
- transition: all 0.25s ease-out;
68
- border-radius: 100%;
69
- }
70
- }
71
-
72
- &:checked {
73
- + label {
74
- &::before {
75
- background: getColor('alternate');
76
- }
77
-
78
- &::after {
79
- right: $switch-paddle-offset;
80
- content: '\f102';
81
- color: getColor('alternate');
82
- }
83
- }
84
- }
85
-
86
- &.is-success {
87
- &:checked {
88
- + label {
89
- &::before {
90
- background: getColor('success');
91
- }
92
-
93
- &::after {
94
- color: getColor('success');
95
- }
96
- }
97
- }
98
- }
99
-
100
- &.is-info {
101
- &:checked {
102
- + label {
103
- &::before {
104
- background: getColor('info');
105
- }
106
-
107
- &::after {
108
- color: getColor('info');
109
- }
110
- }
111
- }
112
- }
113
-
114
- &.is-warning {
115
- &:checked {
116
- + label {
117
- &::before {
118
- background: getColor('warning');
119
- }
120
-
121
- &::after {
122
- color: getColor('warning');
123
- }
124
- }
125
- }
126
- }
127
-
128
- &.is-error {
129
- &:checked {
130
- + label {
131
- &::before {
132
- background: getColor('error');
133
- }
134
-
135
- &::after {
136
- color: getColor('error');
137
- }
138
- }
139
- }
140
- }
141
-
142
- &.has-slice {
143
- + label {
144
- justify-content: center;
145
- flex-direction: column;
146
- align-items: flex-start;
147
- padding-right: $switch-width + $switch-margin;
148
-
149
- &::before {
150
- position: absolute;
151
- right: 0;
152
- top: 50%;
153
- transform: translateY(-50%);
154
- margin-left: 0;
155
- }
156
-
157
- &::after {
158
- position: absolute;
159
- }
160
- }
161
- }
162
-
163
- &.is-inverted {
164
- + label::before {
165
- background: getColor('background');
166
- }
167
-
168
- + label::after {
169
- background: getColor('grey-disabled');
170
- }
171
-
172
- &:checked {
173
- + label {
174
- &::before {
175
- background: getColor('background');
176
- }
177
-
178
- &::after {
179
- background: getColor('alternate');
180
- color: getColor('background');
181
- }
182
- }
183
- }
184
-
185
- &.is-success {
186
- &:checked + label::after {
187
- background: getColor('success');
188
- }
189
- }
190
-
191
- &.is-info {
192
- &:checked + label::after {
193
- background: getColor('info');
194
- }
195
- }
196
-
197
- &.is-warning {
198
- &:checked + label::after {
199
- background: getColor('warning');
200
- }
201
- }
202
-
203
- &.is-error {
204
- &:checked + label::after {
205
- background: getColor('error');
206
- }
207
- }
208
- }
209
- }
@@ -1,173 +0,0 @@
1
- .is-checkradio[type='radio'],
2
- .is-checkradio[type='checkbox'] {
3
- @include checkradio;
4
-
5
- + label {
6
- &.is-descriptive {
7
- flex-wrap: wrap;
8
-
9
- span {
10
- flex-basis: 100%;
11
- display: inline-block;
12
- padding-left: 25px;
13
- margin-top: 5px;
14
- font-size: $text-13;
15
- color: getColor('grey');
16
- }
17
-
18
- &:after {
19
- top: 2px;
20
- left: 1px;
21
- line-height: 18px;
22
- }
23
- }
24
- }
25
-
26
- &:focus-visible {
27
- + label {
28
- &::before {
29
- outline: 1px auto getColor('font');
30
- }
31
- }
32
- }
33
-
34
- &:hover:not([disabled]) {
35
- + label {
36
- &::before {
37
- border-color: getColor('grey-dark');
38
- }
39
- }
40
- }
41
-
42
- &:checked {
43
- + label {
44
- &::before {
45
- animation-name: none;
46
- border-color: getColor('grey');
47
- color: getColor('alternate');
48
- }
49
-
50
- &::after {
51
- display: block;
52
- }
53
- }
54
-
55
- &[disabled] {
56
- cursor: not-allowed;
57
-
58
- + label {
59
- opacity: 0.5;
60
- }
61
- }
62
- }
63
-
64
- &[disabled] {
65
- cursor: not-allowed;
66
-
67
- + label {
68
- opacity: 0.5;
69
- cursor: not-allowed;
70
-
71
- &:hover,
72
- &::before,
73
- &::after {
74
- cursor: not-allowed;
75
- }
76
- }
77
-
78
- &:hover {
79
- cursor: not-allowed;
80
-
81
- &::before {
82
- animation-name: none;
83
- }
84
- }
85
-
86
- &::before,
87
- &::after {
88
- cursor: not-allowed;
89
- }
90
- }
91
-
92
- &.is-inverted {
93
- + label::before,
94
- &:hover:not([disabled]) + label::before,
95
- &:checked + label::before {
96
- border-color: getColor('background');
97
- }
98
-
99
- + label,
100
- &:checked + label::before {
101
- color: getColor('background');
102
- }
103
- }
104
- }
105
-
106
- .is-checkradio[type='checkbox'] {
107
- + label {
108
- &::before {
109
- margin-right: 16px;
110
- border-radius: $radius-small;
111
- }
112
-
113
- &::after {
114
- content: url('data:image/svg+xml; utf8, <svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg" stroke="white" stroke-linecap="round" stroke-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
115
- display: none;
116
- line-height: 0;
117
- margin: 0;
118
- width: 14px;
119
- height: 14px;
120
- background-color: getColor('alternate');
121
- overflow: hidden;
122
- border-radius: 3px;
123
- left: 1px;
124
- }
125
- }
126
-
127
- &.is-inverted {
128
- + label::after {
129
- color: getColor('background');
130
- }
131
- }
132
- }
133
-
134
- .is-checkradio[type='radio'] {
135
- + label {
136
- line-height: 1;
137
-
138
- &::before,
139
- &::after {
140
- margin-right: 16px; // put size instead
141
- border-radius: 100%;
142
- }
143
-
144
- &::after {
145
- top: 50%;
146
- transform: translateY(-50%);
147
- left: 2px;
148
- width: 12px;
149
- height: 12px;
150
- }
151
-
152
- &.is-descriptive {
153
- &::after {
154
- top: 8px;
155
- left: 2px;
156
- }
157
- }
158
- }
159
-
160
- &:checked {
161
- + label {
162
- &::after {
163
- background-color: getColor('alternate');
164
- }
165
- }
166
- }
167
-
168
- &.is-inverted {
169
- &:checked + label::after {
170
- background-color: getColor('background');
171
- }
172
- }
173
- }
@@ -1,6 +0,0 @@
1
- .dot {
2
- display: inline-block;
3
- width: 10px;
4
- height: 10px;
5
- border-radius: 100%;
6
- }
@@ -1,151 +0,0 @@
1
- .notification {
2
- cursor: pointer;
3
- transition: box-shadow $animation-duration;
4
-
5
- &:hover,
6
- &:active,
7
- &:focus {
8
- box-shadow: $shadow;
9
- }
10
-
11
- .icon,
12
- .call-to-action {
13
- color: getColor('font');
14
- }
15
-
16
- @include apply-shadow-box();
17
-
18
- padding: 2em 2em;
19
- background-color: getColor('background');
20
- border-radius: $radius;
21
- margin-bottom: 20px;
22
- position: relative;
23
-
24
- @include mobile {
25
- flex-wrap: wrap;
26
- }
27
-
28
- pre code {
29
- background: transparent;
30
- }
31
-
32
- & > .delete {
33
- position: absolute;
34
- right: 5px;
35
- top: 5px;
36
- }
37
-
38
- .call-to-action .button {
39
- background-color: getColor('main');
40
- border-color: getColor('main');
41
- }
42
-
43
- @each $name in $colors-brand-funcionnal {
44
- $brandName: getColorBrandName($name);
45
- $color: getColor($name);
46
- $color-invert: invertColor($name);
47
-
48
- &.is-#{$brandName} {
49
- .icon, .title {
50
- color: $color;
51
- }
52
- .call-to-action .button {
53
- color: $color-invert;
54
- }
55
- }
56
- }
57
-
58
- &.is-banner {
59
- @include desktop {
60
- padding-left: 150px;
61
- padding-right: 150px;
62
- }
63
-
64
- box-shadow: none;
65
- border-radius: 0;
66
- padding: $spacing-4;
67
- margin-bottom: 0;
68
- }
69
-
70
- &:not(.has-description) > .icon {
71
- align-self: center;
72
- }
73
-
74
- &.has-description {
75
- @include mobile {
76
- justify-content: center;
77
- text-align: center;
78
-
79
- .icon {
80
- padding: 0;
81
- margin-bottom: 30px;
82
- }
83
-
84
- .body {
85
- flex: 0 1 auto;
86
- }
87
- }
88
- }
89
-
90
- &.has-body {
91
- display: flex;
92
- }
93
-
94
- > .icon {
95
- flex: none;
96
- align-self: flex-start;
97
- padding-right: 27px;
98
- font-size: 32px;
99
- }
100
-
101
- > .body {
102
- align-self: center;
103
- color: getColor('font');
104
- margin-bottom: 0;
105
- flex-grow: 1;
106
- padding: 1px; /* Fixes flex behavior on Safari mobile */
107
-
108
- @include mobile {
109
- flex: 1;
110
- }
111
- }
112
-
113
- > .call-to-action {
114
- padding-left: 4em;
115
- align-self: center;
116
- flex: none;
117
-
118
- @include mobile {
119
- flex: 0 1 100%;
120
- margin-top: 20px;
121
- padding-left: 0;
122
- }
123
- }
124
-
125
- &.is-small {
126
- box-shadow: none;
127
- padding: 14px;
128
-
129
- > .icon {
130
- padding-right: 10px;
131
- width: 40px;
132
- font-size: 20px;
133
- }
134
-
135
- .title,
136
- .text,
137
- .paragraph {
138
- font-size: $text-14 !important;
139
- text-align: left;
140
- }
141
- color: getColor('font');
142
-
143
- @each $name, $pair in $colors-feedback {
144
- $bg-color: nth($pair, 1);
145
- &.is-#{$name} {
146
- background-color: getColor($bg-color);
147
- }
148
- }
149
-
150
- }
151
- }
@@ -1,146 +0,0 @@
1
- .options {
2
- display: flex;
3
- flex-wrap: wrap;
4
- align-items: center;
5
-
6
- @include desktop {
7
- flex-wrap: nowrap;
8
- }
9
-
10
- .field {
11
- margin: 15px 20px 15px 0;
12
- min-width: 70px;
13
-
14
- &:last-child {
15
- margin: 15px 0 15px 0;
16
- }
17
-
18
- input[type=radio] {
19
- @include checkradio;
20
-
21
- + label {
22
- border: 1px solid currentColor;
23
- border-radius: $radius-small;
24
- color: getColor('font');
25
- font-weight: $weight-medium;
26
- padding: 6px 15px;
27
-
28
- &::before {
29
- border-radius: 100%;
30
- border-width: 2px;
31
- border-color: currentColor;
32
- min-width: 12px;
33
- min-height: 12px;
34
- }
35
- }
36
-
37
- &:checked + label {
38
- color: getColor('alternate');
39
- border-color: currentColor;
40
- border-width: 2px;
41
-
42
- &::before {
43
- content: "";
44
- mask-image: url('./assets/icons/all/check.svg');
45
- background-color: getColor('alternate');
46
- border-width: 0;
47
- width: 20px;
48
- height: 20px;
49
- margin: 0 6px 0 -4px;
50
- mask-size: 20px;
51
- }
52
- }
53
-
54
- &[disabled] + label {
55
- cursor: not-allowed;
56
- color: getColor('grey');
57
- border-color: currentColor;
58
-
59
- &::before {
60
- border-color: currentColor;
61
- }
62
- }
63
- }
64
-
65
- &.has-icon {
66
- input[type=radio] {
67
- + label {
68
- padding-right: 45px;
69
-
70
- .icon {
71
- position: absolute;
72
- right: 15px;
73
- top: 50%;
74
- transform: translateY(-50%);
75
- height: 20px;
76
- width: 20px;
77
- }
78
- }
79
-
80
- &:checked + label {
81
- .icon {
82
- color: getColor('alternate');
83
- }
84
- }
85
-
86
- &[disabled] + label {
87
- .icon {
88
- color: getColor('grey');
89
- }
90
- }
91
- }
92
- }
93
-
94
- &.is-multiline {
95
- min-width: 120px;
96
-
97
- input[type=radio] {
98
- + label {
99
- padding-top: 55px;
100
- justify-content: center;
101
- flex-direction: column;
102
-
103
- &::before {
104
- position: absolute;
105
- top: 15px;
106
- left: 15px;
107
- }
108
-
109
- &.is-descriptive > span:not(.icon) {
110
- font-size: $text-12;
111
- font-weight: $weight-medium;
112
- }
113
-
114
- .icon {
115
- position: absolute;
116
- top: 0;
117
- font-size:30px;
118
- width:100%;
119
- }
120
- }
121
-
122
- &:checked + label {
123
- color: getColor('alternate');
124
-
125
- &::before {
126
- margin-top: -5px;
127
- }
128
-
129
- }
130
-
131
- &[disabled] + label {
132
- color: getColor('grey');
133
- }
134
- }
135
- }
136
- }
137
-
138
- &.is-inverted {
139
- input[type=radio]:checked {
140
- + label {
141
- border-color: getColor('font');
142
- color: getColor('font');
143
- }
144
- }
145
- }
146
- }