Skip to content

Commit

Permalink
Update styles.css
Browse files Browse the repository at this point in the history
  • Loading branch information
csaben authored Sep 22, 2023
1 parent 458398d commit d377dae
Showing 1 changed file with 8 additions and 96 deletions.
104 changes: 8 additions & 96 deletions static/styles.css
Original file line number Diff line number Diff line change
@@ -1,98 +1,14 @@
:root {
--hr: #cfcfcf;
--b-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
--b-font-mono: Consolas, Monaco, monospace;
--b-txt: #2e3440;
--b-bg-1: #fff;
--b-bg-2: #eceff4;
--b-line: #eceff4;
--b-link: #0073ff;
--b-btn-bg: #242933;
--b-btn-txt: #fff;
--b-focus: #d8dee9;
}

:root.dark-mode {
--b-txt: #ffffff;
--b-bg-1: #121212;
--b-bg-2: #1a1a1a;
--b-line: #2a2a2a;
--b-link: #bb86fc;
--b-btn-bg: #2a2a2a;
--b-btn-txt: #ffffff;
--b-focus: #bb86fc;
}

/* Apply the dark mode class to the root element by default */
body {
class: dark-mode;
color: var(--b-txt);
background-color: var(--b-bg-1);
}

header {
padding-top: 5vh;
margin-bottom: 5vh;
text-align: center;
}

footer {
text-align: center;
opacity: 0.5;
}

img, video {
object-fit: contain;
max-width: 100%;
max-height: 400px;
border-radius: 8px;
display: block;
margin-left: auto;
margin-right: auto;
}

figcaption {
font-size: 0.8rem;
text-align: center;
opacity: .6;
}

pre {
padding: 0 !important;
}

hr {
border: none;
height: 1px;
background-color: var(--hr);
}

nav {
font-size: 1.2rem;
}

.footnotes {
opacity: 0.6;
}

.hljs-comment {
color: #8d9196;
}

/* :root {
--hr: #cfcfcf;

/* bamboo css values */
--b-font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
--b-font-mono: Consolas, Monaco, monospace;
--b-txt: #2e3440;
--b-bg-1: #fff;
--b-bg-2: #eceff4;
--b-line: #eceff4;
--b-link: #0073ff;
--b-btn-bg: #242933;
--b-btn-txt: #fff;
--b-focus: #d8dee9;
/* Bamboo CSS Dark Mode Overrides */
--b-txt: #d8dee9;
--b-bg-1: #2e3440;
--b-bg-2: #3b4252;
--b-line: #4c566a;
--b-link: #88c0d0;
--b-btn-bg: #5e81ac;
--b-btn-txt: #eceff4;
}

header {
Expand All @@ -107,7 +23,6 @@ footer {
}

img, video {
/* make sure images are not too big and are centered */
object-fit: contain;
max-width: 100%;
max-height: 400px;
Expand Down Expand Up @@ -138,12 +53,9 @@ nav {
}

.footnotes {
/* make footnotes lighter to visually separate them from the actual post content */
opacity: 0.6;
}

.hljs-comment {
/* make codeblock comments easier to differentiate */
color: #8d9196;
}
*/

0 comments on commit d377dae

Please sign in to comment.