Tweak mkdocs config and CSS

* Add a navbar logo
* Reduce the fonts we load by specifying the one we want to use in the config file
* No more importing CSS thus faster loading
* Remove a few default properties from extra.css
* Bump copyright year
* Remove unneeded / add needed trailing slashes in config URLs
* Minor CSS tweaks
This commit is contained in:
XhmikosR
2019-12-04 11:21:20 +02:00
parent fcddd4b993
commit 4137534312
3 changed files with 29 additions and 17 deletions
+14 -8
View File
@@ -1,4 +1,7 @@
@import url('https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,700,700i');
body,
input {
color: #000;
}
.md-nav {
font-size: 14px;
line-height: 1.4;
@@ -7,12 +10,15 @@
font-size: 14px;
line-height: 1.5;
}
body, input {
font-family: "Source Sans Pro", "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif;
color: black;
}
.md-typeset code, .md-typeset pre {
display: inline-block;
.md-typeset code,
.md-typeset pre {
white-space: pre-wrap;
color: rgb(83, 43, 168);
color: #532ba8;
}
@media only screen and (max-width: 76.1875em) {
.md-logo img {
width: auto;
height: 48px;
}
}
+1
View File
@@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88.32 129.93"><defs><linearGradient id="New_Gradient_Swatch_1" x1="2.71" x2="69.77" y1="20.04" y2="20.04" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#12b212"/><stop offset="1" stop-color="#0f0"/></linearGradient><style>.cls-2{fill:#980200}.cls-3{fill:red}</style></defs><title>NewVortex</title><path fill="url(#New_Gradient_Swatch_1)" d="M36.56 39.93C20.34 38.2 4 25.94 2.71 0c25.17 0 38.63 14.9 39.93 38.51 4.76-28.32 27.07-25 27.07-25 1.06 16.05-12.12 25.78-27.07 26.59-4.2-8.85-29.36-30.56-29.36-30.56a.07.07 0 00-.11.08s24.28 21.15 23.39 30.31"/><path d="M44.16 129.93c-1.57-.09-16.22-.65-17.11-17.11-.72-10 7.18-17.37 7.18-27.08C32.44 61.53 0 64.53 0 85.74a19.94 19.94 0 005.83 14.14L30 124.06a19.94 19.94 0 0014.14 5.83" class="cls-2"/><path d="M88.32 85.75c-.09 1.57-.65 16.22-17.11 17.11-10 .72-17.38-7.18-27.08-7.18-24.21 1.79-21.21 34.22 0 34.22a19.94 19.94 0 0014.14-5.83L82.46 99.9a19.94 19.94 0 005.83-14.14" class="cls-3"/><path d="M44.16 41.59c1.57.09 16.22.65 17.11 17.11.72 10-7.18 17.37-7.18 27.08 1.79 24.21 34.22 21.21 34.22 0a19.94 19.94 0 00-5.83-14.14L58.3 47.45a19.94 19.94 0 00-14.14-5.83" class="cls-2"/><path d="M.08 85.75c.09-1.57.65-16.22 17.11-17.11 10-.72 17.38 7.18 27.08 7.18 24.21-1.82 21.21-34.22 0-34.22a19.94 19.94 0 00-14.14 5.83L5.94 71.61A19.94 19.94 0 00.11 85.75" class="cls-3"/></svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

+14 -9
View File
@@ -1,13 +1,17 @@
site_name: "Pi-hole documentation"
site_url: https://docs.pi-hole.net/
repo_url: "https://github.com/pi-hole/pi-hole/"
repo_url: "https://github.com/pi-hole/pi-hole"
edit_uri: ""
copyright: 'Copyright &copy; 2018 Pi-hole LLC'
copyright: 'Copyright &copy; 2019 Pi-hole LLC'
remote_branch: gh-pages
theme:
name: 'material'
favicon: 'images/favicon.png'
logo: 'images/logo.svg'
language: 'en'
font:
text: 'Source Sans Pro'
code: 'Roboto Mono'
markdown_extensions:
# Code highlighting in ``` ``` blocks
@@ -99,17 +103,18 @@ nav:
- 'Optional: Dynamic DNS': guides/vpn/dynDNS.md
- 'Troubleshooting': guides/vpn/troubleshooting.md
- 'TOR & Pi-hole':
- 'Overview': guides/tor/overview.md
- 'Basic Setup': guides/tor/setup.md
- 'Using TOR': guides/tor/using-tor.md
- 'Performance and other issues': guides/tor/performance-issues.md
- 'Using DNSSEC': guides/tor/dnssec.md
- 'Overview': guides/tor/overview.md
- 'Basic Setup': guides/tor/setup.md
- 'Using TOR': guides/tor/using-tor.md
- 'Performance and other issues': guides/tor/performance-issues.md
- 'Using DNSSEC': guides/tor/dnssec.md
- 'Community Projects': main/projects.md
extra:
social:
- type: globe
link: https://pi-hole.net
link: https://pi-hole.net/
- type: github-alt
link: https://github.com/pi-hole
extra_css: [extra.css]
extra_css:
- extra.css