Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use rtlcss in vuejs? #226

Open
mahmoudabdelhalim opened this issue Apr 4, 2021 · 4 comments
Open

How to use rtlcss in vuejs? #226

mahmoudabdelhalim opened this issue Apr 4, 2021 · 4 comments

Comments

@mahmoudabdelhalim
Copy link

No description provided.

@yamelsenih
Copy link

Hi everyone, something here? I need implement it for Vue Js with element ui

@alphaelf
Copy link

hi, add postcss.config.js file in the root of project with this content:

module.exports = {
  plugins: {
    'rtlcss':{
      autoRename: true
    }
  }
}

because vue-loader use postcss by default and rtlcss is a postcss plugin

@tina-pina
Copy link

tina-pina commented Jun 8, 2023

Hi,
I did the above (added rtlcss in postcss.config.js). But what if i want to have the plugin only on certain pages and on others not? The problem is right now installing RTLCSS has some styling side effect on pages that should not be affected, even i defined in my global scss that i want to only use ltr (and ignore rtl):

* {
  /*rtl:ignore*/
  direction: ltr!important;
}

@alphaelf
Copy link

Hi, just use block ignore template:

/*rtl:begin:ignore*/
* {
direction: ltr;
}
/*rtl:end:ignore*/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants