mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-21 09:16:30 -05:00
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:
parent
98951d26c5
commit
e4080b7ead
7 changed files with 35 additions and 1 deletions
BIN
docs/content/theme/styles/Roboto/roboto-latin-regular.woff
Normal file
BIN
docs/content/theme/styles/Roboto/roboto-latin-regular.woff
Normal file
Binary file not shown.
BIN
docs/content/theme/styles/Roboto/roboto-latin-regular.woff2
Normal file
BIN
docs/content/theme/styles/Roboto/roboto-latin-regular.woff2
Normal file
Binary file not shown.
BIN
docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff
Normal file
BIN
docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff
Normal file
Binary file not shown.
BIN
docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2
Normal file
BIN
docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2
Normal file
Binary file not shown.
|
@ -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;
|
||||
}
|
28
docs/content/theme/styles/roboto.css
Normal file
28
docs/content/theme/styles/roboto.css
Normal 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'),
|
||||
}
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue