Last active
August 31, 2015 15:51
-
-
Save Razenbull/5cfa62759e786d352210 to your computer and use it in GitHub Desktop.
slide right input
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.form-searchbar { | |
.searchbar-hidden, | |
label { | |
@include transition-duration($transition-duration); | |
@include transition-timing-function($transition-timing-function); | |
} | |
.searchbar-hidden { | |
@include transition-property(width); | |
@include transition-delay($transition-delay); | |
width: 0; | |
visibility: hidden; | |
} | |
label { | |
@include transition-property(color); | |
color: $bs_grey; | |
padding-right: 10px; | |
} | |
&:hover { | |
label { | |
cursor: pointer; | |
color: $c_blue; | |
} | |
.searchbar-hidden { | |
visibility: visible; | |
width: $searchbar-width; | |
} | |
} | |
.searchbar-hidden:focus { | |
visibility: visible; | |
width: $searchbar-width; | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form class="form-inline form-searchbar"> | |
<div class="form-group"> | |
<label for="searchbar-hidden"><span class="glyphicon glyphicon-search"></span></label> | |
<input type="text" class="form-control searchbar-hidden" id="searchbar-hidden" placeholder="<?=$translator->translate('hs_Search')?>"> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment