Skip to content

Instantly share code, notes, and snippets.

@smt
Created February 12, 2010 17:12
Show Gist options
  • Save smt/302764 to your computer and use it in GitHub Desktop.
Save smt/302764 to your computer and use it in GitHub Desktop.
/*
Form Elements
-- Styled to look like native Safari on OS X.
-- Drop-down <select> menus are unaffected.
-- Buttons are unaffected. Native OS style.
*/
input,
button,
select,
textarea {
margin: 0;
}
input[type=text],
input[type=search],
input[type=password] {
height: 16px;
vertical-align: top;
}
button,
input[type=submit],
input[type=button] {
font-size: 12px;
overflow: visible;
width: auto;
}
textarea,
select[multiple],
input[type=text],
input[type=search],
input[type=password] {
background: #fff url(http://host.sonspring.com/_misc/input_shadow.png) repeat-x;
/*
Copy the above image to your own server.
*/
border: 1px solid;
border-color: #848484 #c1c1c1 #e1e1e1;
color: #000;
margin: 0;
padding-top: 2px;
padding-left: 3px;
padding-right: 3px;
font: 11px Verdana, sans-serif;
}
select[multiple] {
padding: 0;
}
optgroup {
background: #fff;
color: #000;
font-style: normal;
font-weight: normal;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment