From c558deef274d838aae5c0366ff7dc2ebce27a981 Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Thu, 20 Sep 2012 09:41:28 -0400 Subject: [PATCH] Support X-Forwarded-Context for subdomain proxy configs (issue 135) --- resources/gitblit.css | 101 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 95 insertions(+), 6 deletions(-) diff --git a/resources/gitblit.css b/resources/gitblit.css index 051ad07..fc948b6 100644 --- a/resources/gitblit.css +++ b/resources/gitblit.css @@ -90,7 +90,7 @@ background-image: url(arrow_page.png); background-position: center bottom; outline: 0; - padding-bottom:2px; + padding-bottom:3px; } .navbar .active a { @@ -145,6 +145,7 @@ border:0px; padding: 0; line-height: 1.35em; + vertical-align:top; } table { @@ -161,9 +162,84 @@ text-align: left; } +div.sourceview { + overflow: hidden; +} + pre.prettyprint ol { padding-left:25px; } + +#nums { + text-align: right; + padding-right:10px; + border-right:1px solid #ddd; + font-family: monospace; + line-height: 1.35em; + vertical-align:top; +} + +#nums pre { + white-space: pre; +} + +#nums pre, #lines pre { + margin: 0; +} + +#lines pre { + padding: 0px !important; + border: 0px !important; + white-space: nowrap; +} + +/* CSS trick to workaround #link topOfWindow offset problem */ +#nums .num { + border-top: 160px solid transparent; + margin-top: -160px; + -webkit-background-clip: padding-box; + -moz-background-clip: padding; + background-clip: padding-box; + + color: #888; +} + +#nums span:target { + background-color: #ffffbf; + color: black; + font-weight: bold; + border-bottom: 1px solid red; +} + +#lines table { + margin: 0; +} + +#lines td { + padding: 0; +} + +#lines a { + padding-left: 5px; +} + +#lines a:hover { + background-color: #ffffbf; + text-decoration: none; +} + +#lines tr:hover { + background-color: #ffffbf; +} +#lines .odd { + background-color: white; +} + +#lines .even { + background-color: #fafafa; +} + + h1 small, h2 small, h3 small, h4 small, h5 small, h6 small { color: #888; @@ -443,10 +519,11 @@ color: white; } -pre.commit_message { +.commit_message { padding: 8px; border: solid #ddd; border-width: 1px 0px 0px; + border-radius: 0px; } div.bug_open, span.bug_open { @@ -649,7 +726,7 @@ table.plain th, table.plain td { white-space: nowrap; - padding: 1px 6px; + padding: 1px 3px; border: 0; } @@ -700,13 +777,18 @@ border:0; } +table.repositories th.right { + border-right: 1px solid #ddd; +} + table.repositories td { padding: 2px; border-left: 0; } table.repositories td.rightAlign { - text-align: right; + text-align: right; + border-right: 1px solid #ddd; } table.repositories td.icon img { @@ -715,6 +797,8 @@ table.repositories tr.group { background-color: #ccc; + border-left: 1px solid #ccc; + border-right: 1px solid #ccc; } table.repositories tr.group td { @@ -724,6 +808,10 @@ padding-left: 5px; border-top: 1px solid #aaa; border-bottom: 1px solid #aaa; +} + +table.repositories tr.group td a { + color: black; } table.palette { border:0; width: 0 !important; } @@ -826,10 +914,11 @@ td.date { /*font-style: italic !important;*/ + white-space: nowrap; } -span.sha1, span.sha1 a, span.sha1 a span, pre.commit_message { - font-family: monospace; +span.sha1, span.sha1 a, span.sha1 a span, .commit_message { + font-family: consolas, monospace; font-size: 13px; } -- Gitblit v1.9.1