Skip to content

Instantly share code, notes, and snippets.

@nicolasparada
Last active May 24, 2018 09:47
Show Gist options
  • Save nicolasparada/dcd4e969a1bbc11211e0a0c93cc7aba3 to your computer and use it in GitHub Desktop.
Save nicolasparada/dcd4e969a1bbc11211e0a0c93cc7aba3 to your computer and use it in GitHub Desktop.
Base Stylesheet
:root {
box-sizing: border-box;
font-family: sans-serif;
-ms-overflow-style: -ms-autohiding-scrollbar;
}
*,
::before,
::after {
box-sizing: inherit;
}
body {
margin: 0;
}
.container {
width: calc(100% - 2rem);
max-width: 65ch;
margin: 0 auto;
}
img {
max-width: 100%;
}
button,
input,
textarea {
color: inherit;
font: inherit;
}
button {
touch-action: manipulation;
user-select: none;
}
.js-focus-visible :focus:not(.focus-visible) {
outline: none;
}
a {
color: cornflowerblue;
}
a[aria-current=page] {
color: hotpink;
}
[disabled],
[aria-busy=true] {
opacity: .7;
pointer-events: none;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment