2019-08-12 21:14:33 +08:00
|
|
|
|
// 百度云舍主题:http://console.yunshe.design/docs/index
|
2020-12-21 10:08:40 +08:00
|
|
|
|
|
2020-10-26 17:31:13 +08:00
|
|
|
|
@import './cxd-variables';
|
2020-06-09 14:44:38 +08:00
|
|
|
|
|
2020-11-03 12:05:42 +08:00
|
|
|
|
@import './common';
|
2021-11-02 15:50:29 +08:00
|
|
|
|
|
|
|
|
|
.#{$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);
|
2022-05-18 10:03:56 +08:00
|
|
|
|
left: px2rem(2px);
|
|
|
|
|
transition: all 0.5s ease;
|
2021-11-02 15:50:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&: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 {
|
2022-05-18 10:03:56 +08:00
|
|
|
|
right: auto;
|
|
|
|
|
left: calc(
|
|
|
|
|
100% - (var(--Switch-height) - #{px2rem(4px)}) - #{px2rem(2px)}
|
|
|
|
|
);
|
2021-11-02 15:50:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.text {
|
|
|
|
|
margin: 0 px2rem(25px) 0 px2rem(8px);
|
|
|
|
|
}
|
|
|
|
|
&:hover {
|
|
|
|
|
background: var(--Switch-checked-onHover-bgColor);
|
|
|
|
|
}
|
|
|
|
|
&:active {
|
|
|
|
|
background: var(--Switch-checked-onActive-bgColor);
|
2022-05-18 10:03:56 +08:00
|
|
|
|
.slider::before {
|
|
|
|
|
left: calc(
|
|
|
|
|
100% - (var(--Switch-height) + #{px2rem(2px)}) - #{px2rem(2px)}
|
|
|
|
|
);
|
|
|
|
|
}
|
2021-11-02 15:50:29 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-02 21:29:12 +08:00
|
|
|
|
|
|
|
|
|
// input选择器模式
|
|
|
|
|
.#{$ns}TextControl-sugs {
|
|
|
|
|
border-radius: px2rem(3px);
|
2022-04-20 20:59:34 +08:00
|
|
|
|
// top: calc(var(--Form-input-height) + #{px2rem(4px)});
|
2021-11-02 21:29:12 +08:00
|
|
|
|
box-shadow: #{px2rem(2px)} #{px2rem(4px)} #{px2rem(8px)} rgba(0, 0, 0, 0.2);
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}Select {
|
|
|
|
|
.#{$ns}PopOver {
|
|
|
|
|
.#{$ns}Select-menu {
|
|
|
|
|
border-radius: #{$R3};
|
|
|
|
|
.#{$ns}Select-option {
|
2021-11-30 16:13:10 +08:00
|
|
|
|
// height: var(--Form-input-height);
|
|
|
|
|
line-height: 1.1;
|
2021-11-02 21:29:12 +08:00
|
|
|
|
padding: px2rem(5px) px2rem(12px);
|
2022-05-18 10:03:56 +08:00
|
|
|
|
|
|
|
|
|
&.is-highlight:hover > span {
|
|
|
|
|
color: var(--menu-active-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
svg {
|
|
|
|
|
color: var(--default-icon-color);
|
|
|
|
|
}
|
2021-11-02 21:29:12 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}NestedSelectControl {
|
|
|
|
|
.#{$ns}PopOver {
|
|
|
|
|
.#{$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 {
|
|
|
|
|
box-shadow: var(--boxShadow);
|
|
|
|
|
.#{$ns}Tree {
|
|
|
|
|
border-radius: #{$R3};
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-18 18:43:50 +08:00
|
|
|
|
.#{$ns}Modal-content {
|
|
|
|
|
.#{$ns}TreeSelect-popover {
|
|
|
|
|
box-shadow: var(--boxShadow);
|
|
|
|
|
.#{$ns}Tree {
|
|
|
|
|
border-radius: #{$R3};
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-03 15:11:04 +08:00
|
|
|
|
.#{$ns}Toast {
|
|
|
|
|
.#{$ns}Toast-icon {
|
|
|
|
|
margin-right: #{px2rem(8px)};
|
|
|
|
|
}
|
|
|
|
|
.#{$ns}Toast-close {
|
|
|
|
|
margin-left: #{px2rem(8px)};
|
|
|
|
|
cursor: pointer;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-03 21:09:20 +08:00
|
|
|
|
.#{$ns}Button--iconOnly {
|
|
|
|
|
min-width: var(--Button-height);
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-03 15:11:04 +08:00
|
|
|
|
.#{$ns}Alert {
|
|
|
|
|
font-weight: #{$W2};
|
|
|
|
|
.#{$ns}Alert-close {
|
|
|
|
|
opacity: 1;
|
|
|
|
|
color: #{$G5};
|
|
|
|
|
&:hover {
|
|
|
|
|
color: #{$G4};
|
|
|
|
|
}
|
|
|
|
|
&:active {
|
|
|
|
|
color: #{$G3};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-06 17:09:20 +08:00
|
|
|
|
.#{$ns}IconPickerControl {
|
|
|
|
|
.#{$ns}IconPickerControl-input--withAC {
|
|
|
|
|
.#{$ns}IconPickerControl-sugsPanel {
|
|
|
|
|
border: none;
|
|
|
|
|
box-shadow: var(--boxShadow);
|
|
|
|
|
border-radius: px2rem(3px);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-03 15:11:04 +08:00
|
|
|
|
.#{$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;
|
|
|
|
|
box-shadow: var(--boxShadow);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}Transfer {
|
|
|
|
|
&-title {
|
2022-05-27 10:02:45 +08:00
|
|
|
|
height: px2rem(32px);
|
|
|
|
|
flex: 0 0 px2rem(32px);
|
|
|
|
|
padding-left: #{px2rem(12px)};
|
|
|
|
|
padding-right: #{px2rem(12px)};
|
|
|
|
|
|
|
|
|
|
&--light {
|
|
|
|
|
height: px2rem(40px);
|
|
|
|
|
flex: 0 0 px2rem(40px);
|
|
|
|
|
}
|
2021-11-03 15:11:04 +08:00
|
|
|
|
}
|
2022-05-12 10:23:04 +08:00
|
|
|
|
|
|
|
|
|
&-result {
|
2022-05-18 10:03:56 +08:00
|
|
|
|
> .#{$ns}Selections {
|
2022-05-12 10:23:04 +08:00
|
|
|
|
height: 100%;
|
2022-05-18 10:03:56 +08:00
|
|
|
|
}
|
2022-05-12 10:23:04 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-table-title {
|
|
|
|
|
background-color: unset;
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-03 15:11:04 +08:00
|
|
|
|
.#{$ns}ListCheckboxes {
|
|
|
|
|
.#{$ns}ListCheckboxes-item {
|
|
|
|
|
padding-left: #{px2rem(16px)};
|
|
|
|
|
padding-right: #{px2rem(16px)};
|
|
|
|
|
}
|
|
|
|
|
}
|
2022-05-12 10:23:04 +08:00
|
|
|
|
|
|
|
|
|
.#{$ns}TableSelection {
|
|
|
|
|
.#{$ns}Table-table {
|
|
|
|
|
border-top: 0;
|
|
|
|
|
border-left: 0;
|
|
|
|
|
border-right: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
tbody {
|
|
|
|
|
tr {
|
|
|
|
|
&.is-active {
|
|
|
|
|
color: unset;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}GroupedSelection {
|
|
|
|
|
&-item {
|
|
|
|
|
padding-left: var(--gap-base);
|
|
|
|
|
padding-right: var(--gap-base);
|
|
|
|
|
|
|
|
|
|
&.is-active {
|
|
|
|
|
color: unset;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}Selections {
|
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
|
|
&-item {
|
|
|
|
|
padding-left: var(--gap-base);
|
|
|
|
|
padding-right: var(--gap-base);
|
|
|
|
|
}
|
2022-05-18 10:03:56 +08:00
|
|
|
|
&-mid {
|
|
|
|
|
min-width: px2rem(16px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}TableSelection {
|
|
|
|
|
.#{$ns}Table-table > thead > tr,
|
|
|
|
|
.#{$ns}Table-table > tbody > tr {
|
|
|
|
|
height: px2rem(40px);
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-03 15:11:04 +08:00
|
|
|
|
}
|
2021-11-03 21:09:20 +08:00
|
|
|
|
|
|
|
|
|
.#{$ns}Modal {
|
|
|
|
|
box-shadow: var(--boxShadow);
|
|
|
|
|
&-content {
|
|
|
|
|
padding: #{px2rem(24px)};
|
|
|
|
|
border-radius: #{$R4};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-body {
|
|
|
|
|
padding: #{px2rem(16px)} 0 #{px2rem(24px)} 0;
|
|
|
|
|
font-size: #{$T2};
|
|
|
|
|
font-weight: #{$W2};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-footer {
|
|
|
|
|
.#{$ns}Button {
|
|
|
|
|
margin-left: #{px2rem(16px)};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}Drawer {
|
|
|
|
|
&-content {
|
2022-05-18 10:03:56 +08:00
|
|
|
|
border-radius: 0;
|
2021-11-03 21:09:20 +08:00
|
|
|
|
}
|
|
|
|
|
&-header {
|
|
|
|
|
border-radius: #{$R4} 0 0 0;
|
|
|
|
|
}
|
|
|
|
|
&-title {
|
|
|
|
|
font-size: #{$T3};
|
|
|
|
|
font-weight: #{$W3};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&-body {
|
|
|
|
|
font-size: #{$T3};
|
|
|
|
|
font-weight: #{$W2};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}Drawer--right {
|
2021-11-16 15:39:03 +08:00
|
|
|
|
.#{$ns}Drawer-header {
|
|
|
|
|
border-radius: #{$R4} 0 0 0;
|
|
|
|
|
}
|
2021-11-03 21:09:20 +08:00
|
|
|
|
.#{$ns}Drawer-footer {
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
.#{$ns}Button {
|
|
|
|
|
margin-left: #{px2rem(16px)};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}Drawer--left {
|
2021-11-16 15:39:03 +08:00
|
|
|
|
.#{$ns}Drawer-header {
|
|
|
|
|
border-radius: 0 #{$R4} 0 0;
|
|
|
|
|
}
|
2021-11-03 21:09:20 +08:00
|
|
|
|
.#{$ns}Drawer-footer {
|
|
|
|
|
.#{$ns}Button {
|
|
|
|
|
margin-left: #{px2rem(16px)};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-16 15:39:03 +08:00
|
|
|
|
.#{$ns}Drawer--top {
|
|
|
|
|
.#{$ns}Drawer-footer {
|
|
|
|
|
.#{$ns}Button {
|
|
|
|
|
margin-left: #{px2rem(16px)};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-03 21:09:20 +08:00
|
|
|
|
.#{$ns}Drawer--bottom {
|
2021-11-16 15:39:03 +08:00
|
|
|
|
.#{$ns}Drawer-header {
|
|
|
|
|
border-radius: #{$R4} #{$R4} 0 0;
|
|
|
|
|
}
|
2021-11-03 21:09:20 +08:00
|
|
|
|
.#{$ns}Drawer-footer {
|
|
|
|
|
.#{$ns}Button {
|
|
|
|
|
margin-left: #{px2rem(16px)};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}Steps {
|
|
|
|
|
.#{$ns}StepsItem {
|
|
|
|
|
&-container {
|
|
|
|
|
&Icon {
|
|
|
|
|
padding-right: #{px2rem(8px)};
|
|
|
|
|
.#{$ns}StepsItem-icon {
|
|
|
|
|
width: #{px2rem(24px)};
|
|
|
|
|
height: #{px2rem(24px)};
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
svg {
|
|
|
|
|
width: #{px2rem(12px)};
|
|
|
|
|
height: #{px2rem(12px)};
|
2021-11-19 11:24:36 +08:00
|
|
|
|
top: 0;
|
2021-11-03 21:09:20 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&Wrapper {
|
|
|
|
|
.#{$ns}StepsItem-body {
|
|
|
|
|
.#{$ns}StepsItem-title {
|
|
|
|
|
&:after {
|
|
|
|
|
padding-right: #{px2rem(8px)};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.#{$ns}StepsItem-subTitle {
|
|
|
|
|
padding-left: #{px2rem(8px)};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
&--vertical {
|
|
|
|
|
.#{$ns}StepsItem {
|
|
|
|
|
&-container {
|
|
|
|
|
&Icon > .#{$ns}StepsItem-icon {
|
|
|
|
|
&:after {
|
|
|
|
|
top: px2rem(28px);
|
|
|
|
|
left: px2rem(10px);
|
|
|
|
|
transform: translate(px2rem(1px));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
.#{$ns}StepsItem.is-finish {
|
|
|
|
|
.#{$ns}StepsItem-icon {
|
|
|
|
|
color: var(--Steps-status-success);
|
|
|
|
|
background-color: var(--white);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}StepsItem.is-error {
|
|
|
|
|
.#{$ns}StepsItem-icon {
|
|
|
|
|
color: var(--Steps-status-error);
|
|
|
|
|
background-color: var(--white);
|
|
|
|
|
border: 1px solid var(--Steps-status-error);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}Form-feedback {
|
|
|
|
|
list-style-type: none;
|
|
|
|
|
padding-left: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.#{$ns}Form-item {
|
|
|
|
|
&--inline {
|
|
|
|
|
.#{$ns}Form-label {
|
|
|
|
|
margin-right: #{px2rem(16px)};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-04 18:06:12 +08:00
|
|
|
|
|
|
|
|
|
//FieldSet Form + Collapse
|
|
|
|
|
.#{$ns}Form {
|
|
|
|
|
.#{$ns}Collapse {
|
|
|
|
|
border: none;
|
|
|
|
|
&-header {
|
|
|
|
|
background-color: var(--white);
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
}
|
|
|
|
|
&-content {
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|