Last active
December 17, 2015 13:58
-
-
Save markward/5620650 to your computer and use it in GitHub Desktop.
Crumbs is a CSS file for Moodle themes. It cleans up the navigation breadcrumbs by hiding long page names until the user wants to see them. This theme works best with modern browsers which support CSS transitions fully. Look at line 34 to configure the highlight colour.
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
div.navbar { | |
padding: .5em 0; | |
} | |
div.navbar div.breadcrumb ul li{ | |
display:inline-block; | |
*displace:inline; | |
background-color: #DDD; | |
color: #BBB; | |
padding: .1em 5px; | |
margin: 0 5px; | |
border-radius: 15px; | |
border-sizing: border-box; | |
max-width: 9em; | |
white-space:nowrap; | |
overflow: hidden; | |
transition: max-width 0.8s ease; | |
transition-delay: 5s; | |
text-transform: capitalize; | |
} | |
div.navbar div.breadcrumb ul li a{ | |
color: #555; | |
} | |
div.navbar div.breadcrumb ul li:hover{ | |
color: #CCC; | |
max-width: 30em; | |
transition-delay: 1s; | |
} | |
div.navbar div.breadcrumb ul li:last-child, | |
div.navbar div.breadcrumb ul li:hover{ | |
background-color: #91C46C; | |
color: #EEE; | |
} | |
div.navbar div.breadcrumb ul li:last-child a, | |
div.navbar div.breadcrumb ul li:hover a{ | |
color: #FFF | |
} | |
div.navbar div.breadcrumb ul li span.arrow{ | |
display: none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I saw your video describing how to add this CSS and your demonstration of how it works. It's brilliant and should be in Moodle BootstrapBase.