amis2/scss/themes/cxd.scss

192 lines
3.8 KiB
SCSS
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 百度云舍主题http://console.yunshe.design/docs/index
@import './cxd-variables';
@import './common';
.#{$ns}Switch {
.text {
margin: 0 px2rem(8px) 0 px2rem(25px);
vertical-align: super;
}
.slider {
&:before {
width: calc(var(--Switch-height) - #{px2rem(4px)});
top: px2rem(2px);
bottom: px2rem(2px);
}
}
&:active {
.slider::before {
width: calc(var(--Switch-height) + #{px2rem(2px)});
border-radius: 10px;
}
}
&:hover {
background: var(--Switch-onHover-bgColor);
}
&.is-checked {
background: var(--Switch-checked-bgColor);
.slider::before {
right: px2rem(2px);
}
.text {
margin: 0 px2rem(25px) 0 px2rem(8px);
}
&:hover {
background: var(--Switch-checked-onHover-bgColor);
}
&:active {
background: var(--Switch-checked-onActive-bgColor);
}
}
}
// input选择器模式
.#{$ns}TextControl-sugs {
border-radius: px2rem(3px);
top: calc(var(--Form-input-height) + #{px2rem(4px)});
box-shadow: #{px2rem(2px)} #{px2rem(4px)} #{px2rem(8px)} rgba(0, 0, 0, 0.2);
border: none;
}
.#{$ns}Select {
.#{$ns}PopOver {
top: calc(var(--Form-input-height) + #{px2rem(4px)}) !important;
.#{$ns}Select-menu {
border-radius: #{$R3};
.#{$ns}Select-option {
height: var(--Form-input-height);
padding: px2rem(5px) px2rem(12px);
}
}
}
}
.#{$ns}NestedSelectControl {
.#{$ns}PopOver {
top: calc(var(--Form-input-height) + #{px2rem(4px)}) !important;
.#{$ns}NestedSelect-menuOuter {
.#{$ns}NestedSelect-menu {
border-radius: #{$R3};
.#{$ns}NestedSelect-option {
height: var(--Form-input-height);
padding: 0 px2rem(12px);
.#{$ns}NestedSelect-optionArrowRight {
padding-right: 0;
}
}
&:not(:first-child) {
margin-left: 2px;
}
}
}
}
}
.#{$ns}TreeSelectControl {
.#{$ns}PopOver {
top: calc(var(--Form-input-height) + #{px2rem(4px)}) !important;
box-shadow: var(--boxShadow);
.#{$ns}Tree {
border-radius: #{$R3};
border: none;
}
}
}
.#{$ns}DropDown {
.#{$ns}DropDown-menu {
top: calc(var(--Form-input-height) + #{px2rem(4px)}) !important;
border: none;
> li {
color: #{$G2};
}
> li.is-disabled {
color: #{$G6};
}
}
}
.#{$ns}Toast {
.#{$ns}Toast-icon {
margin-right: #{px2rem(8px)};
}
.#{$ns}Toast-close {
margin-left: #{px2rem(8px)};
cursor: pointer;
}
}
.#{$ns}InputGroup {
// .#{$ns}TextControl-input {
// }
.#{$ns}InputGroup-btn .#{$ns}Button {
border-radius: px2rem(3px);
}
.#{$ns}InputGroup-btn:last-child .#{$ns}Button {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
}
.#{$ns}Alert {
font-weight: #{$W2};
.#{$ns}Alert-close {
opacity: 1;
color: #{$G5};
&:hover {
color: #{$G4};
}
&:active {
color: #{$G3};
}
}
}
.#{$ns}ColorPicker {
.#{$ns}PopOver {
border: none;
top: calc(var(--Form-input-height) + #{px2rem(4px)}) !important;
box-shadow: var(--boxShadow);
}
}
.#{$ns}Combo {
.#{$ns}Combo-items {
.#{$ns}Combo-item {
.#{$ns}Combo-delBtn {
padding-top: calc(
(var(--Form-input-height) - var(--Form-input-lineHeight) * 10px) / 2
);
}
}
}
}
.#{$ns}LocationControl {
.#{$ns}PopOver {
border: none;
top: calc(var(--Form-input-height) + #{px2rem(4px)}) !important;
box-shadow: var(--boxShadow);
}
}
.#{$ns}Transfer {
&-title {
height: var(--Form-input-height);
padding-left: #{px2rem(16px)};
padding-right: #{px2rem(16px)};
}
.#{$ns}ListCheckboxes {
.#{$ns}ListCheckboxes-item {
padding-left: #{px2rem(16px)};
padding-right: #{px2rem(16px)};
}
}
}