diff --git a/cmd/web/static/css/font-files/Inter-Black.woff b/cmd/web/static/css/font-files/Inter-Black.woff new file mode 100644 index 0000000..a18593a Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Black.woff differ diff --git a/cmd/web/static/css/font-files/Inter-Black.woff2 b/cmd/web/static/css/font-files/Inter-Black.woff2 new file mode 100644 index 0000000..68f64c9 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Black.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-BlackItalic.woff b/cmd/web/static/css/font-files/Inter-BlackItalic.woff new file mode 100644 index 0000000..b6b0194 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-BlackItalic.woff differ diff --git a/cmd/web/static/css/font-files/Inter-BlackItalic.woff2 b/cmd/web/static/css/font-files/Inter-BlackItalic.woff2 new file mode 100644 index 0000000..1c9c7ca Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-BlackItalic.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-Bold.woff b/cmd/web/static/css/font-files/Inter-Bold.woff new file mode 100644 index 0000000..eaf3d4b Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Bold.woff differ diff --git a/cmd/web/static/css/font-files/Inter-Bold.woff2 b/cmd/web/static/css/font-files/Inter-Bold.woff2 new file mode 100644 index 0000000..2846f29 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Bold.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-BoldItalic.woff b/cmd/web/static/css/font-files/Inter-BoldItalic.woff new file mode 100644 index 0000000..3275076 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-BoldItalic.woff differ diff --git a/cmd/web/static/css/font-files/Inter-BoldItalic.woff2 b/cmd/web/static/css/font-files/Inter-BoldItalic.woff2 new file mode 100644 index 0000000..0b1fe8e Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-BoldItalic.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-ExtraBold.woff b/cmd/web/static/css/font-files/Inter-ExtraBold.woff new file mode 100644 index 0000000..c2c17ed Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ExtraBold.woff differ diff --git a/cmd/web/static/css/font-files/Inter-ExtraBold.woff2 b/cmd/web/static/css/font-files/Inter-ExtraBold.woff2 new file mode 100644 index 0000000..c24c2bd Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ExtraBold.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-ExtraBoldItalic.woff b/cmd/web/static/css/font-files/Inter-ExtraBoldItalic.woff new file mode 100644 index 0000000..c42f705 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ExtraBoldItalic.woff differ diff --git a/cmd/web/static/css/font-files/Inter-ExtraBoldItalic.woff2 b/cmd/web/static/css/font-files/Inter-ExtraBoldItalic.woff2 new file mode 100644 index 0000000..4a81dc7 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ExtraBoldItalic.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-ExtraLight.woff b/cmd/web/static/css/font-files/Inter-ExtraLight.woff new file mode 100644 index 0000000..d0de5f3 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ExtraLight.woff differ diff --git a/cmd/web/static/css/font-files/Inter-ExtraLight.woff2 b/cmd/web/static/css/font-files/Inter-ExtraLight.woff2 new file mode 100644 index 0000000..f2ea706 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ExtraLight.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-ExtraLightItalic.woff b/cmd/web/static/css/font-files/Inter-ExtraLightItalic.woff new file mode 100644 index 0000000..81f1a28 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ExtraLightItalic.woff differ diff --git a/cmd/web/static/css/font-files/Inter-ExtraLightItalic.woff2 b/cmd/web/static/css/font-files/Inter-ExtraLightItalic.woff2 new file mode 100644 index 0000000..9af717b Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ExtraLightItalic.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-Italic.woff b/cmd/web/static/css/font-files/Inter-Italic.woff new file mode 100644 index 0000000..a806b38 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Italic.woff differ diff --git a/cmd/web/static/css/font-files/Inter-Italic.woff2 b/cmd/web/static/css/font-files/Inter-Italic.woff2 new file mode 100644 index 0000000..a619fc5 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Italic.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-Light.woff b/cmd/web/static/css/font-files/Inter-Light.woff new file mode 100644 index 0000000..c496464 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Light.woff differ diff --git a/cmd/web/static/css/font-files/Inter-Light.woff2 b/cmd/web/static/css/font-files/Inter-Light.woff2 new file mode 100644 index 0000000..bc4be66 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Light.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-LightItalic.woff b/cmd/web/static/css/font-files/Inter-LightItalic.woff new file mode 100644 index 0000000..f84a9de Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-LightItalic.woff differ diff --git a/cmd/web/static/css/font-files/Inter-LightItalic.woff2 b/cmd/web/static/css/font-files/Inter-LightItalic.woff2 new file mode 100644 index 0000000..842b2df Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-LightItalic.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-Medium.woff b/cmd/web/static/css/font-files/Inter-Medium.woff new file mode 100644 index 0000000..d546843 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Medium.woff differ diff --git a/cmd/web/static/css/font-files/Inter-Medium.woff2 b/cmd/web/static/css/font-files/Inter-Medium.woff2 new file mode 100644 index 0000000..f92498a Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Medium.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-MediumItalic.woff b/cmd/web/static/css/font-files/Inter-MediumItalic.woff new file mode 100644 index 0000000..459a656 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-MediumItalic.woff differ diff --git a/cmd/web/static/css/font-files/Inter-MediumItalic.woff2 b/cmd/web/static/css/font-files/Inter-MediumItalic.woff2 new file mode 100644 index 0000000..0e3019f Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-MediumItalic.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-Regular.woff b/cmd/web/static/css/font-files/Inter-Regular.woff new file mode 100644 index 0000000..62d3a61 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Regular.woff differ diff --git a/cmd/web/static/css/font-files/Inter-Regular.woff2 b/cmd/web/static/css/font-files/Inter-Regular.woff2 new file mode 100644 index 0000000..6c2b689 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Regular.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-SemiBold.woff b/cmd/web/static/css/font-files/Inter-SemiBold.woff new file mode 100644 index 0000000..a815f43 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-SemiBold.woff differ diff --git a/cmd/web/static/css/font-files/Inter-SemiBold.woff2 b/cmd/web/static/css/font-files/Inter-SemiBold.woff2 new file mode 100644 index 0000000..611e90c Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-SemiBold.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-SemiBoldItalic.woff b/cmd/web/static/css/font-files/Inter-SemiBoldItalic.woff new file mode 100644 index 0000000..909e43a Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-SemiBoldItalic.woff differ diff --git a/cmd/web/static/css/font-files/Inter-SemiBoldItalic.woff2 b/cmd/web/static/css/font-files/Inter-SemiBoldItalic.woff2 new file mode 100644 index 0000000..545685b Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-SemiBoldItalic.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-Thin.woff b/cmd/web/static/css/font-files/Inter-Thin.woff new file mode 100644 index 0000000..62bc58c Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Thin.woff differ diff --git a/cmd/web/static/css/font-files/Inter-Thin.woff2 b/cmd/web/static/css/font-files/Inter-Thin.woff2 new file mode 100644 index 0000000..abbc3a5 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-Thin.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-ThinItalic.woff b/cmd/web/static/css/font-files/Inter-ThinItalic.woff new file mode 100644 index 0000000..700a7f0 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ThinItalic.woff differ diff --git a/cmd/web/static/css/font-files/Inter-ThinItalic.woff2 b/cmd/web/static/css/font-files/Inter-ThinItalic.woff2 new file mode 100644 index 0000000..ab0b200 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-ThinItalic.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-italic.var.woff2 b/cmd/web/static/css/font-files/Inter-italic.var.woff2 new file mode 100644 index 0000000..b826d5a Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-italic.var.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter-roman.var.woff2 b/cmd/web/static/css/font-files/Inter-roman.var.woff2 new file mode 100644 index 0000000..6a256a0 Binary files /dev/null and b/cmd/web/static/css/font-files/Inter-roman.var.woff2 differ diff --git a/cmd/web/static/css/font-files/Inter.var.woff2 b/cmd/web/static/css/font-files/Inter.var.woff2 new file mode 100644 index 0000000..365eedc Binary files /dev/null and b/cmd/web/static/css/font-files/Inter.var.woff2 differ diff --git a/cmd/web/static/css/font-files/LICENSE.txt b/cmd/web/static/css/font-files/LICENSE.txt new file mode 100644 index 0000000..ff80f8c --- /dev/null +++ b/cmd/web/static/css/font-files/LICENSE.txt @@ -0,0 +1,94 @@ +Copyright (c) 2016-2020 The Inter Project Authors. +"Inter" is trademark of Rasmus Andersson. +https://github.com/rsms/inter + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION AND CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/cmd/web/static/css/font-files/inter.css b/cmd/web/static/css/font-files/inter.css new file mode 100644 index 0000000..f450010 --- /dev/null +++ b/cmd/web/static/css/font-files/inter.css @@ -0,0 +1,200 @@ +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 100; + font-display: swap; + src: url("Inter-Thin.woff2?v=3.19") format("woff2"), + url("Inter-Thin.woff?v=3.19") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 100; + font-display: swap; + src: url("Inter-ThinItalic.woff2?v=3.19") format("woff2"), + url("Inter-ThinItalic.woff?v=3.19") format("woff"); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 200; + font-display: swap; + src: url("Inter-ExtraLight.woff2?v=3.19") format("woff2"), + url("Inter-ExtraLight.woff?v=3.19") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 200; + font-display: swap; + src: url("Inter-ExtraLightItalic.woff2?v=3.19") format("woff2"), + url("Inter-ExtraLightItalic.woff?v=3.19") format("woff"); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 300; + font-display: swap; + src: url("Inter-Light.woff2?v=3.19") format("woff2"), + url("Inter-Light.woff?v=3.19") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 300; + font-display: swap; + src: url("Inter-LightItalic.woff2?v=3.19") format("woff2"), + url("Inter-LightItalic.woff?v=3.19") format("woff"); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url("Inter-Regular.woff2?v=3.19") format("woff2"), + url("Inter-Regular.woff?v=3.19") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 400; + font-display: swap; + src: url("Inter-Italic.woff2?v=3.19") format("woff2"), + url("Inter-Italic.woff?v=3.19") format("woff"); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url("Inter-Medium.woff2?v=3.19") format("woff2"), + url("Inter-Medium.woff?v=3.19") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 500; + font-display: swap; + src: url("Inter-MediumItalic.woff2?v=3.19") format("woff2"), + url("Inter-MediumItalic.woff?v=3.19") format("woff"); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 600; + font-display: swap; + src: url("Inter-SemiBold.woff2?v=3.19") format("woff2"), + url("Inter-SemiBold.woff?v=3.19") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 600; + font-display: swap; + src: url("Inter-SemiBoldItalic.woff2?v=3.19") format("woff2"), + url("Inter-SemiBoldItalic.woff?v=3.19") format("woff"); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url("Inter-Bold.woff2?v=3.19") format("woff2"), + url("Inter-Bold.woff?v=3.19") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 700; + font-display: swap; + src: url("Inter-BoldItalic.woff2?v=3.19") format("woff2"), + url("Inter-BoldItalic.woff?v=3.19") format("woff"); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 800; + font-display: swap; + src: url("Inter-ExtraBold.woff2?v=3.19") format("woff2"), + url("Inter-ExtraBold.woff?v=3.19") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 800; + font-display: swap; + src: url("Inter-ExtraBoldItalic.woff2?v=3.19") format("woff2"), + url("Inter-ExtraBoldItalic.woff?v=3.19") format("woff"); +} + +@font-face { + font-family: 'Inter'; + font-style: normal; + font-weight: 900; + font-display: swap; + src: url("Inter-Black.woff2?v=3.19") format("woff2"), + url("Inter-Black.woff?v=3.19") format("woff"); +} +@font-face { + font-family: 'Inter'; + font-style: italic; + font-weight: 900; + font-display: swap; + src: url("Inter-BlackItalic.woff2?v=3.19") format("woff2"), + url("Inter-BlackItalic.woff?v=3.19") format("woff"); +} + +/* ------------------------------------------------------- +Variable font. +Usage: + + html { font-family: 'Inter', sans-serif; } + @supports (font-variation-settings: normal) { + html { font-family: 'Inter var', sans-serif; } + } +*/ +@font-face { + font-family: 'Inter var'; + font-weight: 100 900; + font-display: swap; + font-style: normal; + font-named-instance: 'Regular'; + src: url("Inter-roman.var.woff2?v=3.19") format("woff2"); +} +@font-face { + font-family: 'Inter var'; + font-weight: 100 900; + font-display: swap; + font-style: italic; + font-named-instance: 'Italic'; + src: url("Inter-italic.var.woff2?v=3.19") format("woff2"); +} + + +/* -------------------------------------------------------------------------- +[EXPERIMENTAL] Multi-axis, single variable font. + +Slant axis is not yet widely supported (as of February 2019) and thus this +multi-axis single variable font is opt-in rather than the default. + +When using this, you will probably need to set font-variation-settings +explicitly, e.g. + + * { font-variation-settings: "slnt" 0deg } + .italic { font-variation-settings: "slnt" 10deg } + +*/ +@font-face { + font-family: 'Inter var experimental'; + font-weight: 100 900; + font-display: swap; + font-style: oblique 0deg 10deg; + src: url("Inter.var.woff2?v=3.19") format("woff2"); +} diff --git a/cmd/web/static/css/xess.css b/cmd/web/static/css/xess.css index ecd601f..5c83407 100644 --- a/cmd/web/static/css/xess.css +++ b/cmd/web/static/css/xess.css @@ -16,6 +16,10 @@ --text-light: hsla(var(--text-color), 90%, 5%, 100%); --pre-background: hsla(var(--background-color), 90%, 5%, 100%); --pre-background-light: hsla(var(--background-color), 10%, 80%, 100%); + --article-text: hsla(var(--text-color), 0%, 95%, 100%); + --article-text-light: hsla(var(--text-color), 0%, 0%, 100%); + --article-background: hsla(var(--background-color), 80%, 5%, 100%); + --article-background-light: hsla(var(--background-color), 15%, 75%, 100%); --a-background: hsla(var(--background-color), 90%, 5%, 100%); --a-background-light: hsla(var(--background-color), 30%, 90%, 100%); --a-color: hsla(var(--accent-color), 80%, 90%, 100%); @@ -32,6 +36,18 @@ float: right; } +article { + font-family: "OpenDyslexic", "Inter"; + background-color: var(--article-background); + color: var(--article-text); + padding: 1em; + border: 0; +} + +article h1, article h2, article h3, article h4, article h5, article h6 { + font-family: "OpenDyslexic", "Inter"; +} + main { font-family: var(--font-family); max-width: var(--width); @@ -110,6 +126,11 @@ footer { margin: 0.5em 10px; padding: 0.5em 10px; } + + article { + background-color: var(--article-background-light); + color: var(--article-text-light); + } } pre { diff --git a/cmd/web/tmpl/base.tmpl b/cmd/web/tmpl/base.tmpl index 21fa24b..6595e8b 100644 --- a/cmd/web/tmpl/base.tmpl +++ b/cmd/web/tmpl/base.tmpl @@ -3,6 +3,7 @@ {{.Title}} + diff --git a/cmd/web/tmpl/showpaste.tmpl b/cmd/web/tmpl/showpaste.tmpl index a753007..bcca0fd 100644 --- a/cmd/web/tmpl/showpaste.tmpl +++ b/cmd/web/tmpl/showpaste.tmpl @@ -13,7 +13,9 @@

Created at {{.CreatedAt}}

{{if .RawHTML}} +
{{.RawHTML}} +

{{else}}