@trilogy-ds/styles 0.0.1-beta.9 → 0.0.2-alpha-prompt

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 (149) hide show
  1. package/dist/default/assets/icons/all/calendar.svg +1 -0
  2. package/dist/default/assets/icons/all/file-attached.svg +1 -0
  3. package/dist/default/assets/icons/all/micro.svg +1 -0
  4. package/dist/default/assets/icons/all/paperclip.svg +1 -0
  5. package/dist/default/trilogy-mangled.css +1 -1
  6. package/dist/default/trilogy-partials.css +1 -1
  7. package/dist/default/trilogy.css +1 -1
  8. package/framework/src/_all.scss +2 -2
  9. package/framework/src/base/_all.scss +1 -1
  10. package/framework/src/base/_color.scss +1 -52
  11. package/framework/src/base/_elements.scss +1 -1
  12. package/framework/src/base/_generic.scss +9 -1
  13. package/framework/src/base/_helpers.scss +34 -44
  14. package/framework/src/base/_loading.scss +9 -2
  15. package/framework/src/base/_reset.scss +11 -1
  16. package/framework/src/components/_accordion.scss +55 -89
  17. package/framework/src/components/_autocomplete.scss +38 -0
  18. package/framework/src/components/_autolayout.scss +332 -0
  19. package/framework/src/components/_badge.scss +87 -0
  20. package/framework/src/components/_box.scss +168 -0
  21. package/framework/src/components/_breadcrumb.scss +29 -38
  22. package/framework/src/components/_button.scss +79 -0
  23. package/framework/src/components/_calendar.scss +129 -0
  24. package/framework/src/components/_card.scss +33 -87
  25. package/framework/src/components/_checkbox.scss +71 -0
  26. package/framework/src/components/_chips.scss +84 -0
  27. package/framework/src/{elements → components}/_container.scss +7 -46
  28. package/framework/src/components/_countdown.scss +49 -47
  29. package/framework/src/components/_date-picker.scss +58 -0
  30. package/framework/src/components/_divider.scss +48 -14
  31. package/framework/src/components/_dropdown.scss +166 -99
  32. package/framework/src/components/_fab.scss +25 -38
  33. package/framework/src/components/_flex-box.scss +994 -0
  34. package/framework/src/{elements → components}/_icon.scss +4 -4
  35. package/framework/src/components/_image.scss +69 -0
  36. package/framework/src/components/_index.scss +51 -0
  37. package/framework/src/components/_link.scss +58 -0
  38. package/framework/src/components/_list.scss +66 -0
  39. package/framework/src/{elements → components}/_loader.scss +2 -2
  40. package/framework/src/components/_modal.scss +182 -158
  41. package/framework/src/components/_otp.scss +11 -30
  42. package/framework/src/components/_pagination.scss +60 -159
  43. package/framework/src/components/_popover.scss +260 -260
  44. package/framework/src/components/_price.scss +140 -165
  45. package/framework/src/components/_product-tour.scss +2 -4
  46. package/framework/src/components/_prompt.scss +125 -0
  47. package/framework/src/components/_radio.scss +82 -0
  48. package/framework/src/components/_range.scss +73 -72
  49. package/framework/src/components/_segmented-control.scss +55 -53
  50. package/framework/src/components/_select.scss +131 -0
  51. package/framework/src/components/_stepper.scss +42 -222
  52. package/framework/src/{elements → components}/_sticker.scss +25 -28
  53. package/framework/src/components/_switch.scss +97 -191
  54. package/framework/src/components/_table.scss +244 -0
  55. package/framework/src/components/_tabs.scss +114 -98
  56. package/framework/src/components/_tag.scss +114 -0
  57. package/framework/src/components/_text.scss +55 -0
  58. package/framework/src/components/_textarea.scss +46 -0
  59. package/framework/src/components/_timeline.scss +28 -113
  60. package/framework/src/components/_title.scss +151 -0
  61. package/framework/src/{elements → components/alert}/_alert.scss +13 -10
  62. package/framework/src/components/alert/_index.scss +2 -0
  63. package/framework/src/{elements → components/alert}/_toaster.scss +4 -8
  64. package/framework/src/components/input/_entry.scss +135 -0
  65. package/framework/src/{elements → components/input}/_form.scss +42 -33
  66. package/framework/src/components/input/_index.scss +4 -0
  67. package/framework/src/components/input/_input-gauge.scss +44 -0
  68. package/framework/src/components/input/_input-icons.scss +55 -0
  69. package/framework/src/components/progress/_index.scss +2 -0
  70. package/framework/src/components/progress/_progress-radial.scss +28 -0
  71. package/framework/src/{elements → components/progress}/_progress.scss +34 -23
  72. package/framework/src/elements/_index.scss +5 -0
  73. package/framework/src/elements/_other.scss +0 -41
  74. package/framework/src/{components → elements}/_plus-symbol.scss +1 -1
  75. package/framework/src/grid/_columns.scss +278 -763
  76. package/framework/src/grid/_rows.scss +45 -38
  77. package/framework/src/layout/_all.scss +0 -1
  78. package/framework/src/layout/_hero.scss +92 -214
  79. package/framework/src/layout/_section.scss +10 -29
  80. package/framework/src/theming/_all.scss +3 -0
  81. package/framework/src/theming/buttons_partial.scss +32 -0
  82. package/framework/src/theming/common_partials.scss +10 -0
  83. package/framework/src/theming/links_partial.scss +20 -0
  84. package/framework/src/trilogy-mangled.scss +3 -3
  85. package/framework/src/trilogy.scss +2 -2
  86. package/framework/src/utilities/_a11y.scss +13 -0
  87. package/framework/src/utilities/_all.scss +4 -0
  88. package/framework/src/utilities/_background.scss +21 -0
  89. package/framework/src/utilities/_controls.scss +38 -49
  90. package/framework/src/utilities/_derived-variables.scss +0 -103
  91. package/framework/src/utilities/_initial-variables.scss +4 -144
  92. package/framework/src/utilities/_pre.scss +4 -1
  93. package/framework/src/utilities/mixins/_arrow.scss +21 -0
  94. package/framework/src/utilities/mixins/_delete.scss +86 -0
  95. package/framework/src/utilities/mixins/_index.scss +11 -0
  96. package/framework/src/utilities/mixins/_markup-group.scss +27 -0
  97. package/framework/src/utilities/mixins/_mixins.scss +294 -0
  98. package/framework/src/utilities/mixins/_overlay.scss +7 -0
  99. package/framework/src/utilities/mixins/_pattern.scss +10 -0
  100. package/framework/src/utilities/mixins/_responsiveness.scss +174 -0
  101. package/framework/src/utilities/mixins/_spinner.scss +12 -0
  102. package/framework/src/utilities/mixins/_state.scss +25 -0
  103. package/framework/src/utilities/mixins/_unselectable.scss +10 -0
  104. package/framework/src/utilities/mixins/_utils.scss +24 -0
  105. package/framework/src/utilities/variables/_animation.scss +2 -0
  106. package/framework/src/utilities/variables/_color.scss +85 -0
  107. package/framework/src/utilities/variables/_font.scss +97 -0
  108. package/framework/src/utilities/variables/_index.scss +6 -0
  109. package/framework/src/utilities/variables/_responsiveness.scss +7 -0
  110. package/framework/src/utilities/variables/_shadow.scss +3 -0
  111. package/framework/src/utilities/variables/_zindex.scss +14 -0
  112. package/package.json +8 -3
  113. package/framework/src/components/_all.scss +0 -30
  114. package/framework/src/components/_autolayout2.scss +0 -38
  115. package/framework/src/components/_disclaimer.scss +0 -84
  116. package/framework/src/components/_level.scss +0 -120
  117. package/framework/src/components/_media.scss +0 -64
  118. package/framework/src/components/_menu.scss +0 -213
  119. package/framework/src/components/_progress-radial.scss +0 -23
  120. package/framework/src/components/_search-modal.scss +0 -197
  121. package/framework/src/components/_slices.scss +0 -316
  122. package/framework/src/components/_slider.scss +0 -92
  123. package/framework/src/elements/_all.scss +0 -35
  124. package/framework/src/elements/_badge.scss +0 -81
  125. package/framework/src/elements/_box.scss +0 -267
  126. package/framework/src/elements/_button.scss +0 -192
  127. package/framework/src/elements/_checkbox.scss +0 -39
  128. package/framework/src/elements/_checkradio.scss +0 -173
  129. package/framework/src/elements/_chips.scss +0 -100
  130. package/framework/src/elements/_dot.scss +0 -6
  131. package/framework/src/elements/_entry.scss +0 -109
  132. package/framework/src/elements/_image.scss +0 -59
  133. package/framework/src/elements/_input-gauge.scss +0 -37
  134. package/framework/src/elements/_input-icons.scss +0 -41
  135. package/framework/src/elements/_link.scss +0 -79
  136. package/framework/src/elements/_list.scss +0 -61
  137. package/framework/src/elements/_notification.scss +0 -151
  138. package/framework/src/elements/_options.scss +0 -146
  139. package/framework/src/elements/_paragraph.scss +0 -101
  140. package/framework/src/elements/_radio.scss +0 -67
  141. package/framework/src/elements/_select.scss +0 -315
  142. package/framework/src/elements/_switch.scss +0 -108
  143. package/framework/src/elements/_table.scss +0 -298
  144. package/framework/src/elements/_tag.scss +0 -131
  145. package/framework/src/elements/_textarea.scss +0 -125
  146. package/framework/src/elements/_timeline.scss +0 -283
  147. package/framework/src/elements/_title.scss +0 -139
  148. package/framework/src/layout/_toolbar.scss +0 -100
  149. package/framework/src/utilities/_mixins.scss +0 -744
