8
0
Pārlūkot izejas kodu

Use proper CSS for code highlight.

Aleksander Nowodzinski 5 gadi atpakaļ
vecāks
revīzija
4457ecc0c0

+ 0 - 12
docs/assets/snippet-styles.css

@@ -53,18 +53,6 @@ It breaks CKEditor 5 (see how <p><code>[]</code></p> looks). */
 	display: none !important; /* Firefox is very stubborn. */
 }
 
-/* Umberto has some high specificity rules - for code highlight we need even more.
-  See https://github.com/ckeditor/ckeditor5/issues/7671 */
-.ck.ck-content code:not(.hljs) {
-	background-color: hsla(0, 0%, 78%, 0.3);
-}
-
-/* The same as above, but for 2SCM highlight.
-  See https://github.com/ckeditor/ckeditor5/issues/7671 */
-.ck-content code.ck-code_selected:not(.hljs) {
-	background-color: hsla(0, 0%, 78%, 0.5);
-}
-
 /* Restore default browser styles for <sub> and <sup>. */
 .ck.ck-content sub {
 	vertical-align: sub;

+ 1 - 1
packages/ckeditor5-basic-styles/theme/code.css

@@ -9,6 +9,6 @@
 	border-radius: 2px;
 }
 
-.ck .ck-code_selected {
+.ck.ck-editor__editable .ck-code_selected  {
 	background-color: hsla(0, 0%, 78%, 0.5);
 }