summaryrefslogtreecommitdiff
path: root/static/css
diff options
context:
space:
mode:
Diffstat (limited to 'static/css')
-rw-r--r--static/css/blog.css77
-rw-r--r--static/css/home.css75
-rw-r--r--static/css/styles.css93
3 files changed, 245 insertions, 0 deletions
diff --git a/static/css/blog.css b/static/css/blog.css
new file mode 100644
index 0000000..08097f0
--- /dev/null
+++ b/static/css/blog.css
@@ -0,0 +1,77 @@
+:root {
+ --blog-bg: var(--body-bg);
+ --blog-fg: var(--body-fg);
+
+ --blog-date-color: #69dbd6;
+
+ --blog-h1-fg: #bf87d0;
+ --blog-h2-fg: #bf87d0;
+ --blog-h3-fg: #ff7070;
+ --blog-h4-fg: #76d674;
+ --blog-h5-fg: #9c80f4;
+ --blog-h6-fg: #ef7b7a;
+}
+
+#site-blog-page a {
+ text-decoration: none;
+}
+
+#site-blog-page h1 { color: var(--blog-h1-fg); }
+#site-blog-page h2 { color: var(--blog-h2-fg); }
+#site-blog-page h3 { color: var(--blog-h3-fg); }
+#site-blog-page h4 { color: var(--blog-h4-fg); }
+#site-blog-page h5 { color: var(--blog-h5-fg); }
+#site-blog-page h6 { color: var(--blog-h6-fg); }
+
+#blog-list .blog-post-wrapper {
+ padding: 0.3rem 0;
+}
+
+#blog-list .blog-section-wrapper {
+ margin: 2rem 0;
+}
+
+#blog-list .blog-section {
+ background-color: var(--listitem-bg1);
+ margin: 0;
+ padding: 0.5rem 0 0 0.8rem;
+ border-radius: 1rem 1rem 0 0;
+ border-bottom: 1px dotted var(--blog-date-color);
+}
+
+#blog-list .blog-post-wrapper:nth-child(even) {
+ background-color: var(--listitem-bg2);
+}
+
+#blog-list .blog-post-wrapper:nth-child(odd) {
+ background-color: var(--listitem-bg1);
+}
+
+#blog-list .blog-post {
+ display: grid;
+ grid-template-columns: 4rem 1fr;
+ align-items: start;
+ padding-left: 0.8rem;
+}
+
+#blog-list .blog-post .date {
+ color: var(--blog-date-color);
+}
+
+#blog-list .blog-post .title {
+ color: var(--blog-fg);
+}
+
+#blog-post header h1 {
+ text-align: center;
+}
+
+#blog-post-details {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: space-evenly;
+}
+
+#blog-post header hr {
+ color: var(--blog-h1-fg);
+}
diff --git a/static/css/home.css b/static/css/home.css
new file mode 100644
index 0000000..a408685
--- /dev/null
+++ b/static/css/home.css
@@ -0,0 +1,75 @@
+#home-wrapper {
+ background-color: var(--home-bg);
+ color: var(--home-fg);
+
+ min-height: 100vh;
+ overflow: hidden;
+
+ display: flex;
+ justify-content: center;
+}
+
+#home {
+ max-width: 1300px;
+ width: 95%;
+
+ margin: auto;
+}
+
+#home #nav-wrapper {
+ margin: 3rem 0;
+ width: 100%;
+ display: flex;
+ flex-direction: row;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 3rem;
+}
+
+#home #my-image-wrapper {
+ width: 20rem;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
+#home #my-image {
+ border-radius: 50%;
+ height: 100%;
+ width: 100%;
+}
+
+#home #title-nav nav {
+ display: flex;
+ justify-content: left;
+ gap: 0.7rem;
+}
+
+#home #title-nav nav a {
+ color: var(--home-fg);
+}
+
+@media only screen and (max-width: 1000px) {
+ #home-wrapper {
+ display: block;
+ }
+
+ #home #nav-wrapper {
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ text-align: center;
+ margin: 1rem 0;
+ gap: 0;
+ }
+
+ #home #my-image-wrapper {
+ width: 16rem;
+ max-width: 90vw;
+ }
+
+ #home #title-nav nav {
+ justify-content: center;
+ flex-wrap: wrap;
+ }
+}
diff --git a/static/css/styles.css b/static/css/styles.css
new file mode 100644
index 0000000..9b5a5ab
--- /dev/null
+++ b/static/css/styles.css
@@ -0,0 +1,93 @@
+:root {
+ --body-bg: #1d1f21;
+ --body-fg: #c5c8c6;
+
+ --selection-bg: #bf87d0;
+ --selection-fg: #232627;
+
+ --nav-fg: #edafb8;
+ --nav-selected-fg: #232627;
+ --nav-selected-bg: #bf87d0;
+
+ --link-fg: #23d19b;
+
+ --home-bg: #56355D;
+ --home-fg: #ffffff;
+
+ --listitem-bg1: #232323;
+ --listitem-bg2: #272727;
+}
+
+* {
+ font-family: sans-serif;
+ box-sizing: border-box;
+}
+
+body {
+ background-color: var(--body-bg);
+ color: var(--body-fg);
+
+ line-height: 1.5;
+
+ margin: 0;
+ padding: 0;
+}
+
+::selection {
+ background: var(--selection-bg);
+ color: var(--selection-fg);
+}
+
+::-moz-selection {
+ background: var(--selection-bg);
+ color: var(--selection-fg);
+}
+
+a {
+ color: var(--link-fg);
+}
+
+img {
+ width: 100%;
+}
+
+main:not(#site-home-page) {
+ max-width: 1000px;
+ width: 95%;
+ margin: auto;
+}
+
+#site-header {
+ width: 100%;
+ margin-top: 1rem;
+ display: flex;
+ justify-content: center;
+}
+
+#global-nav {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 0.5rem;
+}
+
+#global-nav a {
+ text-decoration: none;
+ color: var(--nav-fg);
+ padding: 0 6px;
+}
+
+#global-nav a#nav-link-active {
+ background-color: var(--nav-selected-bg);
+ color: var(--nav-selected-fg);
+}
+
+footer {
+ max-width: 95%;
+ margin: auto;
+}
+
+footer #copyright {
+ text-align: center;
+ line-height: 1.1;
+}