Skip to content

Commit

Permalink
Removed legacy realignment feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanHavoc committed Aug 17, 2016
1 parent 887be34 commit 0659a98
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 36 deletions.
4 changes: 3 additions & 1 deletion _template/app/css/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -466,10 +466,12 @@
position: fixed;
right: 0;
top: 0;
transition: left .5s ease;
width: 100%;
z-index: 9997;
}
.ndpl-mobile .ndpl-sidebar {
transition: left .5s ease;
}
.ndpl-sidebar.open {
left: 0;
}
Expand Down
2 changes: 1 addition & 1 deletion _template/app/css/styles.min.css

Large diffs are not rendered by default.

33 changes: 1 addition & 32 deletions _template/app/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@ new Vue({
breakpoint: 960,
mobile_view: false,
open_nav: false,
rtime: new Date(1, 1, 2000, 12,00,00),
timeout: false,
delta: 200,
version: null
},

Expand Down Expand Up @@ -421,13 +418,6 @@ new Vue({
_this.setScrollPosition();

_this.mobile_view = _this.window_outer_width >= _this.breakpoint ? false : true;

_this.rtime = new Date();

if (_this.timeout === false && !_this.mobile_view) {
_this.timeout = true;
setTimeout(_this.resizeFadeToggle, _this.delta);
}
});

/**
Expand Down Expand Up @@ -801,27 +791,6 @@ new Vue({
_this.updateHash(page.name);
},

/**
* Toggle container fade on resize.
*/
resizeFadeToggle: function() {
var _this = this;

_this.resizing = true;
_this.$broadcast('resizing', true);

if (new Date() - _this.rtime < _this.delta) {
setTimeout(_this.resizeFadeToggle, _this.delta);
} else {
_this.timeout = false;

setTimeout(function() {
_this.resizing = false;
_this.$broadcast('resizing', false);
}, 1000);
}
},

/**
* Convert hex color value to rgb color values.
*
Expand Down Expand Up @@ -853,4 +822,4 @@ new Vue({
return Math.round(((parseInt(rgb.r) * 299) + (parseInt(rgb.g) * 587) + (parseInt(rgb.b) * 114)) /1000);
}
}
});
});
Loading

0 comments on commit 0659a98

Please sign in to comment.