Skip to content

Instantly share code, notes, and snippets.

@fotinakis
Last active June 18, 2017 21:42
Show Gist options
  • Save fotinakis/d6a243fa3dcbadac173346a79fb0dc0d to your computer and use it in GitHub Desktop.
Save fotinakis/d6a243fa3dcbadac173346a79fb0dc0d to your computer and use it in GitHub Desktop.
Hide elements only in Percy renderer
/*
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