Untitled
unknown
plain_text
3 years ago
2.0 kB
10
Indexable
<template>
<div class="search_container">
<div>
<input type="text" class="box-search" placeholder="What are you looking for?" />
<button type="submit" class="search-button">SEARCH</button>
</div>
</div>
</template>
<script>
export default {
components: {},
name: 'SearchbarComponent'
}
</script>
<style>
.search_container {
width: 90%;
margin-left: 5%;
margin-right: 5%;
margin-top: 3%;
display: flex;
flex-direction: column;
justify-content: center;
}
.search-button {
background-color: #ec8c6c;
border: none;
color: white;
font-size: 13px;
cursor: pointer;
padding: 18px;
border-radius: 10%;
}
.search_title {
color: #888887;
display: flex;
font-weight: bold;
}
.box-search {
background-color: white;
border: none;
color: black;
padding: 10px;
width: 80%;
border-radius: 5px;
margin-right: 10px;
border: 1px solid black;
height: 30px;
}
@media (max-width: 720px) {
.search_container {
display: flex;
flex-direction: row;
font-weight: bold;
height: 70px;
border-radius: 0px;
width: 96%;
margin-left: 2%;
margin-right: 2%;
margin-top: 20px;
border: 1px solid black;
}
.search_title {
color: #888887;
display: flex;
flex-direction: row;
font-weight: bold;
margin-top: 20px;
width: 96%;
margin-left: 2%;
margin-right: 2%;
}
.box-search {
background-color: white;
border: 3px solid black;
color: black;
border-radius: 0px;
height: 30px;
padding: 10px;
width: auto;
}
.box-button {
background-color: #359870;
border: none;
color: black;
display: inline-block;
font-size: 13px;
box-sizing: content-box;
cursor: pointer;
}
.search-button {
height: 60px;
background-color: #359870;
border: none;
color: white;
display: inline-block;
font-size: 13px;
box-sizing: content-box;
cursor: pointer;
justify-content: center;
width: 20%;
display: none;
}
}
</style >
Editor is loading...