Skip to content

Commit

Permalink
Bug/sidebar (#291)
Browse files Browse the repository at this point in the history
* bug(sidebar): fix routes configuration

* bug(sidebar): fix icons path

* bug(sidebar): fix problem with link category
  • Loading branch information
AlexanderBoriskin committed Aug 17, 2018
1 parent 7c40995 commit 4eb5ea8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sass/_icons-styles.scss
@@ -1,4 +1,4 @@
@import url(https://weloveiconfonts.com/api/?family=brandico|entypo|fontelico|iconicfill|iconicstroke|maki|openwebicons|typicons|zocial);
@import url(http://weloveiconfonts.com/api/?family=brandico|entypo|fontelico|iconicfill|iconicstroke|maki|openwebicons|typicons|zocial);

This comment has been minimized.

Copy link
@alexanderrudnik

alexanderrudnik Aug 17, 2018

Contributor

in this case you cant use https on remote server


/* brandico */
[class*="brandico-"]:before {
Expand Down
6 changes: 3 additions & 3 deletions src/vuestic-theme/vuestic-directives/Layout.js
Expand Up @@ -4,13 +4,13 @@ export default {
let navbar = el.querySelector('.vuestic-navbar')
let sidebar = el.querySelector('.vuestic-sidebar')

const desktopWidth = 992
const mobileWidth = 415

el.resizeWindow = (evt) => {
setTimeout(function () {
let openedDropdown = navbar.querySelector('.show')
let selector = navbar.querySelector('.header-selector')
if (openedDropdown && document.documentElement.clientWidth < desktopWidth &&
if (openedDropdown && document.documentElement.clientWidth < mobileWidth &&
!evt.target.classList.contains('header-selector')) {
sidebar.classList.add('sidebar-hidden')
selector.classList.remove('i-menu-expanded')
Expand All @@ -27,7 +27,7 @@ export default {
navbar.addEventListener('click', el.resizeWindow)

sidebar.addEventListener('click', () => {
if (document.documentElement.clientWidth < desktopWidth) {
if (document.documentElement.clientWidth < mobileWidth) {
sidebar.classList.add('sidebar-hidden')
}
})
Expand Down

0 comments on commit 4eb5ea8

Please sign in to comment.