Sfoglia il codice sorgente

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

Aleksander Nowodzinski 6 anni fa
parent
commit
4b0e683290
1 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  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;
+	}
+}