Selaa lähdekoodia

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

Aleksander Nowodzinski 6 vuotta sitten
vanhempi
commit
4b0e683290
1 muutettua tiedostoa jossa 10 lisäystä ja 0 poistoa
  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;
+	}
+}