react-toolbox/components/card/style.scss

113 lines
1.9 KiB
SCSS
Raw Normal View History

@import "../base";
@import "./config";
2015-10-04 04:10:13 +03:00
2015-10-05 15:54:29 +03:00
.figure {
position: relative;
display: flex;
min-height: $card-title-height;
flex-direction: column;
2015-10-21 02:47:09 +03:00
justify-content: flex-end;
2015-10-05 15:54:29 +03:00
background-position: center center;
background-size: cover;
> *:not(.overflow) {
2015-10-21 02:47:09 +03:00
z-index: $z-index-normal;
2015-10-05 15:54:29 +03:00
font-weight: $font-weight-normal;
}
> .overflow {
position: absolute;
top: 0;
left: 0;
z-index: 0;
width: 100%;
height: 100%;
opacity: .75;
}
}
2015-10-04 04:10:13 +03:00
2015-10-05 15:54:29 +03:00
.text {
font-size: $font-size-small;
2015-10-21 02:47:09 +03:00
line-height: $font-size-big;
2015-10-05 15:54:29 +03:00
color: $color-text-secondary;
2015-10-04 04:10:13 +03:00
}
2015-10-05 15:54:29 +03:00
.navigation {
2015-10-20 22:38:33 +03:00
padding: $card-navigation-offset;
2015-10-04 04:10:13 +03:00
> * {
2015-10-05 15:54:29 +03:00
min-width: 0;
2015-10-20 22:38:33 +03:00
padding-right: $card-navigation-offset;
padding-left: $card-navigation-offset;
2015-10-04 04:10:13 +03:00
}
}
2015-10-05 15:54:29 +03:00
.ripple {
background-color: $color-text-secondary;
}
2015-10-04 04:10:13 +03:00
2015-10-05 15:54:29 +03:00
.root {
@include shadow-2dp();
position: relative;
display: flex;
width: $card-width-normal;
flex-direction: column;
overflow: hidden;
vertical-align: top;
background: $color-background;
> *:not(.navigation) {
2015-10-20 22:38:33 +03:00
padding: $card-offset;
2015-10-04 04:10:13 +03:00
}
2015-10-05 15:54:29 +03:00
&:not(.color) > *:not(.figure), > *:not(:last-child) {
box-shadow: 0 1px $color-divider;
2015-10-04 04:10:13 +03:00
}
2015-10-05 15:54:29 +03:00
}
2015-10-04 04:10:13 +03:00
2015-10-05 15:54:29 +03:00
.touch {
cursor: pointer;
}
2015-10-05 17:18:02 +03:00
2015-10-05 15:54:29 +03:00
.contrast {
.figure {
2015-10-05 17:18:02 +03:00
color: $card-color-white;
2015-10-05 15:54:29 +03:00
text-shadow: 0;
2015-10-04 04:10:13 +03:00
}
2015-10-05 15:54:29 +03:00
.ripple {
2015-10-05 17:18:02 +03:00
background-color: $card-color-white;
2015-10-04 04:10:13 +03:00
}
2015-10-05 15:54:29 +03:00
}
2015-10-05 17:18:02 +03:00
2015-10-05 15:54:29 +03:00
.loading {
pointer-events: none;
cursor: none;
2015-10-05 17:18:02 +03:00
filter: grayscale(100%);
2015-10-05 15:54:29 +03:00
.ripple {
@include ripple-loading(cardloading, 2 * $card-width-normal, 2 * $card-width-normal);
2015-10-05 15:54:29 +03:00
width: 2 * $card-width-normal;
height: 2 * $card-width-normal;
animation-name: cardloading;
2015-10-04 04:10:13 +03:00
}
}
2015-10-05 17:18:02 +03:00
.image {
&, .figure {
height: $card-width-normal;
}
.figure {
padding: 0;
2015-10-06 08:42:36 +03:00
> h5 {
2015-10-20 22:38:33 +03:00
padding: $card-offset;
2015-10-05 17:18:02 +03:00
font-size: $font-size-small;
font-weight: $font-weight-bold;
background-color: $card-text-overlay;
}
}
}
.event {
.figure {
justify-content: flex-start;
}
2015-10-05 15:54:29 +03:00
}
2015-10-05 17:18:02 +03:00
2015-10-05 15:54:29 +03:00
.wide {
width: $card-width-large;
2015-10-04 04:10:13 +03:00
}