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

241 lines
4 KiB
SCSS
Raw Permalink Normal View History

.search__header {
width: 100%;
2020-06-01 19:03:19 +02:00
margin-bottom: var(--spacing-l);
.card {
color: var(--color-text);
}
2019-02-15 02:52:10 +01:00
.placeholder {
2019-11-22 22:13:00 +01:00
background-color: var(--color-placeholder-background);
2019-02-15 02:52:10 +01:00
}
2018-03-26 23:32:43 +02:00
}
2019-02-18 18:24:56 +01:00
.search__options {
margin-top: var(--spacing-s);
2021-04-07 07:40:34 +02:00
display: none;
2019-02-18 18:24:56 +01:00
fieldset:not(:first-child) {
margin-top: var(--spacing-m);
}
table {
line-height: 1.5;
table-layout: fixed;
}
2021-04-07 07:40:34 +02:00
td {
vertical-align: middle;
}
td:nth-of-type(1) {
2021-04-07 07:40:34 +02:00
width: 25%;
&:not(:first-of-type) {
width: 20%;
}
}
.claim-type-filter {
display: inline-block;
}
.close-button {
visibility: hidden;
}
.close-button--visible {
visibility: visible;
}
.filter-values {
display: flex;
align-items: flex-start;
.button-toggle {
margin-right: 0;
}
select {
@media (min-width: $breakpoint-small) {
min-width: 200px;
}
}
.icon--help {
margin-top: 4px;
}
.button--close {
position: unset;
align-self: center;
margin-left: var(--spacing-s);
}
}
.media-types {
2021-04-07 07:40:34 +02:00
margin-top: var(--spacing-m);
display: flex;
flex-direction: column;
label {
display: flex;
align-items: center;
}
2021-04-07 07:40:34 +02:00
@media (min-width: $breakpoint-small) {
flex-direction: row;
}
2019-02-18 18:24:56 +01:00
}
2019-12-09 22:46:03 +01:00
.radio,
.checkbox {
display: inline-block;
margin-top: 0;
2019-12-09 22:46:03 +01:00
&:not(:first-of-type) {
2021-04-07 07:40:34 +02:00
margin-top: var(--spacing-s);
}
@media (min-width: $breakpoint-small) {
&:not(:first-of-type) {
margin-left: var(--spacing-m);
margin-top: 0;
}
2019-12-09 22:46:03 +01:00
}
}
2019-02-18 18:24:56 +01:00
}
.search__options--expanded {
2021-04-07 07:40:34 +02:00
display: block;
}
.search__legend {
font-weight: var(--font-weight-bold);
font-size: var(--font-small);
padding: var(--spacing-xxs);
}
.search__top-link {
font-weight: var(--font-weight-body);
2021-04-26 21:19:17 +02:00
margin-top: var(--spacing-xs);
}
.search__top-links {
display: flex;
margin-bottom: 0;
.button--secondary:not(:last-child) {
margin-right: var(--spacing-xs);
}
@media (max-width: $breakpoint-small) {
flex-direction: column;
.button--secondary {
height: var(--height-button);
margin-top: var(--spacing-xs);
}
}
}
2021-04-08 17:21:45 +02:00
.recommended-content__toggles {
margin-top: var(--spacing-xs);
display: flex;
2021-04-08 17:21:45 +02:00
button {
padding: 0 var(--spacing-xs);
height: 2rem;
2021-06-29 18:57:22 +02:00
max-width: 15rem;
2021-04-08 17:21:45 +02:00
}
.button-toggle:nth-child(2) {
@media (min-width: $breakpoint-small) {
margin-right: var(--spacing-xs);
}
}
2021-04-08 17:21:45 +02:00
}
.search__channel {
margin-bottom: var(--spacing-l);
fieldset-section {
margin-top: 0;
}
}
.search__channel--popup {
position: relative;
display: inline-block;
width: 100%;
}
.search__channel--popup-results {
position: absolute;
z-index: 99;
top: 100%;
left: 0;
right: 0;
background: rgba(var(--color-header-background-base), 0.9);
color: var(--color-text);
.claim-preview__title {
color: var(--color-text);
}
.button--uri-indicator,
.media__subtitle {
color: rgba(var(--color-text-base), 0.6);
}
.icon--help {
vertical-align: middle;
}
}
.searchPage-wrapper {
.search__header {
.claim-preview__wrapper--channel {
.claim-preview__repost-author {
top: calc(var(--spacing-m) * -1);
left: calc(var(--spacing-m) * -1);
}
}
}
.claim-preview__wrapper {
background-color: rgba(var(--color-header-background-base), 0.6);
.claim-tile__info {
margin-top: 0;
padding-bottom: var(--spacing-xxxs);
.claim-preview-metadata-sub-upload {
margin-top: 3px;
}
}
}
.claim-preview__wrapper--channel {
position: relative;
border-radius: var(--border-radius);
background: rgba(var(--color-header-background-base), 0.6);
padding: var(--spacing-m) !important;
.claim__menu-button {
right: calc(var(--spacing-m) - 8px) !important;
margin-top: var(--spacing-xxs);
.icon {
stroke: var(--color-text);
}
&:hover {
.icon {
stroke: var(--color-primary);
}
}
}
}
.help {
color: var(--color-text);
}
}