2018-12-19 06:44:53 +01:00
|
|
|
// M E D I A
|
2019-02-15 02:52:10 +01:00
|
|
|
// C A R D
|
|
|
|
.media-card {
|
2019-05-08 03:29:30 +02:00
|
|
|
@include mediaThumbHoverZoom;
|
2019-02-15 02:52:10 +01:00
|
|
|
font-size: 1.2rem;
|
2019-05-08 03:29:30 +02:00
|
|
|
border-radius: var(--card-radius);
|
2018-12-19 06:44:53 +01:00
|
|
|
|
2019-02-15 02:52:10 +01:00
|
|
|
.media__title {
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-bottom: var(--spacing-small);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-01-08 20:40:24 +01:00
|
|
|
// M E D I A
|
|
|
|
// P E N D I N G
|
|
|
|
|
|
|
|
.media--pending {
|
|
|
|
opacity: 0.5;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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);
|
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 {
|
|
|
|
font-weight: 600;
|
|
|
|
white-space: normal;
|
|
|
|
font-size: 1em;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
2019-02-15 02:52:10 +01:00
|
|
|
.media__title--large {
|
|
|
|
cursor: default;
|
2019-07-09 04:41:48 +02:00
|
|
|
overflow: hidden;
|
|
|
|
width: 100%;
|
|
|
|
text-overflow: ellipsis;
|
2019-02-15 02:52:10 +01:00
|
|
|
font-size: 2rem;
|
|
|
|
line-height: 1.33;
|
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-03-29 15:23:32 +01:00
|
|
|
font-size: 1.1rem;
|
2019-06-17 22:32:38 +02:00
|
|
|
min-width: 0;
|
|
|
|
margin-right: var(--spacing-small);
|
2019-03-28 17:53:13 +01:00
|
|
|
}
|
|
|
|
|
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);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.media__actions--between {
|
|
|
|
justify-content: space-between;
|
|
|
|
}
|
|
|
|
|
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-06-11 20:10:58 +02:00
|
|
|
margin-top: var(--spacing-small);
|
|
|
|
margin-bottom: var(--spacing-small);
|
2018-12-19 06:44:53 +01:00
|
|
|
|
|
|
|
> * {
|
|
|
|
font-size: 1.15rem;
|
|
|
|
|
|
|
|
&: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 E X T
|
|
|
|
//
|
|
|
|
// Wrapper around low level media information (date, channel)
|
|
|
|
//
|
|
|
|
.media__subtext {
|
|
|
|
color: rgba($lbry-black, 0.8);
|
2019-02-15 02:52:10 +01:00
|
|
|
font-size: 0.9em;
|
|
|
|
|
2019-02-13 17:27:20 +01:00
|
|
|
html[data-mode='dark'] & {
|
2019-01-11 17:34:36 +01:00
|
|
|
color: rgba($lbry-white, 0.7);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-15 02:52:10 +01:00
|
|
|
.media__subtext--large {
|
|
|
|
font-size: 1.2em;
|
|
|
|
}
|
|
|
|
|
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-02-15 02:52:10 +01:00
|
|
|
font-size: 0.8em;
|
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 {
|
|
|
|
font-weight: 600;
|
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-07-01 18:47:10 +02:00
|
|
|
border-top: 1px solid $lbry-gray-1;
|
2019-06-17 22:32:38 +02:00
|
|
|
margin-top: var(--spacing-medium);
|
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 {
|
|
|
|
font-size: 1.15rem;
|
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
|
|
|
}
|
|
|
|
|
2019-01-08 00:29:40 +01:00
|
|
|
&.media__info-text--center {
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-06-17 22:32:38 +02:00
|
|
|
|
|
|
|
.button__label {
|
|
|
|
text-align: left;
|
|
|
|
white-space: normal;
|
|
|
|
}
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.media__info-title {
|
|
|
|
font-size: 1.25rem;
|
|
|
|
font-weight: 500;
|
2019-06-11 20:10:58 +02:00
|
|
|
margin-bottom: var(--spacing-small);
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// M E D I A
|
|
|
|
// M E S S A G E
|
|
|
|
|
|
|
|
.media__message {
|
2019-01-11 17:34:36 +01:00
|
|
|
font-size: 1.1rem;
|
2019-06-11 20:10:58 +02:00
|
|
|
padding: var(--spacing-medium);
|
|
|
|
margin: var(--spacing-medium) var(--spacing-large);
|
2019-02-13 17:27:20 +01:00
|
|
|
white-space: normal;
|
2018-12-19 06:44:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// M E D I A
|
|
|
|
// T E X T
|
|
|
|
|
|
|
|
.media__text {
|
|
|
|
font-size: 2.5rem;
|
|
|
|
|
2019-06-29 00:21:21 +02:00
|
|
|
[data-mode='dark'] & {
|
2018-12-19 06:44:53 +01:00
|
|
|
color: $lbry-white;
|
|
|
|
}
|
|
|
|
}
|