Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
source 'https://rubygems.org'

gem "octopress-ink", :git => 'https://github.com/rtoohil/ink', :branch => 'update_to_sassc', "~> 1.0"
# Specify your gem's dependencies in octopress-littlefoot.gemspec
gemspec
10 changes: 5 additions & 5 deletions assets/javascripts/littlefoot.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
})

document.addEventListener("click", self.click.bind(self))
document.querySelector('div.footnotes').remove()
document.querySelectorAll('div.footnotes').forEach(function(note) { note.remove(); } )
}
},

Expand Down Expand Up @@ -59,7 +59,7 @@

// Only reposition this every 50 miliseconds to avoid constant repainting
window.clearTimeout(self.timeout)
self.timeout = window.setTimeout( function() {
self.timeout = window.setTimeout( function() {
self.sizeFootnote()
self.positionFootnote()
}, 50)
Expand Down Expand Up @@ -97,9 +97,9 @@

this.footnote.el = null

setTimeout(function(){
setTimeout(function(){
footnote.classList.remove('is-open')
popover.classList.add('is-hidden')
popover.classList.add('is-hidden')
}, 250)
}
},
Expand Down Expand Up @@ -184,7 +184,7 @@
+'<svg class="littlefoot-graphic" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 98"><path class="littlefoot-graphic-path" fill="#fff" d="M200 25c0-13.8-11.2-25-25-25H25C11.2 0 0 11.2 0 25v48c0 13.8 11.2 25 25 25h150c13.8 0 25-11.2 25-25V25zM50.5 64.3c-8.3 0-15-6.7-15-15s6.7-15 15-15 15 6.7 15 15-6.8 15-15 15zm50 0c-8.3 0-15-6.7-15-15s6.7-15 15-15 15 6.7 15 15-6.8 15-15 15zm49 0c-8.3 0-15-6.7-15-15s6.7-15 15-15 15 6.7 15 15-6.8 15-15 15z"/></svg>'
+'</button>'
},

popover: function (el) {
return '<aside class="littlefoot-popover is-hidden">'
+'<div class="littlefoot-footnote">'
Expand Down
2 changes: 1 addition & 1 deletion lib/octopress-littlefoot/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Octopress
module Littlefoot
VERSION = "1.0.2"
VERSION = "1.0.3"
end
end
2 changes: 1 addition & 1 deletion octopress-littlefoot.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "clash"
spec.add_development_dependency "octopress-debugger"

spec.add_runtime_dependency "octopress-ink", "~> 1.0"
#spec.add_runtime_dependency "octopress-ink", :git => 'https://github.com/rtoohil/littlefoot', :branch => 'update_to_sassc', "~> 1.0"
end