frontend: Select et Search responsive
This commit is contained in:
parent
d66c4037db
commit
280982a8d5
@ -18,7 +18,7 @@ const Functions = () => (
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="Functions__search-container row justify-content-center">
|
<div className="Functions__search-container row justify-content-center">
|
||||||
<select className="form-control">
|
<select className="Functions__select form-control">
|
||||||
{/* TODO: API Call to fetch categories */}
|
{/* TODO: API Call to fetch categories */}
|
||||||
<option>Toutes catégories</option>
|
<option>Toutes catégories</option>
|
||||||
<option className="Functions__select-option" style={{ backgroundColor: "#406880" }}>✨ Utilitaires</option>
|
<option className="Functions__select-option" style={{ backgroundColor: "#406880" }}>✨ Utilitaires</option>
|
||||||
|
@ -10,5 +10,19 @@
|
|||||||
color: rgb(221, 220, 220);
|
color: rgb(221, 220, 220);
|
||||||
}
|
}
|
||||||
.Functions__search-input {
|
.Functions__search-input {
|
||||||
width: 35%;
|
width: 40%;
|
||||||
|
}
|
||||||
|
/* col-sm */
|
||||||
|
@media (max-width: 576px) {
|
||||||
|
.Functions__search-container {
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.Functions__select {
|
||||||
|
width: 90%;
|
||||||
|
margin-bottom: 5px;
|
||||||
|
}
|
||||||
|
.Functions__search-input {
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user