瀏覽代碼

Moved layout styles to the ckeditor5-code-block repository.

Aleksander Nowodzinski 6 年之前
父節點
當前提交
c853a50bb6
共有 1 個文件被更改,包括 8 次插入14 次删除
  1. 8 14
      packages/ckeditor5-theme-lark/theme/ckeditor5-code-block/codeblock.css

+ 8 - 14
packages/ckeditor5-theme-lark/theme/ckeditor5-code-block/codeblock.css

@@ -3,21 +3,15 @@
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-.ck-editor__editable pre {
-	position: relative;
+.ck.ck-editor__editable pre[data-language]::after {
+	top: -1px;
+	right: 10px;
+	background: hsl(0, 0%, 46%);
 
-	&[data-language]::after {
-		content: attr(data-language);
-		position: absolute;
-		top: -1px;
-		right: 10px;
-		background: hsl(0, 0%, 46%);
-
-		font-size: 10px;
-		font-family: var(--ck-font-face);
-		padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
-		color: hsl(0, 0%, 100%);
-	}
+	font-size: 10px;
+	font-family: var(--ck-font-face);
+	padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
+	color: hsl(0, 0%, 100%);
 }
 
 .ck.ck-code-block-dropdown .ck-dropdown__panel {