-
Notifications
You must be signed in to change notification settings - Fork 312
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
804b41e
commit 6faee43
Showing
7 changed files
with
161 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,44 @@ | ||
/** | ||
* 1. Use standards-like styling in all browsers (opinionated). | ||
* 2. Inherit typography styling in all browsers (opinionated). | ||
* 1. Change the inconsistent appearance in all browsers (opinionated). | ||
* 2. Add typography inheritance in all browsers (opinionated). | ||
*/ | ||
|
||
button, | ||
input, | ||
select, | ||
textarea { | ||
background-color: transparent; /* 1 */ | ||
border: 0 solid; /* 1 */ | ||
border-radius: 0.25em; /* 1 */ | ||
box-shadow: inset 0 0 0 1px WindowFrame; /* 1 */ | ||
border: 1px solid WindowFrame; /* 1 */ | ||
color: inherit; /* 1 */ | ||
font-family: inherit; /* 2 */ | ||
font-size: inherit; /* 2 */ | ||
line-height: inherit; /* 2 */ | ||
font: inherit; /* 2 */ | ||
letter-spacing: inherit; /* 2 */ | ||
padding: 0.25em 0.375em; /* 1 */ | ||
} | ||
|
||
/** | ||
* Change the inconsistent appearance in all browsers (opinionated). | ||
*/ | ||
|
||
select { | ||
-moz-appearance: none; | ||
-webkit-appearance: none; | ||
background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='4'%3E%3Cpath d='M4 0h6L7 4'/%3E%3C/svg%3E") no-repeat right center / 1em; | ||
border-radius: 0; | ||
padding-right: 1em; | ||
} | ||
|
||
/** | ||
* Change the inconsistent appearance in IE (opinionated). | ||
*/ | ||
|
||
::-ms-expand { | ||
display: none; | ||
} | ||
|
||
/** | ||
* Correct the inconsistent appearance in IE (opinionated). | ||
*/ | ||
|
||
:-ms-input-placeholder { | ||
color: rgba(0, 0, 0, 0.54); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "sanitize.css", | ||
"version": "9.0.0", | ||
"version": "10.0.0", | ||
"description": "A best-practices CSS foundation", | ||
"author": "Jonathan Neal <[email protected]>", | ||
"contributors": [ | ||
|
@@ -15,12 +15,13 @@ | |
"style": "sanitize.css", | ||
"files": [ | ||
"forms.css", | ||
"page.css", | ||
"sanitize.css", | ||
"typography.css" | ||
], | ||
"scripts": { | ||
"prepublishOnly": "npm test", | ||
"test": "stylelint forms.css sanitize.css typography.css" | ||
"test": "stylelint *.css" | ||
}, | ||
"devDependencies": { | ||
"stylelint": "^10.0.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Use a comfortable measure in all browsers (opinionated). | ||
*/ | ||
|
||
html { | ||
padding: 1em; | ||
} | ||
|
||
@media (min-width: 34em) { | ||
html { | ||
padding: 1em calc(50% - 16em); | ||
} | ||
} | ||
|
||
/** | ||
* Restrict sizing to the page width in all browsers (opinionated). | ||
*/ | ||
|
||
iframe, | ||
img, | ||
input, | ||
select, | ||
textarea { | ||
height: auto; | ||
max-width: 100%; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.