Skip to content

Commit

Permalink
#22 - dando aquela garibada no componente de input
Browse files Browse the repository at this point in the history
  • Loading branch information
teles committed Mar 6, 2016
1 parent a93d799 commit b151cb3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/js/views/home/templates/home-list.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h2 class='jumbotron__subtitle'>
Mais de 150 blogs sobre assuntos variados que aceitam posts de convidados.
</h2>
<a href="/sobre" class="jumbotron__main-link">Conheça nossa proposta.</a></h2>
<span class="input-box">
<span class="input-box input-box--is-extra-large">
<input type="text" placeholder="Encontre um blog" class='input-box__input'>
<i class="fa fa-search input-box__icon"></i>
</span>
Expand Down
58 changes: 31 additions & 27 deletions src/styl/module/input-box.styl
Original file line number Diff line number Diff line change
@@ -1,56 +1,60 @@
.input-box
line-height: 40px
width: 480px
margin: get-spacing(3) auto
display: block
font-size: 18px
line-height: 20px
margin: 0
max-width: 100%
display: block
padding: get-spacing(1)
position: relative
width: 240px

&__input
outline: none
border-radius: 20px
border: 1px solid rgb(28, 131, 176)
border-radius: 42px
padding: get-spacing(1) 46px get-spacing(1) get-spacing(3)
width: 100%
max-width: 480px
font-size: 18px
font-size: 13px
line-height: inherit
max-width: 480px
outline: none
padding: get-spacing(1) get-spacing(1) get-spacing(1) get-spacing(3)
width: 100%

+ m-placeholder()
color: #d8d8d8
font-size: 18px
font-size: 13px

&__icon
line-height: inherit
position: absolute
right: 0
top: 1px
color: #ff5858
padding: get-spacing(1) get-spacing(2)
cursor: pointer
font-size: 14px
line-height: 54px
padding: 0 20px 0 get-spacing(1)
position: absolute
right: 0
top: 0
transition: all ease-in .5s

&:hover
color: #ff2424

// &--is-extra-large
&--is-default
width: 240px
line-height: 20px
padding: get-spacing(1)
margin: 0
&--is-extra-large
line-height: 40px
margin: get-spacing(3) auto
width: 480px

.input-box__input
padding-right: get-spacing(3)
font-size: 13px
border-radius: 20px
padding-left: get-spacing(2)
border-radius: 42px
font-size: 18px
padding: get-spacing(1) 46px get-spacing(1) get-spacing(3)

+ m-placeholder()
font-size: 13px
font-size: 18px

.input-box__icon
padding: 0 20px 0 get-spacing(1)
line-height: 55px
font-size: 14px
top: 0
line-height: 70px
padding: 0 get-spacing(3)
top: 1px
font-size: 20px

0 comments on commit b151cb3

Please sign in to comment.