X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=style.css;h=c35d6e967a4909d04f917ea425ef8ecc539c8bc7;hb=503398bd5f325447f7d801306222e5fc142cacae;hp=d97d5a0512a3f679ed7a9efcac5d09280d15343a;hpb=1add4bf3ae0105ce19d9189a499bf450e32ec171;p=stagit.git diff --git a/style.css b/style.css index d97d5a0..c35d6e9 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,14 @@ +html { + font-size: 12px; + height: 100%; +} + body { - color: #000; + margin: 5rem auto; + color: #222; background-color: #fff; font-family: monospace; + width: 66rem; } h1, h2, h3, h4, h5, h6 { @@ -13,12 +20,35 @@ img, h1, h2 { vertical-align: middle; } -a { +img { + border: 0; +} + +a:target { + background-color: #ccc; +} + +a.d, +a.h, +a.i, +a.line { text-decoration: none; } -a:hover { - text-decoration: underline; +#blob { + display: block; + max-width: 100%; + overflow-x: scroll; +} + +.linenos { + user-select: none; +} + +.linenos a { + margin-right: 0.9em; + user-select: none; + text-decoration: none; } #blob a { @@ -69,6 +99,7 @@ td.num { hr { border: 0; border-top: 1px solid #777; + height: 1px; } pre { @@ -79,11 +110,13 @@ pre a.h { color: #00a; } +.A, span.i, pre a.i { color: #070; } +.D, span.d, pre a.d { color: #e00; @@ -94,3 +127,19 @@ pre a.i:hover, pre a.d:hover { text-decoration: none; } + +.url td:nth-child(2) { + padding-top: 0.2em; + padding-bottom: 0.9em; +} + +.url td:nth-child(2) span { + padding: 1px 5px; + background-color: #eee; + border: 1px solid #ddd; + border-radius: 5px; +} + +.url td:nth-child(2) span a { + color: #444; +}