Very first version of pantosite-astro

This commit is contained in:
Anton Pogrebnjak
2024-12-27 22:05:12 +01:00
parent f82a00b1da
commit f83c6af99b
62 changed files with 1237 additions and 654 deletions

View File

@@ -1,91 +1,164 @@
/*
The CSS in this style tag is based off of Bear Blog's default CSS.
https://github.com/HermanMartinus/bearblog/blob/297026a877bc2ab2b3bdfbd6b9f7961c350917dd/templates/styles/blog/default.css
License MIT: https://github.com/HermanMartinus/bearblog/blob/master/LICENSE.md
*/
@font-face {
font-family: "Ubuntu";
src: url("/fonts/Ubuntu/Ubuntu-Regular.ttf");
font-weight: normal;
}
@font-face {
font-family: "Ubuntu";
src: url("/fonts/Ubuntu/Ubuntu-Bold.ttf");
font-weight: bold;
}
@font-face {
font-family: "Ubuntu";
src: url("/fonts/Ubuntu/Ubuntu-Italic.ttf");
font-style: italic;
}
@font-face {
font-family: "Ubuntu";
src: local("Ubuntu"),
url("/fonts/Ubuntu/Ubuntu-BoldItalic.ttf");
font-weight: bold;
font-style: italic;
}
:root {
--accent: #2337ff;
--accent-dark: #000d8a;
--black: 15, 18, 25;
--gray: 96, 115, 159;
--gray-light: 229, 233, 240;
--gray-dark: 34, 41, 57;
--gray-gradient: rgba(var(--gray-light), 50%), #fff;
--box-shadow: 0 2px 6px rgba(var(--gray), 25%), 0 8px 24px rgba(var(--gray), 33%),
0 16px 32px rgba(var(--gray), 33%);
--text: #ffffff;
--text-soft: #ddd;
--background: #121212;
--primary: #2df598;
--primary-soft: #22cf7e;
--secondary: #222021;
--accent: #8b8484;
--standard-box-shadow: 0 0 182px 0px rgba(255, 255, 255, 0.2);
}
@font-face {
font-family: 'Atkinson';
src: url('/fonts/atkinson-regular.woff') format('woff');
font-weight: 400;
font-style: normal;
font-display: swap;
}
@font-face {
font-family: 'Atkinson';
src: url('/fonts/atkinson-bold.woff') format('woff');
font-weight: 700;
font-style: normal;
font-display: swap;
* {
box-sizing: border-box;
}
body {
font-family: 'Atkinson', sans-serif;
margin: 0;
padding: 0;
text-align: left;
background: linear-gradient(var(--gray-gradient)) no-repeat;
background-size: 100% 600px;
word-wrap: break-word;
overflow-wrap: break-word;
color: rgb(var(--gray-dark));
font-size: 20px;
line-height: 1.7;
margin: 0;
min-height: 100vh;
background-color: var(--background);
color: var(--text);
font-family: "Ubuntu", sans-serif;
font-size: 1.4rem;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
gap: 2rem;
}
main {
width: 720px;
max-width: calc(100% - 2em);
margin: auto;
padding: 3em 1em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 0 0 0.5rem 0;
color: rgb(var(--black));
line-height: 1.2;
a {
text-decoration: none;
color: var(--primary);
}
h1 {
font-size: 3.052em;
}
h2 {
font-size: 2.441em;
}
h3 {
font-size: 1.953em;
}
h4 {
font-size: 1.563em;
}
h5 {
font-size: 1.25em;
text-align: center;
}
strong,
b {
font-weight: 700;
}
a {
color: var(--accent);
a.more {
display: block;
margin-top: 2em;
font-weight: bold;
}
a:hover {
color: var(--accent);
.indent {
margin-left: 2em;
}
i {
font-size: 2rem;
color: #ffffff;
margin: 0 0.5rem;
}
main {
position: relative;
width: 60vw;
}
footer {
bottom: 0;
left: 0;
right: 0;
padding: 1rem;
text-align: center;
}
.side-scroller {
display: flex;
flex-direction: column;
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
}
.side-scroller .content {
margin: 8px;
}
pre {
background-color: #0000008a;
border-radius: 4px;
padding: 2%;
font-size: 0.9rem;
color: #ddd;
overflow: auto;
}
strong {
font-weight: bold;
}
p {
line-height: 1.5;
margin-bottom: 1em;
}
code {
font-size: 1.2rem;
color: var(--accent);
}
.wink::after {
content: "ಠ_ಠ";
font-family: "Ubuntu";
}
.wink:hover::after {
content: "ಠ‿↼";
font-family: "Ubuntu";
}
quote {
width: 80%;
text-overflow: clip;
color: #ddd;
}
quote p {
margin: 0;
padding: 8px;
font-weight: 600;
line-height: 1.5;
text-align: center;
color: #aaa;
}
.prose p {
margin-bottom: 2em;
}
@@ -124,15 +197,22 @@ blockquote {
}
hr {
border: none;
border-top: 1px solid rgb(var(--gray-light));
border-top: 1px solid var(--primary);
width: 100%;
}
@media (max-width: 720px) {
@media screen and (max-width: 720px) {
body {
font-size: 18px;
}
main {
width: 100vw;
padding: 1em;
}
header .logo {
display: none;
}
}
.sr-only {