8
0
Эх сурвалжийг харах

Add support RTL to tabelcellproperties and fix buttons' border-radius

panr 5 жил өмнө
parent
commit
388cd4770b

+ 19 - 0
packages/ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css

@@ -2,6 +2,7 @@
  * Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
+@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";
 
 .ck.ck-table-cell-properties-form {
 	width: 320px;
@@ -15,6 +16,24 @@
 		&.ck-table-cell-properties-form__alignment-row {
 			& .ck.ck-toolbar {
 				background: none;
+
+				& .ck-button {
+					margin: 0;
+
+					@mixin ck-dir rtl {
+						&:first-child {
+							border-radius: var(--ck-border-radius);
+							border-top-left-radius: 0;
+							border-bottom-left-radius: 0;
+						}
+
+						&:last-child {
+							border-radius: var(--ck-border-radius);
+							border-top-right-radius: 0;
+							border-bottom-right-radius: 0;
+						}
+					}
+				}
 			}
 		}
 	}