lbry-desktop/src/ui/scss/component/_claim-list.scss

180 lines
3.6 KiB
SCSS
Raw Normal View History

.claim-list__header {
2019-06-11 20:10:58 +02:00
display: flex;
align-items: center;
2019-06-20 02:57:51 +02:00
min-height: 4.5rem;
2019-06-11 20:10:58 +02:00
padding: var(--spacing-medium);
2019-06-17 22:32:38 +02:00
font-size: 1rem; // Ensures select & header text have same font-size
2019-06-11 20:10:58 +02:00
color: $lbry-white;
border-top-left-radius: var(--card-radius);
border-top-right-radius: var(--card-radius);
& > *:not(:last-child) {
margin-right: 0.5rem;
}
fieldset-section {
margin-bottom: 0;
}
2019-06-17 22:32:38 +02:00
// Normal link buttons are too dark on the black file list background
.button--link {
color: $lbry-teal-3;
2019-07-01 03:52:38 +02:00
font-size: 1.2em;
2019-06-17 22:32:38 +02:00
&:hover {
color: $lbry-teal-1;
}
}
2019-06-20 02:57:51 +02:00
// Fix this in @lbry/components, we shouldn't need to be this specific
checkbox-element input[type='checkbox']:checked + label {
color: $lbry-white;
}
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
color: var(--dm-color-01);
2019-06-29 00:21:21 +02:00
}
2019-06-17 22:32:38 +02:00
}
.claim-list__header--small {
2019-06-17 22:32:38 +02:00
height: 3rem;
min-height: 3rem;
2019-06-17 22:32:38 +02:00
font-size: 1em;
2019-06-11 20:10:58 +02:00
}
.claim-list__dropdown {
2019-06-11 20:10:58 +02:00
background-position: 95% center;
background-repeat: no-repeat;
background-size: 1.2rem;
background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg' fill='%23ffffff'%3E%3Cpath d='M17.172, 31.172c1.562, -1.562 4.095, -1.562 5.656, 0l25.172, 25.171l25.172, -25.171c1.562, -1.562 4.095, -1.562 5.656, 0c1.562, 1.562 1.562, 4.095 0, 5.656l-28, 28c-1.562, 1.562 -4.095, 1.562 -5.656, 0l-28, -28c-0.781, -0.781 -1.172, -1.805 -1.172, -2.828c0, -1.023 0.391, -2.047 1.172, -2.828Z'/%3E%3C/svg%3E%0A");
height: 2.5rem;
2019-06-27 08:18:45 +02:00
font-size: 1.3rem;
2019-06-11 20:10:58 +02:00
padding: 0 var(--spacing-medium);
padding-right: var(--spacing-large);
margin-bottom: 0;
border: 1px solid $lbry-white;
color: $lbry-white;
background-color: lighten($lbry-black, 10%);
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
color: var(--dm-color-01);
2019-06-29 00:21:21 +02:00
}
2019-06-11 20:10:58 +02:00
}
.claim-list__header,
.claim-list__dropdown {
2019-06-11 20:10:58 +02:00
background-color: lighten($lbry-black, 10%);
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
background-color: var(--dm-color-07);
2019-06-11 20:10:58 +02:00
}
}
.claim-list__alt-controls {
2019-06-11 20:10:58 +02:00
display: flex;
align-items: center;
margin-left: auto;
2019-06-28 09:33:07 +02:00
font-size: 1.1em;
2019-06-11 20:10:58 +02:00
& > * {
margin-left: var(--spacing-small);
}
}
2019-06-27 08:18:45 +02:00
.claim-preview {
2019-06-11 20:10:58 +02:00
display: flex;
position: relative;
font-size: 1.3rem;
padding: var(--spacing-medium);
cursor: pointer;
overflow: hidden;
&:hover {
background-color: darken($lbry-white, 5%);
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
background-color: var(--dm-color-04);
2019-06-11 20:10:58 +02:00
}
}
.media__thumb {
width: var(--file-list-thumbnail-width);
flex-shrink: 0;
margin-right: var(--spacing-medium);
}
2019-06-29 00:21:21 +02:00
ul & {
&:first-of-type {
border-top: none;
}
}
2019-06-11 20:10:58 +02:00
}
2019-06-27 08:18:45 +02:00
.claim-preview--injected,
2019-06-28 09:33:07 +02:00
.claim-preview {
2019-06-27 22:27:38 +02:00
border-bottom: 1px solid rgba($lbry-teal-5, 0.1);
2019-06-29 00:21:21 +02:00
[data-mode='dark'] & {
2019-07-01 20:42:32 +02:00
border-top: 1px solid var(--dm-color-04);
2019-06-29 00:21:21 +02:00
}
2019-06-11 20:10:58 +02:00
}
2019-06-27 08:18:45 +02:00
.claim-preview--large {
2019-06-11 20:10:58 +02:00
@include mediaThumbHoverZoom;
font-size: 1.6rem;
border-bottom: 0;
padding: 0;
padding-bottom: var(--spacing-medium);
&:hover {
background-color: transparent;
}
.media__thumb {
width: 20rem;
}
}
.claim-list__pending {
cursor: pointer;
opacity: 0.6;
&:hover {
background-color: $lbry-white;
[data-mode='dark'] & {
background-color: lighten($lbry-black, 5%);
}
}
}
2019-06-27 08:18:45 +02:00
.claim-preview-metadata {
2019-06-11 20:10:58 +02:00
display: flex;
flex-direction: column;
width: 100%;
}
2019-06-27 08:18:45 +02:00
.claim-preview-info {
2019-06-11 20:10:58 +02:00
align-items: flex-start;
}
2019-06-27 08:18:45 +02:00
.claim-preview-info,
.claim-preview-properties {
2019-06-11 20:10:58 +02:00
display: flex;
justify-content: space-between;
}
2019-06-27 08:18:45 +02:00
.claim-preview-properties {
2019-06-11 20:10:58 +02:00
align-items: flex-end;
2019-06-27 22:27:38 +02:00
flex: 1;
2019-06-11 20:10:58 +02:00
}
2019-06-27 08:18:45 +02:00
.claim-preview-title {
2019-06-11 20:10:58 +02:00
font-weight: 600;
margin-right: auto;
}
2019-06-27 08:18:45 +02:00
.claim-preview-tags {
2019-06-11 20:10:58 +02:00
margin-left: 0;
}