check document direction with sass
up vote
0
down vote
favorite
so I want to check document direction to change some styles based on language with SASS
so how to do it with sass
@if document[dir] == rtl
it did not work out
css angular sass
add a comment |
up vote
0
down vote
favorite
so I want to check document direction to change some styles based on language with SASS
so how to do it with sass
@if document[dir] == rtl
it did not work out
css angular sass
SASS does not know about this, and neither does CSS as far as I know. You could attach a value to the body with js and then use@at-root body[direction="rtl"] &
to match the current setup of the document. Not sure if you could use media queries for this.
– somethinghere
Nov 10 at 10:29
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
so I want to check document direction to change some styles based on language with SASS
so how to do it with sass
@if document[dir] == rtl
it did not work out
css angular sass
so I want to check document direction to change some styles based on language with SASS
so how to do it with sass
@if document[dir] == rtl
it did not work out
css angular sass
css angular sass
asked Nov 10 at 10:26
Omar Mohmed Abdelhady
64110
64110
SASS does not know about this, and neither does CSS as far as I know. You could attach a value to the body with js and then use@at-root body[direction="rtl"] &
to match the current setup of the document. Not sure if you could use media queries for this.
– somethinghere
Nov 10 at 10:29
add a comment |
SASS does not know about this, and neither does CSS as far as I know. You could attach a value to the body with js and then use@at-root body[direction="rtl"] &
to match the current setup of the document. Not sure if you could use media queries for this.
– somethinghere
Nov 10 at 10:29
SASS does not know about this, and neither does CSS as far as I know. You could attach a value to the body with js and then use
@at-root body[direction="rtl"] &
to match the current setup of the document. Not sure if you could use media queries for this.– somethinghere
Nov 10 at 10:29
SASS does not know about this, and neither does CSS as far as I know. You could attach a value to the body with js and then use
@at-root body[direction="rtl"] &
to match the current setup of the document. Not sure if you could use media queries for this.– somethinghere
Nov 10 at 10:29
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
draft saved
draft discarded
draft saved
draft discarded
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53238020%2fcheck-document-direction-with-sass%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
SASS does not know about this, and neither does CSS as far as I know. You could attach a value to the body with js and then use
@at-root body[direction="rtl"] &
to match the current setup of the document. Not sure if you could use media queries for this.– somethinghere
Nov 10 at 10:29