2019-10-18 17:14:47 +08:00
|
|
|
@import 'darkColors.scss';
|
|
|
|
@import 'components/Button.scss';
|
|
|
|
@import 'components/Divider.scss';
|
|
|
|
@import 'components/Scrollbar.scss';
|
|
|
|
@import 'components/BaseLoading.scss';
|
|
|
|
@import 'components/BaseSelectMenu.scss';
|
2020-02-14 23:01:06 +08:00
|
|
|
@import 'components/BaseSelection.scss';
|
2020-02-14 22:42:53 +08:00
|
|
|
@import 'components/BaseSuffix.scss';
|
2019-10-18 17:14:47 +08:00
|
|
|
@import 'components/Tag.scss';
|
|
|
|
@import 'components/Table.scss';
|
2020-02-19 19:58:39 +08:00
|
|
|
@import 'components/DataTable.scss';
|
2020-02-11 18:11:51 +08:00
|
|
|
@import 'components/Popover.scss';
|
|
|
|
@import 'components/Tooltip.scss';
|
|
|
|
@import 'components/Confirm.scss';
|
|
|
|
@import 'components/CheckBox.scss';
|
|
|
|
@import 'components/Switch.scss';
|
|
|
|
@import 'components/Message.scss';
|
|
|
|
@import 'components/LoadingBar.scss';
|
|
|
|
@import 'components/Badge.scss';
|
|
|
|
@import 'components/Dropdown.scss';
|
|
|
|
@import 'components/Input.scss';
|
|
|
|
@import 'components/Alert.scss';
|
|
|
|
@import 'components/Anchor.scss';
|
|
|
|
@import 'components/Pagination.scss';
|
|
|
|
@import 'components/GradientText.scss';
|
|
|
|
@import 'components/DatePicker.scss';
|
|
|
|
@import 'components/TimePicker.scss';
|
|
|
|
@import 'components/Progress.scss';
|
|
|
|
@import 'components/Timeline.scss';
|
|
|
|
@import 'components/BackTop.scss';
|
|
|
|
@import 'components/Notification.scss';
|
|
|
|
@import 'components/Radio.scss';
|
|
|
|
@import 'components/Steps.scss';
|
|
|
|
@import 'components/InputNumber.scss';
|
|
|
|
@import 'components/Slider.scss';
|
|
|
|
@import 'components/Cascader.scss';
|
|
|
|
@import 'components/Tabs.scss';
|
|
|
|
@import 'components/Statistic.scss';
|
|
|
|
@import 'components/Breadcrumb.scss';
|
|
|
|
@import 'components/Modal.scss';
|
|
|
|
@import 'components/Transfer.scss';
|
|
|
|
@import 'components/Menu.scss';
|
|
|
|
@import 'components/Thing.scss';
|
|
|
|
@import 'components/List.scss';
|
|
|
|
@import 'components/Layout.scss';
|
|
|
|
@import 'components/Form.scss';
|
|
|
|
@import 'components/Empty.scss';
|
|
|
|
@import 'components/Drawer.scss';
|
|
|
|
@import 'components/Descriptions.scss';
|
|
|
|
@import 'components/Card.scss';
|
|
|
|
@import 'components/AutoComplete.scss';
|
|
|
|
@import 'components/Affix.scss';
|
|
|
|
@import 'components/Avatar.scss';
|
|
|
|
@import 'components/Collapse.scss';
|
|
|
|
@import 'components/Result.scss';
|
|
|
|
@import 'components/Tree.scss';
|
2020-02-14 15:46:57 +08:00
|
|
|
@import 'components/Typography.scss';
|
2020-02-16 21:52:38 +08:00
|
|
|
@import 'components/Upload.scss';
|
2020-02-20 13:22:48 +08:00
|
|
|
@import 'components/BaseMenuMask.scss';
|
2020-02-21 14:59:17 +08:00
|
|
|
@import 'components/Spin.scss';
|
|
|
|
@import 'components/Log.scss';
|
|
|
|
@import 'components/Code.scss';
|
2020-02-21 16:48:45 +08:00
|
|
|
@import 'components/BaseTrackingRect.scss';
|
2019-09-24 12:43:56 +08:00
|
|
|
|
2019-12-16 19:00:14 +08:00
|
|
|
@mixin setup-dark-theme($in-js-env: false) {
|
2019-09-24 12:43:56 +08:00
|
|
|
@include setup-dark-colors();
|
2020-02-20 17:14:52 +08:00
|
|
|
$--n-base-background-color: $--neutral-base !global;
|
2020-02-19 21:08:31 +08:00
|
|
|
|
2020-02-19 19:58:39 +08:00
|
|
|
$--n-primary-color: $--primary-default !global;
|
|
|
|
$--n-primary-hover-color: $--primary-hover !global;
|
|
|
|
$--n-primary-active-color: $--primary-active !global;
|
2020-02-19 21:08:31 +08:00
|
|
|
$--n-primary-hs-color: $--primary-hs !global;
|
|
|
|
|
2020-02-19 19:58:39 +08:00
|
|
|
$--n-info-color: $--info-default !global;
|
2020-02-19 21:08:31 +08:00
|
|
|
$--n-info-hover-color: $--info-hover !global;
|
|
|
|
$--n-info-active-color: $--info-active !global;
|
|
|
|
$--n-info-hs-color: $--info-hs !global;
|
|
|
|
|
2020-02-19 19:58:39 +08:00
|
|
|
$--n-success-color: $--success-default !global;
|
2020-02-19 21:08:31 +08:00
|
|
|
$--n-success-hover-color: $--success-hover !global;
|
|
|
|
$--n-success-active-color: $--success-active !global;
|
|
|
|
$--n-success-hs-color: $--success-hs !global;
|
|
|
|
|
2020-02-19 19:58:39 +08:00
|
|
|
$--n-error-color: $--error-default !global;
|
2020-02-19 21:08:31 +08:00
|
|
|
$--n-error-hover-color: $--error-hover !global;
|
|
|
|
$--n-error-active-color: $--error-active !global;
|
|
|
|
$--n-error-hs-color: $--error-hs !global;
|
|
|
|
|
|
|
|
$--n-warning-color: $--warning-default !global;
|
|
|
|
$--n-warning-hover-color: $--warning-hover !global;
|
|
|
|
$--n-warning-active-color: $--warning-active !global;
|
|
|
|
$--n-warning-hs-collor: $--warning-hs !global;
|
2020-02-19 13:36:29 +08:00
|
|
|
|
2020-02-20 13:22:48 +08:00
|
|
|
$--n-primary-text-color: $--overlay-text-1 !global;
|
|
|
|
$--n-secondary-text-color: $--overlay-text-2 !global;
|
|
|
|
$--n-tertiary-text-color: $--overlay-text-3 !global;
|
|
|
|
$--n-disabled-text-color: $--overlay-text-4 !global;
|
2020-02-20 15:26:12 +08:00
|
|
|
$--n-placeholder-text-color: $--overlay-text-4 !global;
|
|
|
|
$--n-base-text-color: $--base-text !global;
|
|
|
|
|
|
|
|
$--n-primary-opacity: $--alpha-1 !global;
|
|
|
|
$--n-secondary-opacity: $--alpha-2 !global;
|
|
|
|
$--n-tertiary-opacity: $--alpha-3 !global;
|
|
|
|
|
|
|
|
$--n-icon-color: $--overlay-text-4 !global;
|
2020-02-19 13:36:29 +08:00
|
|
|
|
2020-02-19 21:08:31 +08:00
|
|
|
$--n-action-background-color: $--overlay-action !global;
|
|
|
|
$--n-table-header-background-color: $--overlay-action !global;
|
2020-02-19 13:36:29 +08:00
|
|
|
|
2020-02-19 22:37:20 +08:00
|
|
|
$--n-rail-color: $--overlay-rail !global;
|
2020-02-19 15:38:44 +08:00
|
|
|
$--n-divider-color: $--overlay-divider !global;
|
|
|
|
$--n-border-color: $--overlay-border !global;
|
|
|
|
|
2020-02-19 22:37:20 +08:00
|
|
|
$--n-scrollbar-background-color: $--overlay-scrollbar !global;
|
|
|
|
$--n-scrollbar-hover-background-color: $--overlay-scrollbar-hover !global;
|
|
|
|
|
2020-02-20 13:22:48 +08:00
|
|
|
$--n-close-hover-color: $--overlay-text-2 !global;
|
|
|
|
$--n-close-color: $--overlay-text-3 !global;
|
|
|
|
$--n-disabled-close-color: $--overlay-text-4 !global;
|
2020-02-19 21:08:31 +08:00
|
|
|
|
|
|
|
$--n-popover-background-color: $--neutral-popover !global;
|
|
|
|
$--n-table-body-background-color: $--neutral-card !global;
|
|
|
|
$--n-card-background-color: $--neutral-card !global;
|
|
|
|
$--n-modal-background-color: $--neutral-modal !global;
|
|
|
|
$--n-body-background-color: $--neutral-body !global;
|
2020-02-19 22:37:20 +08:00
|
|
|
$--n-input-background-color: $--overlay-input !global;
|
2020-02-20 13:22:48 +08:00
|
|
|
$--n-code-background-color: $--overlay-input !global;
|
|
|
|
$--n-tab-background-color: $--overlay-tab !global;
|
2020-02-21 16:48:45 +08:00
|
|
|
$--n-avatar-background-color: $--overlay-avatar !global;
|
2020-02-19 22:37:20 +08:00
|
|
|
|
2020-02-20 13:22:48 +08:00
|
|
|
$--n-disabled-opacity: $--alpha-disabled !global;
|
2020-02-19 22:37:20 +08:00
|
|
|
$--n-disabled-background-color: $--overlay-disabled !global;
|
2020-02-19 15:38:44 +08:00
|
|
|
|
2020-02-21 14:59:17 +08:00
|
|
|
$--n-popmenu-box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.18) !global;
|
|
|
|
$--n-popover-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.12) !global;
|
2020-02-20 13:22:48 +08:00
|
|
|
|
2019-12-16 19:00:14 +08:00
|
|
|
@if ($in-js-env != true) {
|
|
|
|
@include setup-dark-divider;
|
|
|
|
@include setup-dark-scrollbar;
|
|
|
|
@include setup-dark-base-loading;
|
|
|
|
@include setup-dark-button;
|
|
|
|
@include setup-dark-base-select-menu;
|
2020-02-14 23:01:06 +08:00
|
|
|
@include setup-dark-base-selection;
|
2020-02-14 22:42:53 +08:00
|
|
|
@include setup-dark-base-suffix;
|
2019-12-16 19:00:14 +08:00
|
|
|
@include setup-dark-tag;
|
|
|
|
@include setup-dark-table;
|
2019-12-31 21:01:24 +08:00
|
|
|
@include setup-dark-data-table;
|
2019-12-16 19:00:14 +08:00
|
|
|
@include setup-dark-popover;
|
|
|
|
@include setup-dark-tooltip;
|
|
|
|
@include setup-dark-confirm;
|
|
|
|
@include setup-dark-checkbox;
|
|
|
|
@include setup-dark-switch;
|
|
|
|
@include setup-dark-message;
|
|
|
|
@include setup-dark-loading-bar;
|
|
|
|
@include setup-dark-badge;
|
|
|
|
@include setup-dark-dropdown;
|
|
|
|
@include setup-dark-input;
|
|
|
|
@include setup-dark-anchor;
|
|
|
|
@include setup-dark-alert;
|
|
|
|
@include setup-dark-pagination;
|
|
|
|
@include setup-dark-gradient-text;
|
|
|
|
@include setup-dark-date-picker;
|
|
|
|
@include setup-dark-time-picker;
|
|
|
|
@include setup-dark-progress;
|
|
|
|
@include setup-dark-timeline;
|
|
|
|
@include setup-dark-back-top;
|
|
|
|
@include setup-dark-notification;
|
|
|
|
@include setup-dark-radio;
|
|
|
|
@include setup-dark-step;
|
|
|
|
@include setup-dark-input-number;
|
|
|
|
@include setup-dark-slider;
|
|
|
|
@include setup-dark-cascader;
|
|
|
|
@include setup-dark-tabs;
|
|
|
|
@include setup-dark-statistic;
|
|
|
|
@include setup-dark-breadcrumb;
|
|
|
|
@include setup-dark-modal;
|
|
|
|
@include setup-dark-transfer;
|
|
|
|
@include setup-dark-menu;
|
|
|
|
@include setup-dark-thing;
|
|
|
|
@include setup-dark-list;
|
|
|
|
@include setup-dark-layout;
|
|
|
|
@include setup-dark-form;
|
|
|
|
@include setup-dark-empty;
|
|
|
|
@include setup-dark-drawer;
|
|
|
|
@include setup-dark-descriptions;
|
|
|
|
@include setup-dark-card;
|
|
|
|
@include setup-dark-auto-complete;
|
|
|
|
@include setup-dark-affix;
|
|
|
|
@include setup-dark-avatar;
|
|
|
|
@include setup-dark-collapse;
|
|
|
|
@include setup-dark-result;
|
2019-12-24 21:50:28 +08:00
|
|
|
@include setup-dark-tree;
|
2020-02-14 15:46:57 +08:00
|
|
|
@include setup-dark-typography;
|
2020-02-16 21:52:38 +08:00
|
|
|
@include setup-dark-upload;
|
2020-02-20 13:22:48 +08:00
|
|
|
@include setup-dark-base-menu-mask;
|
2020-02-21 14:59:17 +08:00
|
|
|
@include setup-dark-spin;
|
|
|
|
@include setup-dark-log;
|
|
|
|
@include setup-dark-code;
|
2020-02-21 16:48:45 +08:00
|
|
|
@include setup-dark-base-tracking-rect;
|
2019-12-16 19:00:14 +08:00
|
|
|
}
|
2019-10-18 17:14:47 +08:00
|
|
|
}
|