phpvms/public/assets/admin/vendor/sass/paper/_cards.scss

289 lines
5.3 KiB
SCSS
Raw Normal View History

2018-01-02 07:00:40 +08:00
.card {
2017-08-25 02:37:54 +08:00
border: 0;
2017-08-18 07:26:48 +08:00
border-radius: $border-radius-extreme;
box-shadow: 0 2px 2px rgba(204, 197, 185, 0.5);
2017-08-18 03:54:14 +08:00
background-color: #FFFFFF;
2017-08-18 07:26:48 +08:00
color: $card-black-color;
margin-bottom: 20px;
position: relative;
z-index: 1;
2017-08-25 02:37:54 +08:00
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
flex-direction: column;
background-color: #fff;
.card-block {
flex: 1 1 auto;
padding: 1.25rem;
}
a {
color: #f96332;
}
2017-08-18 03:54:14 +08:00
.image{
width: 100%;
overflow: hidden;
height: 260px;
2017-08-18 07:26:48 +08:00
border-radius: $border-radius-extreme $border-radius-extreme 0 0;
2017-08-18 03:54:14 +08:00
position: relative;
-webkit-transform-style: preserve-3d;
-moz-transform-style: preserve-3d;
transform-style: preserve-3d;
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
img {
width: 100%;
}
}
.content{
padding: 15px 15px 10px 15px;
}
.header{
padding: 0px 0px 10px 0;
2017-08-18 07:26:48 +08:00
}
.description{
font-size: $font-paragraph;
color: $font-color;
}
2017-08-25 02:37:54 +08:00
h5 {
font-size: 1.57em;
line-height: 1.4em;
margin-bottom: 15px;
}
2017-08-18 07:26:48 +08:00
h6{
font-size: $font-size-small;
margin: 0;
2017-08-18 03:54:14 +08:00
}
.category,
label{
font-size: $font-size-base;
font-weight: $font-weight-normal;
color: $dark-gray;
margin-bottom: 0px;
i{
font-size: $font-paragraph;
}
}
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
label{
2017-08-18 07:26:48 +08:00
font-size: 15px;
2017-08-18 03:54:14 +08:00
margin-bottom: 5px;
}
.title{
margin: $none;
2017-08-18 07:26:48 +08:00
color: $card-black-color;
2017-08-18 03:54:14 +08:00
font-weight: $font-weight-light;
}
.avatar{
2017-08-18 07:26:48 +08:00
width: 50px;
height: 50px;
2017-08-18 03:54:14 +08:00
overflow: hidden;
border-radius: 50%;
margin-right: 5px;
}
.footer{
padding: 0;
line-height: 30px;
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
.legend{
padding: 5px 0;
}
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
hr{
margin-top: 5px;
margin-bottom: 5px;
}
}
.stats{
color: #a9a9a9;
2017-08-18 07:26:48 +08:00
font-weight: 300;
i{
margin-right: 2px;
min-width: 15px;
display: inline-block;
}
2017-08-18 03:54:14 +08:00
}
.footer div{
display: inline-block;
}
.author{
font-size: $font-size-small;
font-weight: $font-weight-bold;
text-transform: uppercase;
}
.author i{
font-size: $font-size-base;
}
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
&.card-separator:after{
height: 100%;
right: -15px;
top: 0;
width: 1px;
background-color: $medium-gray;
content: "";
position: absolute;
}
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
.ct-chart{
margin: 30px 0 30px;
height: 245px;
}
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
.table{
tbody td:first-child,
thead th:first-child{
padding-left: 15px;
}
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
tbody td:last-child,
thead th:last-child{
padding-right: 15px;
}
}
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
.alert{
border-radius: $border-radius-base;
position: relative;
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
&.alert-with-icon{
padding-left: 65px;
}
}
2017-08-18 07:26:48 +08:00
.icon-big{
font-size: 3em;
min-height: 64px;
}
.numbers{
font-size: 2em;
text-align: right;
p{
margin: 0;
}
}
ul.team-members{
li{
padding: 10px 0px;
&:not(:last-child){
border-bottom: 1px solid $medium-pale-bg;
}
}
}
2018-01-02 07:00:40 +08:00
.btn-primary {
@include btn-styles($primary-color, $primary-states-color);
}
.btn-success {
@include btn-styles($success-color, $success-states-color);
}
.btn-info {
@include btn-styles($info-color, $info-states-color);
}
.btn-warning {
@include btn-styles($warning-color, $warning-states-color);
}
.btn-danger {
@include btn-styles($danger-color, $danger-states-color);
}
.btn-neutral {
@include btn-styles($white-color, $white-color);
}
2017-08-18 03:54:14 +08:00
}
.card-user{
.image{
2017-08-18 07:26:48 +08:00
border-radius: 8px 8px 0 0;
height: 150px;
position: relative;
overflow: hidden;
img{
width: 100%;
}
2017-08-18 03:54:14 +08:00
}
.image-plain{
height: 0;
margin-top: 110px;
}
.author{
text-align: center;
text-transform: none;
2017-08-18 07:26:48 +08:00
margin-top: -65px;
.title{
color: $default-states-color;
small{
color: $card-muted-color;
}
}
2017-08-18 03:54:14 +08:00
}
.avatar{
2017-08-18 07:26:48 +08:00
width: 100px;
height: 100px;
border-radius: 50%;
2017-08-18 03:54:14 +08:00
position: relative;
margin-bottom: 15px;
2017-08-18 07:26:48 +08:00
&.border-white{
border: 5px solid $white-color;
}
2017-08-18 03:54:14 +08:00
&.border-gray{
2017-08-18 07:26:48 +08:00
border: 5px solid $card-muted-color;
2017-08-18 03:54:14 +08:00
}
}
.title{
2017-08-18 07:26:48 +08:00
font-weight: 600;
2017-08-18 03:54:14 +08:00
line-height: 24px;
}
2017-08-18 07:26:48 +08:00
.description{
margin-top: 10px;
}
2017-08-18 03:54:14 +08:00
.content{
2017-08-18 07:26:48 +08:00
min-height: 200px;
}
&.card-plain{
.avatar{
height: 190px;
width: 190px;
}
2017-08-18 03:54:14 +08:00
}
}
2017-08-18 07:26:48 +08:00
.card-map{
.map{
height: 500px;
padding-top: 20px;
> div{
height: 100%;
}
}
}
2017-08-18 03:54:14 +08:00
.card-user,
.card-price{
.footer{
padding: 5px 15px 10px;
}
hr{
margin: 5px 15px;
}
}
.card-plain{
background-color: transparent;
box-shadow: none;
border-radius: 0;
2017-08-18 07:26:48 +08:00
2017-08-18 03:54:14 +08:00
.image{
border-radius: 4px;
}
}