From aed8f925512ecc64ce84991bb46944fa41afb349 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 21 Nov 2016 15:17:06 -0500 Subject: tidy css --- style.scss | 47 +++++++++++++++++++++++++++++------------------ 1 file changed, 29 insertions(+), 18 deletions(-) diff --git a/style.scss b/style.scss index 88777df..fad9c85 100644 --- a/style.scss +++ b/style.scss @@ -15,12 +15,21 @@ body { body > * { margin: auto; } +* { + box-sizing: border-box; +} /* diff styling */ -table.diff td, th { white-space: nowrap; } -.diff-del, .diff-del a { color: red; } -.diff-add, .diff-add a { color: green; } -.diff-dat, .diff-dat a { color: blue; } -.diff-ctx, .diff-ctx a { color: black; } +table.diff { + border-collapse: collapse; + td, th { + padding: 0; + white-space: nowrap; + } + .diff-del, .diff-del a { color: red; } + .diff-add, .diff-add a { color: green; } + .diff-dat, .diff-dat a { color: blue; } + .diff-ctx, .diff-ctx a { color: black; } +} /* sortable styling */ table.sortable { border-collapse: collapse; @@ -37,19 +46,21 @@ table.sortable { } } /* generic table interaction */ -tr.invalid td { - background-color: #F30000 !important; -} -tr:hover a, tr.invalid:hover a { - background-color: #AAAAF3 !important; -} -td a { - text-decoration: none; - padding: 0.1em 0.25em; - display: block; - width: 100%; - height: 100%; - color: black; +table { + tr.invalid td { + background-color: #F30000 !important; + } + tr:hover a, tr.invalid:hover a { + background-color: #AAAAF3; + } + td a { + text-decoration: none; + padding: 0.1em 0.25em; + display: block; + width: 100%; + height: 100%; + color: black; + } } /* generic time formatting */ time .time { -- cgit v1.1-4-g5e80