Skip to content

Commit

Permalink
feat: Give control over footer colors
Browse files Browse the repository at this point in the history
  • Loading branch information
TEParsons committed Oct 5, 2024
1 parent 48f8e9e commit ba4aec7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mkdocs_landing/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ footer#footer {
position: relative;
text-align: right;
padding: 2rem calc(50% - 24rem);
background-color: var(--text);
color: var(--hltext);
background-color: var(--footer);
color: var(--footer-text);
}

#page-source {
Expand Down
4 changes: 4 additions & 0 deletions mkdocs_landing/mkdocs_theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ colors:
mantle: "#f5f4f5"
crust: "#d4d2d5"
overlay: "#9B9B9E"
footer: var(--text)
# text
text: "#343233"
hltext: "#ffffff"
Expand All @@ -54,6 +55,7 @@ colors:
mantle_text: var(--text)
crust_text: var(--text)
overlay_text: var(--hltext)
footer_text: var(--hltext)
# dark mode variants
colors_dark:
# colours
Expand All @@ -65,6 +67,7 @@ colors_dark:
mantle: "#373536"
crust: "#3E3C3D"
overlay: "#646461"
footer: "#242223"
# text
text: "#ffffff"
hltext: "#343233"
Expand All @@ -76,6 +79,7 @@ colors_dark:
mantle_text: var(--text)
crust_text: var(--text)
overlay_text: var(--hltext)
footer_text: var(--text)

# theme fonts
fonts:
Expand Down
4 changes: 4 additions & 0 deletions mkdocs_landing/partials/head_config.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
--mantle: {{config.theme.colors.mantle}};
--crust: {{config.theme.colors.crust}};
--overlay: {{config.theme.colors.overlay}};
--footer: {{config.theme.colors.footer}};
/* text */
--text: {{config.theme.colors.text}};
--hltext: {{config.theme.colors.hltext}};
Expand All @@ -27,6 +28,7 @@
--mantle-text: {{config.theme.colors.mantle_text}};
--crust-text: {{config.theme.colors.crust_text}};
--overlay-text: {{config.theme.colors.overlay_text}};
--footer-text: {{config.theme.colors.footer_text}};
/* fonts */
--heading: {{config.theme.fonts.heading}};
--body: {{config.theme.fonts.body}};
Expand All @@ -45,6 +47,7 @@
--mantle: {{config.theme.colors_dark.mantle}};
--crust: {{config.theme.colors_dark.crust}};
--overlay: {{config.theme.colors_dark.overlay}};
--footer: {{config.theme.colors_dark.footer}};
/* text */
--text: {{config.theme.colors_dark.text}};
--hltext: {{config.theme.colors_dark.hltext}};
Expand All @@ -57,6 +60,7 @@
--mantle-text: {{config.theme.colors_dark.mantle_text}};
--crust-text: {{config.theme.colors_dark.crust_text}};
--overlay-text: {{config.theme.colors_dark.overlay_text}};
--footer-text: {{config.theme.colors_dark.footer_text}};
}
}
/* style settings */
Expand Down

0 comments on commit ba4aec7

Please sign in to comment.