Created
February 19, 2014 14:46
-
-
Save nielk/9093521 to your computer and use it in GitHub Desktop.
accessibilité carousel bootstrap : afficher tout les items lorsque javascript est désactivé
This file contains hidden or 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
/* | |
* Less | |
*/ | |
// without JS I display each carousel item | |
.carousel-inner > .item { display: block; } | |
// if JS is actived then hide other items | |
.js .carousel-inner > .item { | |
display: none; | |
} | |
.js .carousel-inner > .active, | |
.js .carousel-inner > .next, | |
.js .carousel-inner > .prev { display: block; } | |
/* | |
* JS | |
*/ | |
/* no-js */ | |
document.body.classList.add('js'); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment