Update CSS again

This commit is contained in:
Ariejan de Vroom 2016-08-24 13:03:32 +02:00
parent a7c02086f9
commit 6ef8c7b8e1
9 changed files with 127 additions and 209 deletions

View File

@ -3,6 +3,7 @@ date = "2016-04-10"
title = "Denon PMA 720a Repair Log"
tags = ["ohmexpress", "repair", "audiorepair"]
description = "A classic 1989 Denon PMA 720a Integrated Amp that made a bang and wont't turn on. Let's solve this!"
slug = "denon-pma-720a-repair-log"
+++
![Denon PMA 720a Front](/img/denon-pma-720a-front.jpg)

View File

@ -3,6 +3,7 @@ date = "2016-04-15"
title = "Hanami and Multi-Database Testing with Travis"
tags = ["hanami", "travis", "testing"]
description = "Hanami: good! Travis: good! Testing your code against multiple databases: priceless!"
slug = "hanami-and-multi-database-testing-with-travis"
+++
_This is a re-post of my article over at [Kabisa](https://kabisa.nl)'s [The Guild](https://www.theguild.nl/hanami-and-multi-database-testing-with-travis)._

View File

@ -3,6 +3,7 @@ date = "2016-04-24"
title = "Music Streaming Setup"
tags = ["music", "mp3", "flac", "streaming"]
description = "I love listening to music. Although I prefer the off-line, analog way of listening to vinyl records, I also a small-ish CD collection I'd like to use on the go."
slug = "music-streaming-setup"
+++
I love music.

View File

@ -3,6 +3,7 @@ date = "2016-08-17"
title = "Squash git commits when merging"
tags = ["git"]
description = "Got a branch where you tried lots of different things to fix that nagging bug, but want to clean up your git history when merging?"
slug = "squash-git-commits-when-merging"
+++
Today I've been fighting to get our test suite to run against a newly delivered Oracle

View File

@ -1,19 +1,18 @@
{{ partial "header.html" . }}
<article id="{{ .Slug }}" class="single-post">
<h1>{{ .Title }}</h1>
<section id="post">
<article id="{{ .Slug }}">
<h1>{{ .Title }}</h1>
<p class="meta">
<p>
{{ if eq .Section "posts" }}
<time class="date" datatime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2 January 2006" }}</time>
{{ end }}
</p>
</p>
<div class="body">
{{ .Content }}
</div>
{{ .Content }}
{{ if eq .Section "posts" }}
{{ if eq .Section "posts" }}
<div class="about">
<p>
Want to learn more? Why not check out my <a href="/recommendations">book recommendations</a>?
@ -33,8 +32,9 @@
using Ruby, Ruby on Rails and Golang. In my free time I like to
repair audio equipment, play the piano and experiment with electronics.
</p>
{{ end }}
</article>
</div>
{{ end }}
</article>
</section>
{{ partial "footer.html" . }}

View File

@ -1,27 +1,27 @@
{{ partial "header.html" . }}
<section class="posts">
<section id="posts">
{{ range first 10 (where .Data.Pages "Section" "posts") }}
<article id="{{ .Slug }}" class="teaser-post">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
<p class="description">
<span class="meta">
<time class="date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2 January 2006" }}</time>
</span>
<article id="{{ .Slug }}">
<h2><a href="{{ .Permalink }}">{{ .Title }}</a> <time class="date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006-01-02" }}</time></h2>
<p>
{{ .Description | safeHTML }}
</p>
</article>
{{ end }}
<h2>Older posts</h3>
<p>
Below you will find older posts. Use <kbd><kbd>ctrl</kbd> + <kbd>f</kbd></kbd>
or <kbd><kbd></kbd> + <kbd>f</kbd></kbd> to search.
</p>
<ul>
{{ range after 10 (where .Data.Pages "Section" "posts") }}
<article id="{{ .Slug }}" class="teaser-post">
<li id="{{ .Slug }}" class="headline">
<h3><a href="{{ .Permalink }}">{{ .Title }}</a></h3>
<p class="meta">
<time class="date" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2 January 2006" }}</time>
</p>
</article>
</li>
{{ end }}
</ul>
</section>
{{ partial "footer.html" . }}

