forked from epicmaxco/vuestic-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: topbar * fix eslint warnings * add layout settings as top-bar * fix app-page-layout * enable top-bar in app * update app-topbar link group. fix topbar styles * fix active links styles in topbar * remove unnecessary css resource imports * update layout calc * replace build information meta to console * fix app layout * fix topbar link styles * create top-bar submenu * hide navbar menu icon with topbar * update styles for topbar links * fix hover and active styles for top-bar link-group-item * fix top-bar in small size * fix top-bar menu item hover styles * fix top-bar items active state styles * fix autochange minimized sidebar in app-layout * fix app-layout bugs * remove unused orig files * remove unnecessary row from app-navbar * add app-sidebar-link and link-group from vuestic-ui * fix app-sidebar sizes
- Loading branch information
Showing
45 changed files
with
3,229 additions
and
1,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,4 @@ inspect.js | |
*.njsproj | ||
*.sln | ||
*.sw* | ||
*.orig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<template> | ||
<div class="app-page-layout"> | ||
<slot></slot> | ||
<slot name="content" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
name: 'app-page-layout', | ||
props: { | ||
mobileWidth: { | ||
type: Number, | ||
default: 767, | ||
}, | ||
}, | ||
mounted () { | ||
window.addEventListener('resize', () => this.updateSidebarState()) | ||
this.updateSidebarState() | ||
}, | ||
beforeDestroy () { | ||
window.removeEventListener('resize', () => this.updateSidebarState()) | ||
}, | ||
methods: { | ||
checkIsDesktop () { | ||
return window.matchMedia(`(min-width: ${this.mobileWidth}px)`).matches | ||
}, | ||
updateSidebarState () { | ||
if (this.checkIsDesktop()) { | ||
this.$emit('update:minimized', false) | ||
} else { | ||
this.$emit('update:minimized', true) | ||
} | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style lang="scss"> | ||
.app-page-layout { | ||
position: fixed; | ||
top: 0; | ||
right: 0; | ||
left: 0; | ||
bottom: 0; | ||
height: 100vh; | ||
.content-wrap { | ||
transition: margin-left 0.3s ease; | ||
padding: 0; | ||
margin-left: 0 !important; | ||
} | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.