File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 21
21
@import " ./ionic.mixins" ;
22
22
23
23
// Global app direction
24
- $app-direction : ltr !default ;
24
+ $app-direction : null !default ;
25
25
26
26
27
27
// Global font path
Original file line number Diff line number Diff line change 158
158
}
159
159
}
160
160
161
+
162
+ // Text Direction - ltr / rtl
163
+ // $app-direction: multi | rtl | ltr | null (default)
164
+ // multi: Both [dir=ltr] and [dir=rtl] are applied to css selectors.
165
+ // rtl: Always assumes rtl and only includes rtl css. No [dir] selectors.
166
+ // ltr: Always assumes ltr and only includes ltr css. No [dir] selectors.
167
+ // null: CSS defaults to use the ltr css, and adds [dir=rtl] selectors to override ltr defaults.
168
+ // ----------------------------------------------------------
169
+
161
170
@mixin multi-dir () {
162
171
@if $app-direction == multi {
163
172
$root : #{&} ;
172
181
}
173
182
174
183
@mixin rtl () {
175
- @if $app-direction == multi {
184
+ @if $app-direction == multi or $app-direction == null {
176
185
$root : #{&} ;
177
186
@at-root [dir = " rtl" ] {
178
187
#{$root } {
192
201
@content ;
193
202
}
194
203
}
195
- } @else if $app-direction == ltr {
204
+ } @else if $app-direction == ltr or $app-direction == null {
196
205
@content ;
197
206
}
198
207
}
You can’t perform that action at this time.
0 commit comments