2018-12-19 06:44:53 +01:00
|
|
|
// M E D I A
|
2019-02-15 02:52:10 +01:00
|
|
|
// T H U M B
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-02-15 02:52:10 +01:00
|
|
|
.media__thumb {
|
|
|
|
@include thumbnail;
|
2020-01-29 17:38:46 +01:00
|
|
|
position: relative;
|
2021-03-18 18:21:49 +01:00
|
|
|
border-radius: var(--border-radius);
|
2019-07-21 23:31:22 +02:00
|
|
|
object-fit: cover;
|
2019-12-09 18:25:13 +01:00
|
|
|
background-color: var(--color-placeholder-background);
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// M E D I A
|
2019-02-15 02:52:10 +01:00
|
|
|
// T I T L E
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-03-28 17:53:13 +01:00
|
|
|
.media__uri {
|
2019-11-22 22:13:00 +01:00
|
|
|
position: absolute;
|
|
|
|
transform: translateY(-130%);
|
2020-10-28 20:18:58 +01:00
|
|
|
display: flex;
|
2019-11-22 22:13:00 +01:00
|
|
|
font-size: var(--font-xsmall);
|
|
|
|
color: var(--color-text-subtitle);
|
2020-10-28 20:18:58 +01:00
|
|
|
font-weight: var(--font-weight-base);
|
2019-12-18 06:27:08 +01:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
position: static;
|
|
|
|
transform: none;
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-bottom: var(--spacing-xs);
|
2020-05-11 16:50:32 +02:00
|
|
|
max-width: 100%;
|
|
|
|
white-space: nowrap;
|
2019-12-18 06:27:08 +01:00
|
|
|
}
|
2020-07-16 03:59:52 +02:00
|
|
|
}
|
|
|
|
|
2019-01-11 17:34:36 +01:00
|
|
|
// M E D I A
|
|
|
|
// S U B T I T L E
|
|
|
|
|
|
|
|
.media__subtitle {
|
2019-06-27 22:27:38 +02:00
|
|
|
align-self: flex-start;
|
2019-11-22 22:13:00 +01:00
|
|
|
color: var(--color-text-subtitle);
|
2020-01-08 20:20:30 +01:00
|
|
|
font-size: var(--font-small);
|
2019-01-11 17:34:36 +01:00
|
|
|
}
|
|
|
|
|
2020-09-30 22:46:20 +02:00
|
|
|
.media__subtitle--centered {
|
|
|
|
@extend .media__subtitle;
|
2021-03-11 18:08:11 +01:00
|
|
|
align-self: auto;
|
2020-09-30 22:46:20 +02:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
2019-11-22 22:13:00 +01:00
|
|
|
.media__subtitle--between {
|
|
|
|
@extend .media__subtitle;
|
|
|
|
display: flex;
|
2021-04-04 04:44:51 +02:00
|
|
|
justify-content: space-between;
|
|
|
|
align-items: flex-end;
|
|
|
|
flex-direction: row;
|
2021-04-23 21:59:48 +02:00
|
|
|
flex-wrap: wrap;
|
2020-09-30 22:46:20 +02:00
|
|
|
|
2021-04-04 04:44:51 +02:00
|
|
|
@media (max-width: $breakpoint-medium) {
|
|
|
|
display: block;
|
2020-09-30 22:46:20 +02:00
|
|
|
}
|
2019-01-11 17:34:36 +01:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.media__info-text {
|
2019-05-30 03:32:06 +02:00
|
|
|
word-break: break-word;
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-bottom: var(--spacing-m);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2019-01-08 00:29:40 +01:00
|
|
|
|
2019-11-22 22:13:00 +01:00
|
|
|
&.media__info-text--constrained {
|
2019-05-30 18:57:58 +02:00
|
|
|
max-width: 50rem;
|
2019-05-30 03:32:06 +02:00
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2020-09-30 22:46:20 +02:00
|
|
|
.media__info-text--contracted {
|
|
|
|
margin-top: var(--spacing-m);
|
2020-10-23 19:54:20 +02:00
|
|
|
max-height: 3rem;
|
2020-09-30 22:46:20 +02:00
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__info-text--expanded {
|
|
|
|
margin-top: var(--spacing-m);
|
|
|
|
max-height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__info-text--contracted,
|
|
|
|
.media__info-text--expanded {
|
|
|
|
max-width: 50rem;
|
|
|
|
}
|
|
|
|
|
2020-09-11 17:42:20 +02:00
|
|
|
.media__info-text--fade {
|
|
|
|
-webkit-mask-image: -webkit-gradient(linear, left 30%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
|
|
|
|
}
|
|
|
|
|
2020-09-30 22:46:20 +02:00
|
|
|
.media__info-expand {
|
|
|
|
margin-top: var(--spacing-s);
|
|
|
|
}
|
|
|
|
|
2020-08-13 21:06:43 +02:00
|
|
|
.media__info-text-preview {
|
|
|
|
@extend .media__info-text;
|
|
|
|
|
|
|
|
max-height: 5rem;
|
|
|
|
overflow: auto;
|
|
|
|
padding: var(--spacing-xxs) 0; // for scrollbar to auto-hide
|
|
|
|
}
|
|
|
|
|
2019-11-22 22:13:00 +01:00
|
|
|
.media__actions {
|
2021-03-11 18:08:11 +01:00
|
|
|
@include font-sans;
|
2020-11-10 07:10:22 +01:00
|
|
|
position: relative;
|
2019-11-22 22:13:00 +01:00
|
|
|
display: flex;
|
2020-02-10 21:49:43 +01:00
|
|
|
flex-wrap: wrap;
|
2019-11-22 22:13:00 +01:00
|
|
|
margin-top: 0;
|
2020-01-06 19:32:35 +01:00
|
|
|
|
2020-09-30 22:46:20 +02:00
|
|
|
> *:not(:last-child) {
|
|
|
|
margin-right: var(--spacing-m);
|
|
|
|
}
|
|
|
|
|
2020-04-01 20:43:50 +02:00
|
|
|
@media (max-width: $breakpoint-small) {
|
2020-06-01 19:03:19 +02:00
|
|
|
padding-top: var(--spacing-s);
|
2020-04-01 20:43:50 +02:00
|
|
|
|
|
|
|
> * {
|
2020-06-01 19:03:19 +02:00
|
|
|
margin-right: var(--spacing-s);
|
|
|
|
margin-bottom: var(--spacing-s);
|
2020-04-01 20:43:50 +02:00
|
|
|
}
|
|
|
|
}
|
2020-01-06 19:32:35 +01:00
|
|
|
}
|
2020-10-30 04:47:18 +01:00
|
|
|
|
|
|
|
.media__details {
|
|
|
|
@extend .help;
|
|
|
|
font-size: var(--font-xxsmall);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-04-26 21:19:17 +02:00
|
|
|
margin-bottom: var(--spacing-s);
|
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: var(--spacing-s);
|
|
|
|
}
|
2020-10-30 04:47:18 +01:00
|
|
|
}
|