Tom
2014-10-29 599827eff1cedf6141b15f7fdbbcfed4b23ae86a
CSS changes.

- As discussed:
- gutter a little lighter, context lines nearly but not quite
white.
- 2px left (and right) padding in the code column.
- I also noticed that somehow all lines were spaced vertically a little
wider than on dev.gitblit. Added cellpadding='0' to get the old line
height again.
2 files modified
12 ■■■■ changed files
src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java 4 ●●●● patch | view | raw | blame | history
src/main/resources/gitblit.css 8 ●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/utils/GitBlitDiffFormatter.java
@@ -210,7 +210,7 @@
            }
            StringBuilder sb = new StringBuilder(MessageFormat.format("<div class='header'><div class=\"diffHeader\" id=\"n{0}\"><i class=\"icon-file\"></i> ", id));
            sb.append(StringUtils.escapeForHtml(path, false)).append("</div></div>");
            sb.append("<div class=\"diff\"><table><tbody>\n");
            sb.append("<div class=\"diff\"><table cellpadding='0'><tbody>\n");
            os.write(sb.toString().getBytes());
        }
        // Keep formatting, but if off, don't produce anything anymore. We just keep on counting.
@@ -459,7 +459,7 @@
            sb.append(MessageFormat.format("<div class='header'><div class='diffHeader'>{0}</div></div>",
                    StringUtils.escapeForHtml(getMsg("gb.diffTruncated", "Diff truncated after the above file"), false)));
            // List all files not shown. We can be sure we do have at least one path in skipped.
            sb.append("<div class='diff'><table><tbody><tr><td class='diff-cell' colspan='4'>");
            sb.append("<div class='diff'><table cellpadding='0'><tbody><tr><td class='diff-cell' colspan='4'>");
            String deletedSuffix = StringUtils.escapeForHtml(getMsg("gb.diffDeletedFileSkipped", "(deleted)"), false);
            boolean first = true;
            for (DiffEntry entry : skipped) {
src/main/resources/gitblit.css
@@ -1363,7 +1363,7 @@
.diff-cell {
    margin: 0px;
    padding: 0px;
    padding: 0 2px;
    border: 0;
    border-left: 1px solid #bbb;
}
@@ -1377,7 +1377,7 @@
}
.context2 {
    background-color: #fbfbfb;
    background-color: #FEFEFE;
}
.trailingws-add {
@@ -1396,7 +1396,7 @@
}
.diff-line {
    background-color: #f0f0f0;
    background-color: #fbfbfb;
    text-align: center;
    color: #999;
    padding-left: 2px;
@@ -1409,7 +1409,7 @@
}
.diff-state {
    background-color: #f0f0f0;
    background-color: #fbfbfb;
    text-align: center;
    color: #999;
    padding-left: 2px;