Normalize rather than Reset.
The reset we used was a mix of Normalize, the Paul Irish reset, sprinkled with some blueprint.css, and base styles. It was hard to maintain and just seemed outdated (setting the base font-size to 10px instead of 16px, among other things). Normalize sets saner defaults and is generally just not as disruptive as a full reset. The code was added as is, has only its comments stripped (for now), and is not mixed with any styles to make future updates to it as easy as possible. See #3, #44, #174, #267, #617.
This commit is contained in:
parent
37d283481f
commit
6c47be98c1
18 changed files with 501 additions and 291 deletions
|
@ -8,9 +8,7 @@ input[type="submit"] {
|
|||
background: $color__background-button;
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 15px 17px rgba(255, 255, 255, 0.5), inset 0 -5px 12px rgba(0, 0, 0, 0.05);
|
||||
color: rgba(0, 0, 0, .8);
|
||||
cursor: pointer; /* Improves usability and consistency of cursor style between image-type 'input' and others */
|
||||
-webkit-appearance: button; /* Corrects inability to style clickable 'input' types in iOS */
|
||||
@include font-size(1.2);
|
||||
@include font-size(0.75);
|
||||
line-height: 1;
|
||||
padding: .6em 1em .4em;
|
||||
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
|
||||
|
|
|
@ -1,23 +1,3 @@
|
|||
input[type="checkbox"],
|
||||
input[type="radio"] {
|
||||
padding: 0; /* Addresses excess padding in IE8/9 */
|
||||
}
|
||||
|
||||
input[type="search"] {
|
||||
-webkit-appearance: textfield; /* Addresses appearance set to searchfield in S5, Chrome */
|
||||
box-sizing: content-box;
|
||||
}
|
||||
|
||||
input[type="search"]::-webkit-search-decoration { /* Corrects inner padding displayed oddly in S5, Chrome on OSX */
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
button::-moz-focus-inner,
|
||||
input::-moz-focus-inner { /* Corrects inner padding and border displayed oddly in FF3/4 www.sitepen.com/blog/2008/05/14/the-devils-in-the-details-fixing-dojos-toolbar-buttons/ */
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
input[type="text"],
|
||||
input[type="email"],
|
||||
input[type="url"],
|
||||
|
@ -47,8 +27,6 @@ input[type="search"] {
|
|||
}
|
||||
|
||||
textarea {
|
||||
overflow: auto; /* Removes default vertical scrollbar in IE6/7/8/9 */
|
||||
padding-left: 3px;
|
||||
vertical-align: top; /* Improves readability and alignment in all browsers */
|
||||
width: 100%;
|
||||
}
|
|
@ -1,12 +1,3 @@
|
|||
button,
|
||||
input,
|
||||
select,
|
||||
textarea {
|
||||
font-size: 100%; /* Corrects font size not being inherited in all browsers */
|
||||
margin: 0; /* Addresses margins set differently in IE6/7, F3/4, S5, Chrome */
|
||||
vertical-align: baseline; /* Improves appearance and consistency in all browsers */
|
||||
}
|
||||
|
||||
@import "buttons";
|
||||
|
||||
@import "fields";
|
Loading…
Add table
Add a link
Reference in a new issue