ep-craft 0.1.2 → 0.1.4

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 (160) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +7 -7
  2. package/dist/components/button/button.d.ts +4 -4
  3. package/dist/components/button/index.d.ts +2 -4
  4. package/dist/components/button/index.js +4 -6
  5. package/dist/index.css +1 -2
  6. package/dist/resolver.js +9 -12
  7. package/package.json +4 -2
  8. package/theme-chalk/src/affix.scss +7 -0
  9. package/theme-chalk/src/alert.scss +115 -0
  10. package/theme-chalk/src/anchor-link.scss +45 -0
  11. package/theme-chalk/src/anchor.scss +93 -0
  12. package/theme-chalk/src/aside.scss +8 -0
  13. package/theme-chalk/src/autocomplete.scss +95 -0
  14. package/theme-chalk/src/avatar-group.scss +25 -0
  15. package/theme-chalk/src/avatar.scss +55 -0
  16. package/theme-chalk/src/backtop.scss +29 -0
  17. package/theme-chalk/src/badge.scss +58 -0
  18. package/theme-chalk/src/base.scss +3 -0
  19. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  20. package/theme-chalk/src/breadcrumb.scss +9 -0
  21. package/theme-chalk/src/button-group.scss +133 -0
  22. package/theme-chalk/src/button.scss +374 -0
  23. package/theme-chalk/src/calendar.scss +94 -0
  24. package/theme-chalk/src/card.scss +49 -0
  25. package/theme-chalk/src/carousel-item.scss +58 -0
  26. package/theme-chalk/src/carousel.scss +195 -0
  27. package/theme-chalk/src/cascader-panel.scss +150 -0
  28. package/theme-chalk/src/cascader.scss +289 -0
  29. package/theme-chalk/src/check-tag.scss +60 -0
  30. package/theme-chalk/src/checkbox-button.scss +142 -0
  31. package/theme-chalk/src/checkbox-group.scss +7 -0
  32. package/theme-chalk/src/checkbox.scss +300 -0
  33. package/theme-chalk/src/col.scss +56 -0
  34. package/theme-chalk/src/collapse-item.scss +72 -0
  35. package/theme-chalk/src/collapse-transition.scss +1 -0
  36. package/theme-chalk/src/collapse.scss +29 -0
  37. package/theme-chalk/src/color/index.scss +20 -0
  38. package/theme-chalk/src/color-picker-panel.scss +294 -0
  39. package/theme-chalk/src/color-picker.scss +165 -0
  40. package/theme-chalk/src/common/popup.scss +47 -0
  41. package/theme-chalk/src/common/transition.scss +125 -0
  42. package/theme-chalk/src/common/var.scss +1748 -0
  43. package/theme-chalk/src/config-provider.scss +0 -0
  44. package/theme-chalk/src/container.scss +14 -0
  45. package/theme-chalk/src/dark/css-vars.scss +45 -0
  46. package/theme-chalk/src/dark/var.scss +224 -0
  47. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  48. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  49. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  50. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  51. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  52. package/theme-chalk/src/date-picker/picker.scss +217 -0
  53. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  54. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  55. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  56. package/theme-chalk/src/date-picker/utils.scss +14 -0
  57. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  58. package/theme-chalk/src/date-picker-panel.scss +34 -0
  59. package/theme-chalk/src/date-picker.scss +0 -0
  60. package/theme-chalk/src/descriptions-item.scss +77 -0
  61. package/theme-chalk/src/descriptions.scss +151 -0
  62. package/theme-chalk/src/dialog.scss +207 -0
  63. package/theme-chalk/src/display.scss +12 -0
  64. package/theme-chalk/src/divider.scss +48 -0
  65. package/theme-chalk/src/drawer.scss +251 -0
  66. package/theme-chalk/src/dropdown-item.scss +0 -0
  67. package/theme-chalk/src/dropdown-menu.scss +0 -0
  68. package/theme-chalk/src/dropdown.scss +208 -0
  69. package/theme-chalk/src/empty.scss +49 -0
  70. package/theme-chalk/src/footer.scss +12 -0
  71. package/theme-chalk/src/form-item.scss +246 -0
  72. package/theme-chalk/src/form.scss +28 -0
  73. package/theme-chalk/src/header.scss +12 -0
  74. package/theme-chalk/src/icon.scss +41 -0
  75. package/theme-chalk/src/image-viewer.scss +161 -0
  76. package/theme-chalk/src/image.scss +49 -0
  77. package/theme-chalk/src/index.scss +116 -0
  78. package/theme-chalk/src/infinite-scroll.scss +0 -0
  79. package/theme-chalk/src/input-number.scss +192 -0
  80. package/theme-chalk/src/input-otp.scss +191 -0
  81. package/theme-chalk/src/input-tag.scss +249 -0
  82. package/theme-chalk/src/input.scss +541 -0
  83. package/theme-chalk/src/link.scss +90 -0
  84. package/theme-chalk/src/loading.scss +104 -0
  85. package/theme-chalk/src/main.scss +14 -0
  86. package/theme-chalk/src/mention.scss +88 -0
  87. package/theme-chalk/src/menu-item-group.scss +0 -0
  88. package/theme-chalk/src/menu-item.scss +0 -0
  89. package/theme-chalk/src/menu.scss +376 -0
  90. package/theme-chalk/src/message-box.scss +220 -0
  91. package/theme-chalk/src/message.scss +123 -0
  92. package/theme-chalk/src/mixins/_button.scss +240 -0
  93. package/theme-chalk/src/mixins/_col.scss +41 -0
  94. package/theme-chalk/src/mixins/_var.scss +67 -0
  95. package/theme-chalk/src/mixins/config.scss +5 -0
  96. package/theme-chalk/src/mixins/function.scss +99 -0
  97. package/theme-chalk/src/mixins/mixins.scss +257 -0
  98. package/theme-chalk/src/mixins/utils.scss +39 -0
  99. package/theme-chalk/src/notification.scss +109 -0
  100. package/theme-chalk/src/option-group.scss +33 -0
  101. package/theme-chalk/src/option.scss +71 -0
  102. package/theme-chalk/src/overlay.scss +17 -0
  103. package/theme-chalk/src/page-header.scss +60 -0
  104. package/theme-chalk/src/pagination.scss +235 -0
  105. package/theme-chalk/src/popconfirm.scss +17 -0
  106. package/theme-chalk/src/popover.scss +61 -0
  107. package/theme-chalk/src/popper.scss +117 -0
  108. package/theme-chalk/src/progress.scss +179 -0
  109. package/theme-chalk/src/radio-button.scss +165 -0
  110. package/theme-chalk/src/radio-group.scss +9 -0
  111. package/theme-chalk/src/radio.scss +220 -0
  112. package/theme-chalk/src/rate.scss +121 -0
  113. package/theme-chalk/src/reset.scss +99 -0
  114. package/theme-chalk/src/result.scss +57 -0
  115. package/theme-chalk/src/row.scss +34 -0
  116. package/theme-chalk/src/scrollbar.scss +97 -0
  117. package/theme-chalk/src/segmented.scss +186 -0
  118. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  119. package/theme-chalk/src/select-dropdown.scss +57 -0
  120. package/theme-chalk/src/select-v2.scss +4 -0
  121. package/theme-chalk/src/select.scss +269 -0
  122. package/theme-chalk/src/skeleton-item.scss +83 -0
  123. package/theme-chalk/src/skeleton.scss +44 -0
  124. package/theme-chalk/src/slider.scss +212 -0
  125. package/theme-chalk/src/space.scss +20 -0
  126. package/theme-chalk/src/spinner.scss +43 -0
  127. package/theme-chalk/src/splitter-panel.scss +8 -0
  128. package/theme-chalk/src/splitter.scss +148 -0
  129. package/theme-chalk/src/statistic.scss +35 -0
  130. package/theme-chalk/src/step.scss +320 -0
  131. package/theme-chalk/src/steps.scss +22 -0
  132. package/theme-chalk/src/sub-menu.scss +0 -0
  133. package/theme-chalk/src/switch.scss +294 -0
  134. package/theme-chalk/src/tab-pane.scss +0 -0
  135. package/theme-chalk/src/table-column.scss +100 -0
  136. package/theme-chalk/src/table-v2.scss +239 -0
  137. package/theme-chalk/src/table.scss +698 -0
  138. package/theme-chalk/src/tabs.scss +699 -0
  139. package/theme-chalk/src/tag.scss +195 -0
  140. package/theme-chalk/src/text.scss +51 -0
  141. package/theme-chalk/src/time-picker.scss +5 -0
  142. package/theme-chalk/src/time-select.scss +37 -0
  143. package/theme-chalk/src/timeline-item.scss +135 -0
  144. package/theme-chalk/src/timeline.scss +101 -0
  145. package/theme-chalk/src/tooltip.scss +0 -0
  146. package/theme-chalk/src/tour.scss +187 -0
  147. package/theme-chalk/src/transfer.scss +201 -0
  148. package/theme-chalk/src/tree-select.scss +41 -0
  149. package/theme-chalk/src/tree.scss +134 -0
  150. package/theme-chalk/src/upload.scss +660 -0
  151. package/theme-chalk/src/var.scss +87 -0
  152. package/theme-chalk/src/virtual-list.scss +40 -0
  153. package/dist/components/button/EpButton.vue.js +0 -171
  154. package/dist/components/button/EpButton2.vue.js +0 -4
  155. package/dist/components/button/button.js +0 -95
  156. package/dist/node_modules/@ctrl/tinycolor/dist/module/conversion.js +0 -134
  157. package/dist/node_modules/@ctrl/tinycolor/dist/module/css-color-names.js +0 -153
  158. package/dist/node_modules/@ctrl/tinycolor/dist/module/format-input.js +0 -77
  159. package/dist/node_modules/@ctrl/tinycolor/dist/module/index.js +0 -354
  160. package/dist/node_modules/@ctrl/tinycolor/dist/module/util.js +0 -32
