Selaa lähdekoodia

Aligned styles with the new component name.

Oskar Wróbel 8 vuotta sitten
vanhempi
commit
efc12338cd
1 muutettua tiedostoa jossa 17 lisäystä ja 13 poistoa
  1. 17 13
      packages/ckeditor5-editor-classic/theme/theme.scss

+ 17 - 13
packages/ckeditor5-editor-classic/theme/theme.scss

@@ -10,23 +10,27 @@
 	position: relative;
 }
 
-.ck-editor__top .ck-toolbar {
-	@include ck-rounded-corners {
-		border-bottom-left-radius: 0;
-		border-bottom-right-radius: 0;
-
-		&.ck-toolbar_sticky {
-			border-radius: 0;
+.ck-editor__top .ck-sticky-panel {
+	.ck-toolbar {
+		@include ck-rounded-corners {
+			border-bottom-left-radius: 0;
+			border-bottom-right-radius: 0;
 		}
+
+		// https://github.com/ckeditor/ckeditor5-editor-classic/issues/62
+		z-index: ck-z( 'modal' );
+		background: ck-color( 'editor-toolbar-background' );
+		border-bottom-width: 0;
 	}
 
-	// https://github.com/ckeditor/ckeditor5-editor-classic/issues/62
-	z-index: ck-z( 'modal' );
-	background: ck-color( 'editor-toolbar-background' );
-	border-bottom-width: 0;
+	&_sticky {
+		.ck-toolbar {
+			border-bottom-width: 1px;
 
-	&.ck-toolbar_sticky {
-		border-bottom-width: 1px;
+			@include ck-rounded-corners {
+				border-radius: 0;
+			}
+		}
 	}
 }