plume.pink

CSS Theme

The CSS theme of plume.pink is a mix of various things. At it's core, it is the Default Bearblog theme, with some of the Sakura default theme added in it, for the fonts notably and the way it renders blockquotes. All of this comes with various personal adjustments and all of the colors were handpicked. :)

Also big credit to the amazing Loïs for all of her help in helping me better understand CSS and also helping me fix some of the problems I've encountered in making that theme. 🩵

Version 2024-10-11, 02:11.

:root {
    --width: 720px;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-secondary: Verdana, sans-serif;
    --font-scale: 1.1em;
    --background-color: #fff8fe;
    --heading-color: #AC538A;
    --text-color: #000000;
    --link-color: #7F3D66;
    --visited-color: #2e1b30;
    --code-background-color: #f8eef7;
    --code-color: #222;
    --blockquote-color: #222; 
}

@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #241a23;
        --heading-color: #ffe5fd;
        --text-color: #fcfcfc;
        --link-color: #ffd2fc;
  		--visited-color: #fcfcfc;
        --code-background-color: #332832;
        --code-color: #ffe5fd;
        --blockquote-color: #ffe5fd;
    }
  
}

body {
    font-family: var(--font-secondary);
    font-size: var(--font-scale);
    margin: auto;
    padding: 20px;
    max-width: var(--width);
    text-align: left;
    background-color: var(--background-color);
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--text-color);
}


/* This makes the title of posts center.
> Target the first h1 element inside the main element and center it */
body.post > main > h1:first-of-type {
  text-align: center;
}


/* This makes the tags in posts disappear.
> Target the tags class in posts and prevents them from appearing.*/

body.post > main > .tags {
  display: none;
  
}


/* This is the linebreak thingy. */
hr {
    border: 0;
    border-top: 4px solid var(--code-background-color);
}

/* Fix linebreaks for the navbar */
nav a {
  display: inline-block;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-main);
    color: var(--heading-color);
}

a {
    color: var(--link-color);
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: underline; 
}

nav a {
    margin-right: 8px;
}

strong, b {
    color: var(--text-color);
}

button {
    margin: 0;
    cursor: pointer;
}

main {
    line-height: 1.6;
}

table {
    width: 100%;

}

img {
    max-width: 100%;
}

code {
    font-family: monospace;
    padding: 2px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
}

blockquote {
    border-left: 5px solid var(--link-color);
  	padding: 20px;
  	margin: 15px;
  	line-height: 35px;
  	font-size: 18px;
  	background-color: var(--code-background-color);
    color: var(--code-color);
}

table, th, td {
  border: 1px dashed black;
  border-collapse: collapse;
  padding: 2px 4px;
}

time {
  display: none;
}

footer {
    padding: 25px 0;
    text-align: center;
}

.title:hover {
    text-decoration: none;
}

.title h1 {
    font-family: var(--font-main);
    text-align: center
}

.inline {
    width: auto !important;
}

.highlight, .code {
    padding: 1px 15px;
    background-color: var(--code-background-color);
    color: var(--code-color);
    border-radius: 3px;
    margin-block-start: 1em;
    margin-block-end: 1em;
    overflow-x: scroll;
}

    .upvote-button {
        padding: 0;
        margin: 0;
        border: 0;
        background-color: inherit;
        color: inherit;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .upvote-button.upvoted {
        color: var(--link-color);
    }
    .upvote-count {
        margin-top: -3px;
    }

/* Hide original bearblog footer */
body > footer > span:last-of-type {
  display: none;

#info