summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-02-19 07:36:40 +0000
committerGo MAEDA <maeda@farend.jp>2022-02-19 07:36:40 +0000
commit6a46743cd389aeefc20348445fee2135a8e4c35c (patch)
tree8c504de5f36e05db870cd2f8f70eb7d4e15fb712 /public
parent9f822657820fb87675698d9e6151e7dc650e099f (diff)
downloadredmine-6a46743cd389aeefc20348445fee2135a8e4c35c.tar.gz
redmine-6a46743cd389aeefc20348445fee2135a8e4c35c.zip
Fix code copying in common browsers (#36580).
Patch by Vitaly vit9696. git-svn-id: http://svn.redmine.org/redmine/trunk@21415 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/stylesheets/scm.css8
1 files changed, 7 insertions, 1 deletions
diff --git a/public/stylesheets/scm.css b/public/stylesheets/scm.css
index 4640be5f9..3bbf6010b 100644
--- a/public/stylesheets/scm.css
+++ b/public/stylesheets/scm.css
@@ -61,8 +61,14 @@ table.filecontent th.line-num a {
text-decoration: none;
color: inherit;
}
+table.filecontent th.line-num a:after {
+ content: attr(data-txt);
+}
+table.diffcontent th.line-num:after {
+ content: attr(data-txt);
+}
table.filecontent td.line-code {padding: 0 0 0 4px;}
-table.filecontent td.line-code pre {
+table.filecontent td.line-code pre, table.filecontent td.line-code div {
margin: 0px;
white-space: pre-wrap;
font-family:Consolas, Menlo, "Liberation Mono", Courier, monospace; font-size:12px;