gokayburuc.dev

Bearblog Tema Kişiselleştirmesi

Bearblog temalarının yalnızca CSS ile değiştirebildiğini bildiğim için default tema üzerinde değişiklikler yaparak, blog temamı değiştirdim. Blog temama ait CSS yapılandırmasını aşağıda sizlerle paylaşıyorum.

@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text:ital,wght@0,300..700;1,300..700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --background-color: #f1efe9;
  --blockquote-color: #ff4000;
  --blockquote-text-color: #c63200;
  --bold-color: #ff4000;
  --code-background-color: #dadada;
  --code-color: #0d0d0d;
  --font-main: "Jost", serif;
  --font-secondary: "Red Hat Text", serif;
  --font-weight: 500;
  --header-weight: 800;
  --header-color: #ff4000;
  --link-color: #e33900;
  --text-color: #0d0d0d;
  --visited-color: #8e2300;
  --width: 720px;
}

/* dark configuration */
@media (prefers-color-scheme: dark) {
}

body {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-optical-sizing: auto;
  font-weight: var(--font-weight);
  font-style: normal;
  margin: auto;
  padding: 20px;
  max-width: var(--width);
  text-align: left;
  background-color: var(--background-color);
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.5;
  color: var(--text-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-main);
  font-size: 2.2rem;
  color: var(--header-color);
  font-weight: var(--header-weight);
}

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

/* FIX: a hover color, size, decoration */
a:hover {
  text-decoration: underline;
}

nav a {
  margin-right: 8px;
}

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

button {
  margin: 0;
  cursor: pointer;
}

time {
  font-family: monospace;
  font-style: italic;
  font-weight: 300;
  text-align: left;
  font-size: 85%;
  margin: 5px;
  padding: 5px;
}

main {
  line-height: 1.5;
}

table {
  width: 100%;
}

hr {
  border: 0;
  border-top: 1px dashed;
}

img {
  max-width: 100%;
}

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

blockquote {
  border-left: 2.5px solid var(--blockquote-color);
  color: var(--blockquote-text-color);
  padding-left: 20px;
  font-style: italic;
}

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

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

.title h1 {
  font-size: 1.5em;
}

.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: auto;
}

/* blog post list */
ul.blog-posts {
  list-style-type: none;
  padding: unset;
}

ul.blog-posts li {
  display: flex;
}

ul.blog-posts li span {
  flex: 0 0 130px;
}

ul.blog-posts li a:visited {
  color: var(--visited-color);
}