Skip to content

Instantly share code, notes, and snippets.

@codfish
Last active September 21, 2017 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codfish/fd5710133d5e9ddafb02282ad0739206 to your computer and use it in GitHub Desktop.
Save codfish/fd5710133d5e9ddafb02282ad0739206 to your computer and use it in GitHub Desktop.
Remove site styles when js is not supported
// when using modernizr or similar
.no-js body * {
display: initial !important;
opacity: 1 !important;
visibility: visible !important;
overflow: visible !important;
transform: none !important;
float: none !important;
position: static !important;
height: auto !important;
max-height: auto !important;
width: auto !important;
max-width: auto !important;
transition: none !important;
top: auto !important;
left: auto !important;
z-index: auto !important;
margin: initial !important;
padding: initial !important;
border: initial !important;
script {
display: none !important;
}
::after {
content: " " !important;
display: table !important;
clear: both !important;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment