1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/src/components/Header/SearchBar.module.css
Matthias Kretschmann d5e5019cc8
header space saving & interaction tweaks (#1549)
* header space saving & interaction tweaks

* remove network name reveal interaction on small viewports
* increase header button sizes for all viewports for better tap targets
* tweak flex layout
* remove caret from version badge on smaller viewports

* fix NFT tooltip icon placement

* spacing tweak

* caret css cleanup

* remove reconnecting message

* squeeze more space out of network, test label

* more space from unsupported network indicator
2022-06-28 14:01:26 +01:00

74 lines
1.2 KiB
CSS

.search {
display: flex;
position: relative;
}
.button {
color: var(--color-secondary);
cursor: pointer;
background: var(--background-content);
border: none;
box-shadow: none;
padding: 0;
position: absolute;
padding: calc(var(--spacer) / 4);
width: 100%;
right: 1px;
left: 1px;
top: 1px;
bottom: 1px;
z-index: -1;
}
.button:hover,
.button:focus {
color: var(--font-color-text);
}
.input {
font-size: 16px; /* prevent zoom in on input focus on mobile devices */
background-color: transparent;
height: 41px;
margin: 0;
outline: 0;
padding-right: var(--spacer);
width: 0;
transition: none;
}
.input:focus {
width: calc(100% - var(--spacer));
background-color: var(--background-content);
position: fixed;
left: calc(var(--spacer) / 2);
right: 0;
z-index: 2;
}
@media screen and (min-width: 78rem) {
.input,
.input:focus {
width: auto;
position: relative;
left: initial;
right: initial;
}
.button {
width: auto;
left: auto;
background: none;
}
.input:focus + .button {
z-index: 3;
}
}
.searchIcon {
fill: currentColor;
transition: 0.2s ease-out;
width: var(--font-size-h5);
height: var(--font-size-h5);
}