271 lines
3.7 KiB
CSS
271 lines
3.7 KiB
CSS
/*
|
|
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
|
|
*/
|
|
:root {
|
|
--white: #f8f5f9;
|
|
--transwhite: rgba(248, 245, 249, 0.7);
|
|
--moretranswhite: rgba(248, 245, 249, 0.1);
|
|
--black: #30252b;
|
|
--transblack: rgba(48, 37, 43, 0.7);
|
|
--moretransblack: rgba(48, 37, 43, 0.1);
|
|
--gray: #6d5a6d;
|
|
|
|
--highlight: #f1dcff;
|
|
--red: #f6a7a3;
|
|
--green: #c5e5c0;
|
|
--pink: #e7b0e8;
|
|
--blue: #c3b5f7;
|
|
--yellow: #fbe4b2;
|
|
}
|
|
|
|
|
|
::selection {
|
|
background-color: var(--highlight);
|
|
color: var(--black);
|
|
}
|
|
html,
|
|
body {
|
|
margin: auto;
|
|
padding: 20px;
|
|
max-width: 70ch;
|
|
background-color: var(--white);
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
color: var(--black);
|
|
}
|
|
html,
|
|
body,
|
|
button,
|
|
code {
|
|
font-family: "iA Writer Mono", monospace;
|
|
font-size: 18px;
|
|
}
|
|
h1,
|
|
strong,
|
|
b {
|
|
color: var(--black);
|
|
}
|
|
|
|
body.dark-mode,
|
|
body.dark-mode button,
|
|
body.dark-mode h1,
|
|
body.dark-mode .go-home,
|
|
button.dark-mode,
|
|
button.dark-mode button {
|
|
background: var(--black);
|
|
color: var(--white);
|
|
}
|
|
body.dark-mode nav {
|
|
background: var(--transblack);
|
|
}
|
|
|
|
.tag-title {
|
|
font-weight: 400;
|
|
color: var(--black);
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
::selection {
|
|
background-color: #0f0f0f;
|
|
color: var(--white);
|
|
}
|
|
:root {
|
|
--gray: #a4a4a4;
|
|
}
|
|
html,
|
|
body,
|
|
body button,
|
|
body h1,
|
|
body strong,
|
|
body b,
|
|
body em,
|
|
body blockquote,
|
|
body .go-home {
|
|
background: var(--black);
|
|
color: var(--white);
|
|
}
|
|
body nav {
|
|
background: var(--transblack);
|
|
}
|
|
body code {
|
|
background-color: var(--moretranswhite);
|
|
}
|
|
body a {
|
|
color: var(--white);
|
|
}
|
|
body .tag {
|
|
color: var(--gray);
|
|
}
|
|
.tag-title {
|
|
color: var(--white);
|
|
}
|
|
}
|
|
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5,
|
|
h6 {
|
|
color: var(--gray);
|
|
line-height: 1.1;
|
|
}
|
|
|
|
header {
|
|
position: relative;
|
|
}
|
|
|
|
a {
|
|
color: var(--black);
|
|
text-decoration-thickness: 0.3ex;
|
|
text-underline-offset: 0.3ex;
|
|
}
|
|
|
|
nav {
|
|
position: sticky;
|
|
top: 0;
|
|
text-align: center;
|
|
background: var(--transwhite);
|
|
-webkit-backdrop-filter: blur(1px);
|
|
backdrop-filter: blur(1px);
|
|
}
|
|
|
|
nav a {
|
|
margin: 25px 0;
|
|
}
|
|
nav a:not(:last-child) {
|
|
padding: 0 12px 0 0;
|
|
}
|
|
|
|
hr {
|
|
border-top: 1px solid var(--gray);
|
|
margin: 1rem 0;
|
|
}
|
|
|
|
ul.posts-list,
|
|
ul.tags-list {
|
|
padding: unset;
|
|
list-style-type: none;
|
|
}
|
|
|
|
.post {
|
|
margin: 0 0 30px 0;
|
|
}
|
|
|
|
.post .title {
|
|
font-size: 1.3em;
|
|
}
|
|
|
|
.tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
.tag {
|
|
display: inline-block;
|
|
margin-right: 20px;
|
|
color: var(--black);
|
|
font-size: 0.8rem;
|
|
}
|
|
.tag:hover {
|
|
cursor: pointer;
|
|
font-weight: bold;
|
|
}
|
|
|
|
textarea {
|
|
width: 100%;
|
|
font-size: 16px;
|
|
}
|
|
input {
|
|
font-size: 16px;
|
|
}
|
|
main,
|
|
content {
|
|
line-height: 1.6;
|
|
}
|
|
table {
|
|
width: 100%;
|
|
}
|
|
img {
|
|
max-width: 100%;
|
|
height: auto;
|
|
}
|
|
code {
|
|
padding: 2px 5px;
|
|
background-color: var(--moretransblack);
|
|
font-weight: bold;
|
|
}
|
|
pre {
|
|
padding: 1rem;
|
|
}
|
|
pre > code {
|
|
all: unset;
|
|
}
|
|
blockquote {
|
|
border: 1px solid var(--gray);
|
|
color: var(--black);
|
|
padding: 2px 0px 2px 20px;
|
|
margin: 0px;
|
|
font-style: italic;
|
|
}
|
|
|
|
h1 {
|
|
font-weight: 400;
|
|
}
|
|
|
|
h2 {
|
|
font-weight: 400;
|
|
}
|
|
|
|
h3 {
|
|
text-align: center;
|
|
}
|
|
|
|
.center {
|
|
text-align: center;
|
|
}
|
|
|
|
.header-section {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.header-frame {
|
|
max-width: 350px;
|
|
}
|
|
|
|
article :not(.article-title) {
|
|
line-height: 1.8;
|
|
}
|
|
|
|
.article-title {
|
|
font-size: 2em;
|
|
margin: 0.25em 0;
|
|
}
|
|
|
|
.blog-post {
|
|
font-size: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
|
|
}
|
|
|
|
.blog-post > * + * {
|
|
margin-block-start: 1em;
|
|
}
|
|
|
|
time {
|
|
font-style: italic;
|
|
color: var(--gray);
|
|
}
|
|
|
|
ul li time {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
nav a:not(:last-child) {
|
|
padding: 0;
|
|
}
|
|
}
|