summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTilman Vatteroth2021-01-05 22:55:00 +0100
committerGitHub2021-01-05 22:55:00 +0100
commit5bdb39241374afc3da801a4032ebc306f8562035 (patch)
tree0041431d736824c6b090de3d97fd240d3cf4befb
parent73d237165ea8fe411b764e5b5d1a2f51a2e02a0b (diff)
Several theme changes (#659)
* Several theme changes - Add max width of 1440px - Rename css file - Fix edit button - Add local Roboto font Signed-off-by: Tilman Vatteroth <tilman.vatteroth@tu-dortmund.de>
-rw-r--r--docs/content/theme/styles/Roboto/roboto-latin-regular.woffbin0 -> 20268 bytes
-rw-r--r--docs/content/theme/styles/Roboto/roboto-latin-regular.woff2bin0 -> 15736 bytes
-rw-r--r--docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woffbin0 -> 15160 bytes
-rw-r--r--docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2bin0 -> 12312 bytes
-rw-r--r--docs/content/theme/styles/hedgedoc-custom.css (renamed from docs/content/theme/styles/hedgedoc-color.css)3
-rw-r--r--docs/content/theme/styles/roboto.css28
-rw-r--r--docs/mkdocs.yml5
7 files changed, 35 insertions, 1 deletions
diff --git a/docs/content/theme/styles/Roboto/roboto-latin-regular.woff b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff
new file mode 100644
index 00000000..69c88254
--- /dev/null
+++ b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff
Binary files differ
diff --git a/docs/content/theme/styles/Roboto/roboto-latin-regular.woff2 b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff2
new file mode 100644
index 00000000..1a537015
--- /dev/null
+++ b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff2
Binary files differ
diff --git a/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff
new file mode 100644
index 00000000..f319fbfa
--- /dev/null
+++ b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff
Binary files differ
diff --git a/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2 b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2
new file mode 100644
index 00000000..ed384d22
--- /dev/null
+++ b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2
Binary files differ
diff --git a/docs/content/theme/styles/hedgedoc-color.css b/docs/content/theme/styles/hedgedoc-custom.css
index 084a2bac..54e18919 100644
--- a/docs/content/theme/styles/hedgedoc-color.css
+++ b/docs/content/theme/styles/hedgedoc-custom.css
@@ -12,3 +12,6 @@
--md-accent-bg-color: hsla(0, 0%, 100%, 1);
--md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7);
}
+.md-grid {
+ max-width: 1440px;
+}
diff --git a/docs/content/theme/styles/roboto.css b/docs/content/theme/styles/roboto.css
new file mode 100644
index 00000000..b1c663da
--- /dev/null
+++ b/docs/content/theme/styles/roboto.css
@@ -0,0 +1,28 @@
+
+body, input {
+ font-family: "Roboto",-apple-system,BlinkMacSystemFont,Helvetica,Arial,sans-serif;
+}
+
+code, kbd, pre {
+ font-family: "Roboto Mono",SFMono-Regular,Consolas,Menlo,monospace;
+}
+
+@font-face {
+ font-family: 'Roboto';
+ font-style: normal;
+ font-weight: 400;
+ font-display: swap;
+ src: local('Roboto'),
+ url('./Roboto/roboto-latin-regular.woff2') format('woff2'),
+ url('./Roboto/roboto-latin-regular.woff') format('woff'),
+}
+
+@font-face {
+ font-family: 'Roboto Mono';
+ font-style: normal;
+ font-weight: 400;
+ font-display: swap;
+ src: local('Roboto Mono'),
+ url('./Roboto/roboto-mono-latin-regular.woff2') format('woff2'),
+ url('./Roboto/roboto-mono-latin-regular.woff') format('woff'),
+}
diff --git a/docs/mkdocs.yml b/docs/mkdocs.yml
index a403cd3b..fd090fe5 100644
--- a/docs/mkdocs.yml
+++ b/docs/mkdocs.yml
@@ -4,6 +4,7 @@ repo_url: https://github.com/hedgedoc/hedgedoc
site_description: 'HedgeDoc Documentation'
site_author: 'HedgeDoc Developers'
docs_dir: content
+edit_uri: https://github.com/hedgedoc/hedgedoc/edit/master/docs/content/
nav:
- Home: index.md
- Installation:
@@ -56,6 +57,8 @@ theme:
- navigation.tabs
- navigation.sections
- toc.integrate
+ font: false
extra_css:
- - theme/styles/hedgedoc-color.css
+ - theme/styles/hedgedoc-custom.css
+ - theme/styles/roboto.css