add some rounded corners and theme transition fading

This commit is contained in:
2022-01-21 12:05:01 -05:00
parent 7e37adabc1
commit 224358fd68
26 changed files with 127 additions and 207 deletions
+7 -5
View File
@@ -2,7 +2,10 @@ body {
width: 100%;
height: 100%;
margin: 0 auto;
color: var(--text);
background-color: var(--background-outer);
/* light-dark theme switch fading */
transition: background 0.25s ease;
}
a {
@@ -10,21 +13,20 @@ a {
text-decoration: none;
background-position: 0% 100%;
background-repeat: no-repeat;
background-size: 0% 2px;
padding-bottom: 2px;
transition: background-size 0.25s ease-in-out;
background-size: 0% var(--link-underline-size);
padding-bottom: var(--link-underline-size);
transition: background-size 0.25s ease-in-out, color 0.25s ease, border 0.25s ease;
background-image: linear-gradient(var(--link-underline), var(--link-underline));
}
a:hover {
background-size: 100% 2px;
background-size: 100% var(--link-underline-size);
}
/* set an anchor's class to `no-underline` to disable all of the above */
a.no-underline {
background: none !important;
padding-bottom: 0;
transition: none;
}
/* make SVG icons relative in size/position to surrounding text */
+12
View File
@@ -0,0 +1,12 @@
:root {
--rounded-edge-radius: 8px;
--link-underline-size: 2px;
--font-family-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
sans-serif;
--font-family-sans-variable: InterVariable, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
Helvetica, Arial, sans-serif;
--font-family-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier;
--font-family-mono-variable: "Roboto MonoVariable", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
Courier;
}
+4 -6
View File
@@ -1,5 +1,5 @@
body {
font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
font-family: var(--font-family-sans);
font-kerning: normal;
font-variant-ligatures: normal;
font-feature-settings: "kern", "liga", "calt", "clig", "ss01";
@@ -10,7 +10,7 @@ kbd,
samp,
pre,
.monospace {
font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-family: var(--font-family-mono);
}
/*
@@ -19,8 +19,7 @@ pre,
*/
@supports (font-variation-settings: normal) {
body {
font-family: InterVariable, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
sans-serif;
font-family: var(--font-family-sans-variable);
font-optical-sizing: auto;
}
@@ -29,8 +28,7 @@ pre,
samp,
pre,
.monospace {
font-family: "Roboto MonoVariable", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier,
monospace;
font-family: var(--font-family-mono-variable);
}
/*