Jelajahi Sumber

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

Michael Herzog 3 tahun lalu
induk
melakukan
ab456bbe92
1 mengubah file dengan 20 tambahan dan 0 penghapusan
  1. 20 0
      manual/resources/lang.css

+ 20 - 0
manual/resources/lang.css

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