From 3d172e4037b6507107cae91327de00cbaed7d499 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sat, 26 Apr 2014 12:36:53 -0400 Subject: Touch up the styles --- public/assets/style.css | 25 ++++++++++++++++++++++++- public/bash-arrays.md | 3 ++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/public/assets/style.css b/public/assets/style.css index 59c1746..5d919b1 100644 --- a/public/assets/style.css +++ b/public/assets/style.css @@ -1,7 +1,12 @@ +/* -*- css-indent-offset: 8; tab-width: 8 -*- */ + body { + width: 98%; max-width: 1024px; margin-left: auto; margin-right: auto; + + font-family: sans-serif; } blockquote { @@ -17,7 +22,7 @@ footer { color: #333333; } -/* little hack to make nested lists not take up extra space */ +/* little hack to make nested lists not take up extra vertical space */ li > p:first-child { margin-top: 0; } li p + ul { margin-top: -1em; } @@ -27,6 +32,11 @@ kbd, code, samp, tt, pre { background: #DDDDFF; white-space: pre; } +@media print { + kbd, code, samp, tt, pre { + white-space: pre-wrap; + } +} var { color: #008800; @@ -34,12 +44,21 @@ var { pre { margin: auto 2em; + padding: .5em; overflow: auto; + border: solid 1px #AAAAAA; +} + +pre hr { + height: 0px; + border: none; + border-top: solid 1px #AAAAAA; } /* table elements */ table, td, th { + border-collapse: collapse; border: solid 1px #AAAAAA; } @@ -48,6 +67,10 @@ table { margin-right: auto; } +td, th { + padding-left: .5em; + padding-right: .5em; +} th { background: #F5F5F5; } diff --git a/public/bash-arrays.md b/public/bash-arrays.md index 0589726..cbbd4c4 100644 --- a/public/bash-arrays.md +++ b/public/bash-arrays.md @@ -350,7 +350,8 @@ an array is when you didn't want an array, but it's what you get path_ls() { local dirs IFS=: dirs=($@) # The odd-ball time that it needs to be unquoted - find -L "${dirs[@]}" -maxdepth 1 -type f -executable -printf '%f\n' 2>/dev/null | sort -u + find -L "${dirs[@]}" -maxdepth 1 -type f -executable \ + -printf '%f\n' 2>/dev/null | sort -u } Logically, there shouldn't be multiple arguments, just a single -- cgit v1.2.3