Explorar o código

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

Aleksander Nowodzinski %!s(int64=6) %!d(string=hai) anos
pai
achega
4b0e683290
Modificáronse 1 ficheiros con 10 adicións e 0 borrados
  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;
+	}
+}