@@ -0,0 +1,257 @@
1
+ @use 'function' as *;
2
+ @use '../common/var' as *;
3
+ // forward mixins
4
+ @forward 'config';
5
+ @forward 'function';
6
+ @forward '_var';
7
+ @use 'config' as *;
8
+ @use 'sass:string';
9
+ @use 'sass:map';
10
+
11
+ $B: null;
12
+ $E: null;
13
+
14
+ // Break-points
15
+ @mixin res($key, $map: $breakpoints) {
16
+ // loop breakpoint Map, return if present
17
+ @if map.has-key($map, $key) {
18
+ @media only screen and #{string.unquote(map.get($map, $key))} {
19
+ @content;
20
+ }
21
+ } @else {
22
+ @warn "Undefined points: `#{$map}`";
23
+ }
24
+ }
25
+
26
+ // Scrollbar
27
+ @mixin scroll-bar {
28
+ $scrollbar-thumb-background: getCssVar('text-color', 'disabled');
29
+ $scrollbar-track-background: getCssVar('fill-color', 'blank');
30
+
31
+ &::-webkit-scrollbar {
32
+ z-index: 11;
33
+ width: 6px;
34
+
35
+ &:horizontal {
36
+ height: 6px;
37
+ }
38
+
39
+ &-thumb {
40
+ border-radius: 5px;
41
+ width: 6px;
42
+ background: $scrollbar-thumb-background;
43
+ }
44
+
45
+ &-corner {
46
+ background: $scrollbar-track-background;
47
+ }
48
+
49
+ &-track {
50
+ background: $scrollbar-track-background;
51
+
52
+ &-piece {
53
+ background: $scrollbar-track-background;
54
+ width: 6px;
55
+ }
56
+ }
57
+ }
58
+ }
59
+
60
+ // BEM
61
+ @mixin b($block) {
62
+ $B: $namespace + $common-separator + $block !global;
63
+
64
+ .#{$B} {
65
+ @content;
66
+ }
67
+ }
68
+
69
+ @mixin e($element) {
70
+ $E: $element !global;
71
+ $selector: &;
72
+ $currentSelector: '';
73
+ @each $unit in $element {
74
+ $currentSelector: #{$currentSelector +
75
+ '.' +
76
+ $B +
77
+ $element-separator +
78
+ $unit +
79
+ ','};
80
+ }
81
+
82
+ @if hitAllSpecialNestRule($selector) {
83
+ @at-root {
84
+ #{$selector} {
85
+ #{$currentSelector} {
86
+ @content;
87
+ }
88
+ }
89
+ }
90
+ } @else {
91
+ @at-root {
92
+ #{$currentSelector} {
93
+ @content;
94
+ }
95
+ }
96
+ }
97
+ }
98
+
99
+ @mixin m($modifier) {
100
+ $selector: &;
101
+ $currentSelector: '';
102
+ @each $unit in $modifier {
103
+ $currentSelector: #{$currentSelector +
104
+ $selector +
105
+ $modifier-separator +
106
+ $unit +
107
+ ','};
108
+ }
109
+
110
+ @at-root {
111
+ #{$currentSelector} {
112
+ @content;
113
+ }
114
+ }
115
+ }
116
+
117
+ @mixin configurable-m($modifier, $E-flag: false) {
118
+ $selector: &;
119
+ $interpolation: '';
120
+
121
+ @if $E-flag {
122
+ $interpolation: $element-separator + $E-flag;
123
+ }
124
+
125
+ @at-root {
126
+ #{$selector} {
127
+ .#{$B + $interpolation + $modifier-separator + $modifier} {
128
+ @content;
129
+ }
130
+ }
131
+ }
132
+ }
133
+
134
+ @mixin spec-selector(
135
+ $specSelector: '',
136
+ $element: $E,
137
+ $modifier: false,
138
+ $block: $B
139
+ ) {
140
+ $modifierCombo: '';
141
+
142
+ @if $modifier {
143
+ $modifierCombo: $modifier-separator + $modifier;
144
+ }
145
+
146
+ @at-root {
147
+ #{&}#{$specSelector}.#{$block
148
+ + $element-separator
149
+ + $element
150
+ + $modifierCombo} {
151
+ @content;
152
+ }
153
+ }
154
+ }
155
+
156
+ @mixin meb($modifier: false, $element: $E, $block: $B) {
157
+ $selector: &;
158
+ $modifierCombo: '';
159
+
160
+ @if $modifier {
161
+ $modifierCombo: $modifier-separator + $modifier;
162
+ }
163
+
164
+ @at-root {
165
+ #{$selector} {
166
+ .#{$block + $element-separator + $element + $modifierCombo} {
167
+ @content;
168
+ }
169
+ }
170
+ }
171
+ }
172
+
173
+ @mixin when($state) {
174
+ @at-root {
175
+ &.#{$state-prefix + $state} {
176
+ @content;
177
+ }
178
+ }
179
+ }
180
+
181
+ @mixin extend-rule($name) {
182
+ @extend #{'%shared-' + $name} !optional;
183
+ }
184
+
185
+ @mixin share-rule($name) {
186
+ $rule-name: '%shared-' + $name;
187
+
188
+ @at-root #{$rule-name} {
189
+ @content;
190
+ }
191
+ }
192
+
193
+ @mixin pseudo($pseudo) {
194
+ @at-root #{&}#{':#{$pseudo}'} {
195
+ @content;
196
+ }
197
+ }
198
+
199
+ @mixin picker-popper($background, $border, $box-shadow) {
200
+ &.#{$namespace}-popper {
201
+ background: $background;
202
+ border: $border;
203
+ box-shadow: $box-shadow;
204
+
205
+ .#{$namespace}-popper__arrow {
206
+ &::before {
207
+ border: $border;
208
+ }
209
+ }
210
+
211
+ @each $placement,
212
+ $adjacency
213
+ in ('top': 'left', 'bottom': 'right', 'left': 'bottom', 'right': 'top')
214
+ {
215
+ &[data-popper-placement^='#{$placement}'] {
216
+ .#{$namespace}-popper__arrow::before {
217
+ border-#{$placement}-color: transparent;
218
+ border-#{$adjacency}-color: transparent;
219
+ }
220
+ }
221
+ }
222
+ }
223
+ }
224
+
225
+ // dark
226
+ @mixin dark($block) {
227
+ html.dark {
228
+ @include b($block) {
229
+ @content;
230
+ }
231
+ }
232
+ }
233
+
234
+ @mixin inset-input-border($color, $important: false) {
235
+ @if $important == true {
236
+ box-shadow: 0 0 0 1px $color inset !important;
237
+ } @else {
238
+ box-shadow: 0 0 0 1px $color inset;
239
+ }
240
+ }
241
+
242
+ @mixin reset-button($outline-offset: 2px) {
243
+ cursor: pointer;
244
+ padding: 0;
245
+ margin: 0;
246
+ background-color: transparent;
247
+ appearance: none;
248
+ border: none;
249
+ border-radius: getCssVar('border-radius', 'base');
250
+ outline: none;
251
+ transition: transform getCssVar('transition-duration-fast') ease-in-out;
252
+
253
+ &:focus-visible {
254
+ outline: 2px solid getCssVar('color-primary');
255
+ outline-offset: $outline-offset;
256
+ }
257
+ }
@@ -0,0 +1,39 @@
1
+ @mixin utils-clearfix {
2
+ $selector: &;
3
+
4
+ @at-root {
5
+ #{$selector}::before,
6
+ #{$selector}::after {
7
+ display: table;
8
+ content: '';
9
+ }
10
+ #{$selector}::after {
11
+ clear: both;
12
+ }
13
+ }
14
+ }
15
+
16
+ @mixin utils-vertical-center {
17
+ $selector: &;
18
+
19
+ @at-root {
20
+ #{$selector}::after {
21
+ display: inline-block;
22
+ content: '';
23
+ height: 100%;
24
+ vertical-align: middle;
25
+ }
26
+ }
27
+ }
28
+
29
+ @mixin utils-ellipsis {
30
+ overflow: hidden;
31
+ text-overflow: ellipsis;
32
+ white-space: nowrap;
33
+ }
34
+
35
+ @mixin utils-inline-flex-center {
36
+ display: inline-flex;
37
+ justify-content: center;
38
+ align-items: center;
39
+ }
@@ -0,0 +1,109 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @include b(notification) {
6
+ @include set-component-css-var('notification', $notification);
7
+ }
8
+
9
+ @include b(notification) {
10
+ display: flex;
11
+ width: getCssVar('notification-width');
12
+ padding: getCssVar('notification-padding');
13
+ border-radius: getCssVar('notification-radius');
14
+ box-sizing: border-box;
15
+ border: 1px solid getCssVar('notification-border-color');
16
+ position: fixed;
17
+ background-color: getCssVar('bg-color', 'overlay');
18
+ box-shadow: getCssVar('notification-shadow');
19
+ transition:
20
+ opacity getCssVar('transition-duration'),
21
+ transform getCssVar('transition-duration'),
22
+ left getCssVar('transition-duration'),
23
+ right getCssVar('transition-duration'),
24
+ top 0.4s,
25
+ bottom getCssVar('transition-duration');
26
+ overflow-wrap: break-word;
27
+ overflow: hidden;
28
+ z-index: 9999;
29
+
30
+ &.right {
31
+ right: 16px;
32
+ }
33
+
34
+ &.left {
35
+ left: 16px;
36
+ }
37
+
38
+ @include e(group) {
39
+ flex: 1;
40
+ min-width: 0;
41
+ margin-left: getCssVar('notification-group-margin-left');
42
+ margin-right: getCssVar('notification-group-margin-right');
43
+ }
44
+
45
+ @include e(title) {
46
+ font-weight: bold;
47
+ font-size: getCssVar('notification-title-font-size');
48
+ line-height: getCssVar('notification-icon-size');
49
+ color: getCssVar('notification-title-color');
50
+ margin: 0;
51
+ }
52
+
53
+ @include e(content) {
54
+ font-size: getCssVar('notification-content-font-size');
55
+ line-height: 24px;
56
+ margin: 6px 0 0;
57
+ color: getCssVar('notification-content-color');
58
+
59
+ p {
60
+ margin: 0;
61
+ }
62
+ }
63
+
64
+ & .#{$namespace}-notification__icon {
65
+ flex-shrink: 0;
66
+ height: getCssVar('notification-icon-size');
67
+ width: getCssVar('notification-icon-size');
68
+ font-size: getCssVar('notification-icon-size');
69
+ }
70
+
71
+ & .#{$namespace}-notification__closeBtn {
72
+ position: absolute;
73
+ top: 18px;
74
+ right: 15px;
75
+ cursor: pointer;
76
+ color: getCssVar('notification-close-color');
77
+ font-size: getCssVar('notification-close-font-size');
78
+
79
+ &:hover {
80
+ color: getCssVar('notification-close-hover-color');
81
+ }
82
+ }
83
+
84
+ @each $type in (primary, success, info, warning, error) {
85
+ & .#{$namespace}-notification--#{$type} {
86
+ @include css-var-from-global(
87
+ ('notification', 'icon-color'),
88
+ ('color', $type)
89
+ );
90
+ color: getCssVar('notification-icon-color');
91
+ }
92
+ }
93
+ }
94
+
95
+ .#{$namespace}-notification-fade-enter-from {
96
+ &.right {
97
+ right: 0;
98
+ transform: translateX(100%);
99
+ }
100
+
101
+ &.left {
102
+ left: 0;
103
+ transform: translateX(-100%);
104
+ }
105
+ }
106
+
107
+ .#{$namespace}-notification-fade-leave-to {
108
+ opacity: 0;
109
+ }
@@ -0,0 +1,33 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'common/var' as *;
5
+
6
+ @include b(select-group) {
7
+ $gap: 20px;
8
+
9
+ margin: 0;
10
+ padding: 0;
11
+
12
+ @include e(wrap) {
13
+ position: relative;
14
+ list-style: none;
15
+ margin: 0;
16
+ padding: 0;
17
+ }
18
+
19
+ @include e(title) {
20
+ box-sizing: border-box;
21
+ padding: 0 $gap;
22
+ font-size: map.get($select-group, 'font-size');
23
+ color: map.get($select-group, 'text-color');
24
+ line-height: map.get($select-group, 'height');
25
+ overflow: hidden;
26
+ text-overflow: ellipsis;
27
+ white-space: nowrap;
28
+ }
29
+
30
+ & .#{$namespace}-select-dropdown__item {
31
+ padding-left: $gap;
32
+ }
33
+ }
@@ -0,0 +1,71 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'common/var' as *;
5
+
6
+ $checked-icon: "data:image/svg+xml;utf8,%3Csvg class='icon' width='200' height='200' viewBox='0 0 1024 1024' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='currentColor' d='M406.656 706.944L195.84 496.256a32 32 0 10-45.248 45.248l256 256 512-512a32 32 0 00-45.248-45.248L406.592 706.944z'%3E%3C/path%3E%3C/svg%3E";
7
+
8
+ @mixin checked-icon {
9
+ content: '';
10
+ position: absolute;
11
+ top: 50%;
12
+ right: 20px;
13
+ border-top: none;
14
+ border-right: none;
15
+ background-repeat: no-repeat;
16
+ background-position: center;
17
+ background-color: map.get($select-option, 'selected-text-color');
18
+ mask: url('#{$checked-icon}') no-repeat;
19
+ mask-size: 100% 100%;
20
+ -webkit-mask: url('#{$checked-icon}') no-repeat;
21
+ -webkit-mask-size: 100% 100%;
22
+ transform: translateY(-50%);
23
+ width: 12px;
24
+ height: 12px;
25
+ }
26
+
27
+ @include b(select-dropdown) {
28
+ @include e(item) {
29
+ font-size: map.get($select, 'font-size');
30
+ // 20 as the padding of option item, 12 as the size of ✓ icon size
31
+ padding: 0 #{20 + 12}px 0 20px;
32
+ position: relative;
33
+ white-space: nowrap;
34
+ overflow: hidden;
35
+ text-overflow: ellipsis;
36
+ color: map.get($select-option, 'text-color');
37
+ height: map.get($select-option, 'height');
38
+ line-height: map.get($select-option, 'height');
39
+ box-sizing: border-box;
40
+ cursor: pointer;
41
+
42
+ @include when(hovering) {
43
+ background-color: map.get($select-option, 'hover-background');
44
+ }
45
+
46
+ @include when(selected) {
47
+ color: map.get($select-option, 'selected-text-color');
48
+ font-weight: bold;
49
+ }
50
+
51
+ @include when(disabled) {
52
+ color: map.get($select-option, 'disabled-color');
53
+ cursor: not-allowed;
54
+ background-color: unset;
55
+ }
56
+ }
57
+
58
+ @include when(multiple) {
59
+ .#{$namespace}-select-dropdown__item.is-selected {
60
+ &::after {
61
+ @include checked-icon;
62
+ }
63
+ }
64
+
65
+ .#{$namespace}-select-dropdown__item.is-disabled {
66
+ &::after {
67
+ background-color: map.get($select-option, 'disabled-color');
68
+ }
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,17 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(overlay) {
5
+ position: fixed;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ left: 0;
10
+ z-index: 2000;
11
+ height: 100%;
12
+ background-color: getCssVar('overlay-color', 'lighter');
13
+ overflow: auto;
14
+ #{& + '-root'} {
15
+ height: 0;
16
+ }
17
+ }
@@ -0,0 +1,60 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'common/var' as *;
3
+
4
+ @include b(page-header) {
5
+ @include when(contentful) {
6
+ @include e('main') {
7
+ border-top: 1px solid getCssVar('border-color', 'light');
8
+ margin-top: 16px;
9
+ }
10
+ }
11
+
12
+ @include e(header) {
13
+ display: flex;
14
+ align-items: center;
15
+ justify-content: space-between;
16
+ line-height: 24px;
17
+
18
+ @include e(left) {
19
+ display: flex;
20
+ align-items: center;
21
+ margin-right: 40px;
22
+ position: relative;
23
+
24
+ @include e('back') {
25
+ display: flex;
26
+ align-items: center;
27
+ cursor: pointer;
28
+ }
29
+
30
+ .#{$namespace}-divider--vertical {
31
+ margin: 0 16px;
32
+ }
33
+
34
+ @include e(icon) {
35
+ font-size: 16px;
36
+ margin-right: 10px;
37
+ display: flex;
38
+ align-items: center;
39
+
40
+ .#{$namespace}-icon {
41
+ font-size: inherit;
42
+ }
43
+ }
44
+
45
+ @include e(title) {
46
+ font-size: 14px;
47
+ font-weight: 500;
48
+ }
49
+ }
50
+ }
51
+
52
+ @include e(content) {
53
+ font-size: 18px;
54
+ color: getCssVar('text-color', 'primary');
55
+ }
56
+
57
+ @include e(breadcrumb) {
58
+ margin-bottom: 16px;
59
+ }
60
+ }