View File

@ -1,9 +1,7 @@
</div>
<div class="container">
<footer class="footer">
Copyright © 19992016 {{ .Site.Copyright }}
</footer>
</div>
</section><!-- content -->
<footer class="footer">
Copyright © 19992016 {{ .Site.Copyright }}
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.1.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
@ -15,7 +13,6 @@
ga('create', 'UA-60089-16', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>

View File

@ -1,12 +1,9 @@
<!DOCTYPE html>
<html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta content='text/html;charset=utf-8' http-equiv='content-type'>
<meta http-equiv='content-type' content='text/html;charset=utf-8'>
<title>
{{ if ne .URL "/" }} {{ .Title }} &middot;{{ end }} {{ .Site.Title }}
</title>
<title>{{ if ne .URL "/" }} {{ .Title }} &middot;{{ end }} {{ .Site.Title }}</title>
<meta property="og:title" content="{{ if ne .URL "/" }} {{ .Title }} &middot;{{ end }} {{ .Site.Title }}" />
<meta property="og:site_name" content="{{ .Site.Title }}" />
@ -44,18 +41,17 @@
<!-- Style -->
<link href='/css/outerspace.css' rel='stylesheet' type='text/css'>
</head>
<body>
<div class="container">
<header class="header">
<a href="/"><h1>ariejan <span>de vroom</span></h1></a>
<nav class="main">
<ul class="nav">
<li><a href="/">blog</a></li>
<li><a href="/recommendations">recommendations</a></li>
<li><a href="/gpg">gpg</a></li>
<li><a href="/about">about</a></li>
</ul>
</nav>
</header>
</div>
<div class="container" id="main-content">
<header>
<a href="/"><h1>ariejan <span>de vroom</span></h1></a>
<nav>
<ul>
<li><a href="/">blog</a></li>
<li><a href="/recommendations">recommendations</a></li>
<li><a href="/gpg">gpg</a></li>
<li><a href="/about">about</a></li>
</ul>
</nav>
</header>
<section id="content">

View File

@ -3,25 +3,27 @@
@import 'https://fonts.googleapis.com/css?family=Titillium+Web:400,700';
/* Rest */
html{color:#000;background:#E9E9E9}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;font-size:100%}legend{color:#000}#yui3-css-stamp.cssreset{display:none}
html{color:#000;background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}ol,ul{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;font-size:100%}legend{color:#000}#yui3-css-stamp.cssreset{display:none}
/* Highlight.js */
.hljs{display:block;overflow-x:auto;padding:.5em;background:#fff;-webkit-text-size-adjust:none}.hljs,.hljs-subst,.hljs-tag .hljs-title,.nginx .hljs-title{color:#000}.apache .hljs-cbracket,.apache .hljs-tag,.asciidoc .hljs-header,.bash .hljs-variable,.coffeescript .hljs-attribute,.django .hljs-variable,.erlang_repl .hljs-function_or_atom,.haml .hljs-symbol,.hljs-addition,.hljs-constant,.hljs-flow,.hljs-parent,.hljs-pragma,.hljs-preprocessor,.hljs-rules .hljs-value,.hljs-stream,.hljs-string,.hljs-tag .hljs-value,.hljs-template_tag,.hljs-title,.markdown .hljs-header,.ruby .hljs-symbol,.ruby .hljs-symbol .hljs-string,.smalltalk .hljs-class,.tex .hljs-command,.tex .hljs-special{color:#756bb1}.asciidoc .hljs-blockquote,.diff .hljs-header,.hljs-annotation,.hljs-chunk,.hljs-comment,.markdown .hljs-blockquote,.smartquote{color:#636363}.asciidoc .hljs-bullet,.asciidoc .hljs-link_url,.go .hljs-constant,.hljs-change,.hljs-date,.hljs-hexcolor,.hljs-literal,.hljs-number,.hljs-regexp,.lasso .hljs-variable,.makefile .hljs-variable,.markdown .hljs-bullet,.markdown .hljs-link_url,.smalltalk .hljs-char,.smalltalk .hljs-symbol{color:#31a354}.apache .hljs-sqbracket,.asciidoc .hljs-attribute,.asciidoc .hljs-link_label,.clojure .hljs-attribute,.coffeescript .hljs-property,.erlang_repl .hljs-reserved,.haml .hljs-bullet,.hljs-array,.hljs-attr_selector,.hljs-decorator,.hljs-deletion,.hljs-doctype,.hljs-envvar,.hljs-filter .hljs-argument,.hljs-important,.hljs-javadoc,.hljs-label,.hljs-list .hljs-built_in,.hljs-localvars,.hljs-phony,.hljs-pi,.hljs-prompt,.hljs-pseudo,.hljs-shebang,.lasso .hljs-attribute,.markdown .hljs-link_label,.nginx .hljs-built_in,.ruby .hljs-string,.tex .hljs-formula,.vhdl .hljs-attribute{color:#88f}.apache .hljs-tag,.asciidoc .hljs-strong,.bash .hljs-variable,.css .hljs-tag,.hljs-built_in,.hljs-dartdoc,.hljs-id,.hljs-javadoctag,.hljs-keyword,.hljs-phpdoc,.hljs-request,.hljs-status,.hljs-title,.hljs-type,.hljs-typename,.hljs-winutils,.hljs-yardoctag,.markdown .hljs-strong,.smalltalk .hljs-class,.tex .hljs-command{color:#3182bd}.asciidoc .hljs-emphasis,.markdown .hljs-emphasis{font-style:italic}.nginx .hljs-built_in{font-weight:400}.coffeescript .javascript,.javascript .xml,.lasso .markup,.tex .hljs-formula,.xml .css,.xml .hljs-cdata,.xml .javascript,.xml .vbscript{opacity:.5}.css .hljs-attribute,.html .hljs-attribute{color:#e6550d}.css .hljs-class,.html .hljs-tag,.html .hljs-title{color:#3182bd}
body {
html, body {
background: #E9E9E9;
font-family: 'Titillium Web', sans-serif;
font-size: 0.92em;
line-height: 1.5em;
}
.container {
header,
section#content,
footer {
max-width: 630px;
margin: 0 auto;
padding: 1em;
}
.container#main-content {
section#content {
background-color: #FFF;
border-top: 5px solid #3299BB;
border-radius: 4px;
@ -31,13 +33,41 @@ p, ul, ol, pre {
margin-bottom: 1.5em;
}
ul {
list-style-type: square;
margin-left: 2em;
}
ol {
list-style: decimal;
margin-left: 2em;
}
h1, h2, h3, h4, h5, h6 {
color: #BCBCBC;
color: #3299BB;
font-weight: normal;
line-height: 1.4em;
}
h1 {
font-size: 1.8em;
}
h2 {
font-size: 1.6em;
}
h3 {
font-size: 1.4em;
}
h4 {
font-size: 1.2em;
line-height: 1.4em;
}
h5 {
font-size: 1.2em;
font-weight: 700;
}
a {
@ -65,6 +95,19 @@ blockquote {
background-color: #f9f9f9;
}
span.recommended {
font-size: 0.8em;
background-color: #FF9900;
border-radius: 0.5em;
padding: 0 0.5em;
}
hr {
border: none;
border-bottom: 1px solid #BCBCBC;
margin-bottom: 1em;
}
header {
text-shadow: rgba(255,255,255,0.9) 0 1px 0;
overflow: hidden;
@ -87,20 +130,20 @@ header nav {
text-align: center;
}
header nav ul.nav {
header nav ul {
margin-bottom: 0;
}
header nav ul.nav li {
header nav ul li {
display: inline-block;
}
header nav ul.nav li::before {
header nav ul li::before {
content: " • ";
padding: 0 0.5em;
}
header nav ul.nav li:first-child:before {
header nav ul li:first-child:before {
content: "";
padding: 0;
}
@ -113,111 +156,45 @@ footer {
color: #BCBCBC;
}
h1.front-heading {
font-size: 2em;
line-height: 1em;
padding-top: 1em;
margin-bottom: 1em;
text-align: center;
color: #424242;
}
.single-post h1,
.single-post h2,
.single-post h3,
.single-post h4,
.single-post h5,
.single-post h6 {
color: #424242;
}
.single-post h1 {
font-size: 2em;
line-height: 1em;
padding-top: 1em;
text-align: center;
}
.single-post img {
max-width: 100%;
}
.single-post .date,
.single-post .tags,
.single-post .body {
padding: 0 0.3em;
}
.single-post h2 {
font-size: 1.4em;
line-height: 1em;
padding-bottom: 0.5em;
}
.single-post ul {
list-style-type: square;
margin-left: 2em;
}
.single-post ol {
list-style: decimal;
margin-left: 2em;
}
.posts {
margin-top: 1em;
}
.posts .teaser-post {
margin-bottom: 1em;
padding-bottom: 1em;
}
.posts .teaser-post h2 {
font-size: 1.6em;
}
.posts .teaser-post h3 {
font-size: 1.2em;
}
.posts .teaser-post h2 a,
.posts .teaser-post h3 a {
color: #424242;
}
.posts .teaser-post .date {
display: inline-block;
}
/* .posts .teaser-post .meta { */
.single-post .meta {
section#posts h2 time {
color: #BCBCBC;
text-align: center;
font-size: 0.6em;
}
.posts .teaser-post p {
margin-bottom: 0;
section#posts time:before {
content: "";
margin-right: 0.2em;
}
.posts .teaser-post .meta {
color: #BCBCBC;
section#posts li h3 {
font-size: 1em;
}
.posts .teaser-post .meta a {
color: #BCBCBC;
kbd {
padding: 2px 4px;
font-size: 90%;
color: #fff;
background-color: #424242;
border-radius: 3px;
-webkit-box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
}
.posts .teaser-post .separator {
border-bottom: 1px solid #e9e9e9;
kbd kbd {
padding: 0;
margin: 0 auto;
width: 21%;
font-size: 100%;
font-weight: 700;
-webkit-box-shadow: none;
box-shadow: none;
}
section#post img {
max-width: 100%;
}
img.img-right {
margin: 0 2em;
width: 250px;
width: 33%;
float: right;
}
@ -241,51 +218,6 @@ img.avatar {
border-radius: 50%;
}
ul#social {
list-style: none;
text-align: center;
margin-bottom: 0;
}
ul#social li {
list-style: none;
}
ul#social li a {
color: #333;
}
.body ul#social {
text-align: left;
}
@media (min-width: 720px) {
.container {
width: 630px;
}
.single-post h1 {
font-size: 2.4em;
line-height: 1em;
}
img.avatar {
width: 150px;
}
}
@media (max-width: 720px) {
.about img.avatar {
display: none;
}
.about p,
.about ul,
.about h4 {
margin-left: 0;
}
}
.video-player {
position: relative;
padding-bottom: 56.25%;
@ -294,16 +226,5 @@ ul#social li a {
overflow: hidden;
margin-bottom: 30px;
}
*/
span.recommended {
font-size: 0.8em;
background-color: #FF9900;
border-radius: 0.5em;
padding: 0 0.5em;
}
hr {
border: none;
border-bottom: 1px solid #BCBCBC;
margin-bottom: 1em;
}