2019-04-30 11:11:25 +08:00
|
|
|
.#{$ns}Panel {
|
2019-12-04 17:45:37 +08:00
|
|
|
margin-bottom: $Panel-marginBottom;
|
|
|
|
background-color: $Panel-bg;
|
|
|
|
border: $Panel-border;
|
|
|
|
border-radius: $Panel-borderRadius;
|
|
|
|
-webkit-box-shadow: $Panel-boxShadow;
|
|
|
|
box-shadow: $Panel-boxShadow;
|
|
|
|
|
|
|
|
&-fixedBottom {
|
|
|
|
position: absolute;
|
|
|
|
background: $white;
|
|
|
|
z-index: $zindex-affix;
|
|
|
|
bottom: 999999px;
|
|
|
|
box-shadow: $Panel-fixedBottom-boxShadow;
|
|
|
|
border-top: $Panel-fixedBottom-borderTop;
|
|
|
|
|
|
|
|
&.in {
|
|
|
|
position: fixed;
|
|
|
|
bottom: 0;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-04 17:45:37 +08:00
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
/* 主题 */
|
|
|
|
&--default {
|
|
|
|
border-color: $borderColor;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading {
|
|
|
|
background: $Panel--default-bg;
|
|
|
|
color: $Panel--default-color;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
.badge {
|
|
|
|
color: $Panel--default-badgeColor;
|
|
|
|
background: $Panel--default-badgeBg;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading {
|
|
|
|
border-color: $Panel--default-headingBorderColor;
|
|
|
|
}
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
&--primary {
|
|
|
|
border-color: $primary;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading {
|
|
|
|
background: $primary;
|
|
|
|
color: $white;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
.badge {
|
|
|
|
color: $primary;
|
|
|
|
background: $white;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading,
|
|
|
|
> .#{$ns}Panel-footer {
|
|
|
|
border-color: $primary;
|
|
|
|
}
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
&--success {
|
|
|
|
border-color: $success;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading {
|
|
|
|
background: $success;
|
|
|
|
color: $white;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
.badge {
|
|
|
|
color: $success;
|
|
|
|
background: $white;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading,
|
|
|
|
> .#{$ns}Panel-footer {
|
|
|
|
border-color: $success;
|
|
|
|
}
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
&--info {
|
|
|
|
border-color: $info;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading {
|
|
|
|
background: $info;
|
|
|
|
color: $white;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
.badge {
|
|
|
|
color: $info;
|
|
|
|
background: $white;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading,
|
|
|
|
> .#{$ns}Panel-footer {
|
|
|
|
border-color: $info;
|
|
|
|
}
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
&--warning {
|
|
|
|
border-color: $warning;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading {
|
|
|
|
background: $warning;
|
|
|
|
color: $white;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
.badge {
|
|
|
|
color: $warning;
|
|
|
|
background: $white;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading,
|
|
|
|
> .#{$ns}Panel-footer {
|
|
|
|
border-color: $warning;
|
|
|
|
}
|
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
&--danger {
|
|
|
|
border-color: $danger;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading {
|
|
|
|
background: $danger;
|
|
|
|
color: $white;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
.badge {
|
|
|
|
color: $danger;
|
|
|
|
background: $white;
|
|
|
|
}
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
> .#{$ns}Panel-heading,
|
|
|
|
> .#{$ns}Panel-footer {
|
|
|
|
border-color: $danger;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-04 17:45:37 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
/* 子组件 */
|
|
|
|
&-heading {
|
|
|
|
padding: $Panel-headingPadding;
|
|
|
|
border-bottom: $Panel-headingBorderBottom;
|
|
|
|
border-radius: $Panel-headingBorderRadius;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
margin-top: $Panel-titleMarginTop;
|
|
|
|
margin-bottom: $Panel-titleMarginBottom;
|
|
|
|
font-size: $Panel-titleFontSize;
|
|
|
|
color: $Panel-titleColor;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-body {
|
|
|
|
padding: $Panel-bodyPadding;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-footer {
|
|
|
|
border-color: $Panel-footerBorderColor;
|
|
|
|
border-radius: $Panel-footerBorderRadius;
|
|
|
|
background: $Panel-footerBg;
|
|
|
|
padding: $Panel-footerPadding;
|
|
|
|
border-style: solid;
|
|
|
|
border-width: $Panel-borderWidth 0 0 0;
|
|
|
|
|
|
|
|
.#{$ns}Button + .#{$ns}Button {
|
|
|
|
margin-left: $Panel-footerButtomMarginLeft;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-04 17:45:37 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
&-btnToolbar {
|
|
|
|
@include clearfix();
|
|
|
|
text-align: $Panel-btnToolbarTextAlign;
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
.#{$ns}Button {
|
|
|
|
margin-left: $Panel-footerButtomMarginLeft;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
|
2019-12-04 17:45:37 +08:00
|
|
|
&:empty {
|
|
|
|
display: none;
|
2019-04-30 11:11:25 +08:00
|
|
|
}
|
2019-12-04 17:45:37 +08:00
|
|
|
}
|
2019-05-15 16:10:20 +08:00
|
|
|
}
|