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

Style is completely messed because of margin-inline-start style - Adding PostCSS "Autoprefixer" plugin can solve it #372

Open
fzyzcjy opened this issue Aug 28, 2021 · 3 comments

Comments

@fzyzcjy
Copy link

fzyzcjy commented Aug 28, 2021

Hi thanks for the template! I see style is completely messed because of margin-inline-start style - it is not implemented in this mobile phone. Adding PostCSS "Autoprefixer" plugin can solve it, by automatically prefixing with suitable vendor prefixs

image

@fzyzcjy fzyzcjy changed the title Style is completely messed because of margin-inline-start style Style is completely messed because of margin-inline-start style - Adding PostCSS "Autoprefixer" plugin can solve it Aug 28, 2021
@alex-shpak
Copy link
Owner

Hi! What browser is that?
Unfortunatelly adding PostCSS will require to install it n addition to hugo binary, this is something that I try to avoid 🤔

@fzyzcjy
Copy link
Author

fzyzcjy commented Aug 30, 2021

A browser in an old android phone.
Hmm that is a problem...

@chrillek
Copy link

chrillek commented Nov 7, 2021

It might be possible to use a @supports:

@supports(margin-inline-start: -16em) {
  .book-menu {
    margin-inline-start: ...
  } 
}
@supports not(margin-inline-start: -16em) {
  .book-menu {
   ... something else ...
 }
}

Alternatively, include the prefixed versions in the style itself.
The main reason for using this over margin-left is that it accounts for rtl scripts. OTH, it is only available since 2018 and has been in Safari only since April 2021. So it might be a bit recent for some use-cases?

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

No branches or pull requests

3 participants