Skip to content

clean placeholder #775

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 97 additions & 60 deletions normalize.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@
*/

html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
line-height: 1.15;
/* 1 */
-webkit-text-size-adjust: 100%;
/* 2 */
}

/* Sections
Expand All @@ -21,15 +23,15 @@ html {
*/

body {
margin: 0;
margin: 0;
}

/**
* Render the `main` element consistently in IE.
*/

main {
display: block;
display: block;
}

/**
Expand All @@ -38,8 +40,8 @@ main {
*/

h1 {
font-size: 2em;
margin: 0.67em 0;
font-size: 2em;
margin: 0.67em 0;
}

/* Grouping content
Expand All @@ -51,9 +53,12 @@ h1 {
*/

hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
box-sizing: content-box;
/* 1 */
height: 0;
/* 1 */
overflow: visible;
/* 2 */
}

/**
Expand All @@ -62,8 +67,10 @@ hr {
*/

pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
font-family: monospace, monospace;
/* 1 */
font-size: 1em;
/* 2 */
}

/* Text-level semantics
Expand All @@ -74,7 +81,7 @@ pre {
*/

a {
background-color: transparent;
background-color: transparent;
}

/**
Expand All @@ -83,9 +90,12 @@ a {
*/

abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
border-bottom: none;
/* 1 */
text-decoration: underline;
/* 2 */
text-decoration: underline dotted;
/* 2 */
}

/**
Expand All @@ -94,7 +104,7 @@ abbr[title] {

b,
strong {
font-weight: bolder;
font-weight: bolder;
}

/**
Expand All @@ -105,16 +115,18 @@ strong {
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
font-family: monospace, monospace;
/* 1 */
font-size: 1em;
/* 2 */
}

/**
* Add the correct font size in all browsers.
*/

small {
font-size: 80%;
font-size: 80%;
}

/**
Expand All @@ -124,18 +136,18 @@ small {

sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}

sub {
bottom: -0.25em;
bottom: -0.25em;
}

sup {
top: -0.5em;
top: -0.5em;
}

/* Embedded content
Expand All @@ -146,7 +158,7 @@ sup {
*/

img {
border-style: none;
border-style: none;
}

/* Forms
Expand All @@ -162,10 +174,21 @@ input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
font-family: inherit;
/* 1 */
font-size: 100%;
/* 1 */
line-height: 1.15;
/* 1 */
margin: 0;
/* 2 */
}

::placeholder {
/* Add the correct opacity in Safari */
opacity: 1;
/* Add the correct line-height in Safari with 1.15 lines height above */
line-height: normal;
}

/**
Expand All @@ -174,8 +197,9 @@ textarea {
*/

button,
input { /* 1 */
overflow: visible;
input {
/* 1 */
overflow: visible;
}

/**
Expand All @@ -184,8 +208,9 @@ input { /* 1 */
*/

button,
select { /* 1 */
text-transform: none;
select {
/* 1 */
text-transform: none;
}

/**
Expand All @@ -196,7 +221,7 @@ button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
-webkit-appearance: button;
}

/**
Expand All @@ -207,8 +232,8 @@ button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
border-style: none;
padding: 0;
}

/**
Expand All @@ -219,15 +244,15 @@ button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
outline: 1px dotted ButtonText;
}

/**
* Correct the padding in Firefox.
*/

fieldset {
padding: 0.35em 0.75em 0.625em;
padding: 0.35em 0.75em 0.625em;
}

/**
Expand All @@ -238,28 +263,34 @@ fieldset {
*/

legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
box-sizing: border-box;
/* 1 */
color: inherit;
/* 2 */
display: table;
/* 1 */
max-width: 100%;
/* 1 */
padding: 0;
/* 3 */
white-space: normal;
/* 1 */
}

/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/

progress {
vertical-align: baseline;
vertical-align: baseline;
}

/**
* Remove the default vertical scrollbar in IE 10+.
*/

textarea {
overflow: auto;
overflow: auto;
}

/**
Expand All @@ -269,8 +300,10 @@ textarea {

[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
box-sizing: border-box;
/* 1 */
padding: 0;
/* 2 */
}

/**
Expand All @@ -279,7 +312,7 @@ textarea {

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
height: auto;
}

/**
Expand All @@ -288,16 +321,18 @@ textarea {
*/

[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
-webkit-appearance: textfield;
/* 1 */
outline-offset: -2px;
/* 2 */
}

/**
* Remove the inner padding in Chrome and Safari on macOS.
*/

[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
-webkit-appearance: none;
}

/**
Expand All @@ -306,8 +341,10 @@ textarea {
*/

::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
-webkit-appearance: button;
/* 1 */
font: inherit;
/* 2 */
}

/* Interactive
Expand All @@ -318,15 +355,15 @@ textarea {
*/

details {
display: block;
display: block;
}

/*
* Add the correct display in all browsers.
*/

summary {
display: list-item;
display: list-item;
}

/* Misc
Expand All @@ -337,13 +374,13 @@ summary {
*/

template {
display: none;
display: none;
}

/**
* Add the correct display in IE 10.
*/

[hidden] {
display: none;
}
display: none;
}