diff options
author | James Moger <james.moger@gitblit.com> | 2012-09-17 09:26:32 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2012-09-17 09:26:32 -0400 |
commit | 20d304a93554c667572206afdc2aa772977aa1f6 (patch) | |
tree | 23daa63883cbf0ec5454321281c73f2682490c91 /resources | |
parent | 16e4747d3cb2c2a53a6bef554bca306d8594a080 (diff) | |
download | gitblit-20d304a93554c667572206afdc2aa772977aa1f6.tar.gz gitblit-20d304a93554c667572206afdc2aa772977aa1f6.zip |
Adjust blob view layout to improve line links (issue 130)
http://nicolasgallagher.com/jump-links-and-viewport-positioning
Diffstat (limited to 'resources')
-rw-r--r-- | resources/gitblit.css | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/resources/gitblit.css b/resources/gitblit.css index 861fc411..bbd3c0c2 100644 --- a/resources/gitblit.css +++ b/resources/gitblit.css @@ -178,6 +178,19 @@ pre.prettyprint ol { vertical-align:top;
}
+/* CSS trick to workaround #link topOfWindow offset problem */
+#lines .line {
+ border-top: 160px solid transparent;
+ margin-top: -160px;
+ -webkit-background-clip: padding-box;
+ -moz-background-clip: padding;
+ background-clip: padding-box;
+}
+
+#lines span:target {
+ background-color: #ffffbf;
+}
+
#nums pre {
white-space: pre;
}
|