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>
(cherry picked from commit 5bdb392413)
This commit is contained in:
Tilman Vatteroth 2021-01-05 22:55:00 +01:00 committed by David Mehren
parent 98951d26c5
commit e4080b7ead
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3
7 changed files with 35 additions and 1 deletions

View file

@ -18,3 +18,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;
}

View file

@ -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'),
}

View file

@ -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