amis2/scss/themes/cxd.scss
hsm-lv a74472899c
Style yunshe (#2830)
* fix:输入框禁用状态下依然弹出options

* style:升级几个组件样式到yunshe4.0
2021-11-02 21:29:12 +08:00

113 lines
2.3 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};
}
}
}