2023-02-20 16:02:54 +01:00
|
|
|
@card-background-hover: @ciel-color;
|
|
|
|
|
2022-12-07 15:57:46 +01:00
|
|
|
@card-body-padding-horizontal: @global-small-gutter;
|
|
|
|
@card-body-padding-vertical: @global-small-gutter;
|
2022-06-16 18:44:05 +02:00
|
|
|
@card-border-radius: @global-border-radius;
|
|
|
|
|
2022-12-07 15:57:46 +01:00
|
|
|
@card-default-background: @global-inverse-color;
|
|
|
|
@card-default-box-shadow-m: @global-large-box-shadow;
|
|
|
|
@card-default-border-width: @global-border-width;
|
|
|
|
@card-default-border: @global-border;
|
2022-12-22 10:40:12 +01:00
|
|
|
@card-default-border-m: none;
|
2022-06-16 18:44:05 +02:00
|
|
|
@card-default-hover-background: @card-default-background;
|
2022-06-17 18:46:35 +02:00
|
|
|
@card-default-hover-box-shadow: @global-small-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@card-default-header-border-width: @global-border-width;
|
|
|
|
@card-default-header-border: @global-border;
|
|
|
|
@card-default-footer-border-width: @global-border-width;
|
|
|
|
@card-default-footer-border: @global-border;
|
|
|
|
|
|
|
|
@card-primary-background: @global-primary-background;
|
|
|
|
@card-primary-background-gradient: @global-primary-gradient;
|
2022-12-07 15:57:46 +01:00
|
|
|
@card-primary-box-shadow-m: @global-large-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@card-primary-hover-background: @card-primary-background;
|
2022-06-17 18:46:35 +02:00
|
|
|
@card-primary-hover-box-shadow: @global-small-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@card-primary-hover-background-gradient: @global-primary-gradient;
|
|
|
|
|
2022-09-08 14:10:35 +02:00
|
|
|
@card-secondary-background: @global-secondary-background;
|
2022-12-07 15:57:46 +01:00
|
|
|
@card-secondary-box-shadow-m: @global-large-box-shadow;
|
2022-06-16 18:44:05 +02:00
|
|
|
@card-secondary-color: @global-color;
|
2022-09-08 14:10:35 +02:00
|
|
|
@card-secondary-color-mode: light;
|
2022-06-16 18:44:05 +02:00
|
|
|
@card-secondary-hover-background: @card-secondary-background;
|
2022-06-17 18:46:35 +02:00
|
|
|
@card-secondary-hover-box-shadow: @global-small-box-shadow;
|
|
|
|
|
|
|
|
@card-disabled-box-shadow: none;
|
|
|
|
@card-disabled-border: @global-border;
|
|
|
|
@card-disabled-border-width: @global-border-width;
|
2022-12-09 10:26:38 +01:00
|
|
|
@card-disabled-opacity: 0.4;
|
2022-12-07 15:57:46 +01:00
|
|
|
@card-disabled-opacity-m: 1;
|
2022-06-16 18:44:05 +02:00
|
|
|
|
|
|
|
.hook-card() {
|
|
|
|
transition: .1s ease-in-out;
|
|
|
|
transition-property: color,background-color,background-size,border-color,box-shadow,transform,top;
|
|
|
|
border-radius: @card-border-radius;
|
2022-06-17 18:46:35 +02:00
|
|
|
|
|
|
|
&.uk-disabled {
|
|
|
|
box-shadow: @card-disabled-box-shadow;
|
|
|
|
border: @card-disabled-border-width solid @card-disabled-border;
|
2023-03-22 15:07:27 +01:00
|
|
|
|
|
|
|
.uk-card-media-top, .uk-card-body, .uk-card-media-bottom {
|
|
|
|
opacity: @card-disabled-opacity;
|
|
|
|
}
|
2022-06-17 18:46:35 +02:00
|
|
|
}
|
2023-02-20 16:02:54 +01:00
|
|
|
|
|
|
|
&:not(.uk-card-default, .uk-card-primary, .uk-card-secondary):hover {
|
|
|
|
background-color: @card-background-hover;
|
|
|
|
}
|
2022-06-16 18:44:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.hook-card-header() {
|
|
|
|
border-radius: @card-border-radius @card-border-radius 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-card-footer() {
|
|
|
|
border-radius: 0 0 @card-border-radius @card-border-radius;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-card-default() {
|
2022-12-07 15:57:46 +01:00
|
|
|
border: @card-default-border-width solid @card-default-border;
|
2022-06-16 18:44:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.hook-card-default-hover() {
|
|
|
|
box-shadow: @card-default-hover-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-card-default-header() {
|
|
|
|
border-bottom: @card-default-header-border-width solid @card-default-header-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-card-default-footer() {
|
|
|
|
border-top: @card-default-footer-border-width solid @card-default-footer-border;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-card-primary() {
|
|
|
|
background-image: @card-primary-background-gradient;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-card-primary-hover() {
|
|
|
|
box-shadow: @card-primary-hover-box-shadow;
|
|
|
|
}
|
|
|
|
|
|
|
|
.hook-card-secondary-hover() {
|
|
|
|
box-shadow: @card-secondary-hover-box-shadow;
|
|
|
|
}
|
|
|
|
|
2022-12-07 15:57:46 +01:00
|
|
|
.hook-card-misc() {
|
|
|
|
@media (min-width: @breakpoint-medium) {
|
|
|
|
.uk-card {
|
|
|
|
&.uk-disabled {
|
2023-03-22 15:07:27 +01:00
|
|
|
.uk-card-media-top, .uk-card-body, .uk-card-media-bottom {
|
|
|
|
opacity: @card-disabled-opacity-m;
|
|
|
|
}
|
2022-12-07 15:57:46 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.uk-card-default {
|
2022-12-22 10:40:12 +01:00
|
|
|
border: @card-default-border-m;
|
2022-12-07 15:57:46 +01:00
|
|
|
box-shadow: @card-default-box-shadow-m;
|
|
|
|
}
|
|
|
|
|
|
|
|
.uk-card-primary{
|
|
|
|
box-shadow: @card-primary-box-shadow-m;
|
|
|
|
}
|
|
|
|
|
|
|
|
.uk-card-secondary {
|
|
|
|
box-shadow: @card-secondary-box-shadow-m;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-06-16 18:44:05 +02:00
|
|
|
@inverse-card-box-shadow: @inverse-global-large-box-shadow;
|
|
|
|
@inverse-card-hover-box-shadow: @inverse-global-medium-box-shadow;
|
|
|
|
|
|
|
|
.hook-inverse-misc() {
|
|
|
|
.uk-card-default {
|
|
|
|
box-shadow: @inverse-card-box-shadow;
|
|
|
|
|
|
|
|
&.uk-card-hover:hover {
|
|
|
|
box-shadow: @inverse-card-hover-box-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.uk-card-primary {
|
|
|
|
box-shadow: @inverse-card-box-shadow;
|
|
|
|
|
|
|
|
&.uk-card-hover:hover {
|
|
|
|
box-shadow: @inverse-card-hover-box-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.uk-card-secondary {
|
|
|
|
box-shadow: @inverse-card-box-shadow;
|
|
|
|
|
|
|
|
&.uk-card-hover:hover {
|
|
|
|
box-shadow: @inverse-card-hover-box-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|