sassdoc-theme-light
Advanced tools
Comparing version 1.6.0-rc.1 to 1.6.0-rc.2
@@ -0,0 +0,0 @@ /* global document */ |
@@ -0,0 +0,0 @@ (function ($, global) { |
@@ -15,5 +15,2 @@ (function ($, global) { | ||
// Toggle button | ||
toggleBtn: '.js-btn-toggle', | ||
// Automatic initialization | ||
@@ -75,3 +72,3 @@ init: true | ||
if (this.index[item] === false) { | ||
$('[' + this.conf.indexAttribute + '="' + item + '"]').addClass(this.conf.collapsedClass); | ||
$('[' + this.conf.indexAttribute + '="' + item + '"]').next().addClass(this.conf.collapsedClass); | ||
} | ||
@@ -96,4 +93,4 @@ } | ||
Sidebar.prototype.bind = function () { | ||
var $item, slug, fn, text; | ||
var collapsed = false; | ||
var $item; | ||
var slug; | ||
@@ -105,26 +102,2 @@ // Save index in localStorage | ||
// Toggle all | ||
$(this.conf.toggleBtn).on('click', $.proxy(function (event) { | ||
$node = $(event.target); | ||
text = $node.attr('data-alt'); | ||
$node.attr('data-alt', $node.text()); | ||
$node.text(text); | ||
fn = collapsed === true ? 'removeClass' : 'addClass'; | ||
this.conf.nodes.each($.proxy(function (index, item) { | ||
$item = $(item); | ||
slug = $item.attr(this.conf.indexAttribute); | ||
this.index[slug] = collapsed; | ||
$('[' + this.conf.indexAttribute + '="' + slug + '"]')[fn](this.conf.collapsedClass); | ||
}, this)); | ||
collapsed = !collapsed; | ||
this.save(); | ||
}, this)); | ||
// Toggle item | ||
this.conf.nodes.on('click', $.proxy(function (event) { | ||
@@ -131,0 +104,0 @@ $item = $(event.target); |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /* http://prismjs.com/download.html?themes=prism&languages=markup+css+css-extras+clike+javascript+scss */ |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -5,3 +5,3 @@ { | ||
"title": "SassDoc Theme Light", | ||
"version": "1.6.0-rc.1", | ||
"version": "1.6.0-rc.2", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "sassdoctheme" |
@@ -0,0 +0,0 @@ # SassDoc Light Theme |
@@ -0,0 +0,0 @@ { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
175137
713