From 86029025d1dda2f65f4ebbebc46729679efea566 Mon Sep 17 00:00:00 2001 From: James Moger Date: Sun, 25 Mar 2012 18:25:28 -0400 Subject: [PATCH] Simplified refs panel layout and css --- resources/gitblit.css | 19 ++++++++----------- src/com/gitblit/wicket/panels/RefsPanel.java | 1 + 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/resources/gitblit.css b/resources/gitblit.css index 8934cb2d..7812ec49 100644 --- a/resources/gitblit.css +++ b/resources/gitblit.css @@ -831,7 +831,7 @@ span.metricsTitle { font-size: 2em; } -span .tagRef, span .headRef, span .localBranch, span .remoteBranch, span .otherRef { +.tagRef, .headRef, .localBranch, .remoteBranch, .otherRef { padding: 0px 3px; margin-right:2px; font-family: sans-serif; @@ -841,41 +841,38 @@ span .tagRef, span .headRef, span .localBranch, span .remoteBranch, span .otherR color: black; } -span .tagRef a span, span .headRef a span, span .localBranch a span, span .remoteBranch a span, span .otherRef a span { +.tagRef a, .headRef a, .localBranch a, .remoteBranch a, .otherRef a { font-size: 9px; -} - -span .tagRef a, span .headRef a, span .localBranch a, span .remoteBranch a, span .otherRef a { text-decoration: none; color: black !important; } -span .tagRef a:hover, span .headRef a:hover, span .localBranch a:hover, span .remoteBranch a:hover, span .otherRef a:hover { +.tagRef a:hover, .headRef a:hover, .localBranch a:hover, .remoteBranch a:hover, .otherRef a:hover { color: black !important; text-decoration: underline; } -span .otherRef { +.otherRef { background-color: #b0e0f0; border-color: #80aaaa; } -span .remoteBranch { +.remoteBranch { background-color: #cAc2f5; border-color: #6c6cbf; } -span .tagRef { +.tagRef { background-color: #ffffaa; border-color: #ffcc00; } -span .headRef { +.headRef { background-color: #ffaaff; border-color: #ff00ee; } -span .localBranch { +.localBranch { background-color: #ccffcc; border-color: #00cc33; } diff --git a/src/com/gitblit/wicket/panels/RefsPanel.java b/src/com/gitblit/wicket/panels/RefsPanel.java index 86e74a14..b4676427 100644 --- a/src/com/gitblit/wicket/panels/RefsPanel.java +++ b/src/com/gitblit/wicket/panels/RefsPanel.java @@ -142,6 +142,7 @@ public class RefsPanel extends Panel { lb.setVisible(breakLine); lb.setRenderBodyOnly(true); item.add(lb.setEscapeModelStrings(false)); + item.setRenderBodyOnly(true); } }; add(refsView); -- 2.39.5