Skip to content

Parameterized page, header/menu and footer colors.#71

Open
pmilosev wants to merge 3 commits intocncf:mainfrom
pmilosev:background-colors
Open

Parameterized page, header/menu and footer colors.#71
pmilosev wants to merge 3 commits intocncf:mainfrom
pmilosev:background-colors

Conversation

@pmilosev
Copy link
Copy Markdown

@pmilosev pmilosev commented Jan 6, 2026

Page, header / menu and footer colors are currently hard-coded to --white and --black.
In order to change any of these colors a user of the theme needs to override portions of the SCSS.
To make things simpler, I added the following color vars: --page-bacground-color, --menu-background-color, --submenu-background-color and --footer-background-color.
I updated the relevant SCSS code to use these vars instead of --white and --black.

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 6, 2026

Deploy Preview for dot-org-hugo-theme-demo ready!

Name Link
🔨 Latest commit a8e8287
🔍 Latest deploy log https://app.netlify.com/projects/dot-org-hugo-theme-demo/deploys/6991a4352741a60008af970b
😎 Deploy Preview https://deploy-preview-71--dot-org-hugo-theme-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Signed-off-by: Pece Miloshev <pece@milosev.info>
pmilosev and others added 2 commits January 6, 2026 22:18
Signed-off-by: Pece Miloshev <pece@milosev.info>
Originally the page background colour was set
by selecting only for elements of class 'page'.
However this will miss all pages other than leaf pages.
For example the FAQ in the example site has body with
class 'faq page-section' and the BLOG 'blog page-section'.

The commit is setting background colour to 'body' instead
of just '.page'. Tests do not show any apparent issues.
Alternatively one can use wild card selectors,
but as CSS rookie I chose the simple solution.

Signed-off-by: Pece Miloshev <pece.miloshev@nofuss.consulting>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant