Created
January 11, 2014 09:50
-
-
Save DeanPoulin/8368948 to your computer and use it in GitHub Desktop.
Showing & Hiding Content
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
| <div class="show">...</div> | |
| <div class="hidden">...</div> | |
| <style type="text/css"> | |
| /* Classes - These are included in bootstrap, just use above classes on elements. */ | |
| .show { | |
| display: block !important; | |
| } | |
| .hidden { | |
| display: none !important; | |
| visibility: hidden !important; | |
| } | |
| .invisible { | |
| visibility: hidden; | |
| } | |
| // Usage as mixins | |
| .element { | |
| .show(); | |
| } | |
| .another-element { | |
| .hidden(); | |
| } | |
| </style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment