X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=style.css;h=91045c90b8dc0d81acd88b295956adf1b45ea399;hb=1a69eb5488643b791fe36b290f3e5dfecfa5a0d3;hp=2823efb6b67a5bdd7be78b75696f13b50d52aff7;hpb=b634cfd86042f303dae68c2805810c7a0f9614c5;p=stagit.git diff --git a/style.css b/style.css index 2823efb..91045c9 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,14 @@ +html { + font-size: 12px; + height: 100%; +} + body { - font-family: monospace; - color: #333; + margin: 5rem auto; + color: #222; background-color: #fff; + font-family: monospace; + width: 66rem; } h1, h2, h3, h4, h5, h6 { @@ -13,12 +20,101 @@ 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; +} + +article.markup { + font-size: 15px; + border: 2px solid #00000017; + border-radius: 10px; + font-family: sans-serif; + padding: 2.5em; + margin: 2em 0; +} + +article.markup code { + font-size: 0.9em; + border: 1px solid #dbdbdb; + background-color: #f0f0f0; + padding: 0 0.3em; + border-radius: 0.3em +} + +article.markup pre code { + border: none; + background: none; + padding: 0; + border-radius: 0; +} + +article.markup pre { + background-color: #f0f0f0; + padding: 0.2em 0.5em; + border: 1px solid #dbdbdb; + border-radius: 0.3em; +} + +article.markup h1 { + font-size: 2.4em; +} + +article.markup h2 { + font-size: 1.9em; +} + +article.markup h3 { + font-size: 1.5em; +} + +article.markup h4 { + font-size: 1.3em; +} + +article.markup h5 { + font-size: 1.1em; +} + +article.markup h6 { + font-size: 1em; +} + +.linenos { + margin-right: 0; + border-right: 1px solid rgb(0 0 0 / 8%); + user-select: none; +} + +.linenos a { + margin-right: 0.9em; + user-select: none; + text-decoration: none; +} + +#blob a { + color: #777; +} + +#blob a:hover { + color: blue; + text-decoration: none; } table thead td { @@ -29,35 +125,78 @@ table td { padding: 0 0.4em; } -#content table tr:hover td { +#content table td { + vertical-align: top; + white-space: nowrap; +} + +#branches tr:hover td, +#tags tr:hover td, +#index tr:hover td, +#log tr:hover td, +#files tr:hover td { background-color: #eee; } +#index tr td:nth-child(2), +#tags tr td:nth-child(3), +#branches tr td:nth-child(3), +#log tr td:nth-child(2) { + white-space: normal; +} + +td.num { + text-align: right; +} + .desc { color: #777; } hr { border: 0; - border-top: 1px dashed #777; + border-top: 1px solid #777; + height: 1px; } pre { font-family: monospace; } -pre .h { - color: darkcyan; +pre a.h { + color: #00a; } +.A, +span.i, pre a.i { - color: green; + color: #070; } +.D, +span.d, pre a.d { - color: red; + color: #e00; } -pre a.i:hover, pre a.d:hover { +pre a.h:hover, +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; +}