@trilogy-ds/styles 0.0.1-beta.8 → 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,8 +1,7 @@
1
1
  $sticker-height: 35px;
2
- $sticker-radius: $radius-large;
3
2
 
4
3
  .sticker {
5
- border-radius: 24px;
4
+ border-radius: 9999px;
6
5
  font-size: 16px;
7
6
  flex-grow: 0;
8
7
  display: inline-flex;
@@ -16,58 +15,44 @@ $sticker-radius: $radius-large;
16
15
  &:not(.is-hat) {
17
16
  width: fit-content;
18
17
 
19
- @include mobile{
20
- border-radius: 16px;
18
+ @include mobile {
21
19
  font-size: 12px;
22
20
  padding: $spacing-1 $spacing-2;
23
21
  height: auto;
24
22
  line-height: 15px;
25
23
 
26
- &.is-flag {
27
- border-radius: 0 $sticker-radius 0 0;
28
- }
29
-
30
24
  }
31
25
  }
32
26
 
33
-
34
- &.is-primary {
35
- background-color: getColor('main');
27
+ &.is-accent {
28
+ background-color: getColor('accent');
36
29
  color: getColor('background') !important;
37
30
  }
38
31
 
39
- &.is-flag {
40
- border-radius: 0 16px 0 0;
32
+ &.is-info {
33
+ background-color: getColor('info');
34
+ color: getColor('background') !important;
41
35
  }
42
36
 
43
- &.is-outlined,
44
37
  &.is-inverted {
45
38
  background-color: white !important;
46
39
  border-style: solid;
47
40
  border-width: 2px;
48
41
  border-color: currentColor;
49
- color: getColor('font') !important;
50
-
51
- &.is-primary {
52
- color: getColor('main') !important;
53
- }
42
+ color: currentColor;
54
43
  }
55
44
 
56
45
  &.is-small {
57
- border-radius: 16px;
58
46
  font-size: 12px;
59
47
  padding: $spacing-1 $spacing-2;
60
48
  height: auto;
61
49
  line-height: 15px;
62
50
 
63
- &.is-flag {
64
- border-radius: 0 $sticker-radius 0 0;
65
- }
66
51
  }
67
52
 
68
53
  // deprecated
69
54
  &.is-stretched {
70
- border-radius: $radius 0;
55
+ border-radius: var(--radius) 0;
71
56
  padding: 0 10px;
72
57
  position: relative;
73
58
  margin-right: 10px;
@@ -87,12 +72,12 @@ $sticker-radius: $radius-large;
87
72
  }
88
73
 
89
74
  &::before {
90
- border-radius: $radius 0 0 $radius;
75
+ border-radius: var(--radius) 0 0 var(--radius);
91
76
  left: -6px;
92
77
  }
93
78
 
94
79
  &::after {
95
- border-radius: 0 $radius $radius 0;
80
+ border-radius: 0 var(--radius) var(--radius) 0;
96
81
  right: -7px;
97
82
  }
98
83
  }
@@ -111,7 +96,7 @@ $sticker-radius: $radius-large;
111
96
  .has-hat-mobile {
112
97
  .is-hat {
113
98
  display: inline-block;
114
- border-radius: $radius $radius 0 0;
99
+ border-radius: var(--radius) var(--radius) 0 0;
115
100
  position: absolute;
116
101
  top: -$sticker-height;
117
102
  left: 0;
@@ -1,108 +1,110 @@
1
1
  .switch {
2
- position: relative;
3
- margin: 8px;
4
-
5
- input {
6
- display: none;
7
-
8
- &:disabled ~ label,
9
- &:disabled:checked ~ label {
10
- &:hover {
11
- cursor: no-drop;
12
- }
13
-
14
- &:before {
15
- background-color: getColor('grey-disabled');
16
- }
17
- }
18
-
19
- &:disabled ~ label {
20
- &:after {
21
- $colorSvg: encodecolor(getColorValue('grey-dark'));
22
- content: 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>');
23
- }
24
- }
25
-
26
- &:disabled:checked ~ label {
27
- &:after {
28
- $colorSvg: encodecolor(getColorValue('grey-dark'));
29
- content: 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-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
30
- }
31
- }
2
+ position: relative;
3
+ margin: 8px;
4
+ width: fit-content;
5
+
6
+ &.is-fullwidth {
7
+ width: 100%;
8
+ }
9
+
10
+ input {
11
+ display: none;
12
+
13
+ &:disabled ~ label,
14
+ &:disabled:checked ~ label {
15
+ cursor: not-allowed;
16
+
17
+ &:before {
18
+ background-color: getColor('disabled');
19
+ }
32
20
  }
33
21
 
34
- label {
35
- width: 100%;
36
- display: flex;
37
- align-items: center;
38
- cursor: pointer;
39
- padding: $spacing-1;
40
- padding-right: 60px;
41
-
42
- &:before {
43
- content: '';
44
- position: absolute;
45
- top: 50%;
46
- transform: translateY(-50%);
47
- right: 0;
48
- border-radius: 24px;
49
- width: 44px;
50
- height: 22px;
51
- background-color: getColorValue('grey');
52
- margin-left: 16px;
53
- }
54
-
55
- &:after {
56
- $colorSvg: encodecolor(getColorValue('grey'));
57
- content: 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>');
58
- position: absolute;
59
- top: 50%;
60
- transform: translateY(-50%);
61
- right: calc(44px - 18px - 2px);
62
- border-radius: 50%;
63
- width: 18px;
64
- height: 18px;
65
- background-color: getColorValue('background');
66
- transition: 0.3s;
67
- }
22
+ &:disabled ~ label {
23
+ &:after {
24
+ $colorSvg: encodecolor(getColorValue('disabled'));
25
+ content: 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>');
26
+ }
27
+ }
28
+
29
+ &:disabled:checked ~ label {
30
+ &:after {
31
+ $colorSvg: encodecolor(getColorValue('disabled'));
32
+ content: 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-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
33
+ }
34
+ }
35
+ }
36
+
37
+ label {
38
+ width: 100%;
39
+ display: flex;
40
+ align-items: center;
41
+ cursor: pointer;
42
+ padding: $spacing-1;
43
+ padding-right: 60px;
44
+
45
+ &:before {
46
+ content: '';
47
+ position: absolute;
48
+ top: 50%;
49
+ transform: translateY(-50%);
50
+ right: 0;
51
+ border-radius: 9999px;
52
+ width: 44px;
53
+ height: 22px;
54
+ background-color: getColor('neutral');
68
55
  }
69
56
 
70
- input:checked {
71
- & ~ label {
72
- font-weight: bold;
73
-
74
- &:before {
75
- background-color: getColorValue('alternate');
76
- }
77
-
78
- &:after {
79
- right: 2px;
80
- $colorSvg: encodecolor(getColorValue('alternate'));
81
- content: 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-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
82
- background-color: getColorValue('background');
83
- }
84
- }
57
+ &:after {
58
+ $colorSvg: encodecolor(getColorValue('neutral'));
59
+ content: 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>');
60
+ position: absolute;
61
+ top: 50%;
62
+ transform: translateY(-50%);
63
+ right: calc(44px - 18px - 2px);
64
+ border-radius: 9999px;
65
+ width: 18px;
66
+ height: 18px;
67
+ background-color: getColorValue('background');
68
+ transition: 0.3s;
69
+ }
70
+ }
71
+
72
+ input:checked {
73
+ & ~ label {
74
+ font-weight: bold;
75
+
76
+ &:before {
77
+ background-color: getColorValue('main');
78
+ }
79
+
80
+ &:after {
81
+ right: 2px;
82
+ $colorSvg: encodecolor(getColorValue('main'));
83
+ content: 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-linejoin="round" stroke-width="3" fill="none"><path d="M11.3 22.4L18.1 29.3L32.7 14.7"/></svg>');
84
+ background-color: getColorValue('background');
85
+ }
86
+ }
87
+ }
88
+
89
+ &.is-reversed {
90
+ label {
91
+ flex-direction: row-reverse;
92
+ padding-right: 0;
93
+ padding-left: 60px;
94
+
95
+ &:before {
96
+ left: 0;
97
+ margin-left: 0;
98
+ margin-right: 16px;
99
+ }
100
+
101
+ &:after {
102
+ left: 2px;
103
+ }
85
104
  }
86
105
 
87
- &.is-reversed {
88
- label {
89
- flex-direction: row-reverse;
90
- padding-right: 0;
91
- padding-left: 60px;
92
-
93
- &:before {
94
- left: 0;
95
- margin-left: 0;
96
- margin-right: 16px;
97
- }
98
-
99
- &:after {
100
- left: 2px;
101
- }
102
- }
103
-
104
- input:checked ~ label:after {
105
- left: calc(44px - 18px - 2px);
106
- }
106
+ input:checked ~ label:after {
107
+ left: calc(44px - 18px - 2px);
107
108
  }
109
+ }
108
110
  }