@ignatiusmb/styles
Version:
minimal and opinionated layer of typographic and style defaults
203 lines (202 loc) • 3.18 kB
CSS
*,
::after,
::before {
box-sizing: border-box;
}
:root {
--font-base: 'Newsreader Variable', 'Newsreader', 'Georgia', serif;
--font-sans: 'Recursive Variable', system-ui, 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
--font-mono: 'Recursive Variable', ui-monospace, monospace;
--font-sans-variation: 'MONO' 0, 'CASL' 0.4, 'CRSV' 0;
--font-mono-variation: 'MONO' 1, 'CASL' 0.1, 'CRSV' 0;
}
html {
line-height: 1.15;
font-family: var(--font-base, sans-serif);
font-variation-settings: var(--font-sans-variation);
text-size-adjust: 100%;
}
body {
scroll-behavior: smooth;
text-rendering: optimizeSpeed;
}
main {
display: block;
}
blockquote,
body,
dd,
dl,
figcaption,
figure,
h1,
h2,
h3,
h4,
h5,
h6,
li,
ol[class],
p,
ul[class] {
margin: 0;
font-weight: normal;
}
code,
kbd,
pre,
samp,
tt,
var {
padding: 0;
margin: 0;
tab-size: 2;
font-family: var(--font-mono, monospace);
font-variation-settings: var(--font-mono-variation);
font-weight: 350;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
ol[class],
ul[class] {
padding: 0;
}
a,
a:visited {
text-decoration: none;
background-color: transparent;
}
abbr[title] {
border-bottom: none;
text-decoration: underline dotted;
}
b,
strong {
font-weight: 600;
}
i,
em {
font-style: italic;
font-variation-settings:
var(--font-sans-variation),
'slnt' -15;
}
em code {
font-variation-settings:
var(--font-mono-variation),
'slnt' -15;
}
small {
font-size: 0.8rem;
}
button,
input,
optgroup,
select,
textarea {
font-family: inherit;
font-size: 100%;
line-height: 1.15;
margin: 0;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
button {
cursor: pointer;
padding: 0.25rem 0.5rem;
border: 0;
outline: 0;
background: 0;
}
[type='button'],
[type='reset'],
[type='submit'],
button {
appearance: button;
}
[type='button']::-moz-focus-inner,
[type='reset']::-moz-focus-inner,
[type='submit']::-moz-focus-inner,
button::-moz-focus-inner {
border-style: none;
padding: 0;
}
[type='button']:-moz-focusring,
[type='reset']:-moz-focusring,
[type='submit']:-moz-focusring,
button:-moz-focusring {
outline: 1px dotted #000;
}
input {
width: 100%;
padding: 0.75rem 1rem;
border: none;
border-radius: 0.5rem;
background-color: var(--bg-base);
}
textarea {
overflow: auto;
}
img {
max-width: 100%;
display: block;
border-style: none;
}
fieldset {
padding: 0.35rem 0.75rem 0.625rem;
}
legend {
box-sizing: border-box;
color: inherit;
display: table;
max-width: 100%;
padding: 0;
white-space: normal;
}
progress {
vertical-align: baseline;
}
[type='checkbox'],
[type='radio'] {
box-sizing: border-box;
padding: 0;
}
[type='number']::-webkit-inner-spin-button,
[type='number']::-webkit-outer-spin-button {
height: auto;
}
[type='search'] {
-webkit-appearance: textfield;
appearance: textfield;
outline-offset: -2px;
}
[type='search']::-webkit-search-decoration {
-webkit-appearance: none;
appearance: none;
}
::-webkit-file-upload-button {
-webkit-appearance: button;
appearance: button;
font: inherit;
}
details {
display: block;
}
summary {
display: list-item;
}
template {
display: none;
}
[hidden] {
display: none;
}