From cebf455f3fd54b72e530942f308097ec54b408cd Mon Sep 17 00:00:00 2001 From: James Moger <james.moger@gitblit.com> Date: Thu, 07 Apr 2011 09:46:30 -0400 Subject: [PATCH] Let Wicket manage resources and use markup inheritance. --- resources/gitblit.css | 444 +++++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 415 insertions(+), 29 deletions(-) diff --git a/resources/gitblit.css b/resources/gitblit.css index d81c063..675a258 100644 --- a/resources/gitblit.css +++ b/resources/gitblit.css @@ -1,56 +1,442 @@ /* - JGitWeb css. + Git:Blit css. */ -body, table, tr, th, td { font-size: 13px; } - -table.object_header td, div.page_body, table.diff_tree td { +html, body, table, dl, dt, dd, ol, ul, li, form, a, span, tr, th, td, div, em { + font-family: verdana, sans-serif; font-size: 12px; + line-height: 15px; } -table.diff_tree td div.link { - padding: 2px 5px; - font-family: sans-serif; - font-size: 9px; +body { + width: 980px; + margin: 5px; + background-color: #ffffff; + color: #000000; + margin-right: auto; + margin-left: auto; + margin-top: none; + padding: 0px; } -div.link { - padding: 2px 5px; - font-family: sans-serif; - font-size: 9px; -} - -pre.prettyprint, pre.plainprint { +pre, pre.prettyprint, pre.plainprint { + color: black; + font-family: monospace; font-size:12px; border:0px; } -div.page_nav2 { - padding: 0px 8px 8px 8px; -} - -table.project_list tr th a { padding-right: 15px; background-position: right; background-repeat:no-repeat; } -table.project_list tr th.wicket_orderDown a {font-weight: bold; background-image: url(arrow_down.png); } -table.project_list tr th.wicket_orderUp a { font-weight: bold; background-image: url(arrow_up.png); } -table.project_list tr th.wicket_orderNone a { font-weight: normal; background-image: url(arrow_off.png); } - /* age0: age < 60*60*2 */ -table.project_list .age0 { +.age0 { color: #009900; font-style: italic; font-weight: bold; } /* age1: 60*60*2 <= age < 60*60*24*2 */ -table.project_list .age1 { +.age1 { color: #009900; font-style: italic; } /* age2: 60*60*24*2 <= age */ -table.project_list .age2 { +.age2 { font-style: italic; } -table.diff_tree td.size { - width:80px; + +a { + color: #0000cc; +} + +a:hover, a:visited, a:active { + color: #880000; +} + +img.logo { + float: right; + border-width: 0px; +} + +img.activityGraph { + float: right; + border-width: 0px; + padding: 8px; +} + +div.repositories_message { + line-height: inherit; +} + +div.header { + background-color: #D2C3AF; + padding: 3px; + border: 1px solid #808080; +} + +div.header a { + color: black; + text-decoration: none; + font-weight: bold; +} + +div.header a:hover { + text-decoration: underline; +} + +div.pager { + padding: 0px 0px 15px 5px; +} + +div.link { + padding: 2px 5px; + font-family: sans-serif; + font-size: 11px; +} + +div.link span { + font-family: inherit; + font-size: inherit; +} + +div.link a { + font-family: inherit; + font-size: inherit; +} + +div.page_header { + height: 25px; + padding: 5px; + font-family: sans-serif; + font-weight: bold; + font-size: 150%; + color: #bbb; + background-color: #ffffff; +} + +div.page_header span { + font-family: inherit; + font-size: inherit; +} + +div.page_header a { + font-size: inherit; + font-family: inherit; + text-decoration: none; +} + +div.page_header a:visited { + color: #000000; +} + +div.page_header a:hover { + color: E66C2C; + text-decoration: underline; +} + +div.page_footer { + height: 17px; + color: black; + background-color: #ffffff; + padding: 5px; + border-top: 1px solid #bbb; + font-style: italic; +} + +div.page_nav { + color: #ddd; + background-color: #000070; + padding: 5px; +} + +div.page_nav a { + color: yellow; + text-decoration: none; +} + +div.page_nav a:hover { + text-decoration: underline; +} + +div.page_nav2 { + padding: 2px 5px 7px 5px; +} + +.repositories_message { + border: solid #bbb; + border-width: 0px 0px 1px; + padding: 8px; +} + +div.page_path { + padding: 8px; + font-weight: bold; + border: solid #bbb; + border-width: 0px 0px 1px; +} + +div.commit_message { + padding: 8px; + border: solid #bbb; + border-width: 1px 0px 1px; +} + +div.bug_open, span.bug_open { + padding: 2px; + background-color: #800000; + color: white; + text-align: center; +} + +div.bug_resolved, span.bug_resolved { + padding: 2px; + background-color: #008000; + color: white; + text-align: center; +} + +div.bug_invalid, span.bug_invalid { + padding: 2px; + background-color: gray; + text-align: center; +} + +div.bug_hold, span.bug_hold { + padding: 2px; + background-color: orange; + text-align: center; +} + +div.diff { + font-family: monospace; +} + +div.diff.header { + -moz-border-bottom-colors: none; + -moz-border-image: none; + -moz-border-left-colors: none; + -moz-border-right-colors: none; + -moz-border-top-colors: none; + background-color: #EDECE6; + border-color: #D9D8D1; + border-style: solid; + border-width: 1px 0; + font-weight: bold; + margin-top: 4px; + padding: 4px 0 2px; +} + +div.diff.extended_header { + background-color: #F6F5EE; + padding: 2px 0; + font-family: inherit; +} + +div.diff.add { + color: #008800; + font-family: inherit; +} + +div.diff.remove { + color: #cc0000; + font-family: inherit; +} + +div.diff.unchanged { + color: inherit; + font-family: inherit; +} + +div.diff.hunk_header { + -moz-border-bottom-colors: none; + -moz-border-image: none; + -moz-border-left-colors: none; + -moz-border-right-colors: none; + -moz-border-top-colors: none; + border-color: #FFE0FF; + border-style: dotted; + border-width: 1px 0 0; + margin-top: 2px; + font-family: inherit; +} + +span.diff.hunk_info { + background-color: #FFEEFF; + color: #990099; + font-family: inherit; +} + +span.diff.hunk_section { + color: #AA22AA; + font-family: inherit; +} + +a.list { + text-decoration: none; + color: #000000; +} + +a.list:hover { + text-decoration: underline; + color: #880000; +} + +table { + border-spacing: 0px; +} + +th { + padding: 2px 5px; + font-size: 100%; + text-align: left; +} + +table.plain { + padding: 8px; +} + +table.pretty, table.repositories { + margin-top:5px; + margin-bottom:5px; + border-spacing: 0px; + border-top: 1px solid #bbb; + border-left: 1px solid #bbb; + border-right: 1px solid #bbb; +} + +table.repositories { + width:100%; +} + +table.repositories th { + background-color:#D2C3AF; + padding: 4px; + border-bottom: 1px solid #808080; +} + +table.repositories td { + padding: 4px; +} + +table.repositories th a { + color:black;/*#ddd;*/ + text-decoration: none; + font-weight: normal; +} + +table.repositories th a:hover { + text-decoration: underline; +} + +table.repositories th.wicket_orderDown a, table.repositories th.wicket_orderUp a { + color: black; + font-weight: bold; +} + +tr th a { padding-right: 15px; background-position: right; background-repeat:no-repeat; } +tr th.wicket_orderDown a {background-image: url(arrow_down.png); } +tr th.wicket_orderUp a { background-image: url(arrow_up.png); } +tr th.wicket_orderNone a { background-image: url(arrow_off.png); } + +tr.light { + background-color: #ffffff; +} + +tr.light td { + border-bottom: 1px solid #bbb; +} + +tr.dark { + background-color: #faf8dc; + border-bottom: 1px solid #bbb; +} + +tr.dark td { + border-bottom: 1px solid #bbb; +} + +/* currently both use the same, but it can change */ +tr.light:hover, +tr.dark:hover { + /*background-color: #0099b7;*/ + background-color: #000070; + color: white; +} + +tr.light:hover a, +tr.dark:hover a { + color: white; +} + +td { + padding-left: 7px; + padding-right: 7px; +} + +td.author { + font-style: italic; +} + +td.date { + font-style: italic; + width:90px; +} + +td.sha1, td.sha1 span { + font-family: monospace; + font-size: 13px; +} + +td.mode { + font-family: monospace; + width:90px; + padding-right:15px; +} + +td.size { + text-align: right; + width:100px; + padding-right:15px; +} + +td.rightAlign { + text-align: right; +} + +span.refs span { + padding: 0px 4px; + font-family: sans-serif; + font-size: 70%; + font-weight: normal; + border: 1px solid; + background-color: #ffaaff; + border-color: #ffccff #ff00ee #ff00ee #ffccff; + color: black; +} + +span.refs span a { + text-decoration: none; + color: inherit; +} + +span.refs span a:hover { + text-decoration: underline; +} + +span.refs span.indirect { + font-style: italic; +} + +span.refs span.ref { + background-color: #aaaaff; + border-color: #ccccff #0033cc #0033cc #ccccff; +} + +span.refs span.tag { + background-color: #ffffaa; + border-color: #ffffcc #ffee00 #ffee00 #ffffcc; +} + +span.refs span.head { + background-color: #aaffaa; + border-color: #ccffcc #00cc33 #00cc33 #ccffcc; } \ No newline at end of file -- Gitblit v1.9.1