Browse Source

more sidebariness

pull/1/head
wes 8 years ago
parent
commit
d6ca37cd65
  1. 23
      src/scripts/sidebar.tag

23
src/scripts/sidebar.tag

@ -1,11 +1,17 @@
<sidebar> <sidebar>
<div <button
if={!open} if={!open}
class="animated fadeIn" class="animated fadeIn btn tooltip tooltip-right"
data-tooltip="Filter Categories"
style={this.closedButton()} style={this.closedButton()}
onclick={swipe} onclick={swipe}
> >
</div> <i
class="fa fa-bars"
aria-hidden="true"
>
</i>
</button>
<div show={this.swiped !== undefined} style={ this.styles() } class={`animated ${this.swiped !== undefined ? (this.swiped ? "slideInLeft" : "slideOutLeft") : "" } container`}> <div show={this.swiped !== undefined} style={ this.styles() } class={`animated ${this.swiped !== undefined ? (this.swiped ? "slideInLeft" : "slideOutLeft") : "" } container`}>
<div style={{"height" : "100%"}} class="columns col-oneline col-gapless"> <div style={{"height" : "100%"}} class="columns col-oneline col-gapless">
@ -60,11 +66,10 @@ self.swipe = lodash.debounce(() => {
"swiped" : self.swiped == undefined ? true : !self.swiped, "swiped" : self.swiped == undefined ? true : !self.swiped,
"open" : !self.open "open" : !self.open
}); });
}, 200); }, 100);
self.buttonStyles = (() => { self.buttonStyles = (() => {
return { return {
"background-color" : "black",
"top": "0", "top": "0",
"overflow-x": "hidden" "overflow-x": "hidden"
}; };
@ -72,15 +77,15 @@ self.buttonStyles = (() => {
self.closedButton = (() => { self.closedButton = (() => {
return { return {
"background-color" : "rgba(103, 173, 219, 0.40)",
"font-color" : "black",
"height": "50px", "height": "50px",
"width": "50px", "width": "50px",
"font-size" : "40px",
"position": "fixed", "position": "fixed",
"z-index": "1", "z-index": "1",
"top": "0", "top": "0",
"left": "0", "left": "0"
"overflow-x": "hidden",
"padding-top": "60px",
"background-color" : "black"
}; };
}); });

Loading…
Cancel
Save