8
0
Просмотр исходного кода

Position DropdownPanel with plain CSS only (instead of JS).

Aleksander Nowodzinski 9 лет назад
Родитель
Сommit
4c8048a48b
1 измененных файлов с 5 добавлено и 3 удалено
  1. 5 3
      packages/ckeditor5-theme-lark/theme/components/dropdown.scss

+ 5 - 3
packages/ckeditor5-theme-lark/theme/components/dropdown.scss

@@ -26,11 +26,13 @@
 	box-shadow: 0 0 5px ck-color( 'foreground', -15 );
 	position: absolute;
 	left: 0px;
-	background: ck-color( 'background' );
-	z-index: ck-z();
 
 	// Compensate double border from button and from box when positioned below the button.
-	margin-top: -1px;
+	bottom: 2px;
+
+	transform: translateY( 100% );
+	background: ck-color( 'background' );
+	z-index: ck-z();
 
 	@include ck-rounded-corners();