[enh] searchbar ui mods

This commit is contained in:
asciimoo 2013-11-05 21:01:22 +01:00
parent dbb8ed5406
commit e757fd2860
1 changed files with 25 additions and 21 deletions

View File

@ -106,28 +106,32 @@ tr:hover td { background: #DDDDDD; }
#search_wrapper { position: relative; max-width: 600px; margin: 10px; } #search_wrapper { position: relative; max-width: 600px; margin: 10px; }
.center #search_wrapper { margin-left: auto; margin-right: auto; } .center #search_wrapper { margin-left: auto; margin-right: auto; }
.q { .q {
-webkit-box-sizing: border-box; background: none repeat scroll 0 0 #FFFFFF;
-moz-box-sizing: border-box; border: 1px solid #8D8D8D;
width: 100%; border-radius: 3px;
box-sizing: border-box; box-shadow: 1px 1px 2px #999999 inset;
border: 1px solid #c8c8c8; color: #222222;
border-bottom-color: #d2e2e7; font-size: 22px;
-webkit-border-radius: 1px; height: 28px;
-moz-border-radius: 1px; margin: 0;
border-radius: 1px; outline: medium none;
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.4), 0 0 0 4px #dddddd; padding: 4px;
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.4), 0 0 0 4px #dddddd; padding-left: 8px;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.4), 0 0 0 4px #dddddd; padding-right: 0px !important;
-webkit-transition: all 0.4s linear; width: 100%;
-moz-transition: all 0.4s linear; z-index: 2;
transition: all 0.4s linear;
} }
.q:focus { #search_submit {
outline: none; position: absolute;
-webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,0.6), 0 0 0 4px #dddddd; top: 5px;
-moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.6), 0 0 0 4px #dddddd; right: 0px;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.6), 0 0 0 4px #dddddd; padding: 0;
border: 0;
background: url('/static/img/search-icon.png') no-repeat;
background-size: 28px 28px;
opacity: 0.8;
width: 28px;
height: 30px;
} }
#search_submit { position: absolute; top: 6px; right: 3px; border: 0; padding: 6px; background: url('/static/img/search-icon.png') no-repeat; background-size: 30px 30px; width: 33px; height: 30px; }
#results { margin-left: 10px; margin-top: 10px; } #results { margin-left: 10px; margin-top: 10px; }