merge upstream
This commit is contained in:
parent
785926dac7
commit
dc9cb278f6
@ -7,14 +7,13 @@
|
|||||||
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
|
<meta name="description" content="{{ .Description | default .Site.Params.description }}">
|
||||||
{{- end }}
|
{{- end }}
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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/theme.css">
|
||||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/classes.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 }}
|
{{- 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">
|
{{ partial "math.html" . }}
|
||||||
<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>
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<header class="{{ if .Site.Params.brightheader }}bright{{ else }}dark{{ end }}">
|
<header class="{{ if .Site.Params.brightheader }}bright{{ else }}dark{{ end }}">
|
||||||
|
3
layouts/partials/math.html
Normal file
3
layouts/partials/math.html
Normal 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>
|
@ -1,12 +1,13 @@
|
|||||||
.bright {
|
.bright {
|
||||||
box-shadow: 0 0 .6em #3c3c3c0f;
|
background: rgba(255, 255, 255, 0.02);
|
||||||
border-bottom: 1px solid #8c8c8e1f;
|
box-shadow: 0 0 .6em rgba(28, 29, 34, 0.05);
|
||||||
|
border-bottom: 1px solid rgba(142, 142, 145, 0.16);
|
||||||
}
|
}
|
||||||
|
|
||||||
.dark {
|
.dark {
|
||||||
background: #1a1b20;
|
background: #1e1f25;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
border-bottom: 1px solid #fff1;
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
|
||||||
}
|
}
|
||||||
|
|
||||||
.archive li {
|
.archive li {
|
||||||
@ -16,6 +17,6 @@
|
|||||||
|
|
||||||
.archive time {
|
.archive time {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
min-width: 9.5ch;
|
min-width: 10ch;
|
||||||
margin: 0 .25em;
|
margin: 0 .2em;
|
||||||
}
|
}
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
@media (prefers-color-scheme: light) {
|
@media (prefers-color-scheme: light) {
|
||||||
html {
|
html {
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
color: #18191d;
|
color: #1c1d22;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (prefers-color-scheme: dark) {
|
@media (prefers-color-scheme: dark) {
|
||||||
html {
|
html {
|
||||||
background: #18191d;
|
background: #1c1d22;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Roboto", sans-serif;
|
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;
|
font-weight: 400;
|
||||||
line-height: 1.6;
|
line-height: 1.6;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -23,20 +23,10 @@ body {
|
|||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 50em) {
|
|
||||||
body {
|
|
||||||
font-size: 1.125rem
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
h1, h2, h3, h4, h5, h6 {
|
h1, h2, h3, h4, h5, h6 {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
|
||||||
font-size: 1.8em
|
|
||||||
}
|
|
||||||
|
|
||||||
b, strong, th {
|
b, strong, th {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
@ -55,22 +45,22 @@ article a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
header time {
|
header time {
|
||||||
color: #8c8c8e;
|
color: #8e8e91;
|
||||||
}
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
border: 1px solid #8c8c8e4d;
|
border: 1px solid rgba(142, 142, 145, 0.3);
|
||||||
margin: 2em 0;
|
margin: 2em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote {
|
blockquote {
|
||||||
background: #8c8c8e0a;
|
background: rgba(142, 142, 145, 0.04);
|
||||||
border-left: 3px solid #8c8c8eb3;
|
border-left: 3px solid rgba(142, 142, 145, 0.7);
|
||||||
padding: 1px 1.5em;
|
padding: 1px 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote p {
|
blockquote p {
|
||||||
opacity: .7
|
opacity: .7;
|
||||||
}
|
}
|
||||||
|
|
||||||
blockquote, figure {
|
blockquote, figure {
|
||||||
@ -97,15 +87,15 @@ th, td {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tr {
|
tr {
|
||||||
border: 1px solid #8c8c8e33;
|
border: 1px solid rgba(142, 142, 145, 0.2);
|
||||||
}
|
}
|
||||||
|
|
||||||
tr:hover, tr:nth-child(odd) td {
|
tr:hover, tr:nth-child(odd) td {
|
||||||
background: #8c8c8e0a;
|
background: rgba(142, 142, 145, 0.04);
|
||||||
}
|
}
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
background: #8c8c8e22;
|
background: rgba(142, 142, 145, 0.12);
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
margin: 1.5em 0;
|
margin: 1.5em 0;
|
||||||
@ -115,7 +105,7 @@ pre {
|
|||||||
|
|
||||||
:not(pre) > code {
|
:not(pre) > code {
|
||||||
font-size: .9em;
|
font-size: .9em;
|
||||||
background: #8c8c8e26;
|
background: rgba(142, 142, 145, 0.15);
|
||||||
opacity: .7;
|
opacity: .7;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
margin: 0 .1em;
|
margin: 0 .1em;
|
||||||
@ -129,18 +119,20 @@ body > header {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
header h1 {
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
body > header > a {
|
body > header > a {
|
||||||
font-size: 1.3em
|
font-size: 1.3em;
|
||||||
|
margin: .2em 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
article header {
|
article header {
|
||||||
margin-bottom: 1.5em;
|
margin-bottom: 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
article header h1 {
|
||||||
|
font-size: 2em;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
nav {
|
nav {
|
||||||
margin: .4em -.8em;
|
margin: .4em -.8em;
|
||||||
}
|
}
|
||||||
@ -158,9 +150,3 @@ body > header, article {
|
|||||||
padding: 1.5em calc(38% - 12em);
|
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
26
static/fonts/License.txt
Normal 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
13
static/fonts/PT-Sans.css
Normal 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;
|
||||||
|
}
|
BIN
static/fonts/PTSans-Bold.woff
Normal file
BIN
static/fonts/PTSans-Bold.woff
Normal file
Binary file not shown.
BIN
static/fonts/PTSans-Regular.woff
Normal file
BIN
static/fonts/PTSans-Regular.woff
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user