Skip to content

Commit

Permalink
more consistent style in dedicated pages #116
Browse files Browse the repository at this point in the history
* introduce new variables for colors in single pages
* colors default to light section settings
* adapt the class selector in theme.scss to match the html
* use new variables in the page-template class
  • Loading branch information
ffrank committed Oct 1, 2023
1 parent dad8d5e commit 1be26f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion assets/css/theme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ a.fn-item {
}

/* ======= Single pages =========== */
.post-template {
.page-template {

background-color: var(--single-page-bg-color);
color: var(--single-page-text-color);

// Tweak the .post wrapper style
.post {
Expand Down
3 changes: 3 additions & 0 deletions assets/css/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
/* Light&Dark section `code` a bit darker than 'Light section - background color' */
--section-uni-code-bg-color: #e0ded7;

/* === Single pages=== */
--single-page-text-color: var(--section-light-text-color);
--single-page-bg-color: var(--section-light-bg-color);

/* === Footer === */
--footer-color-background: #22343a;
Expand Down

0 comments on commit 1be26f8

Please sign in to comment.