Skip to content

Commit

Permalink
Custom light style
Browse files Browse the repository at this point in the history
  • Loading branch information
pka committed Sep 23, 2024
1 parent 922ece2 commit ff0c623
Show file tree
Hide file tree
Showing 10 changed files with 95 additions and 2 deletions.
85 changes: 85 additions & 0 deletions website/assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=League+Gothic&display=swap');

:root {
font-family: "Lato", sans-serif;
/* geopole orange */
--primary-hue: 45deg;
--primary-saturation: 100%;

--geopole-red: #cc0000;
--geopole-orange: #ffbf00;
--geopole-light-olive: #e4e7d7;
--geopole-green: #43bc06;
--geopole-olive: #babfa7;
--geopole-blue: #0e5174;
--geopole-list-divider: #707463;
--geopole-grey: #cccccc;
--geopole-black: #424535;
}

body {
background-color: var(--geopole-light-olive);
}

/* Title bar */
.nav-container-blur {
background-color: hsl(45deg 100% 45% / 1);
}
.nav-container .hx-font-extrabold {
font-family: "League Gothic", sans-serif;
font-size: 1.55em;
}

/* Menu hover background */
aside.sidebar-container .hover\:hx-bg-gray-100:hover {
background-color: hsl(45deg 100% 39% / 0.2);
}

aside.sidebar-container .sidebar-active-item.hx-bg-primary-100 {
background-color: hsl(45deg 100% 39% / 0.1);
}

/* background for theme switcher */
html:not(.dark) aside.sidebar-container .hx-sticky {
background-color: var(--geopole-light-olive);
--tw-shadow: none;
}

/* background for "Edit this page" */
nav .hx-bg-white {
background-color: var(--geopole-light-olive);
--tw-shadow: none;
}

.content h1, h2, h3 {
font-family: "League Gothic", sans-serif;
letter-spacing: normal;
}

.content h1 {
font-size: 3.77em;
}
.content h2 {
font-size: 2.11em;
}
.content h3 {
font-size: 1.55em;
}

/* Table rows */
.content :where(table):not(:where(.hextra-code-block table, [class~="not-prose"], [class~="not-prose"] *)) tr:nth-child(2n) {
background-color: hsl(45deg 100% 39% / 0.05);
}

html:not(.dark) footer.hextra-footer.hx-bg-gray-100 {
background-color: hsl(45deg 100% 45% / 1);
}

/* Reduce footer height */
footer .hx-py-12 {
padding-top: 1rem;
padding-bottom: 1rem;
}
footer .hx-mt-6 {
margin-top: 0;
}
10 changes: 8 additions & 2 deletions website/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ name = "Documentation"
pageRef = "/docs"
weight = 1

[[menu.main]]
name = "Changelog"
weight = 2
url = "https://github.com/bbox-services/bbox/blob/main/CHANGELOG.md"

[[menu.main]]
name = "Search"
weight = 5
Expand All @@ -36,7 +41,7 @@ url = "https://github.com/bbox-services/bbox"
icon = "github"

[params]
description = "A free & simple Vector Tile schema for OpenStreetMap"
description = "Composable spatial services"
displayUpdatedDate = false
dateFormat = "January 2, 2006"

Expand All @@ -48,12 +53,13 @@ dateFormat = "January 2, 2006"
[params.navbar.logo]
path = "/favicon.svg"
dark = "/favicon.svg"
width = 30

[params.page]
width = "normal"

[params.theme]
default = "system"
default = "light"
displayToggle = true

[params.footer]
Expand Down
1 change: 1 addition & 0 deletions website/i18n/en.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
copyright: "Copyright © 2020-2024 by Pirmin Kalberer"
Binary file added website/static/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website/static/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions website/static/site.webmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name":"BBOX Server","short_name":"BBOX","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}

0 comments on commit ff0c623

Please sign in to comment.