Customize colors: black background, green text, monospace font

This commit is contained in:
Daniel 2026-05-07 21:55:09 +02:00
parent ac058f465c
commit 20bcba1939
3 changed files with 96 additions and 29 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 100 KiB

View File

@ -32,13 +32,15 @@
*/ */
html { html {
font-family: "PT Sans", Helvetica, Arial, sans-serif; font-family: "Courier New", "Consolas", "Monaco", monospace;
} }
@media (min-width: 48em) { @media (min-width: 48em) {
html { html {
font-size: 16px; font-size: 16px;
} }
} }
@media (min-width: 58em) { @media (min-width: 58em) {
html { html {
font-size: 20px; font-size: 20px;
@ -56,9 +58,10 @@ html {
.sidebar { .sidebar {
text-align: center; text-align: center;
padding: 2rem 1rem; padding: 2rem 1rem;
color: rgba(255,255,255,.5); color: #00ff41;
background-color: #202020; background-color: #000000;
} }
@media (min-width: 48em) { @media (min-width: 48em) {
.sidebar { .sidebar {
position: fixed; position: fixed;
@ -72,13 +75,13 @@ html {
/* Sidebar links */ /* Sidebar links */
.sidebar a { .sidebar a {
color: #fff; color: #39ff14;
} }
/* About section */ /* About section */
.sidebar-about h1 { .sidebar-about h1 {
color: #fff; color: #00ff00;
margin-top: 0; margin-top: 0;
font-family: "Abril Fatface", serif; font-family: "Abril Fatface", serif;
font-size: 3rem; font-size: 3rem;
@ -101,11 +104,13 @@ html {
list-style: none; list-style: none;
padding-left: 0; padding-left: 0;
} }
.sidebar-social { .sidebar-social {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.sidebar-social-item { .sidebar-social-item {
display: block; display: block;
padding: .25rem 0.8rem; padding: .25rem 0.8rem;
@ -116,19 +121,23 @@ html {
font-size: .8rem; font-size: .8rem;
font-weight: bold; font-weight: bold;
} }
a.sidebar-social-item:hover, a.sidebar-social-item:hover,
a.sidebar-social-item:focus { a.sidebar-social-item:focus {
background: #0001; background: #0001;
text-decoration: none; text-decoration: none;
} }
.sidebar-social-item.active { .sidebar-social-item.active {
color: #0001; color: #0001;
background: #fff; background: #fff;
} }
a.sidebar-social-item.active:hover, a.sidebar-social-item.active:hover,
a.sidebar-social-item.active:focus { a.sidebar-social-item.active:focus {
color: #fff; color: #fff;
} }
.sidebar-footer { .sidebar-footer {
font-size: .7rem; font-size: .7rem;
margin-bottom: 0; margin-bottom: 0;
@ -144,9 +153,9 @@ a.sidebar-social-item.active:focus {
@media (min-width: 48em) { @media (min-width: 48em) {
.sidebar-sticky { .sidebar-sticky {
position: absolute; position: absolute;
right: 1rem; right: 1rem;
bottom: 1rem; bottom: 1rem;
left: 1rem; left: 1rem;
} }
} }
@ -158,7 +167,7 @@ a.sidebar-social-item.active:focus {
*/ */
.content { .content {
padding-top: 4rem; padding-top: 4rem;
padding-bottom: 4rem; padding-bottom: 4rem;
} }
@ -189,6 +198,7 @@ a.sidebar-social-item.active:focus {
left: auto; left: auto;
right: 0; right: 0;
} }
.layout-reverse .content { .layout-reverse .content {
margin-left: 2rem; margin-left: 2rem;
margin-right: 20rem; margin-right: 20rem;
@ -217,6 +227,7 @@ a.sidebar-social-item.active:focus {
.theme-base-08 .sidebar { .theme-base-08 .sidebar {
background-color: #ac4142; background-color: #ac4142;
} }
.theme-base-08 .content a, .theme-base-08 .content a,
.theme-base-08 .related-posts li a:hover { .theme-base-08 .related-posts li a:hover {
color: #ac4142; color: #ac4142;
@ -226,6 +237,7 @@ a.sidebar-social-item.active:focus {
.theme-base-09 .sidebar { .theme-base-09 .sidebar {
background-color: #d28445; background-color: #d28445;
} }
.theme-base-09 .content a, .theme-base-09 .content a,
.theme-base-09 .related-posts li a:hover { .theme-base-09 .related-posts li a:hover {
color: #d28445; color: #d28445;
@ -235,6 +247,7 @@ a.sidebar-social-item.active:focus {
.theme-base-0a .sidebar { .theme-base-0a .sidebar {
background-color: #f4bf75; background-color: #f4bf75;
} }
.theme-base-0a .content a, .theme-base-0a .content a,
.theme-base-0a .related-posts li a:hover { .theme-base-0a .related-posts li a:hover {
color: #f4bf75; color: #f4bf75;
@ -244,6 +257,7 @@ a.sidebar-social-item.active:focus {
.theme-base-0b .sidebar { .theme-base-0b .sidebar {
background-color: #90a959; background-color: #90a959;
} }
.theme-base-0b .content a, .theme-base-0b .content a,
.theme-base-0b .related-posts li a:hover { .theme-base-0b .related-posts li a:hover {
color: #90a959; color: #90a959;
@ -253,6 +267,7 @@ a.sidebar-social-item.active:focus {
.theme-base-0c .sidebar { .theme-base-0c .sidebar {
background-color: #75b5aa; background-color: #75b5aa;
} }
.theme-base-0c .content a, .theme-base-0c .content a,
.theme-base-0c .related-posts li a:hover { .theme-base-0c .related-posts li a:hover {
color: #75b5aa; color: #75b5aa;
@ -260,17 +275,20 @@ a.sidebar-social-item.active:focus {
/* Blue */ /* Blue */
.theme-base-0d .sidebar { .theme-base-0d .sidebar {
background-color: #6a9fb5; background-color: #111111;
border-right: 2px solid #00ff41;
} }
.theme-base-0d .content a, .theme-base-0d .content a,
.theme-base-0d .related-posts li a:hover { .theme-base-0d .related-posts li a:hover {
color: #6a9fb5; color: #39ff14;
} }
/* Magenta */ /* Magenta */
.theme-base-0e .sidebar { .theme-base-0e .sidebar {
background-color: #aa759f; background-color: #aa759f;
} }
.theme-base-0e .content a, .theme-base-0e .content a,
.theme-base-0e .related-posts li a:hover { .theme-base-0e .related-posts li a:hover {
color: #aa759f; color: #aa759f;
@ -280,7 +298,8 @@ a.sidebar-social-item.active:focus {
.theme-base-0f .sidebar { .theme-base-0f .sidebar {
background-color: #8f5536; background-color: #8f5536;
} }
.theme-base-0f .content a, .theme-base-0f .content a,
.theme-base-0f .related-posts li a:hover { .theme-base-0f .related-posts li a:hover {
color: #8f5536; color: #8f5536;
} }

View File

@ -37,8 +37,8 @@
* { * {
-webkit-box-sizing: border-box; -webkit-box-sizing: border-box;
-moz-box-sizing: border-box; -moz-box-sizing: border-box;
box-sizing: border-box; box-sizing: border-box;
} }
html, html,
@ -52,6 +52,7 @@ html {
font-size: 16px; font-size: 16px;
line-height: 1.5; line-height: 1.5;
} }
@media (min-width: 38em) { @media (min-width: 38em) {
html { html {
font-size: 20px; font-size: 20px;
@ -59,20 +60,22 @@ html {
} }
body { body {
color: #515151; color: #00ff41;
background-color: #fff; background-color: #1b1b1d;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
} }
/* No `:visited` state is required by default (browsers will use `a`) */ /* No `:visited` state is required by default (browsers will use `a`) */
a { a {
color: #268bd2; color: #39ff14;
text-decoration: none; text-decoration: underline;
} }
a strong { a strong {
color: inherit; color: inherit;
} }
/* `:focus` is linked to `:hover` for basic accessibility */ /* `:focus` is linked to `:hover` for basic accessibility */
a:hover, a:hover,
a:focus { a:focus {
@ -80,25 +83,36 @@ a:focus {
} }
/* Headings */ /* Headings */
h1, h2, h3, h4, h5, h6 { h1,
h2,
h3,
h4,
h5,
h6 {
margin-bottom: .5rem; margin-bottom: .5rem;
font-weight: bold; font-weight: bold;
line-height: 1.25; line-height: 1.25;
color: #313131; color: #00ff41;
text-rendering: optimizeLegibility; text-rendering: optimizeLegibility;
} }
h1 { h1 {
font-size: 2rem; font-size: 2rem;
} }
h2 { h2 {
margin-top: 1rem; margin-top: 1rem;
font-size: 1.5rem; font-size: 1.5rem;
} }
h3 { h3 {
margin-top: 1.5rem; margin-top: 1.5rem;
font-size: 1.25rem; font-size: 1.25rem;
} }
h4, h5, h6 {
h4,
h5,
h6 {
margin-top: 1rem; margin-top: 1rem;
font-size: 1rem; font-size: 1rem;
} }
@ -115,7 +129,9 @@ strong {
/* Lists */ /* Lists */
ul, ol, dl { ul,
ol,
dl {
margin-top: 0; margin-top: 0;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
@ -123,6 +139,7 @@ ul, ol, dl {
dt { dt {
font-weight: bold; font-weight: bold;
} }
dd { dd {
margin-bottom: .5rem; margin-bottom: .5rem;
} }
@ -142,6 +159,7 @@ abbr {
color: #555; color: #555;
text-transform: uppercase; text-transform: uppercase;
} }
abbr[title] { abbr[title] {
cursor: help; cursor: help;
border-bottom: 1px dotted #e5e5e5; border-bottom: 1px dotted #e5e5e5;
@ -152,6 +170,7 @@ code,
pre { pre {
font-family: Menlo, Monaco, "Courier New", monospace; font-family: Menlo, Monaco, "Courier New", monospace;
} }
code { code {
padding: .25em .5em; padding: .25em .5em;
font-size: 85%; font-size: 85%;
@ -159,6 +178,7 @@ code {
background-color: #f9f9f9; background-color: #f9f9f9;
border-radius: 3px; border-radius: 3px;
} }
pre { pre {
display: block; display: block;
margin-top: 0; margin-top: 0;
@ -172,6 +192,7 @@ pre {
word-wrap: break-word; word-wrap: break-word;
background-color: #f9f9f9; background-color: #f9f9f9;
} }
pre code { pre code {
padding: 0; padding: 0;
font-size: 100%; font-size: 100%;
@ -184,6 +205,7 @@ pre code {
margin-bottom: 1rem; margin-bottom: 1rem;
border-radius: 4px; border-radius: 4px;
} }
.highlight pre { .highlight pre {
margin-bottom: 0; margin-bottom: 0;
} }
@ -192,17 +214,21 @@ pre code {
.gist .gist-file { .gist .gist-file {
font-family: Menlo, Monaco, "Courier New", monospace !important; font-family: Menlo, Monaco, "Courier New", monospace !important;
} }
.gist .markdown-body { .gist .markdown-body {
padding: 15px; padding: 15px;
} }
.gist pre { .gist pre {
padding: 0; padding: 0;
background-color: transparent; background-color: transparent;
} }
.gist .gist-file .gist-data { .gist .gist-file .gist-data {
font-size: .8rem !important; font-size: .8rem !important;
line-height: 1.4; line-height: 1.4;
} }
.gist code { .gist code {
padding: 0; padding: 0;
color: inherit; color: inherit;
@ -217,9 +243,11 @@ blockquote {
color: #7a7a7a; color: #7a7a7a;
border-left: .25rem solid #e5e5e5; border-left: .25rem solid #e5e5e5;
} }
blockquote p:last-child { blockquote p:last-child {
margin-bottom: 0; margin-bottom: 0;
} }
@media (min-width: 30em) { @media (min-width: 30em) {
blockquote { blockquote {
padding-right: 5rem; padding-right: 5rem;
@ -241,11 +269,13 @@ table {
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
border-collapse: collapse; border-collapse: collapse;
} }
td, td,
th { th {
padding: .25rem .5rem; padding: .25rem .5rem;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
} }
tbody tr:nth-child(odd) td, tbody tr:nth-child(odd) td,
tbody tr:nth-child(odd) th { tbody tr:nth-child(odd) th {
background-color: #f9f9f9; background-color: #f9f9f9;
@ -287,9 +317,9 @@ tbody tr:nth-child(odd) th {
.container { .container {
max-width: 38rem; max-width: 38rem;
padding-left: 1rem; padding-left: 1rem;
padding-right: 1rem; padding-right: 1rem;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
@ -301,18 +331,21 @@ tbody tr:nth-child(odd) th {
*/ */
.masthead { .masthead {
padding-top: 1rem; padding-top: 1rem;
padding-bottom: 1rem; padding-bottom: 1rem;
margin-bottom: 3rem; margin-bottom: 3rem;
} }
.masthead-title { .masthead-title {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
color: #505050; color: #505050;
} }
.masthead-title a { .masthead-title a {
color: #505050; color: #505050;
} }
.masthead-title small { .masthead-title small {
font-size: 75%; font-size: 75%;
font-weight: 400; font-weight: 400;
@ -339,6 +372,7 @@ tbody tr:nth-child(odd) th {
.post-title a { .post-title a {
color: #303030; color: #303030;
} }
.page-title, .page-title,
.post-title { .post-title {
margin-top: 0; margin-top: 0;
@ -357,17 +391,21 @@ tbody tr:nth-child(odd) th {
margin-bottom: 1rem; margin-bottom: 1rem;
color: #9a9a9a; color: #9a9a9a;
} }
.post-tags ul { .post-tags ul {
margin: 0; margin: 0;
padding: 0; padding: 0;
display: inline; display: inline;
} }
.post-tags li { .post-tags li {
display: inline; display: inline;
} }
.post-tags li:after { .post-tags li:after {
content: ", "; content: ", ";
} }
.post-tags li:last-child:after { .post-tags li:last-child:after {
content: ""; content: "";
} }
@ -378,21 +416,26 @@ tbody tr:nth-child(odd) th {
padding-bottom: 2rem; padding-bottom: 2rem;
border-top: 1px solid #eee; border-top: 1px solid #eee;
} }
.related-posts { .related-posts {
padding-left: 0; padding-left: 0;
list-style: none; list-style: none;
} }
.related-posts h3 { .related-posts h3 {
margin-top: 0; margin-top: 0;
} }
.related-posts li small { .related-posts li small {
font-size: 75%; font-size: 75%;
color: #999; color: #999;
} }
.related-posts li a:hover { .related-posts li a:hover {
color: #268bd2; color: #268bd2;
text-decoration: none; text-decoration: none;
} }
.related-posts li a:hover small { .related-posts li a:hover small {
color: inherit; color: inherit;
} }
@ -413,7 +456,8 @@ tbody tr:nth-child(odd) th {
*/ */
.pagination { .pagination {
overflow: hidden; /* clearfix */ overflow: hidden;
/* clearfix */
margin-left: -1rem; margin-left: -1rem;
margin-right: -1rem; margin-right: -1rem;
font-family: "PT Sans", Helvetica, Arial, sans-serif; font-family: "PT Sans", Helvetica, Arial, sans-serif;
@ -427,6 +471,7 @@ tbody tr:nth-child(odd) th {
padding: 1rem; padding: 1rem;
border: 1px solid #eee; border: 1px solid #eee;
} }
.pagination-item:first-child { .pagination-item:first-child {
margin-bottom: -1px; margin-bottom: -1px;
} }
@ -440,18 +485,21 @@ a.pagination-item:hover {
.pagination { .pagination {
margin: 3rem 0; margin: 3rem 0;
} }
.pagination-item { .pagination-item {
float: left; float: left;
width: 50%; width: 50%;
} }
.pagination-item:first-child { .pagination-item:first-child {
margin-bottom: 0; margin-bottom: 0;
border-top-left-radius: 4px; border-top-left-radius: 4px;
border-bottom-left-radius: 4px; border-bottom-left-radius: 4px;
} }
.pagination-item:last-child { .pagination-item:last-child {
margin-left: -1px; margin-left: -1px;
border-top-right-radius: 4px; border-top-right-radius: 4px;
border-bottom-right-radius: 4px; border-bottom-right-radius: 4px;
} }
} }