summaryrefslogtreecommitdiffstats
path: root/public/less
diff options
context:
space:
mode:
authorjaqra <48099350+jaqra@users.noreply.github.com>2019-08-28 01:59:05 +0300
committerAntoine GIRARD <sapk@users.noreply.github.com>2019-08-28 00:59:05 +0200
commit245457d4d3403db9081bf00f8849546630ae45af (patch)
tree3cd0fc89633556b4dbc740b52649b99b32707c01 /public/less
parenta45909be90b6c553d572eb81bd61e445ae379439 (diff)
downloadgitea-245457d4d3403db9081bf00f8849546630ae45af.tar.gz
gitea-245457d4d3403db9081bf00f8849546630ae45af.zip
Move line number to :before attr to hide from search on browser (#8002)
* Move line number to :before attr to hide from search on browser * Use same variable in WriteString Co-Authored-By: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'public/less')
-rw-r--r--public/less/_base.less11
1 files changed, 7 insertions, 4 deletions
diff --git a/public/less/_base.less b/public/less/_base.less
index d961e18c37..487779c137 100644
--- a/public/less/_base.less
+++ b/public/less/_base.less
@@ -920,10 +920,13 @@ footer {
user-select: none;
span {
- line-height: 20px !important;
- padding: 0 10px;
- cursor: pointer;
- display: block;
+ &:before {
+ content: attr(data-line-number);
+ line-height: 20px !important;
+ padding: 0 10px;
+ cursor: pointer;
+ display: block;
+ }
}
}