merge upstream

This commit is contained in:
Niklas Buschmann 2020-02-03 17:05:50 +01:00
parent 785926dac7
commit dc9cb278f6
8 changed files with 72 additions and 44 deletions

View File

@ -7,14 +7,13 @@
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
{{- end }}
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="{{ .Permalink }}">
<link rel="alternate" type="application/rss+xml" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="{{ .Site.Title }}">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/theme.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/classes.css">
<link rel="stylesheet" href="{{ .Site.BaseURL }}fonts/PT-Sans.css">
<link rel="canonical" href="{{ .Permalink }}">
<link rel="alternate" type="application/rss+xml" href="{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}" title="{{ .Site.Title }}">
{{- if or .Params.math .Site.Params.math }}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha256-V8SV2MO1FUb63Bwht5Wx9x6PVHNa02gv8BgH/uH3ung=" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha256-F/Xda58SPdcUCr+xhSGz9MA2zQBPb0ASEYKohl8UCHc=" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/mathtex-script-type.min.js" integrity="sha256-b8diVEOgPDxUp0CuYCi7+lb5xIGcgrtIdrvE8d/oztQ=" crossorigin="anonymous"></script>
{{ partial "math.html" . }}
{{- end }}
<header class="{{ if .Site.Params.brightheader }}bright{{ else }}dark{{ end }}">

View File

@ -0,0 +1,3 @@
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.css" integrity="sha384-zB1R0rpPzHqg7Kpt0Aljp8JPLqbXI3bhnPWROx27a9N0Ll6ZP/+DiW/UqRcLbRjq" crossorigin="anonymous">
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/katex.min.js" integrity="sha384-y23I5Q6l+B6vatafAwxRu/0oK/79VlbSz7Q9aiSZUvyWYIYsd+qj+o24G5ZU2zJz" crossorigin="anonymous"></script>
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.11.1/dist/contrib/auto-render.min.js" integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous" onload="renderMathInElement(document.body);"></script>

View File

@ -1,12 +1,13 @@
.bright {
box-shadow: 0 0 .6em #3c3c3c0f;
border-bottom: 1px solid #8c8c8e1f;
background: rgba(255, 255, 255, 0.02);
box-shadow: 0 0 .6em rgba(28, 29, 34, 0.05);
border-bottom: 1px solid rgba(142, 142, 145, 0.16);
}
.dark {
background: #1a1b20;
background: #1e1f25;
color: #fff;
border-bottom: 1px solid #fff1;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.archive li {
@ -16,6 +17,6 @@
.archive time {
display: inline-block;
min-width: 9.5ch;
margin: 0 .25em;
min-width: 10ch;
margin: 0 .2em;
}

View File

@ -1,20 +1,20 @@
@media (prefers-color-scheme: light) {
html {
background: #ffffff;
color: #18191d;
color: #1c1d22;
}
}
@media (prefers-color-scheme: dark) {
html {
background: #18191d;
background: #1c1d22;
color: #ffffff;
}
}
body {
font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Roboto", sans-serif;
font-size: calc(0.8rem + 0.25vw);
font-size: calc(0.8rem + 0.3vw);
font-weight: 400;
line-height: 1.6;
margin: 0;
@ -23,20 +23,10 @@ body {
-moz-osx-font-smoothing: grayscale;
}
@media (min-width: 50em) {
body {
font-size: 1.125rem
}
}
h1, h2, h3, h4, h5, h6 {
font-weight: 400;
}
h1 {
font-size: 1.8em
}
b, strong, th {
font-weight: 600;
}
@ -55,22 +45,22 @@ article a {
}
header time {
color: #8c8c8e;
color: #8e8e91;
}
hr {
border: 1px solid #8c8c8e4d;
border: 1px solid rgba(142, 142, 145, 0.3);
margin: 2em 0;
}
blockquote {
background: #8c8c8e0a;
border-left: 3px solid #8c8c8eb3;
background: rgba(142, 142, 145, 0.04);
border-left: 3px solid rgba(142, 142, 145, 0.7);
padding: 1px 1.5em;
}
blockquote p {
opacity: .7
opacity: .7;
}
blockquote, figure {
@ -97,15 +87,15 @@ th, td {
}
tr {
border: 1px solid #8c8c8e33;
border: 1px solid rgba(142, 142, 145, 0.2);
}
tr:hover, tr:nth-child(odd) td {
background: #8c8c8e0a;
background: rgba(142, 142, 145, 0.04);
}
pre {
background: #8c8c8e22;
background: rgba(142, 142, 145, 0.12);
border-radius: 2px;
font-size: .8em;
margin: 1.5em 0;
@ -115,7 +105,7 @@ pre {
:not(pre) > code {
font-size: .9em;
background: #8c8c8e26;
background: rgba(142, 142, 145, 0.15);
opacity: .7;
border-radius: 2px;
margin: 0 .1em;
@ -129,18 +119,20 @@ body > header {
align-items: center;
}
header h1 {
margin: 0;
}
body > header > a {
font-size: 1.3em
font-size: 1.3em;
margin: .2em 0;
}
article header {
margin-bottom: 1.5em;
}
article header h1 {
font-size: 2em;
margin: 0;
}
nav {
margin: .4em -.8em;
}
@ -158,9 +150,3 @@ body > header, article {
padding: 1.5em calc(38% - 12em);
}
}
@media (min-width: 100em) {
body > header, article {
padding: 1.5em calc(46% - 20em);
}
}

26
static/fonts/License.txt Normal file
View File

@ -0,0 +1,26 @@
Copyright © 2009 ParaType Ltd.
with Reserved Names "PT Sans" and "ParaType".
FONT LICENSE
PERMISSION & 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 Name(s) or combinations of Reserved Names with other words unless explicit written permission is granted by the ParaType. This restriction only applies to the primary font name as presented to the users.
4) The name of ParaType 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 ParaType and the author(s) or with explicit written permission of ParaType.
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 & TERRITORY
This license has no limits on time and territory, but it 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 PARATYPE 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.
ParaType Ltd
http://www.paratype.ru

13
static/fonts/PT-Sans.css Normal file
View File

@ -0,0 +1,13 @@
@font-face {
font-family: 'PT Sans';
src: local('PT Sans'), local('PTSans-Regular'), url('PTSans-Regular.woff') format('woff');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PT Sans';
src: local('PT Sans Bold'), local('PTSans-Bold'), url('PTSans-Bold.woff') format('woff');
font-weight: bold;
font-style: normal;
}

Binary file not shown.

Binary file not shown.