mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-30 12:52:43 +08:00
112 lines
3.0 KiB
SCSS
112 lines
3.0 KiB
SCSS
@import './mixins/mixins.scss';
|
|
@include themes-mixin {
|
|
@include b(nimbus-form-card) {
|
|
// position: relative;
|
|
@include once {
|
|
min-width: 600px;
|
|
width: 1032px;
|
|
margin: auto;
|
|
pointer-events: none;
|
|
border-radius: 9px;
|
|
}
|
|
.n-nimbus-form-card__body {
|
|
position: relative;
|
|
pointer-events: all;
|
|
clip-path: border-box;
|
|
margin-top: 24px;
|
|
margin-bottom: 24px;
|
|
background: $--nimbus-form-background-color;
|
|
color: $--nimbus-form-text-color;
|
|
border-radius: 9px;
|
|
.n-nimbus-form-card__header {
|
|
position: relative;
|
|
&.n-nimbus-form-card__header--sticky {
|
|
position: sticky;
|
|
top: 0px;
|
|
}
|
|
top: 0;
|
|
// background-color: #5c657e;
|
|
border-radius: 9px;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding-bottom: 20px;
|
|
padding-top: 24px;
|
|
padding-left: 30px;
|
|
padding-right: 30px;
|
|
margin-left: 15px;
|
|
margin-right: 15px;
|
|
height: 19px;
|
|
.n-nimbus-form-card__title {
|
|
line-height: 19px;
|
|
font-size: 16px;
|
|
font-weight: 700;
|
|
color: $--nimbus-form-title-color;
|
|
}
|
|
.n-nimbus-form-card__right-header {
|
|
display: flex;
|
|
align-items: center;
|
|
.n-nimbus-form-card__deactivator {
|
|
position: relative;
|
|
width: 14px;
|
|
height: 14px;
|
|
margin-left: 17px;
|
|
cursor: pointer;
|
|
&::before {
|
|
position: absolute;
|
|
transform: rotate(45deg);
|
|
height: 7px;
|
|
width: 7px;
|
|
top: -3px;
|
|
content: "";
|
|
border-right: 3px solid #c5d0de;
|
|
border-bottom: 3px solid #c5d0de;
|
|
}
|
|
&::after {
|
|
position: absolute;
|
|
height: 7px;
|
|
width: 7px;
|
|
content: "";
|
|
transform: rotate(45deg);
|
|
top: 7px;
|
|
border-left: 3px solid #c5d0de;
|
|
border-top: 3px solid #c5d0de;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.n-nimbus-form-card__content {
|
|
padding: 19px 45px;
|
|
}
|
|
.n-nimbus-form-card__divider {
|
|
border-bottom: 1px solid $--nimbus-form-divider-color;
|
|
position: absolute;
|
|
left: 30px;
|
|
right: 30px;
|
|
bottom: 0;
|
|
}
|
|
.n-nimbus-form-card__footer {
|
|
&.n-nimbus-form-card__footer--sticky {
|
|
position: sticky;
|
|
}
|
|
position: relative;
|
|
padding-top: 24px;
|
|
padding-bottom: 24px;
|
|
padding-left: 30px;
|
|
padding-right: 30px;
|
|
margin-left: 15px;
|
|
margin-right: 15px;
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
// background: #5c657e;
|
|
border-radius: 9px;
|
|
bottom: 0;
|
|
.n-nimbus-form-card__divider {
|
|
bottom: unset;
|
|
top: 0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|