Permalink
Browse files

purecss: update to use more recent css/js files

  • Loading branch information...
yoshiharuyamashita committed May 6, 2017
1 parent 6c75ac8 commit 1bc4922b5b6c65a92c001947fb16e3591656dc2d
Showing with 15 additions and 3 deletions.
  1. +1 −0 static/css/side-menu-old-ie.css
  2. +1 −1 static/css/side-menu.css
  3. +13 −2 static/js/ui.js
@@ -27,6 +27,7 @@ This is the parent `<div>` that contains the menu and the content area.
#layout {
position: relative;
left: 0;
padding-left: 0;
}
View
@@ -25,6 +25,7 @@ This is the parent `<div>` that contains the menu and the content area.
*/
#layout {
position: relative;
left: 0;
padding-left: 0;
}
#layout.active #menu {
@@ -245,4 +246,3 @@ Hides the menu at `48em`, but modify this based on your app's needs.
left: 150px;
}
}
View
@@ -2,7 +2,8 @@
var layout = document.getElementById('layout'),
menu = document.getElementById('menu'),
menuLink = document.getElementById('menuLink');
menuLink = document.getElementById('menuLink'),
content = document.getElementById('main');
function toggleClass(element, className) {
var classes = element.className.split(/\s+/),
@@ -23,13 +24,23 @@
element.className = classes.join(' ');
}
menuLink.onclick = function (e) {
function toggleAll(e) {
var active = 'active';
e.preventDefault();
toggleClass(layout, active);
toggleClass(menu, active);
toggleClass(menuLink, active);
}
menuLink.onclick = function (e) {
toggleAll(e);
};
content.onclick = function(e) {
if (menu.className.indexOf('active') !== -1) {
toggleAll(e);
}
};
}(this, this.document));

0 comments on commit 1bc4922

Please sign in to comment.