lbry-desktop/ui/scss/component/_file-properties.scss

98 lines
1.7 KiB
SCSS
Raw Normal View History

2019-06-11 14:10:58 -04:00
.file-properties {
display: flex;
position: relative;
align-items: center;
2019-11-22 16:13:00 -05:00
font-size: var(--font-small);
color: var(--color-text-help);
margin-left: var(--spacing-medium);
2020-02-11 13:19:09 -05:00
white-space: nowrap;
2019-06-11 14:10:58 -04:00
2019-06-17 16:32:38 -04:00
& > *:not(:last-child) {
margin-right: var(--spacing-small);
2019-06-11 14:10:58 -04:00
}
2019-12-18 00:27:08 -05:00
@media (max-width: $breakpoint-xsmall) {
2019-06-11 14:10:58 -04:00
display: none;
}
}
2019-06-17 16:32:38 -04:00
2020-01-29 10:26:39 -05:00
.file-properties--small {
font-size: var(--font-xsmall);
2020-01-29 11:21:25 -05:00
line-height: 1.2;
margin-left: 0;
position: relative;
.tag {
font-size: var(--font-xsmall);
}
2020-01-29 11:21:25 -05:00
& > *:not(:last-child) {
margin-right: var(--spacing-miniscule);
}
2020-05-11 15:54:07 -04:00
@media (max-width: $breakpoint-xsmall) {
display: none;
}
2020-01-29 10:26:39 -05:00
}
.file-properties__purchased {
position: relative;
display: flex;
align-items: center;
margin-left: var(--spacing-xsmall);
color: var(--color-gray-5);
span,
svg {
position: relative;
fill: white;
}
.icon {
margin-left: 0.5rem;
}
&::before {
position: absolute;
content: '';
left: -0.4rem;
right: -5rem;
height: 1.75rem;
transform: skew(20deg);
background-color: var(--color-purchased);
}
}
.file-properties__not-purchased {
position: relative;
display: flex;
align-items: center;
color: var(--color-purchased-text);
span {
position: relative;
margin-left: 0.75rem;
}
&::before {
position: absolute;
content: '';
left: 0;
right: -5rem;
height: 1.75rem;
background-color: var(--color-purchased-alt);
border: 2px solid var(--color-purchased);
transform: skew(20deg);
}
}
2019-06-17 16:32:38 -04:00
.file-properties--large {
flex-wrap: wrap;
2019-07-21 17:31:22 -04:00
margin-bottom: var(--spacing-large);
2020-01-31 11:43:14 -05:00
margin-left: 0;
2019-06-17 16:32:38 -04:00
& > * {
margin-top: var(--spacing-small);
}
}