Skip to content

Instantly share code, notes, and snippets.

@jbutko
Created September 26, 2013 18:43
Show Gist options
  • Save jbutko/6718701 to your computer and use it in GitHub Desktop.
Save jbutko/6718701 to your computer and use it in GitHub Desktop.
CSS, Safari: Target only Safari browser
@media screen and (-webkit-min-device-pixel-ratio:0) {
/* Safari and Chrome */
.flex-direction-nav-featured a{
margin-top: 4%;
}
/* Safari only override */
::i-block-chrome,.flex-direction-nav-featured a{
margin-top: 5%;
}
}
@shanimal
Copy link

shanimal commented Aug 7, 2024

MakerTim 🎉

Safari is a mess. Thank you! Added to my globals...

.media-safari(@rules) {
  @supports (-webkit-hyphens: none) {
    @rules();
  }
}
@import (reference) "../less/index.less";

display: grid;

.media-safari ({
    display: flex;
});

@akshilThumar-toddleapp
Copy link

@MakerTim Thank you very much!

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