Sfoglia il codice sorgente

Styles: Refactoring in button dropdown styles.

Aleksander Nowodzinski 8 anni fa
parent
commit
b42f9ebd7e

+ 6 - 11
packages/ckeditor5-ui/theme/components/dropdown/buttondropdown.css

@@ -3,24 +3,19 @@
  * For licensing, see LICENSE.md.
  */
 
-.ck-buttondropdown .ck-dropdown__panel .ck-button {
-	&:focus {
-		z-index: calc(var(--ck-z-default) + 1);
+.ck-buttondropdown {
+	& .ck-dropdown__panel .ck-button {
+		&:focus {
+			z-index: calc(var(--ck-z-default) + 1);
+		}
 	}
-}
 
-.ck-dropdown {
-	&.ck-buttondropdown .ck-toolbar {
+	& .ck-toolbar {
 		display: flex;
 		flex-direction: row;
 
 		&.ck-toolbar__vertical {
 			flex-direction: column;
 		}
-
-		& .ck-button {
-			margin: 0;
-			border-radius: 0;
-		}
 	}
 }