Commits

J. Ryan Stinnett committed b02e111

Diffs now wrap long lines properly

Comments (0)

Files changed (1)

bazaarvoice-customizations

 # HG changeset patch
 # User J. Ryan Stinnett <jryans@gmail.com>
-# Date 1295431445 21600
+# Date 1295435109 21600
 # Node ID a0baf2a260b3a7d8c496cd32e7b323a571462f52
-# Parent 4650ff3ed1bced3aceb844412685d9d4f994aa52
+# Parent 91d2d2cd5864a71d49f3af447dd410b53c97d9f5
 Bazaarvoice-specific customizations
 
 diff --git a/src/org/opensolaris/opengrok/search/Results.java b/src/org/opensolaris/opengrok/search/Results.java
 diff --git a/web/default/style.css b/web/default/style.css
 --- a/web/default/style.css
 +++ b/web/default/style.css
-@@ -1,144 +1,202 @@
+@@ -1,144 +1,204 @@
 -body {
 -background-color: #ffffff;
 -/*font-size: 100.01%; /* 12px [1] */
 +ul, dl {font-size: 1.4em;}
 +    ul ul {font-size: 1em;}
 +    dt {color: #ff5200; font-weight: bold;}
-+pre {font-family: Consolas, 'Lucida Console', Monaco, monospace; font-size: 1.2em; margin: 0 0 1.4em; color: #333333;}
++pre {font-family: Consolas, 'Lucida Console', Monaco, monospace; font-size: 1.1em; margin: 0 0 1.4em; color: #333333;}
 +hr {border: 1px solid #cccccc; margin-top: 1em;}
 +    hr.hr-top {display: none; margin-bottom: 1em;}
 +    .page-results hr.hr-bottom {display: none;}
 +                #headerMenu h1 .code {color: #999999;}
 +            #headerMenu p {display: inline; font-size: 1em; margin-left: 1em; white-space: nowrap;}
 +                #headerMenu p .code {color: #666666;}
-+            #headerMenu div.q {background-color: rgba(76,119,187,0.15); border: 1px solid rgba(76,119,187,0.15); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; clear: both; float: right; margin-top: 4em; margin-right: 2em; padding: 1em;}
++            #headerMenu div.q {background-color: rgba(76,119,187,0.15); border: 1px solid rgba(76,119,187,0.15); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; padding: 1em; position: fixed; right: 7em; top: 10.5em;}
 +            #headerMenu .sortMenu {font-size: 1.2em;}
 +                #headerMenu .sortMenu .menuHeader {color: #666666; margin-right: 0.25em;}
 +                .sortOption {border-right: 1px solid #666666; margin-right: 0.25em; padding-right: 0.5em;}
 -}
 +        /* diff page */
 +        #difftable {}
++            #difftable pre {white-space: pre-wrap;}
 +            .diffkey {background-color: rgba(247,247,247,0.5); border: 1px solid rgba(238,238,238,0.5); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; margin-top: 0; padding: 0.5em; position: fixed; top: 11em; right: 5em;}
 +                .diffkey dt {border: 1px solid rgba(204,204,204,0.5); -moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius: 3px; float: left; width: 1em; height: 1em;}
 +                    .diffkey dt.deleted {background-color: #ffffcc;}
 +                span.tabsel {background-color: #ffffff; border-color: #ddebeb; border-bottom-color: #ffffff; border-bottom-width: 2px; font-weight: bold; padding: 5px 6px 1px;}
 +            #difftable table {table-layout: fixed; width: 100%;}
 +                #difftable th {background-color: #eeeeee;}
++                #difftable th, td {border-left: 2px solid #ddebeb; border-right: 2px solid #ddebeb;}
 +                tr.k {border-bottom: 1px dashed #ccc;}
 +                td.d {background-color: #eeeeee;}
 +                .indicator-break {font-family: Helvetica, Helvetica Neue, Arial, sans-serif; margin: 1.25em 0; color: #666666;}
  
  .sl {color:#999;text-decoration:underline;}
  td.a{color:#000}
-@@ -146,7 +204,6 @@
+@@ -146,7 +206,6 @@
  .s  {color:green;} /* strings */
  .c  {color:#666;} /* comments */
  .b  {color:#000; font-weight:bold;} /* comments */
  .i  {color:#00008b; font-weight:bold;} /* interpolations */
  .di {color:#00008b; font-weight:bold;} /* directives */
  .bi {color:#666;} /* built-in */
-@@ -155,101 +212,33 @@
+@@ -155,101 +214,33 @@
  div.a {color:#000}
  a.h {font-size:small; margin-left:2em;}