Line numbers are no longer selectable by default, easing copy+paste of code snippets.
[gitweb-sgk] / static / gitweb.css
index 4894dd3..8e93114 100644 (file)
@@ -409,6 +409,7 @@ th .header {
 .readme img {
   max-width: 100%;
   max-height: auto;
 .readme img {
   max-width: 100%;
   max-height: auto;
+  display: block;
   margin-left: auto;
   margin-right: auto;
 }
   margin-left: auto;
   margin-right: auto;
 }
@@ -781,3 +782,9 @@ td.pre, div.pre, div.diff {
 .kwb    { color:#6b3099; }
 .kwc    { color:#d4663d; }
 .kwd { color:#2928ff; }
 .kwb    { color:#6b3099; }
 .kwc    { color:#d4663d; }
 .kwd { color:#2928ff; }
+
+/* Unselectable line numbers for easier copy+paste. */
+
+[unselectable-linenr]::before {
+  content: attr(unselectable-linenr);
+}