Skip to content

Instantly share code, notes, and snippets.

@davetayls
Created March 12, 2013 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davetayls/5143224 to your computer and use it in GitHub Desktop.
Save davetayls/5143224 to your computer and use it in GitHub Desktop.
Cross browser search box styling
/*
=> form-search
Extensions on the search box
--------------------------------------------------*/
.form-search {
position: relative;
padding: 0 32px 0 16px;
input {
position: relative;
padding-right: 30px;
width: 100%;
height: 34px;
left: -15px;
float: left;
height: 20px;
}
button.btn {
color: $color--base;
text-shadow: none;
padding: 0;
margin: 3px 2px 0 0;
border: none;
width: 35px;
height: 34px;
absolute: top right;
background: none;
border-radius: 0;
box-shadow: none;
&:hover,
&:active {
color: darken($color--base, 30%);
background: none;
}
i {
@extends .visuallyhidden;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment