diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-04-26 12:36:53 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-04-26 12:36:53 -0400 |
commit | 3d172e4037b6507107cae91327de00cbaed7d499 (patch) | |
tree | 2839a6d8d4e66a3e7a853f82bacb93dfc05301d5 /public | |
parent | 6b98f3267edc4a003ff0e42794cf29fe2949dc80 (diff) |
Touch up the styles
Diffstat (limited to 'public')
-rw-r--r-- | public/assets/style.css | 25 | ||||
-rw-r--r-- | 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 |