finished making the action bar responsive in the 1000px breakpoint

pull/13/head
NoisyBoy-9 2019-07-23 10:31:58 +04:30
parent 9c703f88e0
commit 78d22b82f8
3 changed files with 33 additions and 29 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="search__container"> <div>
<input type="search" class="search__input" v-bind="query" :placeholder="placeholder"> <input type="search" v-bind="query" :placeholder="placeholder">
<slot></slot> <slot></slot>
</div> </div>
</template> </template>
@ -19,35 +19,34 @@ export default {
<style lang="sass" scoped> <style lang="sass" scoped>
.search div
&__container display: flex
padding: 0
diplay: flex
justify-content: center justify-content: center
width: 40% width: 40%
input
width: 90%
height: 100%
border-radius: 15px
padding: .4rem 1.5rem
color: lighten(black, 30)
border: 1px solid lighten(grey, 40)
margin-right: -2rem
background-color: #f9f9f9
transition: all .2s ease-in-out
&::placeholder
color: #a8abb3
&:focus
outline: none
width: 100%
&__input svg
width: 90% width: 1.2rem
height: 100% height: 1.2rem
border-radius: 15px cursor: pointer
padding: .4rem 1.5rem fill: #3b3c3d
color: lighten(black, 30)
border: 1px solid lighten(grey, 40)
margin-right: -2rem
background-color: #f9f9f9
transition: all .2s ease-in-out
&::placeholder
color: #a8abb3
&:focus
outline: none
width: 100%
&__icon
width: 1.2rem
height: 1.2rem
cursor: pointer
fill: #3b3c3d
</style> </style>

View File

@ -43,5 +43,6 @@ export default {
height: 1.5rem height: 1.5rem
padding: 0 padding: 0
fill: #bbbcbc fill: #bbbcbc
</style> </style>

View File

@ -35,5 +35,9 @@ div
display: flex display: flex
padding: 1rem 2.5rem padding: 1rem 2.5rem
align-items: center align-items: center
@media(max-width: 1000px)
div
flex-wrap: wrap
</style> </style>