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

232 lines
3.6 KiB
SCSS
Raw Normal View History

// M E D I A
2019-02-15 02:52:10 +01:00
// C A R D
.media-card {
@include mediaThumbHoverZoom;
2019-02-15 02:52:10 +01:00
font-size: 1.2rem;
border-radius: var(--card-radius);
2019-02-15 02:52:10 +01:00
.media__title {
2019-06-11 20:10:58 +02:00
margin-bottom: var(--spacing-small);
}
}
// M E D I A
// P E N D I N G
.media--pending {
opacity: 0.5;
&:hover {
cursor: default;
}
}
// 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-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 {
font-weight: 600;
white-space: normal;
font-size: 1em;
}
2019-02-15 02:52:10 +01:00
.media__title--large {
cursor: default;
display: inline;
font-size: 2rem;
line-height: 1.33;
2019-06-11 20:10:58 +02:00
margin-right: var(--spacing-small);
}
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
}
.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);
}
.media__actions--between {
justify-content: space-between;
}
.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-06-11 20:10:58 +02:00
margin-top: var(--spacing-small);
margin-bottom: var(--spacing-small);
> * {
font-size: 1.15rem;
&: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
// C O N T E N T
.media__content--large {
2019-06-11 20:10:58 +02:00
padding-right: var(--spacing-large);
}
// 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'] & {
color: rgba($lbry-white, 0.7);
}
}
2019-02-15 02:52:10 +01:00
.media__subtext--large {
font-size: 1.2em;
}
// 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);
}
}
.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;
}
// 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-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);
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
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;
&: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-text--center {
text-align: center;
}
2019-06-17 22:32:38 +02:00
.button__label {
text-align: left;
white-space: normal;
}
}
.media__info-title {
font-size: 1.25rem;
font-weight: 500;
2019-06-11 20:10:58 +02:00
margin-bottom: var(--spacing-small);
}
// M E D I A
// M E S S A G E
.media__message {
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;
}
// 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'] & {
color: $lbry-white;
}
}