114 lines
1.9 KiB
SCSS
114 lines
1.9 KiB
SCSS
$panel-title-height: 44px;
|
|
$panel-heading-font-size: 16px;
|
|
|
|
.panel {
|
|
border: none;
|
|
border-radius: 0;
|
|
background-color: $panel-bg;
|
|
color: $default-text;
|
|
position: relative;
|
|
transition: all 0.2s ease;
|
|
margin-bottom: 24px;
|
|
|
|
&:hover {
|
|
background: $panel-bg-hover;
|
|
}
|
|
&.animated {
|
|
animation-duration: 0.5s;
|
|
}
|
|
&.small-panel {
|
|
height: $small-panel-height;
|
|
}
|
|
&.medium-panel {
|
|
height: $medium-panel-height;
|
|
}
|
|
&.xmedium-panel {
|
|
height: $extra-medium-panel-height;
|
|
}
|
|
&.large-panel {
|
|
height: $large-panel-height;
|
|
}
|
|
&.viewport100 {
|
|
height: calc(100vh - 218px);
|
|
}
|
|
|
|
&.with-scroll {
|
|
.panel-body {
|
|
height: calc(100% - #{$panel-title-height});
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
.panel-body {
|
|
padding: 15px 22px;
|
|
height: 100%;
|
|
}
|
|
|
|
.panel-heading, .panel-footer {
|
|
height: $panel-title-height;
|
|
font-size: $panel-heading-font-size;
|
|
|
|
$vertical-padding: ($panel-title-height - $panel-heading-font-size) / 2;
|
|
padding: $vertical-padding 22px;
|
|
|
|
}
|
|
|
|
.panel-title {
|
|
font-weight: 400;
|
|
//text-transform: uppercase;
|
|
}
|
|
|
|
.panel-white {
|
|
> .panel-heading {
|
|
background-color: transparent;
|
|
border: none;
|
|
color: $default-text;
|
|
}
|
|
}
|
|
|
|
.panel-primary {
|
|
> .panel-heading {
|
|
color: $primary;
|
|
background-color: $primary-bg;
|
|
border-color: $primary-bg;
|
|
}
|
|
}
|
|
|
|
.panel-success {
|
|
> .panel-heading {
|
|
color: $success;
|
|
background-color: $success-bg;
|
|
border-color: $success-bg;
|
|
}
|
|
}
|
|
|
|
.panel-info {
|
|
> .panel-heading {
|
|
color: $info;
|
|
background-color: $info-bg;
|
|
border-color: $info-bg;
|
|
}
|
|
}
|
|
|
|
.panel-warning {
|
|
> .panel-heading {
|
|
color: $warning;
|
|
background-color: $warning-bg;
|
|
border-color: $warning-bg;
|
|
}
|
|
}
|
|
|
|
.panel-danger {
|
|
> .panel-heading {
|
|
color: $danger;
|
|
background-color: $danger-bg;
|
|
border-color: $danger-bg;
|
|
}
|
|
}
|
|
|
|
/*
|
|
.panel-group .panel {
|
|
border-radius: 0;
|
|
}*/
|