瀏覽代碼

Implemented the ck-dir mixin to make theme development for RTL much easier.

Aleksander Nowodzinski 6 年之前
父節點
當前提交
4b0e683290
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      packages/ckeditor5-ui/theme/mixins/_dir.css

+ 10 - 0
packages/ckeditor5-ui/theme/mixins/_dir.css

@@ -0,0 +1,10 @@
+/*
+ * Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
+ */
+
+@define-mixin ck-dir $direction {
+	@nest [dir="$(direction)"] & {
+		@mixin-content;
+	}
+}