summaryrefslogtreecommitdiffstats
path: root/src/main/resources
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-09-19 08:13:48 -0400
committerJames Moger <james.moger@gitblit.com>2013-09-19 08:13:48 -0400
commit4f0f65fed0613cd69eba1cb8a80d0d18d0a79983 (patch)
tree0dcbd7935c1c621ab949afa4ac82954519747ecf /src/main/resources
parent6de953137ce26e380f88b77876394d3c6fbdd766 (diff)
downloadgitblit-4f0f65fed0613cd69eba1cb8a80d0d18d0a79983.tar.gz
gitblit-4f0f65fed0613cd69eba1cb8a80d0d18d0a79983.zip
Reverse line links in blob view (issue-309)
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/arrow_line.pngbin0 -> 241 bytes
-rw-r--r--src/main/resources/gitblit.css31
2 files changed, 17 insertions, 14 deletions
diff --git a/src/main/resources/arrow_line.png b/src/main/resources/arrow_line.png
new file mode 100644
index 00000000..ac45c8bf
--- /dev/null
+++ b/src/main/resources/arrow_line.png
Binary files differ
diff --git a/src/main/resources/gitblit.css b/src/main/resources/gitblit.css
index 05e6b8ae..a69b9880 100644
--- a/src/main/resources/gitblit.css
+++ b/src/main/resources/gitblit.css
@@ -539,21 +539,29 @@ pre.prettyprint ol {
}
/* 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;
+#nums .jump {
+ border-top: 50px solid transparent;
+ margin-top: -50px;
+ background: url(arrow_line.png) no-repeat scroll bottom right transparent;
+}
+#nums .jump:target {
+ border-left: 7px solid transparent;
+ margin-right: 3px;
+}
+
+#lines .line {
+ padding-left: 5px;
color: #888;
}
-#nums span:target {
+#nums a:hover {
background-color: #ffffbf;
color: black;
font-weight: bold;
+ border-top: 1px solid red;
border-bottom: 1px solid red;
+ text-decoration: none;
}
#lines table {
@@ -568,11 +576,6 @@ pre.prettyprint ol {
padding-left: 5px;
}
-#lines a:hover {
- background-color: #ffffbf;
- text-decoration: none;
-}
-
#lines tr:hover {
background-color: #ffffbf;
}
@@ -584,8 +587,6 @@ pre.prettyprint ol {
background-color: #fafafa;
}
-
-
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
color: #888;
}
@@ -1152,6 +1153,8 @@ table.pretty table.nestedTable {
table.pretty td.graph {
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
+ padding: 0px;
+ /*width: 1px;*/
}
table.pretty tr.commit {