527 lines
9.4 KiB
SCSS
527 lines
9.4 KiB
SCSS
.claim-list {
|
|
.claim-preview__wrapper {
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
}
|
|
|
|
.claim-list__header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
margin: var(--spacing-m) 0;
|
|
margin-top: 0;
|
|
font-size: var(--font-body);
|
|
|
|
.spinner {
|
|
margin-left: var(--spacing-m);
|
|
}
|
|
}
|
|
|
|
.claim-list__dropdown {
|
|
padding: 0 var(--spacing-m);
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
.claim-list__header-label {
|
|
position: absolute;
|
|
transform: translateY(-130%);
|
|
font-size: var(--font-xsmall);
|
|
color: var(--color-text-subtitle);
|
|
|
|
.icon {
|
|
margin-right: var(--spacing-xs);
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
position: static;
|
|
transform: none;
|
|
}
|
|
}
|
|
|
|
.claim-list__conjuction {
|
|
color: var(--color-text-subtitle);
|
|
font-size: var(--font-small);
|
|
}
|
|
|
|
.claim-list__alt-controls {
|
|
align-self: flex-start;
|
|
display: flex;
|
|
align-items: center;
|
|
margin-left: auto;
|
|
// padding-top: var(--spacing-m);
|
|
|
|
& > * {
|
|
margin-left: var(--spacing-s);
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.claim-preview__wrapper {
|
|
padding: var(--spacing-m);
|
|
list-style: none;
|
|
}
|
|
|
|
.claim-preview__wrapper--notice {
|
|
background-color: var(--color-notice);
|
|
}
|
|
|
|
.claim-preview__wrapper--inline {
|
|
padding: 0;
|
|
}
|
|
|
|
.claim-preview__wrapper--small {
|
|
padding: var(--spacing-s);
|
|
}
|
|
|
|
.claim-preview {
|
|
flex: 1;
|
|
display: flex;
|
|
position: relative;
|
|
overflow: visible;
|
|
|
|
&:not(.claim-preview--inline):not(.claim-preview--pending):not(.claim-preview--inactive) {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.media__thumb {
|
|
overflow: hidden;
|
|
$width: var(--file-list-thumbnail-width);
|
|
width: $width;
|
|
@include handleClaimListGifThumbnail($width);
|
|
|
|
flex-shrink: 0;
|
|
margin-right: var(--spacing-m);
|
|
}
|
|
|
|
.channel-thumbnail {
|
|
@include handleChannelGif(6rem);
|
|
}
|
|
|
|
&:hover {
|
|
.claim-preview__hover-actions {
|
|
display: block;
|
|
}
|
|
.claim-preview__file-property-overlay {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
font-size: 14px;
|
|
|
|
.channel-thumbnail {
|
|
@include handleChannelGif(5rem);
|
|
}
|
|
}
|
|
}
|
|
|
|
.claim-preview--large {
|
|
border: none;
|
|
|
|
&:hover {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.media__thumb {
|
|
width: 14rem;
|
|
@include handleClaimListGifThumbnail(14rem);
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
width: 5rem;
|
|
}
|
|
}
|
|
|
|
.channel-thumbnail {
|
|
@include handleChannelGif(7.5rem);
|
|
}
|
|
}
|
|
|
|
.claim-preview--small {
|
|
.channel-thumbnail {
|
|
@include handleChannelGif(4rem);
|
|
}
|
|
}
|
|
|
|
.claim-preview--pending {
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.claim-preview--padded {
|
|
padding: var(--spacing-s);
|
|
}
|
|
|
|
.claim-preview--inline {
|
|
.channel-thumbnail {
|
|
@include handleChannelGif(var(--channel-thumbnail-width--small));
|
|
}
|
|
|
|
.claim-preview__actions {
|
|
align-self: flex-end;
|
|
margin-top: 0;
|
|
margin-bottom: auto;
|
|
justify-content: flex-end;
|
|
width: auto;
|
|
}
|
|
|
|
.claim-preview__text {
|
|
width: 100%;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
@media (max-width: $breakpoint-xsmall) {
|
|
.claim-preview__text {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.claim-preview__actions {
|
|
align-self: flex-start;
|
|
}
|
|
}
|
|
}
|
|
|
|
.claim-preview__text {
|
|
width: 100%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.claim-preview__title {
|
|
font-weight: var(--font-weight-bold);
|
|
font-size: var(--font-body);
|
|
margin-right: auto;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
max-width: 100%;
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.claim-preview-metadata {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
margin-bottom: var(--spacing-s);
|
|
}
|
|
}
|
|
|
|
.claim-preview-info {
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.claim-preview-info,
|
|
.claim-preview-properties {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.claim-preview__actions {
|
|
align-self: flex-end;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: auto;
|
|
width: 100%;
|
|
}
|
|
|
|
.claim-preview__primary-actions {
|
|
@extend .section__actions;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.claim-preview__actions--header {
|
|
@extend .claim-preview__actions;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.claim-preview__button {
|
|
margin-left: 2rem;
|
|
}
|
|
|
|
.claim-preview-properties {
|
|
align-items: flex-end;
|
|
flex: 1;
|
|
font-size: var(--font-small);
|
|
color: var(--color-text-subtitle);
|
|
}
|
|
|
|
.claim-upload {
|
|
flex: 1;
|
|
display: flex;
|
|
position: relative;
|
|
overflow: visible;
|
|
padding: var(--spacing-m);
|
|
|
|
.media__thumb {
|
|
width: var(--file-list-thumbnail-width);
|
|
flex-shrink: 0;
|
|
margin-right: var(--spacing-m);
|
|
}
|
|
}
|
|
|
|
.claim-upload__progress--outer {
|
|
width: 100%;
|
|
}
|
|
|
|
.claim-upload__progress--inner {
|
|
background: var(--color-primary-alt);
|
|
padding: var(--spacing-xxs);
|
|
}
|
|
|
|
//
|
|
// The _other_ way to view claims
|
|
// A grid of tiles
|
|
// It should probably go into it's own file once we add more to it
|
|
//
|
|
.claim-grid {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
list-style: none;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.claim-grid__wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
&:not(:first-of-type) {
|
|
margin-top: var(--spacing-l);
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
&:not(:first-of-type) {
|
|
margin-top: var(--spacing-m);
|
|
}
|
|
}
|
|
}
|
|
|
|
.claim-grid__header {
|
|
margin-top: var(--spacing-m);
|
|
margin-bottom: var(--spacing-m);
|
|
display: inline-block;
|
|
|
|
.button {
|
|
&:hover {
|
|
text-decoration: none;
|
|
}
|
|
}
|
|
|
|
.icon__wrapper {
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
background-color: var(--color-primary-alt);
|
|
margin-right: var(--spacing-m);
|
|
|
|
.icon {
|
|
stroke: var(--color-primary);
|
|
}
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
height: 1.5rem;
|
|
width: 1.5rem;
|
|
}
|
|
}
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
margin-top: var(--spacing-m);
|
|
}
|
|
}
|
|
|
|
.claim-grid__title {
|
|
font-weight: 300;
|
|
font-size: var(--font-large);
|
|
}
|
|
|
|
.claim-grid__title--secondary {
|
|
margin-left: auto;
|
|
}
|
|
|
|
.claim-grid__help {
|
|
margin-bottom: 12px;
|
|
|
|
svg {
|
|
stroke: var(--color-text-subtitle);
|
|
}
|
|
}
|
|
|
|
.claim-preview--tile {
|
|
margin-bottom: var(--spacing-m);
|
|
margin-right: 0;
|
|
margin-top: 0;
|
|
margin-left: var(--spacing-m);
|
|
justify-content: flex-start;
|
|
list-style: none;
|
|
|
|
.media__thumb {
|
|
border-bottom-right-radius: 0;
|
|
border-bottom-left-radius: 0;
|
|
}
|
|
|
|
&:hover {
|
|
cursor: pointer;
|
|
}
|
|
|
|
@media (min-width: $breakpoint-large) {
|
|
$width: calc((100% - var(--spacing-m) * 5) / 6);
|
|
width: $width;
|
|
@include handleClaimTileGifThumbnail($width);
|
|
|
|
&:first-child,
|
|
&:nth-child(6n + 1) {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: $breakpoint-large) and (min-width: $breakpoint-medium) {
|
|
$width: calc((100% - var(--spacing-m) * 3) / 4);
|
|
width: $width;
|
|
@include handleClaimTileGifThumbnail($width);
|
|
|
|
&:first-child,
|
|
&:nth-child(4n + 1) {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: $breakpoint-medium) and (min-width: $breakpoint-small) {
|
|
$width: calc((100vw - var(--side-nav-width--micro) - var(--spacing-xl) * 3) / 3);
|
|
width: $width;
|
|
@include handleClaimTileGifThumbnail($width);
|
|
|
|
&:first-child,
|
|
&:nth-child(3n + 1) {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.channel-thumbnail {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: $breakpoint-small) {
|
|
$width: 100%;
|
|
width: $width;
|
|
@include handleClaimTileGifThumbnail($width);
|
|
margin-left: 0;
|
|
|
|
&:not(:first-child) {
|
|
margin-top: var(--spacing-s);
|
|
}
|
|
|
|
.channel-thumbnail {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.claim-tile__title {
|
|
margin: var(--spacing-s);
|
|
font-weight: 600;
|
|
color: var(--color-text);
|
|
font-size: var(--font-small);
|
|
min-height: 2rem;
|
|
|
|
@media (min-width: $breakpoint-small) {
|
|
min-height: 2.5rem;
|
|
}
|
|
}
|
|
|
|
.claim-tile__info {
|
|
display: flex;
|
|
margin-top: var(--spacing-s);
|
|
padding: var(--spacing-s);
|
|
border-top: 1px solid var(--color-border);
|
|
color: var(--color-subtitle);
|
|
|
|
.channel-thumbnail {
|
|
@include handleChannelGif(2.1rem);
|
|
margin-right: var(--spacing-s);
|
|
}
|
|
}
|
|
|
|
.claim-tile__about {
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-size: var(--font-xsmall);
|
|
color: var(--color-text-subtitle);
|
|
}
|
|
|
|
.claim-tile__publishes {
|
|
font-size: var(--font-xsmall);
|
|
}
|
|
|
|
.claim-tile__about--channel {
|
|
@extend .claim-tile__about;
|
|
flex: 1;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 2.1rem;
|
|
font-size: var(--font-body);
|
|
}
|
|
|
|
.claim-preview__file-property-overlay {
|
|
position: absolute;
|
|
bottom: var(--spacing-xxs);
|
|
right: var(--spacing-xxs);
|
|
background-color: var(--color-black);
|
|
padding: 0.3rem;
|
|
border-radius: var(--border-radius);
|
|
opacity: 0.7;
|
|
z-index: 2;
|
|
|
|
.file-properties {
|
|
color: var(--color-white);
|
|
}
|
|
|
|
.file-price {
|
|
padding: 0.1rem;
|
|
}
|
|
}
|
|
|
|
.claim-preview--tile {
|
|
&:hover {
|
|
.claim-preview__hover-actions {
|
|
display: block;
|
|
}
|
|
.claim-preview__file-property-overlay {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.claim-preview__repost-author {
|
|
transform: translateY(calc(var(--spacing-xs) * -1));
|
|
font-size: var(--font-xsmall);
|
|
color: var(--color-text-subtitle);
|
|
|
|
.icon {
|
|
margin-right: var(--spacing-xxs);
|
|
margin-bottom: -1px; // Offset it slightly because it doesn't look aligned next to all lowercase text + the @ from a channel
|
|
}
|
|
}
|
|
|
|
.claim-tile__repost-author {
|
|
margin: var(--spacing-s);
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.claim-preview__hover-actions {
|
|
display: none;
|
|
position: absolute;
|
|
top: var(--spacing-xxs);
|
|
right: var(--spacing-xxs);
|
|
|
|
& > * {
|
|
color: var(--color-black);
|
|
background-color: var(--color-white);
|
|
padding: var(--spacing-xs);
|
|
border-radius: var(--border-radius);
|
|
}
|
|
}
|