mirror of
https://github.com/oceanprotocol/market.git
synced 2024-06-26 11:16:51 +02:00
* fix mobile layout for filter buttons * fix tabs component mobile view * fix zoom in on input focus on mobile devices * reduce searchbar font-size
73 lines
1.5 KiB
CSS
73 lines
1.5 KiB
CSS
.filterList,
|
|
div.filterList {
|
|
white-space: normal;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
display: flex;
|
|
gap: calc(var(--spacer) / 4) calc(var(--spacer) / 2);
|
|
flex-direction: column;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.filter {
|
|
display: inline-block;
|
|
}
|
|
|
|
.filter,
|
|
button.filter,
|
|
.filter:hover,
|
|
.filter:active,
|
|
.filter:focus {
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
margin-right: calc(var(--spacer) / 6);
|
|
margin-bottom: calc(var(--spacer) / 6);
|
|
color: var(--color-secondary);
|
|
background: var(--background-content);
|
|
|
|
/* the only thing not possible to overwrite button style="text" with more specifity of selectors, so sledgehammer */
|
|
padding: calc(var(--spacer) / 6) !important;
|
|
}
|
|
|
|
.filter:hover,
|
|
.filter:focus {
|
|
color: var(--font-color-text);
|
|
background: inherit;
|
|
transform: none;
|
|
}
|
|
|
|
.filter.selected {
|
|
color: var(--background-body);
|
|
background: var(--font-color-text);
|
|
border-color: var(--background-body);
|
|
}
|
|
|
|
.filter.selected::after {
|
|
content: '✕';
|
|
margin-left: calc(var(--spacer) / 6);
|
|
color: var(--background-body);
|
|
}
|
|
|
|
.showClear:hover {
|
|
display: inline-flex;
|
|
color: var(--color-primary);
|
|
}
|
|
.showClear {
|
|
display: inline-flex;
|
|
text-transform: capitalize;
|
|
color: var(--color-secondary);
|
|
font-weight: var(--font-weight-base);
|
|
margin-left: calc(var(--spacer) / 6);
|
|
}
|
|
|
|
.hideClear {
|
|
display: none !important;
|
|
}
|
|
|
|
@media screen and (min-width: 35rem) {
|
|
.filterList,
|
|
div.filterList {
|
|
flex-direction: row;
|
|
}
|
|
}
|