Last active
September 21, 2017 13:20
-
-
Save codfish/fd5710133d5e9ddafb02282ad0739206 to your computer and use it in GitHub Desktop.
Remove site styles when js is not supported
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
// 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