added most used resets + comments correction #1

Merged
GetRawFish merged 1 commits from resets-added into master 2020-04-17 09:20:32 +02:00
+73 -50
View File
@@ -1,74 +1,65 @@
// ===
// Common: Match typography size
// ===
html { html {
font-size: 16px; /* Common: Match typography size */
font-size: 1rem;
} }
// ===
// Common: Removes the default margin from body
// ===
body { body {
tanrax commented 2020-04-17 09:14:03 +02:00 (Migrated from github.com)
Review

propongo dejarlo con 16px para tener el control

propongo dejarlo con 16px para tener el control
/* Common: Removes the default margin from body */
margin: 0; margin: 0;
} /* Common: Sets in common the way of rendering the text */
// ===
// Common: Sets in common the way of rendering the text
// ===
body {
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} /* Common: Standardizes typography */
// ===
// Common: Standardizes typography
// ===
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
/* Common: Standardizes line height. */
line-height: 125%;
} }
// ===
// Common: Standardizes line height.
// ===
body {
line-height: 1.4;
}
// ===
// Hyperlink: Remove the bottom line.
// ===
a { a {
text-decoration: none; /* Hyperlink: Remove the bottom line. */
text-decoration: none;
/* Hyperlink: Remove default color */
color: unset;
/* iOS: remove the color of the highlight that appears over a link while it's being tapped */
-webkit-tap-highlight-color: transparent;
} }
// === /* Pictures: Gives 100% width to fit containers */
// Pictures: Gives 100% width to fit containers img,
// === picture {
img, picture {
width: 100%; width: 100%;
} }
table { table {
border-collapse: collapse; border-collapse: collapse;
margin-bottom: 10px; margin-bottom: 10px;
width: 100%; width: 100%;
} }
td, th { td,
padding: 6px; th {
padding: 6px;
} }
table, th, td { table,
border: 1px solid black; th,
td {
border: 1px solid black;
} }
// === /* Firefox: remove inner focus ring */
// Firefox: not display the ugly dotted focus outlines on links button::-moz-focus-inner,
// === input[type="button"]::-moz-focus-inner,
button::-moz-focus-inner { input[type="submit"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
input[type="color"]::-moz-focus-inner {
border: 0; border: 0;
} }
a:focus, button:focus, input:focus { a:focus,
textarea:focus,
button:focus,
input:focus {
outline: none; outline: none;
} }
@@ -77,12 +68,44 @@ button,
input[type='submit'], input[type='submit'],
input[type='button'], input[type='button'],
input[type='checkbox'] { input[type='checkbox'] {
cursor: pointer; cursor: pointer;
} }
// === /* iOS: remove zoom double tap */
// iOS: remove zoom double tap
// ===
button { button {
touch-action: manipulation; touch-action: manipulation;
} }
/* iOS && Firefox: remove default input appearince */
/* Remove or add any input type */
input[type="button"],
input[type="checkbox"],
input[type="email"],
input[type="file"],
input[type="number"],
input[type="reset"],
input[type="search"],
input[type="submit"],
input[type="tel"],
input[type="text"],
input[type="url"],
textarea {
-moz-appearance: none;
-webkit-appearance: none;
}
/* iOS: remove the "cancel button" at the edge of an <input> of type="search" */
tanrax commented 2020-04-17 09:13:37 +02:00 (Migrated from github.com)
Review

Y si ponemos input::moz-focus... en lugar de ir type por type?

Y si ponemos input::moz-focus... en lugar de ir type por type?
input[type="search"]::-webkit-search-cancel-button {
-webkit-appearance: none;
}
/* Remove resize option for textarea */
textarea {
resize: none;
}
/* Firefox: remove default input:invalid appearence */
input:invalid {
box-shadow: none;
}