2
0
Эх сурвалжийг харах

Manual: Improve style of modified code listings. (#23142)

Michael Herzog 3 жил өмнө
parent
commit
ab456bbe92

+ 20 - 0
manual/resources/lang.css

@@ -28,11 +28,23 @@ pre.prettyprint ul.modifiedlines li.linedeleted {
     background-color: #ffebe9;
     background-color: #ffebe9;
 }
 }
 
 
+pre.prettyprint ul.modifiedlines li.linedeleted:before {
+    content: '-';
+    background-color: #ffebe9;
+    padding-right: 8px;
+}
+
 pre.prettyprint ul.modifiedlines li.lineadded {
 pre.prettyprint ul.modifiedlines li.lineadded {
     list-style-type: none;
     list-style-type: none;
     background-color: #e6ffec;
     background-color: #e6ffec;
 }
 }
 
 
+pre.prettyprint ul.modifiedlines li.lineadded:before {
+    content: '+';
+    background-color: #e6ffec;
+    padding-right: 8px;
+}
+
 pre.prettyprint, code.prettyprint, .dos {
 pre.prettyprint, code.prettyprint, .dos {
     background: #f5f5f5;
     background: #f5f5f5;
     font-family: 'Roboto Mono', monospace;
     font-family: 'Roboto Mono', monospace;
@@ -70,10 +82,18 @@ pre.prettyprint, code.prettyprint, .dos {
 			background-color: #412e32;
 			background-color: #412e32;
 	}
 	}
 
 
+	pre.prettyprint ul.modifiedlines li.linedeleted:before {
+			background-color: #412e32;
+	}
+
 	pre.prettyprint ul.modifiedlines li.lineadded {
 	pre.prettyprint ul.modifiedlines li.lineadded {
 			background-color: #293832;
 			background-color: #293832;
 	}
 	}
 
 
+	pre.prettyprint ul.modifiedlines li.lineadded:before {
+			background-color: #293832;
+	}
+
 	pre.prettyprint, code.prettyprint, .dos {
 	pre.prettyprint, code.prettyprint, .dos {
 		background: #333333;
 		background: #333333;
 	}
 	}