2017-08-03 13:53:18 +03:00
|
|
|
@import '../../../@theme/styles/themes';
|
2017-08-01 17:42:21 +03:00
|
|
|
@import '~@nebular/theme/styles/global/bootstrap/hero-buttons';
|
2017-06-13 20:27:11 +03:00
|
|
|
|
2017-08-01 17:42:21 +03:00
|
|
|
@include nb-install-component() {
|
|
|
|
|
nb-card {
|
2017-06-13 20:27:11 +03:00
|
|
|
flex-direction: row;
|
|
|
|
|
align-items: center;
|
|
|
|
|
height: 6rem;
|
|
|
|
|
overflow: visible;
|
|
|
|
|
|
2017-08-01 17:42:21 +03:00
|
|
|
$bevel: btn-hero-bevel(nb-theme(card-bg));
|
2017-08-04 15:11:32 +03:00
|
|
|
$shadow: nb-theme(btn-hero-shadow);
|
2017-07-06 17:28:58 +03:00
|
|
|
box-shadow: $bevel, $shadow;
|
|
|
|
|
|
|
|
|
|
.icon-container {
|
2017-08-07 16:12:38 +03:00
|
|
|
height: 100%;
|
|
|
|
|
padding: 0.625rem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
2017-07-10 19:57:04 +03:00
|
|
|
display: flex;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2017-08-07 16:12:38 +03:00
|
|
|
width: 5.75rem;
|
|
|
|
|
height: 4.75rem;
|
2017-09-11 17:02:09 +03:00
|
|
|
font-size: 3.75rem;
|
2017-08-07 16:12:38 +03:00
|
|
|
border-radius: nb-theme(card-border-radius);
|
2017-09-21 11:30:26 +03:00
|
|
|
transition: width 0.4s ease;
|
|
|
|
|
transform: translate3d(0, 0, 0);
|
|
|
|
|
-webkit-transform-style: preserve-3d;
|
|
|
|
|
-webkit-backface-visibility: hidden;
|
2017-08-01 17:42:21 +03:00
|
|
|
color: nb-theme(color-white);
|
2017-07-06 17:28:58 +03:00
|
|
|
|
|
|
|
|
&.primary {
|
|
|
|
|
@include btn-hero-primary-gradient();
|
|
|
|
|
@include btn-hero-primary-bevel-glow-shadow();
|
|
|
|
|
}
|
|
|
|
|
&.success {
|
|
|
|
|
@include btn-hero-success-gradient();
|
|
|
|
|
@include btn-hero-success-bevel-glow-shadow();
|
|
|
|
|
}
|
|
|
|
|
&.info {
|
|
|
|
|
@include btn-hero-info-gradient();
|
|
|
|
|
@include btn-hero-info-bevel-glow-shadow();
|
|
|
|
|
}
|
|
|
|
|
&.warning {
|
|
|
|
|
@include btn-hero-warning-gradient();
|
|
|
|
|
@include btn-hero-warning-bevel-glow-shadow();
|
|
|
|
|
}
|
2017-06-13 20:27:11 +03:00
|
|
|
}
|
|
|
|
|
|
2017-07-06 17:28:58 +03:00
|
|
|
&:hover {
|
2017-08-01 17:42:21 +03:00
|
|
|
background: lighten(nb-theme(card-bg), 5%);
|
2017-06-13 20:27:11 +03:00
|
|
|
|
2017-08-07 16:12:38 +03:00
|
|
|
.icon {
|
2017-07-06 17:28:58 +03:00
|
|
|
&.primary {
|
|
|
|
|
background-image: btn-hero-primary-light-gradient();
|
|
|
|
|
}
|
2017-06-13 20:27:11 +03:00
|
|
|
&.success {
|
2017-07-06 17:28:58 +03:00
|
|
|
background-image: btn-hero-success-light-gradient();
|
|
|
|
|
}
|
|
|
|
|
&.info {
|
|
|
|
|
background-image: btn-hero-info-light-gradient();
|
|
|
|
|
}
|
|
|
|
|
&.warning {
|
|
|
|
|
background-image: btn-hero-warning-light-gradient();
|
2017-06-13 20:27:11 +03:00
|
|
|
}
|
|
|
|
|
}
|
2017-07-06 17:28:58 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
&.off {
|
2017-08-01 17:42:21 +03:00
|
|
|
color: nb-theme(card-fg);
|
2017-07-06 17:28:58 +03:00
|
|
|
|
2017-08-07 16:12:38 +03:00
|
|
|
.icon {
|
2017-08-01 17:42:21 +03:00
|
|
|
color: nb-theme(card-fg);
|
2017-07-29 16:00:27 +03:00
|
|
|
|
2017-07-06 17:28:58 +03:00
|
|
|
&.primary, &.success, &.info, &.warning {
|
|
|
|
|
box-shadow: none;
|
|
|
|
|
background-image: linear-gradient(to right, transparent, transparent);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-06-13 20:27:11 +03:00
|
|
|
|
2017-07-29 16:00:27 +03:00
|
|
|
.title {
|
2017-08-01 17:42:21 +03:00
|
|
|
color: nb-theme(card-fg);
|
2017-07-06 17:28:58 +03:00
|
|
|
}
|
2017-06-13 20:27:11 +03:00
|
|
|
}
|
2017-07-06 17:28:58 +03:00
|
|
|
|
|
|
|
|
.details {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
justify-content: center;
|
|
|
|
|
height: 100%;
|
2018-05-11 17:25:02 +03:00
|
|
|
@include nb-ltr(padding, 0 0.5rem 0 0.75rem);
|
|
|
|
|
@include nb-rtl(padding, 0 0.75rem 0 0.5rem);
|
2017-07-06 17:28:58 +03:00
|
|
|
border-left: 1px solid transparent;
|
2017-06-13 20:27:11 +03:00
|
|
|
}
|
2017-07-29 16:00:27 +03:00
|
|
|
|
2017-07-06 17:28:58 +03:00
|
|
|
.title {
|
2017-08-01 17:42:21 +03:00
|
|
|
font-family: nb-theme(font-secondary);
|
2017-09-15 17:15:59 +03:00
|
|
|
font-size: 1.25rem;
|
2017-09-01 17:18:02 +03:00
|
|
|
font-weight: nb-theme(font-weight-bold);
|
2017-08-01 17:42:21 +03:00
|
|
|
color: nb-theme(card-fg-heading);
|
2017-06-13 20:27:11 +03:00
|
|
|
}
|
2017-07-29 16:00:27 +03:00
|
|
|
|
2017-07-06 17:28:58 +03:00
|
|
|
.status {
|
2017-09-15 17:15:59 +03:00
|
|
|
font-size: 1rem;
|
2017-08-01 17:42:21 +03:00
|
|
|
font-weight: nb-theme(font-weight-light);
|
2017-07-06 17:28:58 +03:00
|
|
|
text-transform: uppercase;
|
2017-08-01 17:42:21 +03:00
|
|
|
color: nb-theme(card-fg);
|
2017-06-13 20:27:11 +03:00
|
|
|
}
|
|
|
|
|
}
|
2017-08-07 16:12:38 +03:00
|
|
|
|
|
|
|
|
@include nb-for-theme(cosmic) {
|
|
|
|
|
nb-card {
|
2017-09-15 17:15:59 +03:00
|
|
|
&.off .icon-container {
|
2018-05-11 17:25:02 +03:00
|
|
|
@include nb-ltr(border-right, 1px solid nb-theme(separator));
|
|
|
|
|
@include nb-rtl(border-left, 1px solid nb-theme(separator));
|
2017-09-15 17:15:59 +03:00
|
|
|
}
|
|
|
|
|
|
2017-08-07 16:12:38 +03:00
|
|
|
.icon-container {
|
|
|
|
|
padding: 0;
|
2017-09-15 17:15:59 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.details {
|
2018-05-11 17:25:02 +03:00
|
|
|
@include nb-ltr(padding-left, 1.25rem);
|
|
|
|
|
@include nb-rtl(padding-right, 1.25rem);
|
2017-08-07 16:12:38 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
|
width: 7rem;
|
|
|
|
|
height: 100%;
|
2017-09-11 17:02:09 +03:00
|
|
|
font-size: 4.5rem;
|
2018-05-11 17:25:02 +03:00
|
|
|
@include nb-ltr(border-radius, nb-theme(card-border-radius) 0 0 nb-theme(card-border-radius));
|
|
|
|
|
@include nb-rtl(border-radius, 0 nb-theme(card-border-radius) nb-theme(card-border-radius) 0);
|
2017-08-07 16:12:38 +03:00
|
|
|
}
|
|
|
|
|
|
2017-09-01 17:18:02 +03:00
|
|
|
.title {
|
|
|
|
|
font-weight: nb-theme(font-weight-bolder);
|
|
|
|
|
}
|
|
|
|
|
|
2017-08-07 16:12:38 +03:00
|
|
|
.status {
|
|
|
|
|
font-weight: nb-theme(font-weight-light);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-06-13 20:27:11 +03:00
|
|
|
}
|