2017-04-10 14:32:40 +02:00
|
|
|
@import "../global";
|
|
|
|
|
|
|
|
$padding-card-horizontal: $spacing-vertical * 2/3;
|
|
|
|
|
|
|
|
.card {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2017-04-13 20:52:26 +02:00
|
|
|
max-width: $width-page-constrained;
|
2017-04-10 14:32:40 +02:00
|
|
|
background: $color-bg;
|
2017-04-27 05:54:53 +02:00
|
|
|
box-shadow: $box-shadow-layer;
|
2017-04-10 14:32:40 +02:00
|
|
|
border-radius: 2px;
|
|
|
|
margin-bottom: $spacing-vertical * 2/3;
|
|
|
|
overflow: auto;
|
|
|
|
}
|
|
|
|
.card--obscured
|
|
|
|
{
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
.card--obscured .card__inner {
|
2017-06-26 16:00:24 +02:00
|
|
|
filter: blur($blur-intensity-nsfw);
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
.card__title-primary {
|
|
|
|
padding: 0 $padding-card-horizontal;
|
2017-06-08 02:56:52 +02:00
|
|
|
margin-top: $spacing-vertical * 2/3;
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
.card__title-identity {
|
|
|
|
padding: 0 $padding-card-horizontal;
|
|
|
|
margin-top: $spacing-vertical * 1/3;
|
|
|
|
margin-bottom: $spacing-vertical * 1/3;
|
|
|
|
}
|
2017-07-17 16:50:07 +02:00
|
|
|
.card__title-identity .card__title {
|
|
|
|
font-size: 0.95em
|
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
.card__actions {
|
|
|
|
padding: 0 $padding-card-horizontal;
|
|
|
|
}
|
|
|
|
.card__actions {
|
|
|
|
margin-top: $spacing-vertical * 2/3;
|
|
|
|
}
|
|
|
|
.card__actions--bottom {
|
|
|
|
margin-top: $spacing-vertical * 1/3;
|
|
|
|
margin-bottom: $spacing-vertical * 1/3;
|
|
|
|
}
|
|
|
|
.card__actions--form-submit {
|
|
|
|
margin-top: $spacing-vertical;
|
|
|
|
margin-bottom: $spacing-vertical * 2/3;
|
|
|
|
}
|
|
|
|
.card__content {
|
|
|
|
margin-top: $spacing-vertical * 2/3;
|
|
|
|
margin-bottom: $spacing-vertical * 2/3;
|
|
|
|
padding: 0 $padding-card-horizontal;
|
|
|
|
}
|
|
|
|
.card__subtext {
|
|
|
|
color: #444;
|
|
|
|
margin-top: 12px;
|
|
|
|
font-size: 0.9em;
|
2017-07-17 16:50:07 +02:00
|
|
|
margin-top: $spacing-vertical * 1/3;
|
|
|
|
margin-bottom: $spacing-vertical * 1/3;
|
2017-04-10 14:32:40 +02:00
|
|
|
padding: 0 $padding-card-horizontal;
|
|
|
|
}
|
2017-04-13 20:52:26 +02:00
|
|
|
.card__subtext--allow-newlines {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
.card__subtext--two-lines {
|
|
|
|
height: $font-size * 0.9 * $font-line-height * 2;
|
2017-07-17 16:50:07 +02:00
|
|
|
font-size: 0.82em;
|
|
|
|
color: #515151
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
.card-overlay {
|
|
|
|
position: absolute;
|
|
|
|
left: 0px;
|
|
|
|
right: 0px;
|
|
|
|
top: 0px;
|
|
|
|
bottom: 0px;
|
|
|
|
padding: 20px;
|
|
|
|
background-color: rgba(128, 128, 128, 0.8);
|
|
|
|
color: #fff;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
|
2017-04-12 04:01:45 +02:00
|
|
|
$card-link-scaling: 1.1;
|
|
|
|
.card__link {
|
2017-04-10 14:32:40 +02:00
|
|
|
display: block;
|
2017-04-12 04:01:45 +02:00
|
|
|
}
|
2017-07-11 21:41:37 +02:00
|
|
|
.card--link {
|
|
|
|
transition: transform 120ms ease-in-out;
|
|
|
|
}
|
2017-04-12 04:01:45 +02:00
|
|
|
.card--link:hover {
|
|
|
|
position: relative;
|
|
|
|
z-index: 1;
|
2017-04-27 05:54:53 +02:00
|
|
|
box-shadow: $box-shadow-focus;
|
2017-04-12 04:01:45 +02:00
|
|
|
transform: scale($card-link-scaling);
|
|
|
|
transform-origin: 50% 50%;
|
|
|
|
overflow-x: visible;
|
|
|
|
overflow-y: visible;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card__media {
|
|
|
|
background-size: cover;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: 50% 50%;
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
|
2017-07-14 01:18:28 +02:00
|
|
|
.card__media--autothumb {
|
|
|
|
position: relative
|
|
|
|
}
|
|
|
|
.card__media--autothumb.purple {
|
|
|
|
background-color: #9c27b0
|
|
|
|
}
|
|
|
|
.card__media--autothumb.red {
|
|
|
|
background-color: #e53935
|
|
|
|
}
|
|
|
|
.card__media--autothumb.pink {
|
|
|
|
background-color: #e91e63
|
|
|
|
}
|
|
|
|
.card__media--autothumb.indigo {
|
|
|
|
background-color: #3f51b5
|
|
|
|
}
|
|
|
|
.card__media--autothumb.blue {
|
|
|
|
background-color: #2196f3
|
|
|
|
}
|
|
|
|
.card__media--autothumb.light-blue {
|
|
|
|
background-color: #039be5
|
|
|
|
}
|
|
|
|
.card__media--autothumb.cyan {
|
|
|
|
background-color: #00acc1
|
|
|
|
}
|
|
|
|
.card__media--autothumb.teal {
|
|
|
|
background-color: #009688
|
|
|
|
}
|
|
|
|
.card__media--autothumb.green {
|
|
|
|
background-color: #43a047
|
|
|
|
}
|
|
|
|
.card__media--autothumb.yellow {
|
|
|
|
background-color: #ffeb3b
|
|
|
|
}
|
|
|
|
.card__media--autothumb.orange {
|
|
|
|
background-color: #ffa726
|
|
|
|
}
|
|
|
|
|
|
|
|
.card__media--autothumb .card__autothumb__text {
|
|
|
|
font-size: 2.0em;
|
|
|
|
width: 100%;
|
|
|
|
color: #ffffff;
|
|
|
|
text-align: center;
|
|
|
|
position: absolute;
|
|
|
|
top: 36%
|
|
|
|
}
|
|
|
|
|
2017-07-17 16:50:07 +02:00
|
|
|
$width-card-small: $spacing-vertical * 10;
|
2017-04-12 04:01:45 +02:00
|
|
|
$height-card-small: $spacing-vertical * 15;
|
|
|
|
|
2017-04-10 14:32:40 +02:00
|
|
|
.card--small {
|
|
|
|
width: $width-card-small;
|
2017-04-12 04:01:45 +02:00
|
|
|
overflow-x: hidden;
|
|
|
|
white-space: normal;
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
.card--small .card__media {
|
2017-04-12 04:01:45 +02:00
|
|
|
height: $width-card-small * 9 / 16;
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.card__subtitle {
|
2017-04-10 20:12:07 +02:00
|
|
|
color: $color-help;
|
2017-04-10 14:32:40 +02:00
|
|
|
font-size: 0.85em;
|
2017-04-10 20:12:07 +02:00
|
|
|
line-height: $font-line-height * 1 / 0.85;
|
2017-04-10 14:32:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.card-series-submit
|
|
|
|
{
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2017-04-13 20:52:26 +02:00
|
|
|
max-width: $width-page-constrained;
|
2017-04-10 14:32:40 +02:00
|
|
|
padding: $spacing-vertical / 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-row {
|
|
|
|
> .card {
|
|
|
|
vertical-align: top;
|
|
|
|
display: inline-block;
|
|
|
|
margin-right: $spacing-vertical / 3;
|
|
|
|
}
|
|
|
|
+ .card-row {
|
|
|
|
margin-top: $spacing-vertical * 1/3;
|
|
|
|
}
|
|
|
|
}
|
2017-04-12 04:01:45 +02:00
|
|
|
.card-row--small {
|
|
|
|
overflow-x: auto;
|
|
|
|
overflow-y: hidden;
|
|
|
|
white-space: nowrap;
|
2017-05-01 02:15:21 +02:00
|
|
|
|
|
|
|
/*hacky way to give space for hover */
|
2017-04-12 04:01:45 +02:00
|
|
|
padding-left: 20px;
|
2017-05-01 02:15:21 +02:00
|
|
|
margin-left: -20px;
|
|
|
|
padding-right: 20px;
|
|
|
|
margin-right: -20px;
|
2017-04-12 04:01:45 +02:00
|
|
|
}
|
2017-04-10 14:32:40 +02:00
|
|
|
.card-row__header {
|
|
|
|
margin-bottom: $spacing-vertical / 3;
|
|
|
|
}
|