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

Extended the fix with the list dropdown.

Aleksander Nowodzinski 8 лет назад
Родитель
Сommit
5482515418

+ 2 - 1
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css

@@ -56,7 +56,8 @@
 	@mixin ck-rounded-corners;
 	@mixin ck-rounded-corners;
 	@mixin ck-drop-shadow;
 	@mixin ck-drop-shadow;
 
 
-	/* Disabled radius of top-left border to be consistent with .dropdown__button */
+	/* Disabled radius of top-left border to be consistent with .dropdown__button
+	https://github.com/ckeditor/ckeditor5/issues/816 */
 	@mixin ck-rounded-corners {
 	@mixin ck-rounded-corners {
 		border-top-left-radius: 0;
 		border-top-left-radius: 0;
 	}
 	}

+ 15 - 5
packages/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css

@@ -3,9 +3,19 @@
  * For licensing, see LICENSE.md.
  * For licensing, see LICENSE.md.
  */
  */
 
 
-/* Using absolute units to make sure each element has the same height and padding.
-https://github.com/ckeditor/ckeditor5-heading/issues/63 */
-.ck-dropdown .ck-dropdown__panel .ck-list__item {
-	line-height: calc(.8*var(--ck-line-height-base)*var(--ck-font-size-base));
-	padding: calc(.4*var(--ck-line-height-base)*var(--ck-font-size-base));
+@import "../../../mixins/_rounded.css";
+
+.ck-dropdown .ck-dropdown__panel .ck-list {
+	/* Disabled radius of top-left border to be consistent with .dropdown__button
+	https://github.com/ckeditor/ckeditor5/issues/816 */
+	@mixin ck-rounded-corners {
+		border-top-left-radius: 0;
+	}
+
+	/* Using absolute units to make sure each element has the same height and padding.
+	https://github.com/ckeditor/ckeditor5-heading/issues/63 */
+	& > .ck-list__item {
+		line-height: calc(.8*var(--ck-line-height-base)*var(--ck-font-size-base));
+		padding: calc(.4*var(--ck-line-height-base)*var(--ck-font-size-base));
+	}
 }
 }