commit 8f1a10aa70634dbda6eb6e3c49665131cc29932b
parent 46969a392e72dfff79527b4b825a9a5238982204
Author: FIGBERT <figbert@figbert.com>
Date: Tue, 21 Dec 2021 11:46:41 -0800
Update CSS
Diffstat:
M | static/global.css | | | 189 | +++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------- |
1 file changed, 127 insertions(+), 62 deletions(-)
diff --git a/static/global.css b/static/global.css
@@ -1,108 +1,174 @@
:root {
- --background-color: #f5f5f5;
- --text-color: #212121;
- --secondary-color: #4169e1;
- --tertiary-color: #b6c6f4;
-}
-
-@media(prefers-color-scheme: dark) {
- :root {
- --background-color: #212121;
- --text-color: #f5f5f5;
- }
+ --background-color: #1F1E1E;
+ --secondary-color: #214ED4;
+ --tertiary-color: #6082E6;
+ --text-color: #F5F5F5;
+ --link-color: #DCE4F9;
}
+/* Main */
body {
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
+ font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Cantarell, Ubuntu, Helvetica, Arial, sans-serif;
background-color: var(--background-color);
+ padding: 0 3rem 3rem 3rem;
color: var(--text-color);
- margin-left: auto;
margin-right: auto;
+ margin-left: auto;
line-height: 200%;
+ font-weight: 400;
max-width: 40rem;
- padding-left: 3rem;
- padding-right: 3rem;
- padding-bottom: 3rem;
}
+video, picture, img {
+ width: 100%;
+}
+
+p {
+ margin-top: 0;
+}
+
+article > p {
+ line-height: 2;
+ margin-top: 0.5rem;
+ margin-bottom: 1rem;
+}
+
+a {
+ font-weight: 450;
+ color: var(--link-color);
+ text-decoration-color: var(--tertiary-color);
+}
+
+a:hover {
+ text-decoration-color: var(--secondary-color);
+}
+
+/* Headings */
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin: 0;
+ font-weight: 700;
+ position: relative;
+}
+
+h1 > a,
+h2 > a,
+h3 > a,
+h4 > a,
+h5 > a,
+h6 > a {
+ text-decoration: none;
+ color: inherit;
+}
+
+.zola-anchor {
+ opacity: 0;
+ position: absolute;
+ right: 101%;
+ transition: opacity .1s linear;
+ color: var(--tertiary-color);
+}
+
+h1:hover > .zola-anchor,
+h2:hover > .zola-anchor,
+h3:hover > .zola-anchor,
+h4:hover > .zola-anchor,
+h5:hover > .zola-anchor,
+h6:hover > .zola-anchor {
+ opacity: 100;
+}
+
+/* Nav */
nav {
width: 100%;
display: flex;
+ font-weight: 600;
justify-content: space-around;
- padding-bottom: 1rem;
}
-a {
+nav > a {
color: inherit;
- font-weight: 500;
- text-decoration: underline;
+ text-decoration: none;
}
-a:hover {
- color: var(--tertiary-color);
- text-decoration-color: var(--secondary-color);
+header {
+ padding-bottom: 0.5rem;
}
+/* Code */
pre {
padding: 1rem;
white-space: pre-wrap;
+ border: 1px solid #CCC;
}
-video, picture, img {
- width: 100%;
+pre > code {
+ border: none;
}
-h1::before {
- content: "#";
- padding-right: 0.5rem;
- color: var(--secondary-color);
+code {
+ font-size: 1rem;
+ padding: 0 4px;
+ border: 1px solid #CCC;
}
-h2::before {
- content: "##";
- padding-right: 0.5rem;
- color: var(--secondary-color);
+/* Quotes */
+blockquote {
+ border-left: 5px solid var(--secondary-color);
+ margin: 1.5rem 0;
+ padding: 0 1.5rem;
}
-h3::before {
- content: "###";
- padding-right: 0.5rem;
- color: var(--secondary-color);
+/* Tables */
+table {
+ border-collapse: collapse;
+ width: 100%;
}
-h4::before {
- content: "####";
- padding-right: 0.5rem;
- color: var(--secondary-color);
+thead {
+ background-color: var(--tertiary-color);
}
-h5::before {
- content: "#####";
- padding-right: 0.5rem;
- color: var(--secondary-color);
+td, th {
+ border: 1px solid var(--text-color);
+ padding: 0.5rem;
+ text-align: left;
}
-h6::before {
- content: "######";
- padding-right: 0.5rem;
- color: var(--secondary-color);
+/* Keyboard */
+kbd {
+ color: var(--background-color);
+ font-size: 1.25rem;
+ padding: 0.05rem 0.4rem;
+ text-shadow: 0 1px 0 #FFF;
+ background-color: #E4E6E8;
+ border: 1px solid #726E6E;
+ border-radius: 3px;
+ box-shadow: 0 1px 1px rgba(244,245,245,0.15), inset 0 1px 0 0 #FFF;
}
-.emoji > svg {
- width: 2rem;
- height: auto;
- vertical-align: top;
+/* Posts and Projects */
+.date-list {
+ padding: 0;
}
-.page-preview {
- margin-top: 2rem;
- margin-bottom: 4rem;
+.date-list > li {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ line-height: 145%;
+ padding: 0 0 1rem 0;
}
-.page-preview > h3 {
- margin: 0;
+.date-list > li > a {
+ flex-basis: 50%;
}
+/* Error */
.error {
display: grid;
place-items: center;
@@ -110,17 +176,16 @@ h6::before {
height: 100%;
}
-.error > img {
+.error > svg {
max-width: 19rem;
}
.error > strong {
font-size: 5rem;
- font-weight: 800;
+ margin-bottom: 1.5rem;
}
.error > p {
font-size: 2rem;
- font-weight: 200;
+ margin: 0;
}
-