188 lines
2.3 KiB
SCSS
188 lines
2.3 KiB
SCSS
/*
|
|
=================================================
|
|
https://www.joshwcomeau.com/css/custom-css-reset/
|
|
=================================================
|
|
*/
|
|
|
|
/*
|
|
1. Use a more-intuitive box-sizing model.
|
|
*/
|
|
*,
|
|
*::before,
|
|
*::after {
|
|
box-sizing: border-box;
|
|
}
|
|
/*
|
|
2. Remove default margin
|
|
*/
|
|
* {
|
|
margin: 0;
|
|
}
|
|
/*
|
|
3. Allow percentage-based heights in the application
|
|
*/
|
|
html,
|
|
body,
|
|
div#app {
|
|
height: 100%;
|
|
}
|
|
/*
|
|
Typographic tweaks!
|
|
4. Add accessible line-height
|
|
5. Improve text rendering
|
|
*/
|
|
body {
|
|
line-height: 1.5;
|
|
-webkit-font-smoothing: antialiased;
|
|
}
|
|
/*
|
|
6. Improve media defaults
|
|
*/
|
|
img,
|
|
picture,
|
|
video,
|
|
canvas,
|
|
svg {
|
|
display: block;
|
|
max-width: 100%;
|
|
}
|
|
/*
|
|
7. Remove built-in form typography styles
|
|
*/
|
|
input,
|
|
button,
|
|
textarea,
|
|
select {
|
|
font: inherit;
|
|
}
|
|
/*
|
|
8. Avoid text overflows
|
|
*/
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
overflow-wrap: break-word;
|
|
}
|
|
/*
|
|
9. Create a root stacking context
|
|
*/
|
|
#root,
|
|
#__next {
|
|
isolation: isolate;
|
|
}
|
|
|
|
/*
|
|
=================================================
|
|
https://blog.koley.in/2019/339-bytes-of-responsive-css
|
|
https://www.swyx.io/css-100-bytes
|
|
https://gist.github.com/JoeyBurzynski/617fb6201335779f8424ad9528b72c41
|
|
=================================================
|
|
*/
|
|
|
|
html,
|
|
body {
|
|
padding: 0;
|
|
max-width: 100%;
|
|
color: #222;
|
|
font-family: Verdana, serif;
|
|
}
|
|
|
|
body {
|
|
background-color: #eee;
|
|
}
|
|
|
|
main {
|
|
padding: 1.5rem;
|
|
margin: auto;
|
|
background-color: #ccc;
|
|
min-height: 100%;
|
|
}
|
|
|
|
table {
|
|
border-collapse: collapse;
|
|
width: 100%;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
margin: 1em 0 0.5em;
|
|
}
|
|
|
|
p,
|
|
ul,
|
|
ol,
|
|
pre,
|
|
img,
|
|
blockquote,
|
|
details {
|
|
margin-bottom: 1em;
|
|
color: #444;
|
|
}
|
|
|
|
hr {
|
|
opacity: 25%;
|
|
border-bottom: 0;
|
|
margin-bottom: 0.5em;
|
|
}
|
|
|
|
textarea,
|
|
input,
|
|
select,
|
|
pre,
|
|
.mono {
|
|
font-family: monospace;
|
|
}
|
|
|
|
@media only screen and (min-width: 768px) {
|
|
main {
|
|
max-width: 42rem;
|
|
}
|
|
table {
|
|
font-size: inherit;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* MD BLOG
|
|
*/
|
|
|
|
nav {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.home nav {
|
|
margin-bottom: 1em;
|
|
vertical-align: text-bottom;
|
|
}
|
|
|
|
.home .nav-title {
|
|
font-size: xx-large;
|
|
}
|
|
|
|
nav .nav-title {
|
|
font-size: larger;
|
|
font-weight: bold;
|
|
color: inherit;
|
|
display: inline-block;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
nav .nav-items {
|
|
display: flex;
|
|
gap: 0.5em;
|
|
}
|
|
|
|
.article-info {
|
|
font-style: italic;
|
|
}
|