Files
site/static/index.css
2022-03-12 12:14:40 -06:00

192 lines
3.1 KiB
CSS

/*
Copyright (C) 2022 Rawley Fowler
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.Rawley Fowler, 2022
*/
/* Color Scheme from here: https://draculatheme.com */
html {
max-width: 100vw;
min-height: 100vh;
}
body {
color: #282a36;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
-webkit-font-smoothing: antialias;
-moz-osx-font-smoothing: grayscale;
background-color: #f8f8f2;
font-size: calc(12px + 0.33vw);
margin: auto;
padding: 1.3em;
max-width: clamp(400px, 750px + 3vw, 900px);
}
h1 {
font-size: 2em;
font-weight: 800;
margin-bottom: 0;
margin-top: 12px;
font-style: italic;
}
h2 {
font-size: 1.5em;
font-weight: 700;
margin-bottom: 0;
}
h3 {
font-size: 1.4em;
font-weight: 600;
margin-bottom: 6px;
}
h4 {
font-size: 1.3em;
font-weight: 600;
margin-bottom: 6px;
}
p {
font-size: clamp(1em, 1.1em, 1.22em);
font-weight: 400;
line-height: 1.4;
max-width: 50em;
}
li {
padding-top: 6px;
padding-bottom: 6px;
}
a {
text-decoration: none;
position: relative;
transition: 100ms linear;
color: inherit;
}
a::after {
content: '';
position: absolute;
z-index: -1;
top: 83%;
left: 0;
right: 0;
bottom: 0;
transition: 102ms cubic-bezier(0, 0.86, 0.1, 1);
background-color: #fff42b;
}
a:hover:after {
top: 8%;
}
.header {
display: flex;
flex-direction: column;
justify-content: center;
}
.nav-bar {
display: flex;
flex-direction: row;
font-size: 1.1em;
margin-top: calc(12px + 1vh);
margin-bottom: 1vw;
}
.nav-item {
display: block;
margin-right: 12px;
font-weight: 800;
}
.content-wrapper {
margin: 12px;
}
.subtext, .sub-text {
font-size: clamp(0.65em, 0.72em, 0.8em);
}
.footer > a {
margin-right: 6px;
}
.footer-text {
font-size: 0.8em;
}
.post-record {
padding-right: 6px;
width: 200px + 2vw;
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
margin-top: 12px;
}
.post-record-title {
font-size: 1.3em;
font-weight: 400;
}
.skill-keywords {
overflow: wrap;
font-size: 0.9em;
}
.skill-keywords > i::before {
content: " '";
}
.skill-keywords > i::after {
content: "' ";
}
/* For code snippets */
code {
background-color: #44475a;
color: #50fa7b;
padding: 3px;
font-family: monospace;
}
code::before {
content: "\A";
white-space: pre;
}
code::after {
content: "\A";
}
@media (prefers-color-scheme: dark) {
body {
color: #f8f8f2;
background-color: #282a36;
}
body * {
color: #f8f8f2;
}
body > * {
color: #f8f8f2;
}
a::after {
background-color: #bd93f9;
}
}