expand_on_hover.css in Better Search Block 7
i.better_search {
background: url("images/search-icon.svg") center center no-repeat;
height: 1em;
width: 1em;
font-style: normal;
font-weight: normal;
line-height: 1;
-webkit-font-smoothing: antialiased;
display:inline-block;
}
#search-block-form {
width: 300px;
vertical-align: middle;
white-space: nowrap;
position: relative;
}
.form-item-search-block-form input.form-text {
width: 50px;
height: 50px;
background: #2b303b;
border: none;
font-size: 10pt;
float: left;
color: #262626;
padding-left: 50px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
color: #fff;
-webkit-transition: width .55s ease;
-moz-transition: width .55s ease;
-ms-transition: width .55s ease;
-o-transition: width .55s ease;
transition: width .55s ease;
}
#search-block-form .icon {
position: absolute;
top: 50%;
margin-left: 17px;
margin-top: 17px;
z-index: 1;
color: #4f5b66;
left: 0;
}
.form-item-search-block-form input:-webkit-input-placeholder {
color: #65737e;
}
.form-item-search-block-form input:-moz-placeholder {
color: #65737e;
}
.form-item-search-block-form input:-ms-input-placeholder {
color: #65737e;
}
.form-item-search-block-form input.form-text:focus,
.form-item-search-block-form input.form-text:active {
outline: none;
width: 300px;
}
.form-item-search-block-form:hover input.form-text {
width: 300px;
cursor: pointer;
cursor: hand;
}
#search-block-form:hover .icon {
color: #93a2ad;
}
File
css/expand_on_hover.css
View source
- i.better_search {
- background: url("images/search-icon.svg") center center no-repeat;
- height: 1em;
- width: 1em;
- font-style: normal;
- font-weight: normal;
- line-height: 1;
- -webkit-font-smoothing: antialiased;
- display:inline-block;
- }
-
- #search-block-form {
- width: 300px;
- vertical-align: middle;
- white-space: nowrap;
- position: relative;
- }
-
- .form-item-search-block-form input.form-text {
- width: 50px;
- height: 50px;
- background: #2b303b;
- border: none;
- font-size: 10pt;
- float: left;
- color: #262626;
- padding-left: 50px;
- -webkit-border-radius: 5px;
- -moz-border-radius: 5px;
- border-radius: 5px;
- color: #fff;
- -webkit-transition: width .55s ease;
- -moz-transition: width .55s ease;
- -ms-transition: width .55s ease;
- -o-transition: width .55s ease;
- transition: width .55s ease;
- }
-
- #search-block-form .icon {
- position: absolute;
- top: 50%;
- margin-left: 17px;
- margin-top: 17px;
- z-index: 1;
- color: #4f5b66;
- left: 0;
- }
-
- .form-item-search-block-form input:-webkit-input-placeholder {
- color: #65737e;
- }
-
- .form-item-search-block-form input:-moz-placeholder {
- color: #65737e;
- }
-
- .form-item-search-block-form input:-ms-input-placeholder {
- color: #65737e;
- }
-
- .form-item-search-block-form input.form-text:focus,
- .form-item-search-block-form input.form-text:active {
- outline: none;
- width: 300px;
- }
-
- .form-item-search-block-form:hover input.form-text {
- width: 300px;
- cursor: pointer;
- cursor: hand;
- }
-
- #search-block-form:hover .icon {
- color: #93a2ad;
- }