@timus-networks/theme 2.2.2 → 2.3.0
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.
- package/dist/module.json +1 -1
- package/dist/module.mjs +9 -2
- package/dist/runtime/components/development/example.button.vue.d.ts +302 -0
- package/dist/runtime/components/development/example.dialog.vue +4 -5
- package/dist/runtime/components/development/example.message.vue +1 -1
- package/dist/runtime/components/development/example.popover.vue +3 -3
- package/dist/runtime/components/development/example.table.vue +1 -1
- package/dist/runtime/components/production/timus-breadcrumb.vue.d.ts +0 -302
- package/dist/runtime/public/scss/_buttons.scss +159 -0
- package/dist/runtime/public/scss/_colors.scss +188 -0
- package/dist/runtime/public/scss/_containers.scss +7 -0
- package/dist/runtime/public/scss/_fonts.scss +85 -0
- package/dist/runtime/public/scss/_icons.scss +124 -0
- package/dist/runtime/public/scss/_inputs.scss +62 -0
- package/dist/runtime/public/scss/_layers.scss +9 -0
- package/dist/runtime/public/scss/_logo.scss +53 -0
- package/dist/runtime/public/scss/_selectbox.scss +4 -0
- package/dist/runtime/public/scss/_variables.scss +16 -0
- package/dist/runtime/public/scss/element-plus/affix.css +78 -78
- package/dist/runtime/public/scss/element-plus/affix.scss +7 -0
- package/dist/runtime/public/scss/element-plus/alert.css +78 -78
- package/dist/runtime/public/scss/element-plus/alert.scss +168 -0
- package/dist/runtime/public/scss/element-plus/anchor-link.css +78 -78
- package/dist/runtime/public/scss/element-plus/anchor-link.scss +41 -0
- package/dist/runtime/public/scss/element-plus/anchor.css +78 -78
- package/dist/runtime/public/scss/element-plus/anchor.scss +93 -0
- package/dist/runtime/public/scss/element-plus/aside.css +78 -78
- package/dist/runtime/public/scss/element-plus/aside.scss +8 -0
- package/dist/runtime/public/scss/element-plus/autocomplete.css +78 -78
- package/dist/runtime/public/scss/element-plus/autocomplete.scss +85 -0
- package/dist/runtime/public/scss/element-plus/avatar.css +82 -78
- package/dist/runtime/public/scss/element-plus/avatar.scss +56 -0
- package/dist/runtime/public/scss/element-plus/backtop.css +78 -78
- package/dist/runtime/public/scss/element-plus/backtop.scss +29 -0
- package/dist/runtime/public/scss/element-plus/badge.css +78 -78
- package/dist/runtime/public/scss/element-plus/badge.scss +54 -0
- package/dist/runtime/public/scss/element-plus/base.css +78 -78
- package/dist/runtime/public/scss/element-plus/base.scss +3 -0
- package/dist/runtime/public/scss/element-plus/breadcrumb-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/breadcrumb.css +78 -78
- package/dist/runtime/public/scss/element-plus/breadcrumb.scss +75 -0
- package/dist/runtime/public/scss/element-plus/button-group.css +78 -78
- package/dist/runtime/public/scss/element-plus/button-group.scss +111 -0
- package/dist/runtime/public/scss/element-plus/button.css +78 -83
- package/dist/runtime/public/scss/element-plus/button.scss +352 -0
- package/dist/runtime/public/scss/element-plus/calendar.css +78 -78
- package/dist/runtime/public/scss/element-plus/calendar.scss +80 -0
- package/dist/runtime/public/scss/element-plus/card.css +78 -78
- package/dist/runtime/public/scss/element-plus/card.scss +54 -0
- package/dist/runtime/public/scss/element-plus/carousel-item.css +78 -78
- package/dist/runtime/public/scss/element-plus/carousel-item.scss +58 -0
- package/dist/runtime/public/scss/element-plus/carousel.css +78 -78
- package/dist/runtime/public/scss/element-plus/carousel.scss +183 -0
- package/dist/runtime/public/scss/element-plus/cascader-panel.css +78 -78
- package/dist/runtime/public/scss/element-plus/cascader-panel.scss +138 -0
- package/dist/runtime/public/scss/element-plus/cascader.css +78 -78
- package/dist/runtime/public/scss/element-plus/cascader.scss +218 -0
- package/dist/runtime/public/scss/element-plus/check-tag.css +78 -78
- package/dist/runtime/public/scss/element-plus/check-tag.scss +38 -0
- package/dist/runtime/public/scss/element-plus/checkbox-button.css +78 -83
- package/dist/runtime/public/scss/element-plus/checkbox-button.scss +141 -0
- package/dist/runtime/public/scss/element-plus/checkbox-group.css +78 -78
- package/dist/runtime/public/scss/element-plus/checkbox-group.scss +8 -0
- package/dist/runtime/public/scss/element-plus/checkbox.css +78 -78
- package/dist/runtime/public/scss/element-plus/checkbox.scss +294 -0
- package/dist/runtime/public/scss/element-plus/col.css +78 -78
- package/dist/runtime/public/scss/element-plus/col.scss +48 -0
- package/dist/runtime/public/scss/element-plus/collapse-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/collapse-transition.scss +0 -0
- package/dist/runtime/public/scss/element-plus/collapse.css +78 -78
- package/dist/runtime/public/scss/element-plus/collapse.scss +70 -0
- package/dist/runtime/public/scss/element-plus/color/index.scss +17 -0
- package/dist/runtime/public/scss/element-plus/color-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/color-picker.scss +365 -0
- package/dist/runtime/public/scss/element-plus/common/popup.css +78 -78
- package/dist/runtime/public/scss/element-plus/common/popup.scss +47 -0
- package/dist/runtime/public/scss/element-plus/common/transition.css +78 -78
- package/dist/runtime/public/scss/element-plus/common/transition.scss +124 -0
- package/dist/runtime/public/scss/element-plus/common/var.css +78 -78
- package/dist/runtime/public/scss/element-plus/common/var.scss +1646 -0
- package/dist/runtime/public/scss/element-plus/config-provider.scss +0 -0
- package/dist/runtime/public/scss/element-plus/container.css +78 -78
- package/dist/runtime/public/scss/element-plus/container.scss +14 -0
- package/dist/runtime/public/scss/element-plus/dark/css-vars.css +78 -78
- package/dist/runtime/public/scss/element-plus/dark/css-vars.scss +39 -0
- package/dist/runtime/public/scss/element-plus/dark/var.css +78 -78
- package/dist/runtime/public/scss/element-plus/dark/var.scss +221 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/date-picker.scss +109 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.scss +117 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-table.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/date-table.scss +158 -0
- package/dist/runtime/public/scss/element-plus/date-picker/month-table.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/month-table.scss +112 -0
- package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.scss +168 -0
- package/dist/runtime/public/scss/element-plus/date-picker/picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/picker.scss +192 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/time-picker.scss +98 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.scss +40 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.scss +110 -0
- package/dist/runtime/public/scss/element-plus/date-picker/year-table.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/year-table.scss +108 -0
- package/dist/runtime/public/scss/element-plus/date-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker.scss +9 -0
- package/dist/runtime/public/scss/element-plus/descriptions-item.css +78 -78
- package/dist/runtime/public/scss/element-plus/descriptions-item.scss +69 -0
- package/dist/runtime/public/scss/element-plus/descriptions.css +78 -78
- package/dist/runtime/public/scss/element-plus/descriptions.scss +166 -0
- package/dist/runtime/public/scss/element-plus/dialog.css +81 -81
- package/dist/runtime/public/scss/element-plus/dialog.scss +190 -0
- package/dist/runtime/public/scss/element-plus/display.css +78 -78
- package/dist/runtime/public/scss/element-plus/display.scss +12 -0
- package/dist/runtime/public/scss/element-plus/divider.css +78 -78
- package/dist/runtime/public/scss/element-plus/divider.scss +48 -0
- package/dist/runtime/public/scss/element-plus/drawer.css +78 -78
- package/dist/runtime/public/scss/element-plus/drawer.scss +155 -0
- package/dist/runtime/public/scss/element-plus/dropdown-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/dropdown-menu.scss +0 -0
- package/dist/runtime/public/scss/element-plus/dropdown.css +78 -78
- package/dist/runtime/public/scss/element-plus/dropdown.scss +212 -0
- package/dist/runtime/public/scss/element-plus/empty.css +78 -78
- package/dist/runtime/public/scss/element-plus/empty.scss +49 -0
- package/dist/runtime/public/scss/element-plus/footer.css +78 -78
- package/dist/runtime/public/scss/element-plus/footer.scss +12 -0
- package/dist/runtime/public/scss/element-plus/form-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/form.css +78 -78
- package/dist/runtime/public/scss/element-plus/form.scss +296 -0
- package/dist/runtime/public/scss/element-plus/header.css +78 -78
- package/dist/runtime/public/scss/element-plus/header.scss +12 -0
- package/dist/runtime/public/scss/element-plus/icon.css +78 -78
- package/dist/runtime/public/scss/element-plus/icon.scss +45 -0
- package/dist/runtime/public/scss/element-plus/image-viewer.css +78 -78
- package/dist/runtime/public/scss/element-plus/image-viewer.scss +139 -0
- package/dist/runtime/public/scss/element-plus/image.css +78 -78
- package/dist/runtime/public/scss/element-plus/image.scss +49 -0
- package/dist/runtime/public/scss/element-plus/index.css +185 -164
- package/dist/runtime/public/scss/element-plus/index.scss +110 -0
- package/dist/runtime/public/scss/element-plus/infinite-scroll.scss +0 -0
- package/dist/runtime/public/scss/element-plus/input-number.css +78 -78
- package/dist/runtime/public/scss/element-plus/input-number.scss +184 -0
- package/dist/runtime/public/scss/element-plus/input.css +78 -78
- package/dist/runtime/public/scss/element-plus/input.scss +530 -0
- package/dist/runtime/public/scss/element-plus/link.css +106 -120
- package/dist/runtime/public/scss/element-plus/link.scss +89 -0
- package/dist/runtime/public/scss/element-plus/loading.css +78 -78
- package/dist/runtime/public/scss/element-plus/loading.scss +102 -0
- package/dist/runtime/public/scss/element-plus/main.css +78 -78
- package/dist/runtime/public/scss/element-plus/main.scss +14 -0
- package/dist/runtime/public/scss/element-plus/mention.css +78 -78
- package/dist/runtime/public/scss/element-plus/mention.scss +84 -0
- package/dist/runtime/public/scss/element-plus/menu-item-group.scss +0 -0
- package/dist/runtime/public/scss/element-plus/menu-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/menu.css +78 -78
- package/dist/runtime/public/scss/element-plus/menu.scss +332 -0
- package/dist/runtime/public/scss/element-plus/message-box.css +105 -86
- package/dist/runtime/public/scss/element-plus/message-box.scss +229 -0
- package/dist/runtime/public/scss/element-plus/message.css +81 -81
- package/dist/runtime/public/scss/element-plus/message.scss +159 -0
- package/dist/runtime/public/scss/element-plus/mixins/_button.scss +181 -0
- package/dist/runtime/public/scss/element-plus/mixins/_col.scss +33 -0
- package/dist/runtime/public/scss/element-plus/mixins/_var.scss +58 -0
- package/dist/runtime/public/scss/element-plus/mixins/config.scss +5 -0
- package/dist/runtime/public/scss/element-plus/mixins/function.scss +84 -0
- package/dist/runtime/public/scss/element-plus/mixins/mixins.css +78 -78
- package/dist/runtime/public/scss/element-plus/mixins/mixins.scss +227 -0
- package/dist/runtime/public/scss/element-plus/mixins/utils.scss +39 -0
- package/dist/runtime/public/scss/element-plus/notification.css +80 -80
- package/dist/runtime/public/scss/element-plus/notification.scss +104 -0
- package/dist/runtime/public/scss/element-plus/option-group.css +78 -78
- package/dist/runtime/public/scss/element-plus/option-group.scss +38 -0
- package/dist/runtime/public/scss/element-plus/option.css +78 -78
- package/dist/runtime/public/scss/element-plus/option.scss +75 -0
- package/dist/runtime/public/scss/element-plus/overlay.css +79 -79
- package/dist/runtime/public/scss/element-plus/overlay.scss +20 -0
- package/dist/runtime/public/scss/element-plus/page-header.css +78 -78
- package/dist/runtime/public/scss/element-plus/page-header.scss +60 -0
- package/dist/runtime/public/scss/element-plus/pagination.css +78 -78
- package/dist/runtime/public/scss/element-plus/pagination.scss +249 -0
- package/dist/runtime/public/scss/element-plus/popconfirm.css +78 -78
- package/dist/runtime/public/scss/element-plus/popconfirm.scss +16 -0
- package/dist/runtime/public/scss/element-plus/popover.css +99 -79
- package/dist/runtime/public/scss/element-plus/popover.scss +75 -0
- package/dist/runtime/public/scss/element-plus/popper.css +78 -78
- package/dist/runtime/public/scss/element-plus/popper.scss +107 -0
- package/dist/runtime/public/scss/element-plus/progress.css +78 -78
- package/dist/runtime/public/scss/element-plus/progress.scss +179 -0
- package/dist/runtime/public/scss/element-plus/radio-button.css +78 -79
- package/dist/runtime/public/scss/element-plus/radio-button.scss +138 -0
- package/dist/runtime/public/scss/element-plus/radio-group.css +78 -78
- package/dist/runtime/public/scss/element-plus/radio-group.scss +9 -0
- package/dist/runtime/public/scss/element-plus/radio.css +78 -78
- package/dist/runtime/public/scss/element-plus/radio.scss +240 -0
- package/dist/runtime/public/scss/element-plus/rate.css +78 -78
- package/dist/runtime/public/scss/element-plus/rate.scss +108 -0
- package/dist/runtime/public/scss/element-plus/reset.css +78 -78
- package/dist/runtime/public/scss/element-plus/reset.scss +97 -0
- package/dist/runtime/public/scss/element-plus/result.css +78 -78
- package/dist/runtime/public/scss/element-plus/result.scss +57 -0
- package/dist/runtime/public/scss/element-plus/row.css +78 -78
- package/dist/runtime/public/scss/element-plus/row.scss +35 -0
- package/dist/runtime/public/scss/element-plus/scrollbar.css +78 -78
- package/dist/runtime/public/scss/element-plus/scrollbar.scss +85 -0
- package/dist/runtime/public/scss/element-plus/segmented.css +78 -78
- package/dist/runtime/public/scss/element-plus/segmented.scss +160 -0
- package/dist/runtime/public/scss/element-plus/select-dropdown-v2.css +78 -78
- package/dist/runtime/public/scss/element-plus/select-dropdown-v2.scss +1 -0
- package/dist/runtime/public/scss/element-plus/select-dropdown.css +78 -78
- package/dist/runtime/public/scss/element-plus/select-dropdown.scss +57 -0
- package/dist/runtime/public/scss/element-plus/select-v2.css +79 -79
- package/dist/runtime/public/scss/element-plus/select-v2.scss +4 -0
- package/dist/runtime/public/scss/element-plus/select.css +79 -79
- package/dist/runtime/public/scss/element-plus/select.scss +277 -0
- package/dist/runtime/public/scss/element-plus/skeleton-item.css +78 -78
- package/dist/runtime/public/scss/element-plus/skeleton-item.scss +83 -0
- package/dist/runtime/public/scss/element-plus/skeleton.css +78 -78
- package/dist/runtime/public/scss/element-plus/skeleton.scss +39 -0
- package/dist/runtime/public/scss/element-plus/slider.css +78 -78
- package/dist/runtime/public/scss/element-plus/slider.scss +212 -0
- package/dist/runtime/public/scss/element-plus/space.css +78 -78
- package/dist/runtime/public/scss/element-plus/space.scss +20 -0
- package/dist/runtime/public/scss/element-plus/spinner.css +78 -78
- package/dist/runtime/public/scss/element-plus/spinner.scss +43 -0
- package/dist/runtime/public/scss/element-plus/statistic.css +78 -78
- package/dist/runtime/public/scss/element-plus/statistic.scss +35 -0
- package/dist/runtime/public/scss/element-plus/step.css +78 -78
- package/dist/runtime/public/scss/element-plus/step.scss +316 -0
- package/dist/runtime/public/scss/element-plus/steps.css +78 -78
- package/dist/runtime/public/scss/element-plus/steps.scss +21 -0
- package/dist/runtime/public/scss/element-plus/sub-menu.scss +0 -0
- package/dist/runtime/public/scss/element-plus/switch.css +78 -78
- package/dist/runtime/public/scss/element-plus/switch.scss +309 -0
- package/dist/runtime/public/scss/element-plus/tab-pane.scss +0 -0
- package/dist/runtime/public/scss/element-plus/table-column.css +78 -78
- package/dist/runtime/public/scss/element-plus/table-column.scss +98 -0
- package/dist/runtime/public/scss/element-plus/table-v2.css +78 -78
- package/dist/runtime/public/scss/element-plus/table-v2.scss +234 -0
- package/dist/runtime/public/scss/element-plus/table.css +84 -81
- package/dist/runtime/public/scss/element-plus/table.scss +732 -0
- package/dist/runtime/public/scss/element-plus/tabs.css +78 -78
- package/dist/runtime/public/scss/element-plus/tabs.scss +653 -0
- package/dist/runtime/public/scss/element-plus/tag.css +87 -87
- package/dist/runtime/public/scss/element-plus/tag.scss +162 -0
- package/dist/runtime/public/scss/element-plus/text.css +78 -78
- package/dist/runtime/public/scss/element-plus/text.scss +58 -0
- package/dist/runtime/public/scss/element-plus/time-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/time-picker.scss +5 -0
- package/dist/runtime/public/scss/element-plus/time-select.css +78 -78
- package/dist/runtime/public/scss/element-plus/time-select.scss +37 -0
- package/dist/runtime/public/scss/element-plus/timeline-item.css +78 -78
- package/dist/runtime/public/scss/element-plus/timeline-item.scss +84 -0
- package/dist/runtime/public/scss/element-plus/timeline.css +78 -78
- package/dist/runtime/public/scss/element-plus/timeline.scss +46 -0
- package/dist/runtime/public/scss/element-plus/tooltip-v2.css +78 -78
- package/dist/runtime/public/scss/element-plus/tooltip-v2.scss +86 -0
- package/dist/runtime/public/scss/element-plus/tooltip.scss +0 -0
- package/dist/runtime/public/scss/element-plus/tour.css +80 -80
- package/dist/runtime/public/scss/element-plus/tour.scss +170 -0
- package/dist/runtime/public/scss/element-plus/transfer.css +78 -78
- package/dist/runtime/public/scss/element-plus/transfer.scss +204 -0
- package/dist/runtime/public/scss/element-plus/tree-select.css +78 -78
- package/dist/runtime/public/scss/element-plus/tree-select.scss +38 -0
- package/dist/runtime/public/scss/element-plus/tree.css +78 -78
- package/dist/runtime/public/scss/element-plus/tree.scss +132 -0
- package/dist/runtime/public/scss/element-plus/upload.css +78 -78
- package/dist/runtime/public/scss/element-plus/upload.scss +652 -0
- package/dist/runtime/public/scss/element-plus/var.css +78 -78
- package/dist/runtime/public/scss/element-plus/var.scss +84 -0
- package/dist/runtime/public/scss/element-plus/virtual-list.css +78 -78
- package/dist/runtime/public/scss/element-plus/virtual-list.scss +40 -0
- package/dist/runtime/public/scss/theme.css +78 -78
- package/dist/runtime/public/scss/theme.scss +72 -0
- package/package.json +9 -2
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
@use 'config';
|
|
4
|
+
@use 'function' as *;
|
|
5
|
+
@use '../common/var' as *;
|
|
6
|
+
|
|
7
|
+
// set css var value, because we need translate value to string
|
|
8
|
+
// for example:
|
|
9
|
+
// @include set-css-var-value(('color', 'primary'), red);
|
|
10
|
+
// --el-color-primary: red;
|
|
11
|
+
@mixin set-css-var-value($name, $value) {
|
|
12
|
+
//@if variable-exists($value) {
|
|
13
|
+
// @debug $name, $value;
|
|
14
|
+
// }
|
|
15
|
+
#{joinVarName($name)}: #{$value};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
// @include set-css-var-type('color', 'primary', $map);
|
|
19
|
+
// --el-color-primary: #{map.get($map, 'primary')};
|
|
20
|
+
@mixin set-css-var-type($name, $type, $variables) {
|
|
21
|
+
#{getCssVarName($name, $type)}: #{map.get($variables, $type)};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@mixin set-css-color-type($colors, $type) {
|
|
25
|
+
@include set-css-var-value(('color', $type), map.get($colors, $type, 'base'));
|
|
26
|
+
|
|
27
|
+
@each $i in $variants {
|
|
28
|
+
@include set-css-var-value(('color', $type, 'light', $i), map.get($colors, $type, 'light-#{$i}'));
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@include set-css-var-value(('color', $type, 'dark-2'), map.get($colors, $type, 'dark-2'));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// set all css var for component by map
|
|
35
|
+
@mixin set-component-css-var($name, $variables) {
|
|
36
|
+
@each $attribute, $value in $variables {
|
|
37
|
+
@if $attribute == 'default' {
|
|
38
|
+
#{getCssVarName($name)}: #{$value};
|
|
39
|
+
} @else {
|
|
40
|
+
#{getCssVarName($name, $attribute)}: #{$value};
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@mixin set-css-color-rgb($type) {
|
|
46
|
+
$color: map.get($colors, $type, 'base');
|
|
47
|
+
@include set-css-var-value(('color', $type, 'rgb'), #{red($color), green($color), blue($color)});
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// generate css var from existing css var
|
|
51
|
+
// for example:
|
|
52
|
+
// @include css-var-from-global(('button', 'text-color'), ('color', $type))
|
|
53
|
+
// --el-button-text-color: var(--el-color-#{$type});
|
|
54
|
+
@mixin css-var-from-global($var, $gVar) {
|
|
55
|
+
$varName: joinVarName($var);
|
|
56
|
+
$gVarName: joinVarName($gVar);
|
|
57
|
+
#{$varName}: var(#{$gVarName});
|
|
58
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
@use 'config';
|
|
2
|
+
|
|
3
|
+
// BEM support Func
|
|
4
|
+
@function selectorToString($selector) {
|
|
5
|
+
$selector: inspect($selector);
|
|
6
|
+
$selector: str-slice($selector, 2, -2);
|
|
7
|
+
@return $selector;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@function containsModifier($selector) {
|
|
11
|
+
$selector: selectorToString($selector);
|
|
12
|
+
|
|
13
|
+
@if str-index($selector, config.$modifier-separator) {
|
|
14
|
+
@return true;
|
|
15
|
+
} @else {
|
|
16
|
+
@return false;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@function containWhenFlag($selector) {
|
|
21
|
+
$selector: selectorToString($selector);
|
|
22
|
+
|
|
23
|
+
@if str-index($selector, '.' + config.$state-prefix) {
|
|
24
|
+
@return true;
|
|
25
|
+
} @else {
|
|
26
|
+
@return false;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@function containPseudoClass($selector) {
|
|
31
|
+
$selector: selectorToString($selector);
|
|
32
|
+
|
|
33
|
+
@if str-index($selector, ':') {
|
|
34
|
+
@return true;
|
|
35
|
+
} @else {
|
|
36
|
+
@return false;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@function hitAllSpecialNestRule($selector) {
|
|
41
|
+
@return containsModifier($selector) or containWhenFlag($selector) or containPseudoClass($selector);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
// join var name
|
|
45
|
+
// joinVarName(('button', 'text-color')) => '--el-button-text-color'
|
|
46
|
+
@function joinVarName($list) {
|
|
47
|
+
$name: '--' + config.$namespace;
|
|
48
|
+
@each $item in $list {
|
|
49
|
+
@if $item != '' {
|
|
50
|
+
$name: $name + '-' + $item;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
@return $name;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// getCssVarName('button', 'text-color') => '--el-button-text-color'
|
|
57
|
+
@function getCssVarName($args...) {
|
|
58
|
+
@return joinVarName($args);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// getCssVar('button', 'text-color') => var(--el-button-text-color)
|
|
62
|
+
@function getCssVar($args...) {
|
|
63
|
+
@return var(#{joinVarName($args)});
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// getCssVarWithDefault(('button', 'text-color'), red) => var(--el-button-text-color, red)
|
|
67
|
+
@function getCssVarWithDefault($args, $default) {
|
|
68
|
+
@return var(#{joinVarName($args)}, #{$default});
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
// bem('block', 'element', 'modifier') => 'el-block__element--modifier'
|
|
72
|
+
@function bem($block, $element: '', $modifier: '') {
|
|
73
|
+
$name: config.$namespace + config.$common-separator + $block;
|
|
74
|
+
|
|
75
|
+
@if $element != '' {
|
|
76
|
+
$name: $name + config.$element-separator + $element;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
@if $modifier != '' {
|
|
80
|
+
$name: $name + config.$modifier-separator + $modifier;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@return $name;
|
|
84
|
+
}
|
|
@@ -36,116 +36,116 @@
|
|
|
36
36
|
--el-color-light-light-9: rgba(255, 255, 255, 0.01);
|
|
37
37
|
}
|
|
38
38
|
:root {
|
|
39
|
-
--el-color-default-light-1: #
|
|
39
|
+
--el-color-default-light-1: #ddd7f7;
|
|
40
40
|
}
|
|
41
41
|
:root {
|
|
42
|
-
--el-color-default-light-2: #
|
|
42
|
+
--el-color-default-light-2: #bcafef;
|
|
43
43
|
}
|
|
44
44
|
:root {
|
|
45
|
-
--el-color-default-light-3: #
|
|
45
|
+
--el-color-default-light-3: #9a87e6;
|
|
46
46
|
}
|
|
47
47
|
:root {
|
|
48
|
-
--el-color-default-light-4: #
|
|
48
|
+
--el-color-default-light-4: #795fde;
|
|
49
49
|
}
|
|
50
50
|
:root {
|
|
51
|
-
--el-color-default-light-5: #
|
|
52
|
-
--el-color-default: #
|
|
51
|
+
--el-color-default-light-5: #5737d6;
|
|
52
|
+
--el-color-default: #5737d6;
|
|
53
53
|
}
|
|
54
54
|
:root {
|
|
55
|
-
--el-color-default-light-6: #
|
|
55
|
+
--el-color-default-light-6: #462cab;
|
|
56
56
|
}
|
|
57
57
|
:root {
|
|
58
|
-
--el-color-default-light-7: #
|
|
58
|
+
--el-color-default-light-7: #342180;
|
|
59
59
|
}
|
|
60
60
|
:root {
|
|
61
|
-
--el-color-default-light-8: #
|
|
61
|
+
--el-color-default-light-8: #231656;
|
|
62
62
|
}
|
|
63
63
|
:root {
|
|
64
|
-
--el-color-default-light-9: #
|
|
64
|
+
--el-color-default-light-9: #110b2b;
|
|
65
65
|
}
|
|
66
66
|
:root {
|
|
67
|
-
--el-color-primary-light-1: #
|
|
67
|
+
--el-color-primary-light-1: #ddd7f7;
|
|
68
68
|
}
|
|
69
69
|
:root {
|
|
70
|
-
--el-color-primary-light-2: #
|
|
70
|
+
--el-color-primary-light-2: #bcafef;
|
|
71
71
|
}
|
|
72
72
|
:root {
|
|
73
|
-
--el-color-primary-light-3: #
|
|
73
|
+
--el-color-primary-light-3: #9a87e6;
|
|
74
74
|
}
|
|
75
75
|
:root {
|
|
76
|
-
--el-color-primary-light-4: #
|
|
76
|
+
--el-color-primary-light-4: #795fde;
|
|
77
77
|
}
|
|
78
78
|
:root {
|
|
79
|
-
--el-color-primary-light-5: #
|
|
80
|
-
--el-color-primary: #
|
|
79
|
+
--el-color-primary-light-5: #5737d6;
|
|
80
|
+
--el-color-primary: #5737d6;
|
|
81
81
|
}
|
|
82
82
|
:root {
|
|
83
|
-
--el-color-primary-light-6: #
|
|
83
|
+
--el-color-primary-light-6: #462cab;
|
|
84
84
|
}
|
|
85
85
|
:root {
|
|
86
|
-
--el-color-primary-light-7: #
|
|
86
|
+
--el-color-primary-light-7: #342180;
|
|
87
87
|
}
|
|
88
88
|
:root {
|
|
89
|
-
--el-color-primary-light-8: #
|
|
89
|
+
--el-color-primary-light-8: #231656;
|
|
90
90
|
}
|
|
91
91
|
:root {
|
|
92
|
-
--el-color-primary-light-9: #
|
|
92
|
+
--el-color-primary-light-9: #110b2b;
|
|
93
93
|
}
|
|
94
94
|
:root {
|
|
95
|
-
--el-color-secondary-light-1: #
|
|
95
|
+
--el-color-secondary-light-1: #e9fdf7;
|
|
96
96
|
}
|
|
97
97
|
:root {
|
|
98
|
-
--el-color-secondary-light-2: #
|
|
98
|
+
--el-color-secondary-light-2: #d4fbee;
|
|
99
99
|
}
|
|
100
100
|
:root {
|
|
101
|
-
--el-color-secondary-light-3: #
|
|
101
|
+
--el-color-secondary-light-3: #bef8e6;
|
|
102
102
|
}
|
|
103
103
|
:root {
|
|
104
|
-
--el-color-secondary-light-4: #
|
|
104
|
+
--el-color-secondary-light-4: #a9f6dd;
|
|
105
105
|
}
|
|
106
106
|
:root {
|
|
107
|
-
--el-color-secondary-light-5: #
|
|
108
|
-
--el-color-secondary: #
|
|
107
|
+
--el-color-secondary-light-5: #93f4d5;
|
|
108
|
+
--el-color-secondary: #93f4d5;
|
|
109
109
|
}
|
|
110
110
|
:root {
|
|
111
|
-
--el-color-secondary-light-6: #
|
|
111
|
+
--el-color-secondary-light-6: #77d4b7;
|
|
112
112
|
}
|
|
113
113
|
:root {
|
|
114
|
-
--el-color-secondary-light-7: #
|
|
114
|
+
--el-color-secondary-light-7: #5cb599;
|
|
115
115
|
}
|
|
116
116
|
:root {
|
|
117
|
-
--el-color-secondary-light-8: #
|
|
117
|
+
--el-color-secondary-light-8: #40957a;
|
|
118
118
|
}
|
|
119
119
|
:root {
|
|
120
|
-
--el-color-secondary-light-9: #
|
|
120
|
+
--el-color-secondary-light-9: #25765c;
|
|
121
121
|
}
|
|
122
122
|
:root {
|
|
123
|
-
--el-color-neutral-light-1: #
|
|
123
|
+
--el-color-neutral-light-1: #eeedef;
|
|
124
124
|
}
|
|
125
125
|
:root {
|
|
126
|
-
--el-color-neutral-light-2: #
|
|
126
|
+
--el-color-neutral-light-2: #dcdbe0;
|
|
127
127
|
}
|
|
128
128
|
:root {
|
|
129
|
-
--el-color-neutral-light-3: #
|
|
129
|
+
--el-color-neutral-light-3: #cbcad0;
|
|
130
130
|
}
|
|
131
131
|
:root {
|
|
132
|
-
--el-color-neutral-light-4: #
|
|
132
|
+
--el-color-neutral-light-4: #b9b8c1;
|
|
133
133
|
}
|
|
134
134
|
:root {
|
|
135
135
|
--el-color-neutral-light-5: #a8a6b1;
|
|
136
136
|
--el-color-neutral: #a8a6b1;
|
|
137
137
|
}
|
|
138
138
|
:root {
|
|
139
|
-
--el-color-neutral-light-6: #
|
|
139
|
+
--el-color-neutral-light-6: #8b8993;
|
|
140
140
|
}
|
|
141
141
|
:root {
|
|
142
|
-
--el-color-neutral-light-7: #
|
|
142
|
+
--el-color-neutral-light-7: #6e6c74;
|
|
143
143
|
}
|
|
144
144
|
:root {
|
|
145
|
-
--el-color-neutral-light-8: #
|
|
145
|
+
--el-color-neutral-light-8: #515056;
|
|
146
146
|
}
|
|
147
147
|
:root {
|
|
148
|
-
--el-color-neutral-light-9: #
|
|
148
|
+
--el-color-neutral-light-9: #343337;
|
|
149
149
|
}
|
|
150
150
|
:root {
|
|
151
151
|
--el-color-info-light-1: #e3f1fb;
|
|
@@ -176,116 +176,116 @@
|
|
|
176
176
|
--el-color-info-light-9: #144a66;
|
|
177
177
|
}
|
|
178
178
|
:root {
|
|
179
|
-
--el-color-danger-light-1: #
|
|
179
|
+
--el-color-danger-light-1: #f9dede;
|
|
180
180
|
}
|
|
181
181
|
:root {
|
|
182
|
-
--el-color-danger-light-2: #
|
|
182
|
+
--el-color-danger-light-2: #f4bcbd;
|
|
183
183
|
}
|
|
184
184
|
:root {
|
|
185
|
-
--el-color-danger-light-3: #
|
|
185
|
+
--el-color-danger-light-3: #ee9b9d;
|
|
186
186
|
}
|
|
187
187
|
:root {
|
|
188
|
-
--el-color-danger-light-4: #
|
|
188
|
+
--el-color-danger-light-4: #e9797c;
|
|
189
189
|
}
|
|
190
190
|
:root {
|
|
191
|
-
--el-color-danger-light-5: #
|
|
192
|
-
--el-color-danger: #
|
|
191
|
+
--el-color-danger-light-5: #e3585b;
|
|
192
|
+
--el-color-danger: #e3585b;
|
|
193
193
|
}
|
|
194
194
|
:root {
|
|
195
|
-
--el-color-danger-light-6: #
|
|
195
|
+
--el-color-danger-light-6: #b94749;
|
|
196
196
|
}
|
|
197
197
|
:root {
|
|
198
|
-
--el-color-danger-light-7: #
|
|
198
|
+
--el-color-danger-light-7: #8f3638;
|
|
199
199
|
}
|
|
200
200
|
:root {
|
|
201
|
-
--el-color-danger-light-8: #
|
|
201
|
+
--el-color-danger-light-8: #642526;
|
|
202
202
|
}
|
|
203
203
|
:root {
|
|
204
|
-
--el-color-danger-light-9: #
|
|
204
|
+
--el-color-danger-light-9: #3a1415;
|
|
205
205
|
}
|
|
206
206
|
:root {
|
|
207
|
-
--el-color-error-light-1: #
|
|
207
|
+
--el-color-error-light-1: #f9dede;
|
|
208
208
|
}
|
|
209
209
|
:root {
|
|
210
|
-
--el-color-error-light-2: #
|
|
210
|
+
--el-color-error-light-2: #f4bcbd;
|
|
211
211
|
}
|
|
212
212
|
:root {
|
|
213
|
-
--el-color-error-light-3: #
|
|
213
|
+
--el-color-error-light-3: #ee9b9d;
|
|
214
214
|
}
|
|
215
215
|
:root {
|
|
216
|
-
--el-color-error-light-4: #
|
|
216
|
+
--el-color-error-light-4: #e9797c;
|
|
217
217
|
}
|
|
218
218
|
:root {
|
|
219
|
-
--el-color-error-light-5: #
|
|
220
|
-
--el-color-error: #
|
|
219
|
+
--el-color-error-light-5: #e3585b;
|
|
220
|
+
--el-color-error: #e3585b;
|
|
221
221
|
}
|
|
222
222
|
:root {
|
|
223
|
-
--el-color-error-light-6: #
|
|
223
|
+
--el-color-error-light-6: #b94749;
|
|
224
224
|
}
|
|
225
225
|
:root {
|
|
226
|
-
--el-color-error-light-7: #
|
|
226
|
+
--el-color-error-light-7: #8f3638;
|
|
227
227
|
}
|
|
228
228
|
:root {
|
|
229
|
-
--el-color-error-light-8: #
|
|
229
|
+
--el-color-error-light-8: #642526;
|
|
230
230
|
}
|
|
231
231
|
:root {
|
|
232
|
-
--el-color-error-light-9: #
|
|
232
|
+
--el-color-error-light-9: #3a1415;
|
|
233
233
|
}
|
|
234
234
|
:root {
|
|
235
|
-
--el-color-success-light-1: #
|
|
235
|
+
--el-color-success-light-1: #dbf1e2;
|
|
236
236
|
}
|
|
237
237
|
:root {
|
|
238
|
-
--el-color-success-light-2: #
|
|
238
|
+
--el-color-success-light-2: #b7e2c6;
|
|
239
239
|
}
|
|
240
240
|
:root {
|
|
241
|
-
--el-color-success-light-3: #
|
|
241
|
+
--el-color-success-light-3: #94d4a9;
|
|
242
242
|
}
|
|
243
243
|
:root {
|
|
244
|
-
--el-color-success-light-4: #
|
|
244
|
+
--el-color-success-light-4: #70c58d;
|
|
245
245
|
}
|
|
246
246
|
:root {
|
|
247
|
-
--el-color-success-light-5: #
|
|
248
|
-
--el-color-success: #
|
|
247
|
+
--el-color-success-light-5: #4cb770;
|
|
248
|
+
--el-color-success: #4cb770;
|
|
249
249
|
}
|
|
250
250
|
:root {
|
|
251
|
-
--el-color-success-light-6: #
|
|
251
|
+
--el-color-success-light-6: #3d925a;
|
|
252
252
|
}
|
|
253
253
|
:root {
|
|
254
|
-
--el-color-success-light-7: #
|
|
254
|
+
--el-color-success-light-7: #2e6e43;
|
|
255
255
|
}
|
|
256
256
|
:root {
|
|
257
|
-
--el-color-success-light-8: #
|
|
257
|
+
--el-color-success-light-8: #1e492d;
|
|
258
258
|
}
|
|
259
259
|
:root {
|
|
260
|
-
--el-color-success-light-9: #
|
|
260
|
+
--el-color-success-light-9: #0f2516;
|
|
261
261
|
}
|
|
262
262
|
:root {
|
|
263
|
-
--el-color-warning-light-1: #
|
|
263
|
+
--el-color-warning-light-1: #faf3dc;
|
|
264
264
|
}
|
|
265
265
|
:root {
|
|
266
|
-
--el-color-warning-light-2: #
|
|
266
|
+
--el-color-warning-light-2: #f6e8ba;
|
|
267
267
|
}
|
|
268
268
|
:root {
|
|
269
|
-
--el-color-warning-light-3: #
|
|
269
|
+
--el-color-warning-light-3: #f1dc97;
|
|
270
270
|
}
|
|
271
271
|
:root {
|
|
272
|
-
--el-color-warning-light-4: #
|
|
272
|
+
--el-color-warning-light-4: #edd175;
|
|
273
273
|
}
|
|
274
274
|
:root {
|
|
275
|
-
--el-color-warning-light-5: #
|
|
276
|
-
--el-color-warning: #
|
|
275
|
+
--el-color-warning-light-5: #e8c552;
|
|
276
|
+
--el-color-warning: #e8c552;
|
|
277
277
|
}
|
|
278
278
|
:root {
|
|
279
|
-
--el-color-warning-light-6: #
|
|
279
|
+
--el-color-warning-light-6: #bda042;
|
|
280
280
|
}
|
|
281
281
|
:root {
|
|
282
|
-
--el-color-warning-light-7: #
|
|
282
|
+
--el-color-warning-light-7: #927b32;
|
|
283
283
|
}
|
|
284
284
|
:root {
|
|
285
|
-
--el-color-warning-light-8: #
|
|
285
|
+
--el-color-warning-light-8: #665722;
|
|
286
286
|
}
|
|
287
287
|
:root {
|
|
288
|
-
--el-color-warning-light-9: #
|
|
288
|
+
--el-color-warning-light-9: #3b3212;
|
|
289
289
|
}
|
|
290
290
|
/**
|
|
291
291
|
Bununla selectorun içerisine variable ekleyebiliyorsun
|
|
@@ -0,0 +1,227 @@
|
|
|
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
|
+
|
|
9
|
+
// Break-points
|
|
10
|
+
@mixin res($key, $map: $breakpoints) {
|
|
11
|
+
// loop breakpoint Map, return if present
|
|
12
|
+
@if map-has-key($map, $key) {
|
|
13
|
+
@media only screen and #{unquote(map-get($map, $key))} {
|
|
14
|
+
@content;
|
|
15
|
+
}
|
|
16
|
+
} @else {
|
|
17
|
+
@warn "Undefined points: `#{$map}`";
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Scrollbar
|
|
22
|
+
@mixin scroll-bar {
|
|
23
|
+
$scrollbar-thumb-background: getCssVar('text-color', 'disabled');
|
|
24
|
+
$scrollbar-track-background: getCssVar('fill-color', 'blank');
|
|
25
|
+
|
|
26
|
+
&::-webkit-scrollbar {
|
|
27
|
+
z-index: 11;
|
|
28
|
+
width: 6px;
|
|
29
|
+
|
|
30
|
+
&:horizontal {
|
|
31
|
+
height: 6px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&-thumb {
|
|
35
|
+
border-radius: 5px;
|
|
36
|
+
width: 6px;
|
|
37
|
+
background: $scrollbar-thumb-background;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&-corner {
|
|
41
|
+
background: $scrollbar-track-background;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&-track {
|
|
45
|
+
background: $scrollbar-track-background;
|
|
46
|
+
|
|
47
|
+
&-piece {
|
|
48
|
+
background: $scrollbar-track-background;
|
|
49
|
+
width: 6px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// BEM
|
|
56
|
+
@mixin b($block) {
|
|
57
|
+
$B: $namespace + $common-separator + $block !global;
|
|
58
|
+
|
|
59
|
+
.#{$B} {
|
|
60
|
+
@content;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@mixin e($element) {
|
|
65
|
+
$E: $element !global;
|
|
66
|
+
$selector: &;
|
|
67
|
+
$currentSelector: '';
|
|
68
|
+
@each $unit in $element {
|
|
69
|
+
$currentSelector: #{$currentSelector + '.' + $B + $element-separator + $unit + ','};
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@if hitAllSpecialNestRule($selector) {
|
|
73
|
+
@at-root {
|
|
74
|
+
#{$selector} {
|
|
75
|
+
#{$currentSelector} {
|
|
76
|
+
@content;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
} @else {
|
|
81
|
+
@at-root {
|
|
82
|
+
#{$currentSelector} {
|
|
83
|
+
@content;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@mixin m($modifier) {
|
|
90
|
+
$selector: &;
|
|
91
|
+
$currentSelector: '';
|
|
92
|
+
@each $unit in $modifier {
|
|
93
|
+
$currentSelector: #{$currentSelector + $selector + $modifier-separator + $unit + ','};
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@at-root {
|
|
97
|
+
#{$currentSelector} {
|
|
98
|
+
@content;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
@mixin configurable-m($modifier, $E-flag: false) {
|
|
104
|
+
$selector: &;
|
|
105
|
+
$interpolation: '';
|
|
106
|
+
|
|
107
|
+
@if $E-flag {
|
|
108
|
+
$interpolation: $element-separator + $E-flag;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@at-root {
|
|
112
|
+
#{$selector} {
|
|
113
|
+
.#{$B + $interpolation + $modifier-separator + $modifier} {
|
|
114
|
+
@content;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
@mixin spec-selector($specSelector: '', $element: $E, $modifier: false, $block: $B) {
|
|
121
|
+
$modifierCombo: '';
|
|
122
|
+
|
|
123
|
+
@if $modifier {
|
|
124
|
+
$modifierCombo: $modifier-separator + $modifier;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@at-root {
|
|
128
|
+
#{&}#{$specSelector}.#{$block + $element-separator + $element + $modifierCombo} {
|
|
129
|
+
@content;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@mixin meb($modifier: false, $element: $E, $block: $B) {
|
|
135
|
+
$selector: &;
|
|
136
|
+
$modifierCombo: '';
|
|
137
|
+
|
|
138
|
+
@if $modifier {
|
|
139
|
+
$modifierCombo: $modifier-separator + $modifier;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@at-root {
|
|
143
|
+
#{$selector} {
|
|
144
|
+
.#{$block + $element-separator + $element + $modifierCombo} {
|
|
145
|
+
@content;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@mixin when($state) {
|
|
152
|
+
@at-root {
|
|
153
|
+
&.#{$state-prefix + $state} {
|
|
154
|
+
@content;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@mixin extend-rule($name) {
|
|
160
|
+
@extend #{'%shared-' + $name} !optional;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@mixin share-rule($name) {
|
|
164
|
+
$rule-name: '%shared-' + $name;
|
|
165
|
+
|
|
166
|
+
@at-root #{$rule-name} {
|
|
167
|
+
@content;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
@mixin pseudo($pseudo) {
|
|
172
|
+
@at-root #{&}#{':#{$pseudo}'} {
|
|
173
|
+
@content;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
@mixin picker-popper($background, $border, $box-shadow) {
|
|
178
|
+
&.#{$namespace}-popper {
|
|
179
|
+
background: $background;
|
|
180
|
+
border: $border;
|
|
181
|
+
box-shadow: $box-shadow;
|
|
182
|
+
|
|
183
|
+
.#{$namespace}-popper__arrow {
|
|
184
|
+
&::before {
|
|
185
|
+
border: $border;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
@each $placement, $adjacency in ('top': 'left', 'bottom': 'right', 'left': 'bottom', 'right': 'top') {
|
|
190
|
+
&[data-popper-placement^='#{$placement}'] {
|
|
191
|
+
.#{$namespace}-popper__arrow::before {
|
|
192
|
+
border-#{$placement}-color: transparent;
|
|
193
|
+
border-#{$adjacency}-color: transparent;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// dark
|
|
201
|
+
@mixin dark($block) {
|
|
202
|
+
html.dark {
|
|
203
|
+
@include b($block) {
|
|
204
|
+
@content;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
@mixin inset-input-border($color, $important: false, $isShadowed: false) {
|
|
210
|
+
@if $important == true {
|
|
211
|
+
@if $isShadowed == true {
|
|
212
|
+
box-shadow:
|
|
213
|
+
0 0 0 1px $color inset !important,
|
|
214
|
+
0 3px 0 0 rgba(213, 205, 245, 0.4) !important;
|
|
215
|
+
} @else {
|
|
216
|
+
box-shadow: 0 0 0 1px $color inset !important;
|
|
217
|
+
}
|
|
218
|
+
} @else {
|
|
219
|
+
@if $isShadowed == true {
|
|
220
|
+
box-shadow:
|
|
221
|
+
0 0 0 1px $color inset,
|
|
222
|
+
0 3px 0 0 rgba(213, 205, 245, 0.4);
|
|
223
|
+
} @else {
|
|
224
|
+
box-shadow: 0 0 0 1px $color inset;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|