123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417 |
- .card {
- margin-bottom: $card-group-margin;
- box-shadow: $card-shadow;
- @at-root a#{&} {
- color: inherit;
- transition: .3s box-shadow;
- &:hover {
- text-decoration: none;
- box-shadow: $card-shadow-hover;
- }
- }
- }
- .card-sm {
- .card-body {
- padding: .75rem;
- }
- }
- .card-group {
- margin-bottom: $card-group-margin;
- }
- .card-inactive {
- pointer-events: none;
- box-shadow: none;
- .card-body {
- opacity: .64;
- }
- }
- .card-active {
- position: relative;
- background-color: rgba($primary, .03);
- &::before {
- position: absolute;
- top: -1px;
- right: -1px;
- bottom: -1px;
- left: -1px;
- content: "";
- border: 1px solid $primary;
- border-radius: inherit;
- }
- }
- .card-link {
- color: inherit;
- &:hover {
- color: inherit;
- text-decoration: none;
- box-shadow: 0 1px 6px 0 rgba(0, 0, 0, .08);
- }
- }
- .card-btn {
- padding: $card-spacer-y $card-spacer-x;
- text-align: center;
- background: rgba($primary, .02);
- transition: .3s background;
- &:hover {
- text-decoration: none;
- background: rgba($primary, .06);
- }
- }
- .card-stacked {
- position: relative;
- &::after {
- position: absolute;
- top: -5px;
- right: 5px;
- left: 5px;
- height: 5px;
- content: "";
- background: $card-bg;
- border: 1px solid $card-border-color;
- border-radius: $card-border-radius $card-border-radius 0 0;
- }
- }
- .card-cover {
- position: relative;
- padding: $card-spacer-y $card-spacer-x;
- background: #666666 no-repeat center/cover;
- &::before {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- content: "";
- background: $light-black;
- }
- &:first-child,
- &:first-child::before {
- border-radius: $border-radius $border-radius 0 0;
- }
- }
- .card-cover-blurred {
- &::before {
- backdrop-filter: blur(2px);
- }
- }
- .card-header {
- display: flex;
- align-items: center;
- 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: .25rem;
- &:last-child {
- border-radius: 0 0 2px 2px;
- }
- &:first-child {
- border-radius: 2px 2px 0 0;
- }
- }
- .card-meta {
- color: $text-muted;
- }
- .card-title {
- display: block;
- margin: 0 0 1rem;
- font-size: $h3-font-size;
- font-weight: $headings-font-weight;
- color: $headings-color;
- @at-root a#{&}:hover {
- color: inherit;
- }
- .card-header & {
- margin: .125rem 0;
- }
- }
- .card-subtitle {
- margin-top: -$card-spacer-y;
- margin-bottom: $card-spacer-y / 2;
- font-size: $small-font-size;
- color: $text-muted;
- }
- .card-body {
- > :last-child {
- margin-bottom: 0;
- }
- }
- .card-body-scrollable {
- overflow: auto;
- }
- /**
- Card optinos
- */
- .card-options {
- top: 1.5rem;
- right: .75rem;
- display: flex;
- margin-left: auto;
- }
- .card-options-link {
- display: inline-block;
- min-width: 1rem;
- margin-left: .25rem;
- color: $text-muted;
- }
- .card-drop {
- line-height: 1;
- color: $text-muted;
- .icon {
- width: 1.5rem;
- height: 1.5rem;
- stroke-width: 1;
- }
- }
- /**
- Card status
- */
- .card-status-top {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: $card-status-size;
- border-radius: $card-border-radius $card-border-radius 0 0;
- }
- .card-status-left {
- position: absolute;
- right: auto;
- bottom: 0;
- width: $card-status-size;
- height: 100%;
- border-radius: $card-border-radius 0 0 $card-border-radius;
- }
- .card-status-bottom {
- position: absolute;
- top: initial;
- bottom: 0;
- width: 100%;
- height: $card-status-size;
- border-radius: 0 0 $card-border-radius $card-border-radius;
- }
- /**
- Card table
- */
- .card-table {
- margin-bottom: 0;
- tr {
- &:first-child {
- td,
- th {
- border-top: 0;
- }
- }
- td,
- th {
- border-top: 1px solid $border-color;
- &:first-child {
- padding-left: $card-spacer-x;
- }
- &:last-child {
- padding-right: $card-spacer-x;
- }
- }
- }
- .card-body + & {
- border-top: 1px solid $border-color;
- }
- }
- /*
- Card code
- */
- .card-code {
- padding: 0;
- .highlight {
- @extend .highlight-dark;
- margin: 0;
- border: 0;
- }
- pre {
- margin: 0;
- color: #ffffff;
- text-shadow: none;
- background: transparent;
- }
- }
- /*
- Card chart
- */
- .card-chart {
- position: relative;
- z-index: 1;
- height: 3.5rem;
- }
- /*
- Card profile
- */
- .card-profile {
- .card-header {
- height: 9rem;
- background-size: cover;
- }
- }
- .card-profile-img {
- max-width: 6rem;
- margin-top: -5rem;
- margin-bottom: 1rem;
- border: 3px solid #ffffff;
- border-radius: 100%;
- box-shadow: 0 1px 1px rgba(0, 0, 0, .1);
- }
- /*
- Card list group
- */
- .card-list-group {
- .card-body + & {
- border-top: 1px solid $border-color;
- }
- .list-group-item {
- padding-right: $card-spacer-x;
- padding-left: $card-spacer-x;
- border-right: 0;
- border-left: 0;
- border-radius: 0;
- &:last-child {
- border-bottom: 0;
- }
- &:first-child {
- border-top: 0;
- }
- }
- }
- /**
- Card tabs
- */
- .card-tabs {
- margin-bottom: $card-group-margin;
- .nav-tabs {
- position: relative;
- z-index: $zindex-dropdown;
- border-bottom: 0;
- .nav-link {
- background: $card-cap-bg;
- border: $card-border-width solid $card-border-color;
- border-bottom: 0;
- &.active,
- &:active,
- &:hover {
- border-color: $card-border-color;
- }
- &.active {
- color: $headings-color;
- background: $card-bg;
- }
- }
- .nav-item {
- &:not(:first-child) {
- .nav-link {
- border-top-left-radius: 0;
- }
- }
- &:not(:last-child) {
- .nav-link {
- border-top-right-radius: 0;
- }
- }
- + .nav-item {
- margin-left: -1px;
- }
- }
- }
- .nav-tabs-bottom {
- margin-bottom: 0;
- .nav-item {
- margin-top: -1px;
- margin-bottom: 0;
- .nav-link {
- border-top-width: 0;
- border-bottom: $card-border-width solid $card-border-color;
- border-top-left-radius: 0;
- border-top-right-radius: 0;
- }
- }
- }
- .card {
- margin: 0;
- border-top-left-radius: 0;
- }
- }
|