Skip to content

Instantly share code, notes, and snippets.

@mweslander
Created May 12, 2020 00:55
Show Gist options
  • Select an option

  • Save mweslander/9239365b8caddef78ab80727ee3c3adc to your computer and use it in GitHub Desktop.

Select an option

Save mweslander/9239365b8caddef78ab80727ee3c3adc to your computer and use it in GitHub Desktop.
/* ==========================================================================
* Reset
* ========================================================================== */
* {
border: 0;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
}
*,
::before,
::after {
background-repeat: no-repeat;
}
*:focus {
outline: 2px solid $color--blue;
}
.js-focus-visible *:focus:not(.focus-visible) {
outline: none;
}
html {
text-size-adjust: 100%;
}
body {
background-position: center top;
background-repeat: repeat;
color: $color--night;
font-family: $font-family;
font-size: $font-size--md;
line-height: 1;
text-decoration-skip: ink;
&.ws-has-open-menu {
overflow: hidden;
}
}
section {
background-color: $color--white;
color: $color--night;
}
a {
color: inherit;
text-decoration: none;
}
:any-link {
cursor: pointer;
}
button {
border-radius: 0;
color: inherit;
}
textarea {
resize: vertical;
}
button,
optgroup,
select,
table,
textarea {
appearance: none;
background-color: transparent;
border-radius: 0;
font-family: inherit;
font-size: inherit;
}
button::-moz-focus-inner,
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner {
border-style: none;
padding: 0;
}
[type='number'],
[type='search'] {
appearance: textfield;
}
input::-webkit-inner-spin-button,
input::-webkit-search-cancel-button,
input::-webkit-search-decoration {
appearance: none;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-size: $font-size--md;
font-weight: normal;
line-height: $line-height--md;
}
ol,
ul {
list-style: none;
}
address {
font-style: normal;
}
img,
svg {
max-height: 100%;
max-width: 100%;
}
svg {
fill: currentColor;
}
hr {
border-bottom: 1px solid $color--green;
margin-bottom: $spacing--lg;
margin-top: $spacing--lg;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment