cleanup commit before new CSS

This commit is contained in:
Peter Molnar 2018-06-16 16:53:42 +00:00
parent af50aef4b8
commit 61db088790
8 changed files with 1089 additions and 499 deletions

View file

@ -14,14 +14,15 @@
{% endif %}
<section class="content-body h-feed">
<aside class="follow">
<p>
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-rss" />
</svg>
<a title="follow {{ taxonomy.title }}" rel="feed" href="{{ site.url }}{{ taxonomy.feed }}">Atom feed</a>
<nav>
<p class="follow">
<a title="follow {{ taxonomy.title }}" rel="feed" href="{{ site.url }}{{ taxonomy.feed }}">
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-rss" />
</svg>
</a>
</p>
</aside>
</nav>
<h1 class="p-name hide">{{ taxonomy.name }}</h1>
{% for post in posts %}

View file

@ -68,17 +68,11 @@
<dt>License</dt>
<dd class="license">
{% if post.licence.text == 'CC BY 4.0' %}
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-creative-commons" />
</svg><a rel="license" href="https://creativecommons.org/licenses/by/4.0/" class="u-license">CC BY 4.0</a> You are free to share or republish, even if modified, if you link back here and indicate the modifications, even for commercial use.
<a rel="license" href="https://creativecommons.org/licenses/by/4.0/" class="u-license">CC BY 4.0</a> You are free to share or republish, even if modified, if you link back here and indicate the modifications, even for commercial use.
{% elif post.licence.text == 'CC BY-NC 4.0' %}
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-creative-commons" />
</svg><a rel="license" href="https://creativecommons.org/licenses/by-nc/4.0/" class="u-license">CC BY-NC 4.0</a> You are free to share or republish, even if modified, if you link back here and indicate the modifications, for non commercial use. For commercial use please contact the author.
<a rel="license" href="https://creativecommons.org/licenses/by-nc/4.0/" class="u-license">CC BY-NC 4.0</a> You are free to share or republish, even if modified, if you link back here and indicate the modifications, for non commercial use. For commercial use please contact the author.
{% else %}
<svg class="icon" width="16" height="16">
<use xlink:href="#icon-creative-commons" />
</svg><a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" class="u-license">CC BY-NC-ND 4.0</a> You are free to share if you link back here for non commercial use, but you can't publish any altered versions of it. For commercial use please contact the author.
<a rel="license" href="https://creativecommons.org/licenses/by-nc-nd/4.0/" class="u-license">CC BY-NC-ND 4.0</a> You are free to share if you link back here for non commercial use, but you can't publish any altered versions of it. For commercial use please contact the author.
{% endif %}
</dd>
<dt class="noprint">Leave a tip</dt>

View file

@ -3,7 +3,7 @@
<img src="{{ photo.src }}" title="{{ photo.title }}" alt="{{ photo.alt }}" class="adaptimg" width="{{ photo.width }}" height="{{ photo.height }}" />
{% if photo.target %}</a>{% endif %}
<figcaption>
<span class="alt">{{ photo.alt }}</span>{% if photo.is_photo %}<span class="author"> - photo by {{ photo.author }}</span>
<span class="alt">{{ photo.alt }}</span>{% if photo.is_photo %}
<dl class="exif">
{% if photo.exif.camera %}
<dt>Camera</dt>
@ -29,7 +29,6 @@
<dt>Lens</dt>
<dd><svg class="icon" width="16" height="16"><use xlink:href="#icon-lens" /></svg>{{ photo.exif.lens }}</dd>
{% endif %}
</dl>
{% endif %}
</dl>{% endif %}
</figcaption>
</figure>

View file

@ -55,5 +55,35 @@
{% include 'symbols.svg' %}
<!--
This is a self-hosted analytics code, called Matomo
I configured it to avoid placing cookies, respect Do Not Track,
remove the last segment of IP information, so it stores as little
information as possible.
-->
<script type="text/javascript">
var _paq = _paq || [];
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//stats.petermolnar.net/";
_paq.push(['setTrackerUrl', u+'piwik.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript';
g.async=true;
g.defer=true;
g.src=u+'piwik.js';
s.parentNode.insertBefore(g,s);
})();
</script>
<noscript>
<img src="https://stats.petermolnar.net/piwik.php?idsite=1&amp;rec=1" style="border:0" alt="" />
</noscript>
</body>
</html>

View file

@ -1,5 +1,5 @@
<style media="all">
{% include 'style-dark.css' %}
{% include 'style.css' %}
</style>
</head>
<body>

View file

@ -4,6 +4,12 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1" />
<link rel="icon" href="{{ site.url }}/favicon.ico" />
<!-- https://indieweb.org/Webmention -->
<link rel="http://webmention.org/" href="{{ site.url }}/webmention" />
<link rel="webmention" href="{{ site.url }}/webmention" />
<link rel="hub" href="{{ site.websub.hub }}">
<!-- https://indieweb.org/Microsub -->
<link rel="hub" href="{{ site.websub.hub }}" />
<!-- https://indieweb.org/Micropub -->
<link rel="authorization_endpoint" href="{{ site.url }}micropub-auth" />
<link rel="token_endpoint" href="{{ site.url }}micropub-token" />
<link rel="micropub" href="{{ site.url }}micropub" />

578
templates/style-beta.css Normal file
View file

@ -0,0 +1,578 @@
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
transition: all 0.2s;
padding: 0;
margin: 0;
}
html,
.content-footer,
.content-header {
position: relative;
background-color: #111;
color: #bbb;
}
html, body {
min-height: 100%;
font-family: "Liberation Sans", "Helvetica Neue", "Roboto", "Helvetica", sans-serif;
color: #ccc;
background-color: #222;
}
hr {
border: none;
border-top: 1px solid #777;
margin: 1em 0;
clear:both;
}
a {
color: #5193D4;
text-decoration:none;
}
a:hover {
color: #71B3F4;
}
ul,
ol {
margin-left: 2em;
}
dd {
margin-left: 1em;
}
dt {
font-weight: bold;
margin: 1em 0;
}
li {
margin: 0.3em 0;
}
p {
margin: 1.2em 0;
line-height: 1.3em;
}
h1,
h2,
h3,
h4,
h5,
h6 {
margin: 1em 0 0.6em 0;
padding: 0.3em 0;
line-height: 1.2em;
}
h1 {
font-size: 1.6em;
}
h2 {
font-size: 1.4em;
}
h3 {
font-size: 1.2em;
}
h4 {
font-size: 1em;
}
h5 {
font-size: 1em;
}
h6 {
font-size: 1em;
}
table {
border-collapse: collapse;
border-spacing: 0;
width: 100%;
}
td,
th {
padding: 0.3em;
border: 1px solid #111;
text-align:left;
}
th {
font-weight: bold;
background-color: #222;
}
tr:nth-child(odd) {
background-color: #333;
}
tr:nth-child(even) {
background-color: #444;
}
blockquote {
margin: 0.6em;
padding-left: 0.6em;
border-left: 3px solid #999;
color: #999;
}
input {
border: none;
border-bottom: 3px solid #999;
background-color: transparent;
color: #ccc;
}
input:focus,
input:hover {
border-bottom: 3px solid #fff;
color: #fff;
}
code,
pre,
q {
font-family: "Courier New", "Courier", monospace;
font-size: 0.94em;
}
code,
pre {
color: limegreen;
background-color: #222;
border: 1px solid #666;
direction: ltr;
text-align: left;
tab-size: 2;
}
pre code {
border: none;
}
pre {
overflow: auto;
padding: 0.6em;
}
code {
padding: 0.1em;
}
.sourceCode .re { } /* RegionMarkerTok */
.sourceCode .dv,
.sourceCode .bn,
.sourceCode .fl { color: #D33682; } /* DecValTok (decimal value), BaseNTok, FloatTok */
.sourceCode .kw { color: #268BD2; } /* KeyWordTok */
.sourceCode .dt { color: #268BD2; } /* DataTypeTok */
.sourceCode .ch { color: #DC322F; } /* CharTok */
.sourceCode .st { color: #2AA198; } /* StringTok */
.sourceCode .co { color: #93A1A1; } /* CommentTok */
.sourceCode .ot { color: #A57800; } /* OtherTok */
.sourceCode .fu { color: #268BD2; } /* FunctionTok */
.sourceCode .al { color: #CB4B16; font-weight: bold; } /* AlertTok */
.sourceCode .er { color: #D30102; font-weight: bold; } /* ErrorTok */
.limit,
.content-body {
max-width: 72ch;
margin: 0 auto;
}
.icon {
transform: rotate(0deg);
width: 16px;
height: 16px;
display: inline-block;
fill: currentColor;
overflow: visible;
vertical-align:text-top;
margin: 0 0.1em;
}
.content-navigation {
font-size: 1.1em;
text-align:center;
}
.content-navigation ul {
list-style-type: none;
margin: 0;
}
.content-navigation ul li {
display: inline-block;
padding-right: 0.6em;
}
.content-navigation ul li a {
font-weight: bold;
border-bottom: 3px solid transparent;
color: #ccc;
}
.content-navigation ul li a svg {
display:block;
margin: 0.1em auto;
}
.content-navigation ul li a.active {
border-bottom: 3px solid #ccc;
}
.content-navigation ul li a:hover {
border-bottom: 3px solid #fefefe;
}
.search-form label {
display: none;
}
.search-form {
margin-top: 0.6em;
text-align: center;
}
.search-form .search-field {
width: 10em;
}
@media all and (min-width: 56em) {
.content-header {
display: flex;
justify-content: space-between;
padding: 0.6em 0.3em;
}
.content-navigation ul li a {
padding-bottom: 0.1em;
}
.content-navigation ul li a svg {
display:inline-block;
}
.search-form {
margin: 0 0 0 auto;
}
}
figure {
position:relative;
overflow: hidden;
}
figure figcaption {
padding: 0.3em 0;
text-align: center;
}
.adaptimg {
display: block;
max-height: 98vh;
max-width: 100%;
width:auto;
height:auto;
margin: 0 auto;
padding: 0;
border: 1px solid #000;
}
.h-feed figcaption {
display: none;
}
.exif {
font-size: 0.8em;
margin: 0.3em 0;
}
.exif dt {
display: none;
}
.exif dd {
display: inline-block;
margin: 0 0.6em 0 0;
}
.exif .icon {
width: 1em;
}
.footnoteRef,
.footnoteRef:hover {
border: 0;
white-space: nowrap;
}
.footnotes ol li a {
display: inline-block;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: top;
max-width: 80%;
}
.footnotes ol li a[href^="#"] {
margin-left: 0.6em;
max-width: 20%;
font-size: 0.6em;
}
.footnotes ol li a[href^="#"]:after {
content: "back to text";
margin-left: 0.2em;
color: #666;
}
.footnotes ol li a[href^="#"]:hover:after {
color: #ccc;
}
.content-footer {
margin-top: 2em;
padding: 1em 0;
color: #999;
}
.content-footer h2 {
display: none;
color: #999;
}
.content-footer a {
color: #999;
}
.content-footer a:hover {
color: #fff;
}
.content-footer dl * {
display: inline-block;
padding: 0;
margin: 0;
line-height: 1.6em;
}
.content-footer dd {
margin-right: 1em;
}
.content-footer img {
width: 1em;
}
body svg,
body script {
display: none;
}
.p-author img {
height: 1em;
width: auto;
}
.donation ul {
list-style-type: none;
margin: 0;
}
.donation li {
padding: 0.3em;
}
.donation li a {
color: #999;
border-bottom: 3px solid #933;
}
.donation li a:hover {
color: #fff;
border-bottom: 3px solid #c66;
}
.reactions dt {
display: none;
}
.reactions ul {
list-style-type: none;
margin: 0;
}
.h-feed .h-entry {
margin-left: 1em;
}
.h-feed h2,
.h-entry.singular .e-content h2 {
border-bottom: 2px solid #999;
}
.h-feed h3,
.h-entry.singular .e-content h3 {
border-bottom: 1px dotted #777;
}
.h-feed > h1 {
display: none;
}
.h-feed h3 {
font-size: 1.1em;
}
.h-entry.singular h1 a {
color: #ccc;
}
.pagination {
margin: 2em 0 0 0;
font-size: 1.3em;
}
.pagination ul {
text-align:center;
list-style-type: none;
}
.pagination li {
display:inline-block;
}
.pagination a,
.pagination span {
padding: 0.3em;
margin: 0.3em;
}
.pagination a {
border-bottom: 3px solid #5193D4;
}
@media print {
* {
background-color: #fff !important;
color: #222;
}
html, body {
font-size: 11pt !important;
text-shadow: unset !important;
font-family: Helvetica, sans-serif !important;
}
@page {
margin: 0.6in 0.5in;
}
.limit,
.content-body {
max-width: 100% !important;
margin: 0 !important;
}
h1, h2, h3, h4, h5, h6 {
page-break-after: avoid;
}
h3,
a,
.footnotes ol li a,
.h-feed .h-entry,
code,
pre {
border: none;
}
p, li, blockquote, figure, .footnotes {
page-break-inside: avoid !important;
}
a {
color: #000;
}
td, th {
border: 1pt solid #666;
}
.content-note,
.content-header,
.content-footer,
video,
audio,
.footnotes ol li a[href^="#"],
.footnotes ol li a[href^="#"]:after,
.exif svg,
.donation,
.noprint {
display:none;
}
.footnotes ol li a {
display: block;
overflow: visible;
white-space: normal;
}
code, pre {
max-width: 96%;
color: #222;
word-break: break-all;
word-wrap: break-word;
white-space: pre-wrap;
overflow:initial;
page-break-inside: enabled;
font-family: "Courier", "Courier New", monospace !important;
}
pre {
border: 1pt dotted #666;
padding: 0.6em;
}
code.sourceCode span { color: black; }
code.sourceCode span.co { color: darkgray; }
code.sourceCode span.ex { color: darkorange; }
code.sourceCode span.fu { color: darkorange; }
code.sourceCode span.kw { color: darkcyan; }
code.sourceCode span.st { color: magenta; }
code.sourceCode span.va { color: darkturquoise; }
figcaption {
font-size: 0.9em;
}
.adaptimg {
max-height: 35vh;
max-width: 90vw;
outline: none;
border: 1px solid #000;
}
.h-feed .h-entry {
page-break-after:always;
}
}

File diff suppressed because it is too large Load diff