1
0
mirror of https://github.com/tabler/tabler.git synced 2026-08-01 16:04:37 +04:00

cards components

This commit is contained in:
codecalm
2019-10-03 10:10:48 +02:00
parent 03c99e7361
commit 8d6484c67b
17 changed files with 225 additions and 130 deletions
+56 -22
View File
@@ -1,6 +1,16 @@
.card {
margin-bottom: $card-group-margin;
box-shadow: rgba(0, 0, 0, 0.04) 0 2px 4px 0;
box-shadow: $card-shadow;
@at-root a#{&} {
color: inherit;
transition: .3s box-shadow;
&:hover {
text-decoration: none;
box-shadow: $card-shadow-hover;
}
}
}
.card-group {
@@ -9,8 +19,27 @@
.card-inactive {
box-shadow: none;
opacity: .8;
pointer-events: none;
.card-body {
opacity: .64;
}
}
.card-active {
position: relative;
background-color: rgba($primary, .03);
&:before {
content: '';
position: absolute;
top: -1px;
left: -1px;
right: -1px;
bottom: -1px;
border: 1px solid $primary;
border-radius: inherit;
}
}
.card-link {
@@ -35,6 +64,23 @@
}
}
.card-stacked {
position: relative;
&:after {
content: '';
position: absolute;
top: -5px;
left: 5px;
right: 5px;
border: 1px solid $card-border-color;
border-radius: $card-border-radius $card-border-radius 0 0;
background: $card-bg;
z-index: -1;
height: 5px
}
}
.card-cover {
position: relative;
padding: $card-spacer-y $card-spacer-x;
@@ -65,20 +111,23 @@
.card-header {
display: flex;
align-items: center;
min-height: 3.5rem;
background: transparent;
}
.card-header-tabs {
flex: 1;
margin: (- $card-spacer-y) (- $card-spacer-x);
}
.card-header-pills {
flex: 1;
}
.card-footer {
color: $text-muted;
}
.card-progress {
height: 4px;
&:last-child {
border-radius: 0 0 2px 2px;
@@ -103,7 +152,7 @@
}
.card-header & {
margin: 0;
margin: -.125rem 0;
}
}
@@ -158,7 +207,7 @@ Card status
right: auto;
bottom: 0;
height: 100%;
width: 2px;
width: $card-status-size;
border-radius: $card-border-radius 0 0 $card-border-radius;
}
@@ -167,7 +216,7 @@ Card status
bottom: 0;
width: 100%;
top: initial;
height: 2px;
height: $card-status-size;
border-radius: 0 0 $card-border-radius $card-border-radius;
}
@@ -231,21 +280,6 @@ Card chart
z-index: 1;
height: 3.5rem;
}
/*
Card Aside
*/
.card-aside {
flex-direction: row;
}
.card-aside-column {
min-width: 5rem;
width: 30%;
flex: 0 0 30%;
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
background: no-repeat center/cover;
}
/*
Card profile