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
$(function() { | |
// Execute the fallback only if there’s no native `details` support | |
if (!('open' in document.createElement('details')) || ($.browser.webkit && $.browser.version >= 534.16)) { | |
// Loop through all `details` elements | |
$('details').each(function() { | |
// Store a reference to the current `details` element in a variable | |
var $details = $(this), | |
// Store a reference to the `summary` element of the current `details` element (if any) in a variable |
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
@import "compass/css3"; | |
/* make details & summary display as block elements in browsers | |
where they're not supported (ahem... all of them). */ | |
details, summary { | |
display: block; | |
} | |
/* hide the dropdown arrow if the browser supports details */ | |
.arrow { |
NewerOlder