From c2b52c035b4ed907ba1a704286aceb778421cc70 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 19 Nov 2018 06:55:41 +0100 Subject: content update --- .eslintrc.json | 16 +++ .jekyll-metadata | Bin 39107 -> 39024 bytes .jsbeautifyrc | 51 ---------- .jshintignore | 9 -- .jshintrc | 9 -- .prettierrc.json | 8 ++ _includes/footer.html | 78 +++++++------- _includes/header.html | 16 ++- _includes/site.css | 260 +++++++++++++++++++++++------------------------ _includes/site.min.css | 2 +- _layouts/index.html | 120 +++++++++++----------- _layouts/page.html | 79 +++++++------- _layouts/post.html | 222 ++++++++++++++++++++-------------------- assets/cache-polyfill.js | 142 +++++++++++++------------- assets/manifest.json | 37 +++---- assets/site.min.css | 2 +- 16 files changed, 493 insertions(+), 558 deletions(-) create mode 100644 .eslintrc.json delete mode 100644 .jsbeautifyrc delete mode 100644 .jshintignore delete mode 100644 .jshintrc create mode 100644 .prettierrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..90221fb --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,16 @@ +{ + "env": { + "browser": true, + "es6": true + }, + "extends": "eslint:recommended", + "parserOptions": { + "ecmaVersion": 2016 + }, + "rules": { + "indent": ["error", 4], + "linebreak-style": ["error", "unix"], + "quotes": ["error", "single"], + "semi": ["error", "always"] + } +} diff --git a/.jekyll-metadata b/.jekyll-metadata index 8fc3f84..782a2fd 100644 Binary files a/.jekyll-metadata and b/.jekyll-metadata differ diff --git a/.jsbeautifyrc b/.jsbeautifyrc deleted file mode 100644 index 5d90dea..0000000 --- a/.jsbeautifyrc +++ /dev/null @@ -1,51 +0,0 @@ -{ - "html": { - "allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust", "njk"], - "brace_style": "collapse", - "end_with_newline": true, - "indent_char": " ", - "indent_handlebars": true, - "indent_inner_html": true, - "indent_scripts": "keep", - "indent_size": 4, - "indent_with_tabs": true, - "max_preserve_newlines": 10, - "preserve_newlines": true, - "unformatted": ["a", "span", "img", "code", "pre", "sub", "sup", "em", "strong", "b", "i", "u", "strike", "big", "small", "pre", "h1", "h2", "h3", "h4", "h5", "h6", "hr"], - "wrap_line_length": 0 - }, - "css": { - "allowed_file_extensions": ["css", "scss", "sass", "less"], - "end_with_newline": true, - "indent_char": " ", - "indent_size": 4, - "indent_with_tabs": true, - "newline_between_rules": true, - "selector_separator": " ", - "selector_separator_newline": true, - "preserve_newlines": false, - "max_preserve_newlines": 10 - }, - "js": { - "allowed_file_extensions": ["js", "json", "jshintrc", "jsbeautifyrc"], - "brace_style": "collapse", - "break_chained_methods": false, - "e4x": true, - "end_with_newline": true, - "indent_char": " ", - "indent_level": 0, - "indent_size": 4, - "indent_with_tabs": true, - "jslint_happy": false, - "keep_array_indentation": true, - "keep_function_indentation": true, - "max_preserve_newlines": 0, - "preserve_newlines": true, - "space_after_anon_function": false, - "space_before_conditional": true, - "space_in_empty_paren": false, - "space_in_paren": false, - "unescape_strings": false, - "wrap_line_length": 0 - } -} diff --git a/.jshintignore b/.jshintignore deleted file mode 100644 index 4d662aa..0000000 --- a/.jshintignore +++ /dev/null @@ -1,9 +0,0 @@ -node_modules -bower_components -lib/external -vendor -help -steal -funcunit -**/*.min.js -**/production.js diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 7c84ea6..0000000 --- a/.jshintrc +++ /dev/null @@ -1,9 +0,0 @@ -{ - "strict": false, - "esversion": 6, - "curly": true, - "noempty": true, - "trailing": true, - "white": false, - "evil": true -} diff --git a/.prettierrc.json b/.prettierrc.json new file mode 100644 index 0000000..dbd34fe --- /dev/null +++ b/.prettierrc.json @@ -0,0 +1,8 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "semi": true, + "singleQuote": true, + "arrowParens": "always", + "printWidth": 1000 +} diff --git a/_includes/footer.html b/_includes/footer.html index 7a4c478..9d95bac 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,59 +1,59 @@ diff --git a/_includes/header.html b/_includes/header.html index 217bfaf..adfda98 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -1,12 +1,10 @@ -
- @mitjafelicijan -
+
@mitjafelicijan
diff --git a/_includes/site.css b/_includes/site.css index 18f4320..35a613d 100644 --- a/_includes/site.css +++ b/_includes/site.css @@ -1,20 +1,20 @@ -@import url("https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900&subset=latin-ext"); +@import url('https://fonts.googleapis.com/css?family=Yrsa:300,400,500,600,700&subset=latin-ext'); * { - box-sizing: border-box; + box-sizing: border-box; } body { - font-family: 'Roboto', 'Times New Roman', Times, serif; - font-size: 18px; - line-height: 1.8; - color: #000; - margin: 0; - padding: 0 0 50px 0; + font-family: 'Yrsa', 'Roboto', 'Times New Roman', Times, serif; + font-size: 22px; + line-height: 1.6; + color: #000; + margin: 0; + padding: 0 0 50px 0; } a { - color: #000; + color: #000; } article, @@ -22,229 +22,229 @@ main, footer, nav, header { - max-width: 800px; - margin: 0 auto; + max-width: 800px; + margin: 0 auto; } header { - margin-top: 30px; + margin-top: 30px; } header a, nav ul li a { - text-decoration: none; + text-decoration: none; } header a { - font-size: 150%; - font-weight: 700; - color: #000; + font-size: 150%; + font-weight: 700; + color: #000; } nav ul { - margin-top: 10px; - padding: 0; + margin-top: 10px; + padding: 0; } nav ul li { - display: inline-block; + display: inline-block; } nav ul li a { - color: #444; - font-size: 85%; - margin-right: 10px; + color: #444; + font-size: 85%; + margin-right: 10px; } h1 { - font-size: 260%; - line-height: 150%; + font-size: 200%; + line-height: 120%; } h2 { - font-size: 160%; + font-size: 160%; } h3 { - font-size: 140%; + font-size: 140%; } h4 { - font-size: 120%; + font-size: 120%; } article img { - max-width: 100%; - display: block; + max-width: 100%; + display: block; } time { - display: block; - font-size: 85%; - color: #444; + display: block; + font-size: 85%; + color: #444; } ul { - list-style-type: square; + list-style-type: square; } main ul { - margin-top: 40px; - padding: 0 20px; + margin-top: 40px; + padding: 0 20px; } main ul li { - margin-bottom: 25px; - margin-left: -20px; - list-style-type: none; + margin-bottom: 25px; + margin-left: -20px; + list-style-type: none; } main ul li a { - font-size: 100%; - font-weight: 500; - text-decoration: none; + font-size: 100%; + font-weight: 600; + text-decoration: none; } main ul div { - font-size: 116%; + font-size: 116%; } blockquote { - margin: 40px 0 40px 20px; - border-left: 5px solid #eee; - padding: 5px 0 10px 20px; + margin: 40px 0 40px 20px; + border-left: 5px solid #eee; + padding: 5px 0 10px 20px; } table { - border: 2px solid #f1f1f1; - width: 100%; - border-collapse: collapse; - border-spacing: 0; + border: 2px solid #f1f1f1; + width: 100%; + border-collapse: collapse; + border-spacing: 0; } table th, table td { - border: 2px solid #f1f1f1; - text-align: left; - padding: 5px 10px; + border: 2px solid #f1f1f1; + text-align: left; + padding: 5px 10px; } summary { - outline: none; - cursor: pointer; - font-weight: 600; - user-select: none; + outline: none; + cursor: pointer; + font-weight: 600; + user-select: none; } details .highlighter-rouge { - margin-top: 10px !important; + margin-top: 10px !important; } .highlighter-rouge { - padding: 0 15px; - font-size: 80%; - border: 2px solid #f1f1f1; - overflow: auto; + padding: 0 15px; + font-size: 80%; + border: 2px solid #f1f1f1; + overflow: auto; } .highlighter-rouge table, .highlighter-rouge table td { - border: 0 !important; + border: 0 !important; } ::selection { - background: #ff0; - color: #000; + background: #ff0; + color: #000; } ::-moz-selection { - background: #ff0; - color: #000; + background: #ff0; + color: #000; } ol { - list-style: none; - counter-reset: li; + list-style: none; + counter-reset: li; } ol li { - counter-increment: li; + counter-increment: li; } ol li::before { - content: counter(li)'.'; - color: #ccc; - font-weight: 500; - display: inline-block; - width: 1em; - margin-left: -1.5em; - margin-right: 0.9em; - text-align: right; + content: counter(li) '.'; + color: #ccc; + font-weight: 500; + display: inline-block; + width: 1em; + margin-left: -1.5em; + margin-right: 0.9em; + text-align: right; } ol li a { - text-decoration: none; + text-decoration: none; } /* commenting */ #hcb_form_name, #hcb_form_content { - border: 2px solid #eee; - padding: 10px; - width: 300px; - margin-bottom: 10px; + border: 2px solid #eee; + padding: 10px; + width: 300px; + margin-bottom: 10px; } #hcb_submit { - -webkit-appearance: none; - -moz-appearance: none; - -o-appearance: none; - -ms-appearance: none; - appearance: none; - font-weight: 600; - padding: 7px 15px; - font-size: 85%; - display: inline-block; - cursor: pointer; - border-radius: 3px; - background: #ccc; - border: 2px solid transparent; - width: auto; - user-select: none; - text-align: center; - height: auto; - margin-right: 20px; -} - -@media only screen and (max-width:768px) { - body { - padding: 0 20px; - } - - footer, - header, - nav { - text-align: center; - } - - .responsive-table { - width: 100%; - overflow: scroll; - } - - h1 { - font-size: 200%; - } + -webkit-appearance: none; + -moz-appearance: none; + -o-appearance: none; + -ms-appearance: none; + appearance: none; + font-weight: 600; + padding: 7px 15px; + font-size: 85%; + display: inline-block; + cursor: pointer; + border-radius: 3px; + background: #ccc; + border: 2px solid transparent; + width: auto; + user-select: none; + text-align: center; + height: auto; + margin-right: 20px; +} + +@media only screen and (max-width: 768px) { + body { + padding: 0 20px; + } + + footer, + header, + nav { + text-align: center; + } + + .responsive-table { + width: 100%; + overflow: scroll; + } + + h1 { + font-size: 200%; + } } @media print { - @page { - margin: 2cm; - } - - header, - nav, - .comments { - display: none; - } + @page { + margin: 2cm; + } + + header, + nav, + .comments { + display: none; + } } diff --git a/_includes/site.min.css b/_includes/site.min.css index 0168689..ceb1579 100644 --- a/_includes/site.min.css +++ b/_includes/site.min.css @@ -1 +1 @@ -a,body,header a{color:#000}header a,main ul li a,nav ul li a,ol li a{text-decoration:none}#hcb_submit,nav ul li,ol li::before{display:inline-block}#hcb_submit,summary{cursor:pointer;user-select:none}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1MmgVxGIzc.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7GxP.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmEU9fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmYUtfChc9.ttf) format('truetype')}*{box-sizing:border-box}body{font-family:Roboto,'Times New Roman',Times,serif;font-size:18px;line-height:1.8;margin:0;padding:0 0 50px}article,footer,header,main,nav{max-width:800px;margin:0 auto}header{margin-top:30px}header a{font-size:150%;font-weight:700}nav ul{margin-top:10px;padding:0}nav ul li a{color:#444;font-size:85%;margin-right:10px}h1{font-size:260%;line-height:150%}h2{font-size:160%}h3{font-size:140%}h4{font-size:120%}article img{max-width:100%;display:block}time{display:block;font-size:85%;color:#444}ul{list-style-type:square}main ul{margin-top:40px;padding:0 20px}main ul li{margin-bottom:25px;margin-left:-20px;list-style-type:none}main ul li a{font-size:100%;font-weight:500}main ul div{font-size:116%}blockquote{margin:40px 0 40px 20px;border-left:5px solid #eee;padding:5px 0 10px 20px}.highlighter-rouge,table,table td,table th{border:2px solid #f1f1f1}table{width:100%;border-collapse:collapse;border-spacing:0}table td,table th{text-align:left;padding:5px 10px}summary{outline:0;font-weight:600}details .highlighter-rouge{margin-top:10px!important}.highlighter-rouge{padding:0 15px;font-size:80%;overflow:auto}.highlighter-rouge table,.highlighter-rouge table td{border:0!important}::selection{background:#ff0;color:#000}::-moz-selection{background:#ff0;color:#000}ol{list-style:none;counter-reset:li}ol li{counter-increment:li}ol li::before{content:counter(li)'.';color:#ccc;font-weight:500;width:1em;margin-left:-1.5em;margin-right:.9em;text-align:right}#hcb_form_content,#hcb_form_name{border:2px solid #eee;padding:10px;width:300px;margin-bottom:10px}#hcb_submit{-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;-ms-appearance:none;appearance:none;font-weight:600;padding:7px 15px;font-size:85%;border-radius:3px;background:#ccc;border:2px solid transparent;width:auto;text-align:center;height:auto;margin-right:20px}@media only screen and (max-width:768px){body{padding:0 20px}footer,header,nav{text-align:center}.responsive-table{width:100%;overflow:scroll}h1{font-size:200%}}@media print{@page{margin:2cm}.comments,header,nav{display:none}} \ No newline at end of file +a,body,header a{color:#000}header a,main ul li a,nav ul li a,ol li a{text-decoration:none}#hcb_submit,nav ul li,ol li::before{display:inline-block}#hcb_submit,summary{cursor:pointer;user-select:none}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1MmgVxGIzc.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7GxP.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmEU9fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmYUtfChc9.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:300;src:local('Merriweather Light Italic'),local('Merriweather-LightItalic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4l0qyriQwlOrhSvowK_l5-eR7lXff2jvk.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:400;src:local('Merriweather Italic'),local('Merriweather-Italic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4m0qyriQwlOrhSvowK_l5-eRZAf-c.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:700;src:local('Merriweather Bold Italic'),local('Merriweather-BoldItalic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4l0qyriQwlOrhSvowK_l5-eR71Wvf2jvk.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:900;src:local('Merriweather Black Italic'),local('Merriweather-BlackItalic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4l0qyriQwlOrhSvowK_l5-eR7NWPf2jvk.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:300;src:local('Merriweather Light'),local('Merriweather-Light'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4n0qyriQwlOrhSvowK_l521wRZVsf_.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:400;src:local('Merriweather Regular'),local('Merriweather-Regular'),url(https://fonts.gstatic.com/s/merriweather/v19/u-440qyriQwlOrhSvowK_l5-ciZJ.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:700;src:local('Merriweather Bold'),local('Merriweather-Bold'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4n0qyriQwlOrhSvowK_l52xwNZVsf_.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:900;src:local('Merriweather Black'),local('Merriweather-Black'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4n0qyriQwlOrhSvowK_l52_wFZVsf_.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:italic;font-weight:400;src:local('PT Serif Italic'),local('PTSerif-Italic'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRTQgYoZZY2vCFuvAFT_rO1dw.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:italic;font-weight:700;src:local('PT Serif Bold Italic'),local('PTSerif-BoldItalic'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRQQgYoZZY2vCFuvAFT9gaQZyffpQ.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:normal;font-weight:400;src:local('PT Serif'),local('PTSerif-Regular'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRVQgYoZZY2vCFuvAFYzro.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:normal;font-weight:700;src:local('PT Serif Bold'),local('PTSerif-Bold'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRSQgYoZZY2vCFuvAnt66qcVy4.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:300;src:local('Yrsa Light'),local('Yrsa-Light'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3af97I0x2Q.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:400;src:local('Yrsa Regular'),local('Yrsa-Regular'),url(https://fonts.gstatic.com/s/yrsa/v3/wlp-gwnQFlxs1QLf_A.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:500;src:local('Yrsa Medium'),local('Yrsa-Medium'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3f_87I0x2Q.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:600;src:local('Yrsa SemiBold'),local('Yrsa-SemiBold'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3dP77I0x2Q.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:700;src:local('Yrsa Bold'),local('Yrsa-Bold'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3bf67I0x2Q.ttf) format('truetype')}*{box-sizing:border-box}body{font-family:Yrsa,Roboto,'Times New Roman',Times,serif;font-size:22px;line-height:1.6;margin:0;padding:0 0 50px}article,footer,header,main,nav{max-width:800px;margin:0 auto}header{margin-top:30px}header a{font-size:150%;font-weight:700}nav ul{margin-top:10px;padding:0}nav ul li a{color:#444;font-size:85%;margin-right:10px}h1{font-size:200%;line-height:120%}h2{font-size:160%}h3{font-size:140%}h4{font-size:120%}article img{max-width:100%;display:block}time{display:block;font-size:85%;color:#444}ul{list-style-type:square}main ul{margin-top:40px;padding:0 20px}main ul li{margin-bottom:25px;margin-left:-20px;list-style-type:none}main ul li a{font-size:100%;font-weight:600}main ul div{font-size:116%}blockquote{margin:40px 0 40px 20px;border-left:5px solid #eee;padding:5px 0 10px 20px}.highlighter-rouge,table,table td,table th{border:2px solid #f1f1f1}table{width:100%;border-collapse:collapse;border-spacing:0}table td,table th{text-align:left;padding:5px 10px}summary{outline:0;font-weight:600}details .highlighter-rouge{margin-top:10px!important}.highlighter-rouge{padding:0 15px;font-size:80%;overflow:auto}.highlighter-rouge table,.highlighter-rouge table td{border:0!important}::selection{background:#ff0;color:#000}::-moz-selection{background:#ff0;color:#000}ol{list-style:none;counter-reset:li}ol li{counter-increment:li}ol li::before{content:counter(li) '.';color:#ccc;font-weight:500;width:1em;margin-left:-1.5em;margin-right:.9em;text-align:right}#hcb_form_content,#hcb_form_name{border:2px solid #eee;padding:10px;width:300px;margin-bottom:10px}#hcb_submit{-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;-ms-appearance:none;appearance:none;font-weight:600;padding:7px 15px;font-size:85%;border-radius:3px;background:#ccc;border:2px solid transparent;width:auto;text-align:center;height:auto;margin-right:20px}@media only screen and (max-width:768px){body{padding:0 20px}footer,header,nav{text-align:center}.responsive-table{width:100%;overflow:scroll}h1{font-size:200%}}@media print{@page{margin:2cm}.comments,header,nav{display:none}} \ No newline at end of file diff --git a/_layouts/index.html b/_layouts/index.html index 0d251ce..af720a9 100644 --- a/_layouts/index.html +++ b/_layouts/index.html @@ -1,65 +1,59 @@ - + - - - - - - - - - - - - - - - {{ page.title }} - - - - - - - - - - - - - - - - - - - - - - - - {% include header.html %} - -
- - {{ content }} - - - -
- - {% include footer.html %} - - - + + + + + + + + + + + + + {{ page.title }} + + + + + + + + + + + + + + + + + + + + + + {% include header.html %} + +
+ {{ content }} + + +
+ + {% include footer.html %} + diff --git a/_layouts/page.html b/_layouts/page.html index a5d132d..68de599 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -1,59 +1,50 @@ - + + + - + + - + + + - - + - - - + {{ page.title }} - + - {{ page.title }} + + + + + - + + + + + - - - - - + - - - - - + + - + + {% include header.html %} - +
+

{{ page.title }}

- - - - - {% include header.html %} - -
- -

{{ page.title }}

- - {{ content }} - -
- - {% include footer.html %} - - + {{ content }} +
+ {% include footer.html %} + - diff --git a/_layouts/post.html b/_layouts/post.html index 31aabf8..13ffece 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,116 +1,110 @@ - + - - - - - - - - - - - - - - - {{ page.title }} - - - - - - - - - - - - - - - - - - - - - - - - {% include header.html %} - -
- -

{{ page.title }}

- - - - {{ content }} - - - -
- - {% include footer.html %} - - - - - - + + + + + + + + + + + + + {{ page.title }} + + + + + + + + + + + + + + + + + + + + + + {% include header.html %} + +
+

{{ page.title }}

+ + + + {{ content }} + + +
+ + {% include footer.html %} + + + + diff --git a/assets/cache-polyfill.js b/assets/cache-polyfill.js index 7db3ec0..1449734 100644 --- a/assets/cache-polyfill.js +++ b/assets/cache-polyfill.js @@ -15,88 +15,88 @@ * */ -(function () { - var nativeAddAll = Cache.prototype.addAll; - var userAgent = navigator.userAgent.match(/(Firefox|Chrome)\/(\d+\.)/); +(function() { + var nativeAddAll = Cache.prototype.addAll; + var userAgent = navigator.userAgent.match(/(Firefox|Chrome)\/(\d+\.)/); - // Has nice behavior of `var` which everyone hates - if (userAgent) { - var agent = userAgent[1]; - var version = parseInt(userAgent[2]); - } + // Has nice behavior of `var` which everyone hates + if (userAgent) { + var agent = userAgent[1]; + var version = parseInt(userAgent[2]); + } - if ( - nativeAddAll && (!userAgent || - (agent === 'Firefox' && version >= 46) || - (agent === 'Chrome' && version >= 50) - ) - ) { - return; - } + if (nativeAddAll && (!userAgent || (agent === 'Firefox' && version >= 46) || (agent === 'Chrome' && version >= 50))) { + return; + } - Cache.prototype.addAll = function addAll(requests) { - var cache = this; + Cache.prototype.addAll = function addAll(requests) { + var cache = this; - // Since DOMExceptions are not constructable: - function NetworkError(message) { - this.name = 'NetworkError'; - this.code = 19; - this.message = message; - } + // Since DOMExceptions are not constructable: + function NetworkError(message) { + this.name = 'NetworkError'; + this.code = 19; + this.message = message; + } - NetworkError.prototype = Object.create(Error.prototype); + NetworkError.prototype = Object.create(Error.prototype); - return Promise.resolve().then(function () { - if (arguments.length < 1) throw new TypeError(); + return Promise.resolve() + .then(function() { + if (arguments.length < 1) throw new TypeError(); - // Simulate sequence<(Request or USVString)> binding: - var sequence = []; + // Simulate sequence<(Request or USVString)> binding: + var sequence = []; - requests = requests.map(function (request) { - if (request instanceof Request) { - return request; - } else { - return String(request); // may throw TypeError - } - }); + requests = requests.map(function(request) { + if (request instanceof Request) { + return request; + } else { + return String(request); // may throw TypeError + } + }); - return Promise.all( - requests.map(function (request) { - if (typeof request === 'string') { - request = new Request(request); - } + return Promise.all( + requests.map(function(request) { + if (typeof request === 'string') { + request = new Request(request); + } - var scheme = new URL(request.url).protocol; + var scheme = new URL(request.url).protocol; - if (scheme !== 'http:' && scheme !== 'https:') { - throw new NetworkError("Invalid scheme"); - } + if (scheme !== 'http:' && scheme !== 'https:') { + throw new NetworkError('Invalid scheme'); + } - return fetch(request.clone()); - }) - ); - }).then(function (responses) { - // If some of the responses has not OK-eish status, - // then whole operation should reject - if (responses.some(function (response) { - return !response.ok; - })) { - throw new NetworkError('Incorrect response status'); - } + return fetch(request.clone()); + }) + ); + }) + .then(function(responses) { + // If some of the responses has not OK-eish status, + // then whole operation should reject + if ( + responses.some(function(response) { + return !response.ok; + }) + ) { + throw new NetworkError('Incorrect response status'); + } - // TODO: check that requests don't overwrite one another - // (don't think this is possible to polyfill due to opaque responses) - return Promise.all( - responses.map(function (response, i) { - return cache.put(requests[i], response); - }) - ); - }).then(function () { - return undefined; - }); - }; + // TODO: check that requests don't overwrite one another + // (don't think this is possible to polyfill due to opaque responses) + return Promise.all( + responses.map(function(response, i) { + return cache.put(requests[i], response); + }) + ); + }) + .then(function() { + return undefined; + }); + }; - Cache.prototype.add = function add(request) { - return this.addAll([request]); - }; -}()); + Cache.prototype.add = function add(request) { + return this.addAll([request]); + }; +})(); diff --git a/assets/manifest.json b/assets/manifest.json index f0b21b4..d150c67 100644 --- a/assets/manifest.json +++ b/assets/manifest.json @@ -1,19 +1,22 @@ { - "short_name": "MF", - "name": "Mitja Felicijan", - "author": "Mitja Felicijan", - "icons": [{ - "src": "/assets/avatar.png", - "sizes": "512x512", - "type": "image/png" - }, { - "src": "/assets/avatar.gif", - "sizes": "512x512", - "type": "image/gif" - }], - "start_url": "/", - "scope": "/", - "display": "standalone", - "theme_color": "#ffffff", - "background_color": "#ffffff" + "short_name": "MF", + "name": "Mitja Felicijan", + "author": "Mitja Felicijan", + "icons": [ + { + "src": "/assets/avatar.png", + "sizes": "512x512", + "type": "image/png" + }, + { + "src": "/assets/avatar.gif", + "sizes": "512x512", + "type": "image/gif" + } + ], + "start_url": "/", + "scope": "/", + "display": "standalone", + "theme_color": "#ffffff", + "background_color": "#ffffff" } diff --git a/assets/site.min.css b/assets/site.min.css index 0168689..ceb1579 100644 --- a/assets/site.min.css +++ b/assets/site.min.css @@ -1 +1 @@ -a,body,header a{color:#000}header a,main ul li a,nav ul li a,ol li a{text-decoration:none}#hcb_submit,nav ul li,ol li::before{display:inline-block}#hcb_submit,summary{cursor:pointer;user-select:none}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1MmgVxGIzc.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7GxP.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmEU9fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmYUtfChc9.ttf) format('truetype')}*{box-sizing:border-box}body{font-family:Roboto,'Times New Roman',Times,serif;font-size:18px;line-height:1.8;margin:0;padding:0 0 50px}article,footer,header,main,nav{max-width:800px;margin:0 auto}header{margin-top:30px}header a{font-size:150%;font-weight:700}nav ul{margin-top:10px;padding:0}nav ul li a{color:#444;font-size:85%;margin-right:10px}h1{font-size:260%;line-height:150%}h2{font-size:160%}h3{font-size:140%}h4{font-size:120%}article img{max-width:100%;display:block}time{display:block;font-size:85%;color:#444}ul{list-style-type:square}main ul{margin-top:40px;padding:0 20px}main ul li{margin-bottom:25px;margin-left:-20px;list-style-type:none}main ul li a{font-size:100%;font-weight:500}main ul div{font-size:116%}blockquote{margin:40px 0 40px 20px;border-left:5px solid #eee;padding:5px 0 10px 20px}.highlighter-rouge,table,table td,table th{border:2px solid #f1f1f1}table{width:100%;border-collapse:collapse;border-spacing:0}table td,table th{text-align:left;padding:5px 10px}summary{outline:0;font-weight:600}details .highlighter-rouge{margin-top:10px!important}.highlighter-rouge{padding:0 15px;font-size:80%;overflow:auto}.highlighter-rouge table,.highlighter-rouge table td{border:0!important}::selection{background:#ff0;color:#000}::-moz-selection{background:#ff0;color:#000}ol{list-style:none;counter-reset:li}ol li{counter-increment:li}ol li::before{content:counter(li)'.';color:#ccc;font-weight:500;width:1em;margin-left:-1.5em;margin-right:.9em;text-align:right}#hcb_form_content,#hcb_form_name{border:2px solid #eee;padding:10px;width:300px;margin-bottom:10px}#hcb_submit{-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;-ms-appearance:none;appearance:none;font-weight:600;padding:7px 15px;font-size:85%;border-radius:3px;background:#ccc;border:2px solid transparent;width:auto;text-align:center;height:auto;margin-right:20px}@media only screen and (max-width:768px){body{padding:0 20px}footer,header,nav{text-align:center}.responsive-table{width:100%;overflow:scroll}h1{font-size:200%}}@media print{@page{margin:2cm}.comments,header,nav{display:none}} \ No newline at end of file +a,body,header a{color:#000}header a,main ul li a,nav ul li a,ol li a{text-decoration:none}#hcb_submit,nav ul li,ol li::before{display:inline-block}#hcb_submit,summary{cursor:pointer;user-select:none}@font-face{font-family:Roboto;font-style:normal;font-weight:100;src:local('Roboto Thin'),local('Roboto-Thin'),url(https://fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1MmgVxGIzc.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:400;src:local('Roboto'),local('Roboto-Regular'),url(https://fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu7GxP.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:500;src:local('Roboto Medium'),local('Roboto-Medium'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmEU9fChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfChc9.ttf) format('truetype')}@font-face{font-family:Roboto;font-style:normal;font-weight:900;src:local('Roboto Black'),local('Roboto-Black'),url(https://fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmYUtfChc9.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:300;src:local('Merriweather Light Italic'),local('Merriweather-LightItalic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4l0qyriQwlOrhSvowK_l5-eR7lXff2jvk.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:400;src:local('Merriweather Italic'),local('Merriweather-Italic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4m0qyriQwlOrhSvowK_l5-eRZAf-c.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:700;src:local('Merriweather Bold Italic'),local('Merriweather-BoldItalic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4l0qyriQwlOrhSvowK_l5-eR71Wvf2jvk.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:italic;font-weight:900;src:local('Merriweather Black Italic'),local('Merriweather-BlackItalic'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4l0qyriQwlOrhSvowK_l5-eR7NWPf2jvk.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:300;src:local('Merriweather Light'),local('Merriweather-Light'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4n0qyriQwlOrhSvowK_l521wRZVsf_.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:400;src:local('Merriweather Regular'),local('Merriweather-Regular'),url(https://fonts.gstatic.com/s/merriweather/v19/u-440qyriQwlOrhSvowK_l5-ciZJ.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:700;src:local('Merriweather Bold'),local('Merriweather-Bold'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4n0qyriQwlOrhSvowK_l52xwNZVsf_.ttf) format('truetype')}@font-face{font-family:Merriweather;font-style:normal;font-weight:900;src:local('Merriweather Black'),local('Merriweather-Black'),url(https://fonts.gstatic.com/s/merriweather/v19/u-4n0qyriQwlOrhSvowK_l52_wFZVsf_.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:italic;font-weight:400;src:local('PT Serif Italic'),local('PTSerif-Italic'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRTQgYoZZY2vCFuvAFT_rO1dw.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:italic;font-weight:700;src:local('PT Serif Bold Italic'),local('PTSerif-BoldItalic'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRQQgYoZZY2vCFuvAFT9gaQZyffpQ.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:normal;font-weight:400;src:local('PT Serif'),local('PTSerif-Regular'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRVQgYoZZY2vCFuvAFYzro.ttf) format('truetype')}@font-face{font-family:'PT Serif';font-style:normal;font-weight:700;src:local('PT Serif Bold'),local('PTSerif-Bold'),url(https://fonts.gstatic.com/s/ptserif/v9/EJRSQgYoZZY2vCFuvAnt66qcVy4.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:300;src:local('Yrsa Light'),local('Yrsa-Light'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3af97I0x2Q.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:400;src:local('Yrsa Regular'),local('Yrsa-Regular'),url(https://fonts.gstatic.com/s/yrsa/v3/wlp-gwnQFlxs1QLf_A.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:500;src:local('Yrsa Medium'),local('Yrsa-Medium'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3f_87I0x2Q.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:600;src:local('Yrsa SemiBold'),local('Yrsa-SemiBold'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3dP77I0x2Q.ttf) format('truetype')}@font-face{font-family:Yrsa;font-style:normal;font-weight:700;src:local('Yrsa Bold'),local('Yrsa-Bold'),url(https://fonts.gstatic.com/s/yrsa/v3/wlpxgwnQFlxs3bf67I0x2Q.ttf) format('truetype')}*{box-sizing:border-box}body{font-family:Yrsa,Roboto,'Times New Roman',Times,serif;font-size:22px;line-height:1.6;margin:0;padding:0 0 50px}article,footer,header,main,nav{max-width:800px;margin:0 auto}header{margin-top:30px}header a{font-size:150%;font-weight:700}nav ul{margin-top:10px;padding:0}nav ul li a{color:#444;font-size:85%;margin-right:10px}h1{font-size:200%;line-height:120%}h2{font-size:160%}h3{font-size:140%}h4{font-size:120%}article img{max-width:100%;display:block}time{display:block;font-size:85%;color:#444}ul{list-style-type:square}main ul{margin-top:40px;padding:0 20px}main ul li{margin-bottom:25px;margin-left:-20px;list-style-type:none}main ul li a{font-size:100%;font-weight:600}main ul div{font-size:116%}blockquote{margin:40px 0 40px 20px;border-left:5px solid #eee;padding:5px 0 10px 20px}.highlighter-rouge,table,table td,table th{border:2px solid #f1f1f1}table{width:100%;border-collapse:collapse;border-spacing:0}table td,table th{text-align:left;padding:5px 10px}summary{outline:0;font-weight:600}details .highlighter-rouge{margin-top:10px!important}.highlighter-rouge{padding:0 15px;font-size:80%;overflow:auto}.highlighter-rouge table,.highlighter-rouge table td{border:0!important}::selection{background:#ff0;color:#000}::-moz-selection{background:#ff0;color:#000}ol{list-style:none;counter-reset:li}ol li{counter-increment:li}ol li::before{content:counter(li) '.';color:#ccc;font-weight:500;width:1em;margin-left:-1.5em;margin-right:.9em;text-align:right}#hcb_form_content,#hcb_form_name{border:2px solid #eee;padding:10px;width:300px;margin-bottom:10px}#hcb_submit{-webkit-appearance:none;-moz-appearance:none;-o-appearance:none;-ms-appearance:none;appearance:none;font-weight:600;padding:7px 15px;font-size:85%;border-radius:3px;background:#ccc;border:2px solid transparent;width:auto;text-align:center;height:auto;margin-right:20px}@media only screen and (max-width:768px){body{padding:0 20px}footer,header,nav{text-align:center}.responsive-table{width:100%;overflow:scroll}h1{font-size:200%}}@media print{@page{margin:2cm}.comments,header,nav{display:none}} \ No newline at end of file -- cgit v1.2.3