Last active
June 18, 2017 21:42
-
-
Save fotinakis/d6a243fa3dcbadac173346a79fb0dc0d to your computer and use it in GitHub Desktop.
Hide elements only in Percy renderer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is an example of how to add special CSS that only applies in Percy's | |
rendering environment, for example to hide certain dynamic elements. | |
This is a bit of hack, we don't guarantee this will work forever in Percy | |
and we'll be adding a more officially-supported mechanism for this. | |
*/ | |
@-moz-document domain(proxyme.percy.io) { | |
#flappy-div { | |
visibility: hidden !important; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment