mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2026-07-30 11:45:21 -04:00
not messing with the base font size sure fixes a ton of problems....
This commit is contained in:
+9
-8
@@ -14,10 +14,6 @@ body {
|
||||
font-kerning: normal;
|
||||
font-variant-ligatures: normal;
|
||||
font-feature-settings: "kern", "liga", "calt", "clig", "ss01";
|
||||
|
||||
// global base font size:
|
||||
font-size: 0.975em;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
code,
|
||||
@@ -26,7 +22,6 @@ samp,
|
||||
pre,
|
||||
.monospace {
|
||||
font-family: typography.$font-stack-mono;
|
||||
letter-spacing: normal;
|
||||
}
|
||||
|
||||
// override above font-family if browser supports variable fonts
|
||||
@@ -95,7 +90,6 @@ a {
|
||||
// all code
|
||||
code {
|
||||
font-size: 0.925em;
|
||||
letter-spacing: normal;
|
||||
page-break-inside: avoid;
|
||||
}
|
||||
|
||||
@@ -118,7 +112,6 @@ code {
|
||||
color: var(--medium-light);
|
||||
background: none;
|
||||
font-weight: 300;
|
||||
line-height: 1;
|
||||
opacity: 0; // overridden on hover
|
||||
user-select: none;
|
||||
|
||||
@@ -136,7 +129,7 @@ h2,
|
||||
h3,
|
||||
h4 {
|
||||
// offset (approximately) with sticky header so jumped-to content isn't hiding behind it
|
||||
scroll-margin-top: 90px;
|
||||
scroll-margin-top: 4em;
|
||||
|
||||
&:hover {
|
||||
.h-anchor {
|
||||
@@ -145,6 +138,14 @@ h4 {
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
h2,
|
||||
h3,
|
||||
h4 {
|
||||
scroll-margin-top: 5em;
|
||||
}
|
||||
}
|
||||
|
||||
// https://web.dev/prefers-reduced-motion/#(bonus)-forcing-reduced-motion-on-all-websites
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
*,
|
||||
|
||||
Reference in New Issue
Block a user