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;
|
2019-05-08 03:29:30 +02:00
|
|
|
border-radius: var(--card-radius);
|
2019-07-21 23:31:22 +02:00
|
|
|
object-fit: cover;
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-02-15 02:52:10 +01:00
|
|
|
&:not(.media__thumb--nsfw) {
|
|
|
|
background-color: $lbry-gray-2;
|
|
|
|
background-position: center;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: cover;
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-06-29 00:21:21 +02:00
|
|
|
[data-mode='dark'] & {
|
2019-07-01 20:42:32 +02:00
|
|
|
background-color: var(--dm-color-04);
|
2019-02-15 02:52:10 +01:00
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2019-02-15 02:52:10 +01:00
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-02-15 02:52:10 +01:00
|
|
|
.media__thumb--nsfw {
|
|
|
|
background-color: $lbry-grape-5;
|
|
|
|
background-image: linear-gradient(to bottom right, $lbry-teal-3, $lbry-grape-5 100%);
|
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-02-15 02:52:10 +01:00
|
|
|
.media__title {
|
2019-11-07 20:39:22 +01:00
|
|
|
font-weight: var(--font-weight-bold);
|
2019-02-15 02:52:10 +01:00
|
|
|
white-space: normal;
|
2019-07-21 23:31:22 +02:00
|
|
|
font-size: var(--font-title);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-02-15 02:52:10 +01:00
|
|
|
.media__title--large {
|
2019-07-09 04:41:48 +02:00
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
text-overflow: ellipsis;
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-right: var(--spacing-small);
|
2019-01-08 21:55:55 +01:00
|
|
|
}
|
|
|
|
|
2019-03-28 17:53:13 +01:00
|
|
|
.media__uri {
|
2019-06-17 22:32:38 +02:00
|
|
|
min-width: 0;
|
|
|
|
margin-right: var(--spacing-small);
|
2019-07-14 00:34:13 +02:00
|
|
|
max-width: 100%;
|
2019-03-28 17:53:13 +01:00
|
|
|
}
|
|
|
|
|
2019-07-21 23:31:22 +02:00
|
|
|
.media__uri--large {
|
|
|
|
margin-bottom: var(--spacing-medium);
|
|
|
|
font-size: var(--font-multiplier-medium);
|
|
|
|
}
|
|
|
|
|
2019-04-03 06:17:00 +02:00
|
|
|
.media__insufficient-credits {
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
// M E D I A
|
|
|
|
// A C T I O N S
|
|
|
|
|
|
|
|
.media__actions {
|
|
|
|
display: flex;
|
2019-01-08 00:29:40 +01:00
|
|
|
flex-wrap: wrap;
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-top: var(--spacing-small);
|
|
|
|
margin-bottom: var(--spacing-small);
|
2019-07-21 23:31:22 +02:00
|
|
|
|
|
|
|
&:first-child {
|
|
|
|
margin-top: var(--spacing-miniscule);
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.media__actions--between {
|
|
|
|
justify-content: space-between;
|
2019-07-22 04:05:37 +02:00
|
|
|
|
|
|
|
&:last-of-type:not(:only-of-type) {
|
2019-07-23 22:13:06 +02:00
|
|
|
margin: 0;
|
2019-07-22 04:05:37 +02:00
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-07-09 04:41:48 +02:00
|
|
|
.media__actions--nowrap {
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
.media__action-group {
|
|
|
|
> *:not(:last-child) {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-right: var(--spacing-medium);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__action-group--large {
|
|
|
|
display: flex;
|
2019-07-21 23:31:22 +02:00
|
|
|
font-size: var(--font-multiplier-medium);
|
2019-07-23 22:13:06 +02:00
|
|
|
margin-bottom: var(--spacing-large);
|
2019-08-06 05:25:33 +02:00
|
|
|
line-height: 1;
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
> * {
|
|
|
|
&:not(:last-child) {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-right: var(--spacing-large);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
}
|
2019-02-21 23:45:17 +01:00
|
|
|
|
|
|
|
&:not(:last-child) {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-right: var(--spacing-large);
|
2019-02-21 23:45:17 +01:00
|
|
|
}
|
2018-12-19 06:44:53 +01: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-06-27 08:18:45 +02:00
|
|
|
color: rgba($lbry-black, 0.6);
|
2019-02-18 18:24:56 +01:00
|
|
|
|
|
|
|
[data-mode='dark'] & {
|
|
|
|
color: rgba($lbry-white, 0.8);
|
|
|
|
}
|
2019-01-11 17:34:36 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.media__subtitle--large {
|
|
|
|
display: block;
|
|
|
|
|
|
|
|
> button {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__subtitle__channel {
|
2019-11-07 20:39:22 +01:00
|
|
|
font-weight: var(--font-weight-bold);
|
2019-06-27 08:18:45 +02:00
|
|
|
margin: var(--spacing-small) 0;
|
2019-01-11 17:34:36 +01:00
|
|
|
}
|
|
|
|
|
2018-12-19 06:44:53 +01:00
|
|
|
// M E D I A
|
|
|
|
// I N F O
|
|
|
|
|
|
|
|
.media__info {
|
|
|
|
word-wrap: break-word;
|
|
|
|
|
2019-06-29 00:21:21 +02:00
|
|
|
[data-mode='dark'] & {
|
2018-12-19 06:44:53 +01:00
|
|
|
border-color: rgba($lbry-gray-5, 0.2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.media__info--large {
|
2019-06-17 22:32:38 +02:00
|
|
|
margin-top: var(--spacing-medium);
|
2019-07-21 23:31:22 +02:00
|
|
|
font-size: var(--font-body);
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-06-29 00:21:21 +02:00
|
|
|
[data-mode='dark'] & {
|
2018-12-19 06:44:53 +01:00
|
|
|
border-color: rgba($lbry-gray-5, 0.2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.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) {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-bottom: var(--spacing-large);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
2019-01-08 00:29:40 +01:00
|
|
|
|
2019-05-30 03:32:06 +02:00
|
|
|
&.media__info-text--small {
|
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
|
|
|
}
|
|
|
|
|
|
|
|
.media__info-title {
|
2019-11-07 20:39:22 +01:00
|
|
|
font-weight: var(--font-weight-base);
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-bottom: var(--spacing-small);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|