lbry-desktop/ui/scss/component/_media.scss

167 lines
2.7 KiB
SCSS
Raw Normal View History

// M E D I A
2019-02-15 02:52:10 +01:00
// T H U M B
2019-02-15 02:52:10 +01:00
.media__thumb {
@include thumbnail;
border-radius: var(--card-radius);
2019-07-21 23:31:22 +02:00
object-fit: cover;
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;
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
}
}
2019-02-15 02:52:10 +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%);
}
// M E D I A
2019-02-15 02:52:10 +01:00
// T I T L E
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);
}
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-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);
}
.media__insufficient-credits {
padding: 10px;
}
// M E D I A
// A C T I O N S
.media__actions {
display: flex;
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);
}
}
.media__actions--between {
justify-content: space-between;
2019-07-22 04:05:37 +02:00
&:last-of-type:not(:only-of-type) {
margin: 0;
2019-07-22 04:05:37 +02:00
}
}
2019-07-09 04:41:48 +02:00
.media__actions--nowrap {
flex-wrap: nowrap;
}
.media__action-group {
> *:not(:last-child) {
2019-06-11 20:10:58 +02:00
margin-right: var(--spacing-medium);
}
}
.media__action-group--large {
display: flex;
2019-07-21 23:31:22 +02:00
font-size: var(--font-multiplier-medium);
margin-bottom: var(--spacing-large);
2019-08-06 05:25:33 +02:00
line-height: 1;
> * {
&:not(:last-child) {
2019-06-11 20:10:58 +02:00
margin-right: var(--spacing-large);
}
}
&:not(:last-child) {
2019-06-11 20:10:58 +02:00
margin-right: var(--spacing-large);
}
}
// 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);
}
}
.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;
}
// 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'] & {
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);
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
border-color: rgba($lbry-gray-5, 0.2);
}
}
.media__info-text {
2019-05-30 03:32:06 +02:00
word-break: break-word;
&:not(:last-of-type) {
2019-06-11 20:10:58 +02:00
margin-bottom: var(--spacing-large);
}
2019-05-30 03:32:06 +02:00
&.media__info-text--small {
max-width: 50rem;
2019-05-30 03:32:06 +02: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);
}