2018-12-19 00:44:53 -05:00
|
|
|
// M E D I A
|
2019-02-14 21:52:10 -04:00
|
|
|
// T H U M B
|
2018-12-19 00:44:53 -05:00
|
|
|
|
2019-02-14 21:52:10 -04:00
|
|
|
.media__thumb {
|
|
|
|
@include thumbnail;
|
2020-01-29 11:38:46 -05:00
|
|
|
position: relative;
|
2022-02-11 19:50:55 +01:00
|
|
|
border-radius: var(--border-radius-thumbnail);
|
2019-07-21 17:31:22 -04:00
|
|
|
object-fit: cover;
|
2019-12-09 12:25:13 -05:00
|
|
|
background-color: var(--color-placeholder-background);
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
2022-02-11 19:50:55 +01:00
|
|
|
box-shadow: 0px 0px 0px 1px rgba(var(--color-primary-dynamic), 0.3) inset;
|
2018-12-19 00:44:53 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// M E D I A
|
2019-02-14 21:52:10 -04:00
|
|
|
// T I T L E
|
2018-12-19 00:44:53 -05:00
|
|
|
|
2019-03-28 12:53:13 -04:00
|
|
|
.media__uri {
|
2019-11-22 16:13:00 -05:00
|
|
|
position: absolute;
|
|
|
|
transform: translateY(-130%);
|
2020-10-28 15:18:58 -04:00
|
|
|
display: flex;
|
2019-11-22 16:13:00 -05:00
|
|
|
font-size: var(--font-xsmall);
|
|
|
|
color: var(--color-text-subtitle);
|
2020-10-28 15:18:58 -04:00
|
|
|
font-weight: var(--font-weight-base);
|
2019-12-18 00:27:08 -05:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
position: static;
|
|
|
|
transform: none;
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-bottom: var(--spacing-xs);
|
2020-05-11 10:50:32 -04:00
|
|
|
max-width: 100%;
|
|
|
|
white-space: nowrap;
|
2019-12-18 00:27:08 -05:00
|
|
|
}
|
2020-07-16 09:59:52 +08:00
|
|
|
}
|
|
|
|
|
2019-01-11 11:34:36 -05:00
|
|
|
// M E D I A
|
|
|
|
// S U B T I T L E
|
|
|
|
|
|
|
|
.media__subtitle {
|
2019-06-27 16:27:38 -04:00
|
|
|
align-self: flex-start;
|
2019-11-22 16:13:00 -05:00
|
|
|
color: var(--color-text-subtitle);
|
2020-01-08 14:20:30 -05:00
|
|
|
font-size: var(--font-small);
|
2019-01-11 11:34:36 -05:00
|
|
|
}
|
|
|
|
|
2020-09-30 16:46:20 -04:00
|
|
|
.media__subtitle--centered {
|
|
|
|
@extend .media__subtitle;
|
2021-03-11 12:08:11 -05:00
|
|
|
align-self: auto;
|
2020-09-30 16:46:20 -04:00
|
|
|
align-items: center;
|
|
|
|
display: flex;
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
.media__subtitle--centered::before {
|
|
|
|
content: '•';
|
|
|
|
margin-right: var(--spacing-s);
|
|
|
|
}
|
2020-09-30 16:46:20 -04:00
|
|
|
}
|
|
|
|
|
2019-11-22 16:13:00 -05:00
|
|
|
.media__subtitle--between {
|
|
|
|
@extend .media__subtitle;
|
|
|
|
display: flex;
|
2021-04-03 19:44:51 -07:00
|
|
|
justify-content: space-between;
|
|
|
|
align-items: flex-end;
|
|
|
|
flex-direction: row;
|
2021-04-23 15:59:48 -04:00
|
|
|
flex-wrap: wrap;
|
2020-09-30 16:46:20 -04:00
|
|
|
|
2021-04-03 19:44:51 -07:00
|
|
|
@media (max-width: $breakpoint-medium) {
|
|
|
|
display: block;
|
2020-09-30 16:46:20 -04:00
|
|
|
}
|
2019-01-11 11:34:36 -05:00
|
|
|
}
|
|
|
|
|
2018-12-19 00:44:53 -05:00
|
|
|
.media__info-text {
|
2019-05-29 19:32:06 -06:00
|
|
|
word-break: break-word;
|
2018-12-19 00:44:53 -05:00
|
|
|
|
|
|
|
&:not(:last-of-type) {
|
2020-06-01 13:03:19 -04:00
|
|
|
margin-bottom: var(--spacing-m);
|
2018-12-19 00:44:53 -05:00
|
|
|
}
|
2019-01-07 18:29:40 -05:00
|
|
|
|
2019-11-22 16:13:00 -05:00
|
|
|
&.media__info-text--constrained {
|
2019-05-30 10:57:58 -06:00
|
|
|
max-width: 50rem;
|
2022-02-11 19:50:55 +01:00
|
|
|
font-size: var(--font-small);
|
2019-05-29 19:32:06 -06:00
|
|
|
}
|
2018-12-19 00:44:53 -05:00
|
|
|
}
|
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
.media__info-text--contracted {
|
|
|
|
margin-top: var(--spacing-m);
|
|
|
|
max-height: 5rem;
|
|
|
|
overflow: hidden;
|
|
|
|
font-size: var(--font-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__info-text--expanded {
|
|
|
|
margin-top: var(--spacing-m);
|
|
|
|
max-height: auto;
|
|
|
|
font-size: var(--font-small);
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__info-text--contracted,
|
2020-09-30 16:46:20 -04:00
|
|
|
.media__info-text--expanded {
|
|
|
|
margin-top: var(--spacing-m);
|
2022-02-01 17:28:18 -03:00
|
|
|
max-width: 50rem;
|
2020-09-30 16:46:20 -04:00
|
|
|
max-height: auto;
|
2022-02-01 17:28:18 -03:00
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
margin-top: 0px;
|
|
|
|
}
|
2020-09-30 16:46:20 -04:00
|
|
|
}
|
|
|
|
|
2022-02-01 17:28:18 -03:00
|
|
|
.media__info-text--contracted {
|
|
|
|
@extend .media__info-text--expanded;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.mediaInfo__description {
|
|
|
|
max-height: 5rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
|
|
.mediaInfo__description {
|
|
|
|
margin-top: var(--spacing-s);
|
|
|
|
}
|
2020-09-30 16:46:20 -04:00
|
|
|
}
|
|
|
|
|
2020-09-11 23:42:20 +08:00
|
|
|
.media__info-text--fade {
|
2022-02-11 19:50:55 +01:00
|
|
|
// -webkit-mask-image: -webkit-gradient(linear, left 30%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
|
2021-05-14 13:51:55 -04:00
|
|
|
overflow-wrap: anywhere;
|
2022-02-01 17:23:48 -03:00
|
|
|
|
|
|
|
// both needed for compatibility
|
|
|
|
-webkit-mask-image: -webkit-gradient(linear, left 55%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
|
|
|
|
mask-image: -webkit-gradient(linear, left 55%, left bottom, from(rgba(0, 0, 0, 1)), to(rgba(0, 0, 0, 0)));
|
2020-09-11 23:42:20 +08:00
|
|
|
}
|
|
|
|
|
2020-09-30 16:46:20 -04:00
|
|
|
.media__info-expand {
|
|
|
|
margin-top: var(--spacing-s);
|
|
|
|
}
|
|
|
|
|
2020-08-14 03:06:43 +08: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 16:13:00 -05:00
|
|
|
.media__actions {
|
2021-03-11 12:08:11 -05:00
|
|
|
@include font-sans;
|
2020-11-10 01:10:22 -05:00
|
|
|
position: relative;
|
2019-11-22 16:13:00 -05:00
|
|
|
display: flex;
|
2022-02-11 19:50:55 +01:00
|
|
|
// flex-wrap: wrap;
|
2019-11-22 16:13:00 -05:00
|
|
|
margin-top: 0;
|
2020-01-06 13:32:35 -05:00
|
|
|
|
2020-09-30 16:46:20 -04:00
|
|
|
> *:not(:last-child) {
|
|
|
|
margin-right: var(--spacing-m);
|
|
|
|
}
|
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
.button--file-action {
|
|
|
|
background-color: unset;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button {
|
|
|
|
&:hover {
|
|
|
|
color: var(--color-link);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
stroke: var(--color-link);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-like {
|
|
|
|
&:hover {
|
|
|
|
.button__label {
|
|
|
|
color: var(--color-fire) !important;
|
|
|
|
}
|
|
|
|
svg {
|
|
|
|
stroke: var(--color-fire);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-dislike {
|
|
|
|
&:hover {
|
|
|
|
.button__label {
|
|
|
|
color: var(--color-slime) !important;
|
|
|
|
}
|
|
|
|
svg {
|
|
|
|
stroke: var(--color-slime);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ratio-wrapper {
|
|
|
|
position: relative;
|
|
|
|
width: 100%;
|
2022-02-14 13:53:18 +01:00
|
|
|
max-width: 164px;
|
2022-02-14 12:54:13 +01:00
|
|
|
min-width: 134px;
|
2022-02-11 19:50:55 +01:00
|
|
|
margin-right: var(--spacing-m);
|
|
|
|
|
|
|
|
.ratio-bar {
|
|
|
|
position: absolute;
|
|
|
|
display: flex;
|
|
|
|
left: 0px;
|
|
|
|
bottom: -2px;
|
|
|
|
width: 100%;
|
|
|
|
height: 3px;
|
|
|
|
background-color: var(--color-text);
|
|
|
|
z-index: 2;
|
|
|
|
border-radius: 2px;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.ratio-bar-like {
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--color-fire);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ratio-bar-dislike {
|
|
|
|
height: 100%;
|
|
|
|
background-color: var(--color-slime);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button-dislike {
|
|
|
|
margin-right: 0px;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: $breakpoint-small) {
|
2022-02-14 11:21:15 +01:00
|
|
|
max-width: unset;
|
2022-02-14 11:23:21 +01:00
|
|
|
min-width: unset;
|
2022-02-11 19:50:55 +01:00
|
|
|
margin-right: 0px;
|
|
|
|
.ratio-bar {
|
|
|
|
height: 1px;
|
|
|
|
bottom: -1px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-01 14:43:50 -04:00
|
|
|
@media (max-width: $breakpoint-small) {
|
2022-02-11 19:50:55 +01:00
|
|
|
flex-wrap: wrap;
|
2022-02-01 17:21:28 -03:00
|
|
|
justify-content: space-around !important;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2020-04-01 14:43:50 -04:00
|
|
|
|
2022-02-11 19:50:55 +01:00
|
|
|
> * {
|
|
|
|
margin-right: var(--spacing-s);
|
|
|
|
margin-bottom: var(--spacing-s);
|
2022-02-01 17:21:28 -03:00
|
|
|
}
|
|
|
|
|
|
|
|
.button--file-action {
|
2022-02-11 19:50:55 +01:00
|
|
|
padding: 0 !important;
|
2022-02-01 17:21:28 -03:00
|
|
|
|
|
|
|
.button__content {
|
|
|
|
justify-content: space-between;
|
|
|
|
|
|
|
|
.button__label {
|
|
|
|
margin: 0;
|
2022-02-11 19:50:55 +01:00
|
|
|
margin-top: 2px;
|
|
|
|
margin-left: var(--spacing-xxxs);
|
|
|
|
font-size: var(--font-small);
|
2022-02-01 17:21:28 -03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--file-action--menu {
|
|
|
|
width: unset;
|
2022-02-11 19:50:55 +01:00
|
|
|
// height: 2rem;
|
2020-04-01 14:43:50 -04:00
|
|
|
}
|
2022-02-02 09:48:24 -03:00
|
|
|
|
|
|
|
.icon--Plus {
|
|
|
|
top: -2px;
|
|
|
|
}
|
2022-02-11 19:50:55 +01:00
|
|
|
|
|
|
|
.button--file-action:last-child {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.button--file-action {
|
|
|
|
display: flex;
|
|
|
|
background-color: rgba(var(--color-header-background-base), 1);
|
|
|
|
margin-right: var(--spacing-xxxs);
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
|
|
|
|
margin-bottom: var(--spacing-xxs);
|
|
|
|
.button__label {
|
|
|
|
margin-left: var(--spacing-xxxs);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ratio-wrapper {
|
|
|
|
.button {
|
|
|
|
display: inline-block;
|
|
|
|
background-color: unset;
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ratio-wrapper ~ .button--file-action {
|
|
|
|
flex: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.stretch {
|
|
|
|
margin-top: var(--spacing-xxxs);
|
|
|
|
.button {
|
|
|
|
flex: auto;
|
|
|
|
background-color: var(--color-header-background);
|
|
|
|
margin-right: var(--spacing-xxs);
|
|
|
|
.button__content {
|
|
|
|
justify-content: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.section {
|
|
|
|
margin-right: unset;
|
|
|
|
margin-left: var(--spacing-xxs);
|
|
|
|
.button {
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-04-01 14:43:50 -04:00
|
|
|
}
|
2020-01-06 13:32:35 -05:00
|
|
|
}
|
2020-10-29 23:47:18 -04:00
|
|
|
|
|
|
|
.media__details {
|
|
|
|
@extend .help;
|
|
|
|
font-size: var(--font-xxsmall);
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2021-04-26 15:19:17 -04:00
|
|
|
margin-bottom: var(--spacing-s);
|
2022-02-11 19:50:55 +01:00
|
|
|
color: var(--color-text);
|
2021-04-26 15:19:17 -04:00
|
|
|
|
|
|
|
&:not(:last-child) {
|
|
|
|
margin-bottom: var(--spacing-s);
|
|
|
|
}
|
2020-10-29 23:47:18 -04:00
|
|
|
}
|