@@ -1,55 +1,57 @@
1
1
  .countdown {
2
- border: 1px solid currentcolor;
3
- border-radius: 8px;
4
- display: inline-flex;
5
- padding: $spacing-2;
6
- color: getColor('font');
2
+ border: 1px solid currentcolor;
3
+ border-radius: var(--radius);
4
+ display: inline-flex;
5
+ padding: $spacing-2;
6
+ color: getColor('font');
7
7
 
8
- .count {
9
- font-family: $family-sans-serif;
10
- font-size: $text-14;
11
- font-weight: 400;
12
- list-style-type: none;
13
- text-align: center;
14
- padding: 0 $spacing-2;
15
- position: relative;
16
-
17
- &:not(:last-child)::before {
18
- content: ' ';
19
- border-left: 1px solid currentcolor;
20
- height: 100%;
21
- position: absolute;
22
- top: 0;
23
- bottom: 0;
24
- right: 0;
25
- }
26
-
27
- .value {
28
- font-size: $text-24;
29
- font-weight: 600;
30
- }
8
+ .count {
9
+ font-family: $family-primary;
10
+ font-size: $text-14;
11
+ font-weight: 400;
12
+ list-style-type: none;
13
+ text-align: center;
14
+ padding: 0 $spacing-2;
15
+ position: relative;
16
+
17
+ &:not(:last-child)::before {
18
+ content: ' ';
19
+ border-left: 1px solid currentcolor;
20
+ height: 100%;
21
+ position: absolute;
22
+ top: 0;
23
+ bottom: 0;
24
+ right: 0;
31
25
  }
32
26
 
33
- &.is-small {
34
- padding: $spacing-2 0;
35
- border-radius: 4px;
36
- .count {
37
- font-size: $text-12;
38
- padding: 0 $spacing-2;
39
- font-weight: 500;
40
-
41
- .value {
42
- font-size: $text-16;
43
- font-weight: 600;
44
- }
45
- }
27
+ .value {
28
+ font-size: $text-24;
29
+ font-weight: 600;
46
30
  }
31
+ }
32
+
33
+ &.is-small {
34
+ padding: $spacing-2 0;
35
+ border-radius: var(--radius-small);
36
+
37
+ .count {
38
+ font-size: $text-12;
39
+ padding: 0 $spacing-2;
40
+ font-weight: 500;
47
41
 
48
- &.is-inverted {
49
- color: invertColor('font');
50
- .count {
51
- &:not(:last-child)::before {
52
- }
53
- }
42
+ .value {
43
+ font-size: $text-16;
44
+ font-weight: 600;
45
+ }
46
+ }
47
+ }
48
+
49
+ &.is-inverted {
50
+ color: invertColor('font');
51
+
52
+ .count {
53
+ &:not(:last-child)::before {
54
+ }
54
55
  }
56
+ }
55
57
  }
@@ -0,0 +1,58 @@
1
+ .date-picker {
2
+ span {
3
+ outline: none;
4
+ text-align: center;
5
+ caret-color: transparent;
6
+ &:focus-visible {
7
+ background-color: getColor('main-fade')
8
+ }
9
+ &::selection {
10
+ background-color: getColor('main-fade')
11
+ }
12
+ }
13
+
14
+ .input {
15
+ &.is-focused {
16
+ border: 2px solid currentColor;
17
+ padding-left: 15px !important;
18
+ background-color: getColor('background') !important;
19
+ }
20
+ &:active {
21
+ padding-left: 15px !important;
22
+ }
23
+ &[aria-disabled="true"] {
24
+ &:active {
25
+ padding-left: 16px !important;
26
+ }
27
+ & span::selection {
28
+ background-color: transparent !important
29
+ }
30
+ }
31
+ &-hidden {
32
+ border: 0;
33
+ clip: rect(0 0 0 0);
34
+ height: 1px;
35
+ margin: -1px;
36
+ overflow: hidden;
37
+ padding: 0;
38
+ white-space: nowrap;
39
+ width: 1px;
40
+ }
41
+ }
42
+
43
+ .modal {
44
+ flex-direction: inherit;
45
+ .modal-content, .modal-header {
46
+ background-color: transparent !important;
47
+ }
48
+ .modal-body {
49
+ display: flex;
50
+ align-items: center;
51
+ justify-content: center;
52
+ .calendar {
53
+ height: 440px;
54
+ }
55
+ }
56
+ }
57
+
58
+ }
@@ -1,18 +1,52 @@
1
+ @mixin divider {
2
+ content:'';
3
+ flex: 1;
4
+ height: 1px;
5
+ background-color: getColor('neutral');
6
+ }
7
+
1
8
  .divider {
2
- position: relative;
3
- text-align: center;
4
- background-color: getColor('grey');
5
- height: 1px;
9
+ height: 1px;
10
+ display: flex;
11
+ justify-content: center;
12
+ align-items: center;
13
+
14
+ p.divider-content {
15
+ flex-wrap: nowrap;
6
16
  width: 100%;
7
- margin: 16px 0;
8
-
9
- p.divider-content {
10
- position: absolute;
11
- left: 50%;
12
- top: 50%;
13
- transform: translate(-50%, -50%);
14
- white-space: nowrap;
15
- padding: 0 $spacing-4;
16
- background-color: invertColor('grey');
17
+ display: flex;
18
+ align-items: center;
19
+
20
+ &::before {
21
+ @include divider
22
+ }
23
+ &::after {
24
+ @include divider
25
+ }
26
+
27
+ &:not(:empty) {
28
+ &::before {
29
+ margin-right: $spacing-4;
30
+ }
31
+ &::after {
32
+ margin-left: $spacing-4;
33
+ }
17
34
  }
35
+ }
36
+
37
+ &:not(.is-marginless) {
38
+ margin: $spacing-5 0;
39
+ }
40
+
41
+ @include mobile {
42
+ &:not(.is-marginless) {
43
+ margin: $spacing-4 0;
44
+ }
45
+ }
18
46
  }
47
+
48
+ *:has(+ .divider) {
49
+ margin-top: 0 !important;
50
+ margin-bottom: 0 !important;
51
+ }
52
+
@@ -1,128 +1,195 @@
1
+ @use 'sass:math';
2
+ @import "../utilities/spacing";
3
+
4
+ $dropdown-border-radius: var(--radius-small);
5
+ $dropdown-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
6
+ $dropdown-item-padding-vertical: 12px;
7
+ $dropdown-item-padding-horizontal: 16px;
8
+
1
9
  .dropdown {
2
- display: inline-flex;
3
- position: relative;
4
- vertical-align: top;
5
- width: 100%;
6
- &.is-active,
7
- &.is-hoverable:hover {
8
- .dropdown-menu {
9
- display: block;
10
- }
10
+ position: relative;
11
+ display: block;
12
+
13
+ &.is-active {
14
+ .dropdown-menu {
15
+ display: block;
11
16
  }
17
+ }
18
+ }
12
19
 
13
- select {
14
- width: 95% !important;
15
- border:none;
16
- height: 97% !important;
17
- margin-left: 16px;
18
- -moz-appearance:none; /* Firefox */
19
- -webkit-appearance:none; /* Safari and Chrome */
20
- appearance:none;
20
+ .dropdown-trigger {
21
+ display: inline-block;
22
+ }
23
+
24
+ .dropdown-manual {
25
+ .dropdown-menu {
26
+ top: 100%;
27
+ margin-top: 0px;
28
+ &[data-position="upward"] {
29
+ top: auto;
30
+ bottom: 100%;
31
+ margin-top: 0;
32
+ margin-bottom: 85px;
21
33
  }
34
+ }
35
+ }
36
+
37
+ .dropdown-menu {
38
+ position: absolute;
39
+ top: 100%;
40
+ left: 0;
41
+ z-index: 1000;
42
+ display: none;
43
+ margin-top: 15px;
44
+ background-color: getColor('background');
45
+ border-radius: $dropdown-border-radius;
46
+ box-shadow: $dropdown-shadow;
47
+ overflow: hidden;
48
+ max-height: 300px;
49
+ overflow-y: auto;
50
+ padding-top: 12px;
51
+ padding-bottom: 12px;
52
+ padding-left: 16px;
53
+ padding-right: 16px;
54
+ width: max-content;
55
+ min-width: 200px;
56
+ opacity: 0;
57
+ transform: translateY(-10px);
58
+ transition: opacity 0.2s ease, transform 0.2s ease;
59
+
60
+ &[data-position="upward"] {
61
+ top: auto;
62
+ bottom: 100%;
63
+ margin-top: 0;
64
+ margin-bottom: 15px;
65
+ transform: translateY(10px);
66
+ }
67
+
68
+ &::-webkit-scrollbar {
69
+ width: 6px;
70
+ }
71
+
72
+ &::-webkit-scrollbar-track {
73
+ background: transparent;
74
+ }
75
+
76
+ &::-webkit-scrollbar-thumb {
77
+ background: getColor('main-fade');
78
+ border-radius: 3px;
79
+ }
80
+ }
22
81
 
23
- &.is-active {
24
- .dropdown-menu {
25
- z-index: zindex('dropdown');
82
+ .dropdown-content {
83
+ padding: 0;
84
+ }
26
85
 
27
- .dropdown-content {
28
- border: 1px solid getColor('alternate');;
29
- }
30
- }
86
+ .dropdown-item {
87
+ display: flex;
88
+ align-items: center;
89
+ padding: $dropdown-item-padding-vertical $dropdown-item-padding-horizontal;
90
+ color: getColor('font');
91
+ text-decoration: none;
92
+ cursor: pointer;
93
+ transition: background-color 0.2s ease;
94
+ border: none;
95
+ border-radius: $dropdown-border-radius;
96
+ background: none;
97
+ width: 100%;
98
+ text-align: left;
99
+ font-size: inherit;
100
+ font-family: inherit;
101
+ line-height: 1.4;
102
+
103
+ .icon {
104
+ margin-right: 12px;
105
+ flex-shrink: 0;
106
+
107
+ &.is-smaller {
108
+ width: 16px;
109
+ height: 16px;
31
110
  }
111
+ }
32
112
 
33
- &.is-right {
34
- .dropdown-menu {
35
- left: auto;
36
- right: 0;
37
- }
113
+ &:not(:disabled):not([aria-disabled="true"]) {
114
+ #{$hoverSelector},
115
+ &:focus {
116
+ background-color: getColor('main-fade');
117
+ outline: none;
38
118
  }
39
119
 
40
- &.is-up {
41
- .dropdown-menu {
42
- bottom: 100%;
43
- padding-bottom: $spacing-1;
44
- padding-top: initial;
45
- top: auto;
46
- }
120
+ &:active {
121
+ background-color: getColor('main-fade');
47
122
  }
123
+ }
48
124
 
49
- .react-autosuggest__container {
50
- width: 100%;
125
+ &.is-active {
126
+ background-color: getColor('main-fade');
127
+ font-weight: $weight-semibold;
128
+ }
51
129
 
52
- .dropdown-menu .dropdown-content {
53
- overflow-y: auto;
54
- max-height: 25vh;
130
+ &:disabled,
131
+ &[aria-disabled="true"] {
132
+ color: getColor('disabled');
133
+ cursor: not-allowed;
134
+ background-color: transparent;
55
135
 
56
- .dropdown-item {
57
- cursor: pointer;
58
- }
59
- }
136
+ .icon {
137
+ opacity: 0.5;
60
138
  }
139
+ }
140
+ }
61
141
 
62
- .dropdown-trigger {
63
- width: 100%;
142
+ .dropdown-item:disabled, .dropdown-item[aria-disabled=true] {
143
+ background-color: transparent !important;
144
+ }
64
145
 
65
- .select {
66
- cursor: pointer;
146
+ .dropdown-group {
147
+ &:not(:first-child) {
148
+ border-top: 2px solid getColor('neutral-fade');
149
+ }
67
150
 
68
- select {
69
- pointer-events: none;
70
- }
71
- }
72
- }
151
+ &:not(:last-child) {
152
+ margin-bottom: 0;
153
+ }
73
154
 
74
- .dropdown-menu {
75
- display: none;
76
- left: 0;
77
- min-width: 120px;
78
- padding-top: $spacing-1;
79
- position: absolute;
80
- top: 100%;
81
- width: 100%;
82
- z-index: 20;
83
-
84
- .dropdown-content {
85
- border-radius: 8px;
86
- box-shadow: 0 2px 3px rgba(#000, 0.1),
87
- 0 0 0 1px rgba(#000, 0.1);
88
- font-size: inherit;
89
- padding: 5px 10px;
90
-
91
- .dropdown-item {
92
- display: block;
93
- font-size: inherit;
94
- line-height: 1.5;
95
- padding: 3.75px 10px;
96
- position: relative;
97
- }
98
- }
155
+ .dropdown-item {
156
+ &:first-child {
157
+ border-top: none;
99
158
  }
159
+ }
100
160
 
101
- .control.has-dynamic-placeholder .select > select:active ~ label,
102
- .control.has-dynamic-placeholder .select > select:focus ~ label {
103
- display: flex;
104
- }
161
+ &.is-no-separator {
162
+ border-top: none;
163
+ }
105
164
  }
106
165
 
107
- a.dropdown-item {
108
- padding-right: 30px;
109
- white-space: nowrap;
166
+ @include mobile {
167
+ .dropdown-menu {
168
+ left: 0;
169
+ max-height: 250px;
170
+ width: max-content;
171
+ min-width: 200px;
172
+ }
173
+ }
110
174
 
111
- &:hover {
112
- background-color: getColor('background');
113
- color: invertColor('background');;
114
- }
175
+ .dropdown.is-active .dropdown-menu {
176
+ opacity: 1;
177
+ transform: translateY(0);
115
178
 
116
- &.is-active {
117
- background-color: getColor('alternate');
118
- color: invertColor('alternate');
119
- }
179
+ &[data-position="upward"] {
180
+ opacity: 1;
181
+ transform: translateY(0);
182
+ }
120
183
  }
121
184
 
122
- .dropdown-divider {
123
- background-color: rgba(getColor('grey'), 0.5);
124
- border: none;
185
+ .dropdown-menu.is-visible {
186
+ display: block;
187
+ opacity: 1;
188
+ transform: translateY(0);
189
+
190
+ &[data-position="upward"] {
125
191
  display: block;
126
- height: 1px;
127
- margin: 5px 0;
192
+ opacity: 1;
193
+ transform: translateY(0);
194
+ }
128
195
  }
@@ -1,60 +1,47 @@
1
1
  .fab {
2
- background-color: getColor('alternate');
3
- border: 1px getColor('alternate');
2
+ background-color: getColor('font');
4
3
  border-radius: 16px;
5
4
  cursor: pointer;
6
5
  height: 56px;
7
- color: white;
8
6
  padding: $spacing-4;
9
7
  display: inline-flex;
10
8
  align-items: center;
11
9
  box-sizing: border-box;
12
- transition: 0.4s;
13
-
14
- box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
15
-
16
- font-style: normal;
10
+ transition: max-width 500ms ease-out;
11
+ color: white;
12
+ border: 0;
13
+ box-shadow: 0px 3px 6px 0px #00000033;
14
+ font-size: 16px;
17
15
  font-weight: 600;
18
- font-size: 0;
19
16
  line-height: 20px;
20
-
21
17
  z-index: 9;
22
-
23
- &:hover, &.is-extended {
24
- background-color: getVariantColor('alternate',1);
25
- border-color:getVariantColor('alternate',2);
26
- transition: 0.5s;
27
- font-size: initial;
28
-
29
- .icon,
30
- .icon .is-small,
31
- .icon .is-medium,
32
- .icon .is-large {
33
- margin-right: 16px;
34
- }
35
- }
36
-
37
- &:focus, &:focus-visible, &:focus-within {
38
- background-color:getVariantColor('alternate', 4);
39
- border-color: getVariantColor('alternate', 4);
40
- outline: 1px auto getVariantColor('alternate', 4);
18
+ overflow: hidden;
19
+ max-width: 54px;
20
+ white-space: nowrap;
21
+
22
+ #{$hoverSelector}, &.is-extended, &:focus, &:focus-visible, &:focus-within {
23
+ background: linear-gradient(
24
+ to top,
25
+ rgba(0, 0, 0, 0.25),
26
+ rgba(0, 0, 0, 0.25)
27
+ ) getColor('font');
28
+ max-width: 300px;
41
29
  }
42
30
 
43
31
  &:active {
44
- background-color: getVariantColor('alternate', 5);
45
- border-color: getVariantColor('alternate', 5);
46
- }
47
-
48
- .disabled {
49
- background-color: getColor('bg-disabled');
50
- color: getColor('grey-disabled');
32
+ background: linear-gradient(
33
+ to top,
34
+ rgba(0, 0, 0, 0.25),
35
+ rgba(0, 0, 0, 0.25)
36
+ ) getColor('font');
51
37
  }
52
38
 
53
39
  .icon {
40
+ flex: none;
54
41
  font-size: 24px !important;
55
42
  margin-left: -6px;
56
- margin-right: -6px;
43
+ margin-right: 8px;
57
44
  color: white;
58
- }
59
45
 
46
+ }
60
47
  }