From 5bdb39241374afc3da801a4032ebc306f8562035 Mon Sep 17 00:00:00 2001 From: Tilman Vatteroth Date: Tue, 5 Jan 2021 22:55:00 +0100 Subject: 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 --- .../theme/styles/Roboto/roboto-latin-regular.woff | Bin 0 -> 20268 bytes .../theme/styles/Roboto/roboto-latin-regular.woff2 | Bin 0 -> 15736 bytes .../styles/Roboto/roboto-mono-latin-regular.woff | Bin 0 -> 15160 bytes .../styles/Roboto/roboto-mono-latin-regular.woff2 | Bin 0 -> 12312 bytes docs/content/theme/styles/hedgedoc-color.css | 14 ----------- docs/content/theme/styles/hedgedoc-custom.css | 17 +++++++++++++ docs/content/theme/styles/roboto.css | 28 +++++++++++++++++++++ 7 files changed, 45 insertions(+), 14 deletions(-) create mode 100644 docs/content/theme/styles/Roboto/roboto-latin-regular.woff create mode 100644 docs/content/theme/styles/Roboto/roboto-latin-regular.woff2 create mode 100644 docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff create mode 100644 docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2 delete mode 100644 docs/content/theme/styles/hedgedoc-color.css create mode 100644 docs/content/theme/styles/hedgedoc-custom.css create mode 100644 docs/content/theme/styles/roboto.css (limited to 'docs/content') 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 Binary files /dev/null and b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff 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 Binary files /dev/null and b/docs/content/theme/styles/Roboto/roboto-latin-regular.woff2 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 Binary files /dev/null and b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff 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 Binary files /dev/null and b/docs/content/theme/styles/Roboto/roboto-mono-latin-regular.woff2 differ diff --git a/docs/content/theme/styles/hedgedoc-color.css b/docs/content/theme/styles/hedgedoc-color.css deleted file mode 100644 index 084a2bac..00000000 --- a/docs/content/theme/styles/hedgedoc-color.css +++ /dev/null @@ -1,14 +0,0 @@ -[data-md-color-primary=hedgedoc] { - --md-primary-fg-color: #b51f08; - --md-primary-fg-color--light: #b51f08; - --md-primary-fg-color--dark: #b51f08; - --md-primary-bg-color: hsla(0, 0%, 100%, 1); - --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7); -} - -[data-md-color-accent=hedgedoc] { - --md-accent-fg-color: #b51f08; - --md-accent-fg-color--transparent: hsla(348, 100%, 55%, 0.1); - --md-accent-bg-color: hsla(0, 0%, 100%, 1); - --md-accent-bg-color--light: hsla(0, 0%, 100%, 0.7); -} diff --git a/docs/content/theme/styles/hedgedoc-custom.css b/docs/content/theme/styles/hedgedoc-custom.css new file mode 100644 index 00000000..54e18919 --- /dev/null +++ b/docs/content/theme/styles/hedgedoc-custom.css @@ -0,0 +1,17 @@ +[data-md-color-primary=hedgedoc] { + --md-primary-fg-color: #b51f08; + --md-primary-fg-color--light: #b51f08; + --md-primary-fg-color--dark: #b51f08; + --md-primary-bg-color: hsla(0, 0%, 100%, 1); + --md-primary-bg-color--light: hsla(0, 0%, 100%, 0.7); +} + +[data-md-color-accent=hedgedoc] { + --md-accent-fg-color: #b51f08; + --md-accent-fg-color--transparent: hsla(348, 100%, 55%, 0.1); + --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'), +} -- cgit v1.2.3