Skip to content

Commit

Permalink
update style (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
AFg6K7h4fhy2 authored Nov 22, 2024
1 parent d663ee2 commit d0b2fe8
Show file tree
Hide file tree
Showing 4 changed files with 236 additions and 252 deletions.
19 changes: 17 additions & 2 deletions website/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,28 @@ bibliography: references.bib

numbered: true


format:
html:
theme: darkly
css: styles.css
anchor-sections: true
smooth-scroll: true
toc: true
toc-depth: 3
number-sections: true
link-external-icon: true
link-external-newwindow: true
html-math-method:
method: "mathjax"
url: "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
theme:
light: ["light-style.scss"]
dark: ["dark-style.scss"]
highlight-style: zenburn
self-contained-math: true
code-tools: true
code-overflow: wrap
code-link: true
code-download: true
site-url: "https://genetictournament.com/"
pdf:
documentclass: scrreprt
Expand Down
108 changes: 108 additions & 0 deletions website/dark-style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
/* Define font family variables */
$tex-gyre-schola: "TeX Gyre Schola";
$iosevka: "Iosevka";

/* CUSTOM FONTS ##############################################################*/
@font-face {
font-family: $tex-gyre-schola;
src: url("./assets/fonts/tex-gyre/texgyreschola-regular.otf") format("opentype");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: $tex-gyre-schola;
src: url("./assets/fonts/tex-gyre/texgyreschola-bold.otf") format("opentype");
font-weight: bold;
font-style: normal;
}

@font-face {
font-family: $tex-gyre-schola;
src: url("./assets/fonts/tex-gyre/texgyreschola-italic.otf") format("opentype");
font-weight: normal;
font-style: italic;
}

@font-face {
font-family: $tex-gyre-schola;
src: url("./assets/fonts/tex-gyre/texgyreschola-bolditalic.otf") format("opentype");
font-weight: bold;
font-style: italic;
}

@font-face {
font-family: $iosevka;
src: url("./assets/fonts/iosevka/Iosevka-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: $iosevka;
src: url("./assets/fonts/iosevka/Iosevka-Bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}

@font-face {
font-family: $iosevka;
src: url("./assets/fonts/iosevka/Iosevka-Italic.ttf") format("truetype");
font-weight: normal;
font-style: italic;
}

/*BODY #######################################################################*/

/*-- scss:rules --*/
body {
font-family: $tex-gyre-schola, serif;
}

h1, h2, h3, h4, h5, h6 {
font-variant: small-caps;
}

code {
font-family: $iosevka, monospace;
}

/*-- scss:defaults --*/

// base colors
$body-bg: black; // black background for the page
$body-color: #f7f7f7; // light text for contrast
$link-color: #800000; // maroon for links (bright contrast)

$code-bg: gray; // dark background for inline code
$code-color: #f7f7f7; // white text for inline code to make it stand out

.output {
color: white;
}

// code blocks
// $code-block-bg-alpha: -0.2; // slight transparency on code block background
// $code-block-bg: #2c2c2c; // dark background for code blocks
$code-block-border-left: #800000; // maroon left border for code blocks
$code-block-border-left-style: solid; // solid border style
$code-block-border-left-size: 2px; // border size
$code-block-padding-left: 1rem; //padding between code and left border

// table of contents
$toc-color: #f7f7f7; // light gray for Table of Contents text
$toc-active-border: #800000; // maroon border for active TOC item
$toc-inactive-border: #555555; // dark gray border for inactive TOC items

// navbar and sidebar
$navbar-bg: black; // dark background for the navbar
$navbar-fg: #f7f7f7; // light gray text color in the navbar
$navbar-hl: #800000; // maroon for navbar link hover

$sidebar-bg: black; // dark background for sidebar
$sidebar-fg: #e0e0e0; // light gray text in the sidebar
$sidebar-hl: #800000; //maroon highlight color for sidebar links

// footer
$footer-bg: black; // dark background for footer
$footer-fg: #f7f7f7; // Light gray text for footer
111 changes: 111 additions & 0 deletions website/light-style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
/* Define font family variables */
$tex-gyre-schola: "TeX Gyre Schola";
$iosevka: "Iosevka";

/* CUSTOM FONTS ##############################################################*/
@font-face {
font-family: $tex-gyre-schola;
src: url("./assets/fonts/tex-gyre/texgyreschola-regular.otf") format("opentype");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: $tex-gyre-schola;
src: url("./assets/fonts/tex-gyre/texgyreschola-bold.otf") format("opentype");
font-weight: bold;
font-style: normal;
}

@font-face {
font-family: $tex-gyre-schola;
src: url("./assets/fonts/tex-gyre/texgyreschola-italic.otf") format("opentype");
font-weight: normal;
font-style: italic;
}

@font-face {
font-family: $tex-gyre-schola;
src: url("./assets/fonts/tex-gyre/texgyreschola-bolditalic.otf") format("opentype");
font-weight: bold;
font-style: italic;
}

@font-face {
font-family: $iosevka;
src: url("./assets/fonts/iosevka/Iosevka-Regular.ttf") format("truetype");
font-weight: normal;
font-style: normal;
}

@font-face {
font-family: $iosevka;
src: url("./assets/fonts/iosevka/Iosevka-Bold.ttf") format("truetype");
font-weight: bold;
font-style: normal;
}

@font-face {
font-family: $iosevka;
src: url("./assets/fonts/iosevka/Iosevka-Italic.ttf") format("truetype");
font-weight: normal;
font-style: italic;
}

/*BODY #######################################################################*/

/*-- scss:rules --*/
body {
font-family: $tex-gyre-schola, serif;
}

h1, h2, h3, h4, h5, h6 {
font-variant: small-caps;
}

code {
font-family: $iosevka, monospace;
}


/*-- scss:defaults --*/

// base document colors
$body-bg: #FFFFF0; // light yellow background
$body-color: black; // black for body text
$link-color: #800000; // maroon for links

// code blocks
// $code-block-bg-alpha: -0.1; // slight transparency
//$code-block-bg: gray; // light background
$code-block-border-left: #800000; // black left border
$code-block-border-left-style: solid; // solid border
$code-block-border-left-size: 2px; // border size
$code-block-padding-left: 1rem; // padding between code and left border

// inline code styling
$code-bg: #cccccc; // light background for inline code
$code-color: black; // maroon for inline code text

.output {
color: black;
}

// table of contents
$toc-color: black; // black for Table of Contents text
$toc-active-border: #800000; // maroon border for active TOC item
$toc-inactive-border: #cccccc; // light gray border for inactive TOC items

// navbar and sidebar
$navbar-bg: gray; // yellowish background for the navbar
$navbar-fg: white; // white text color in the navbar
$navbar-hl: #800000; // maroon for navbar link hover


$sidebar-bg: #FFFFF0; // light background for sidebar
$sidebar-fg: black; // dark gray for sidebar text
$sidebar-hl: #800000; // maroon highlight color for sidebar links

// footer
$footer-bg: #FFFFF0; // light background for footer
$footer-fg: black; // Dark gray for footer text
Loading

0 comments on commit d0b2fe8

Please sign in to comment.