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.
- Loading branch information
1 parent
a6489a1
commit 66e5934
Showing
5 changed files
with
24 additions
and
47 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 |
---|---|---|
|
@@ -62,5 +62,7 @@ | |
</script> | ||
|
||
<style lang="scss" scoped> | ||
@import "../../sass/_variables.scss"; | ||
</style> |
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 |
---|---|---|
|
@@ -14,7 +14,7 @@ | |
</div> | ||
|
||
<div class="navbar-text offset-md-1 col-md-7 d-none d-lg-flex align-items-center justify-content-center"> | ||
{{'navbar.messageUs' | translate}} <a href="mailto:[email protected]">[email protected]</a> | ||
{{'navbar.messageUs' | translate}} <a href="mailto:[email protected]">[email protected]</a> | ||
</div> | ||
|
||
<div class="col nav-item dropdown navbar-dropdown d-flex align-items-center justify-content-center" v-dropdown> | ||
|
@@ -81,14 +81,11 @@ | |
<script> | ||
import { mapGetters, mapActions } from 'vuex' | ||
import LanguageSelector from './LanguageSelector' | ||
export default { | ||
name: 'navbar', | ||
components: { | ||
LanguageSelector | ||
}, | ||
data () { | ||
return { | ||
langs: [ | ||
|
@@ -103,14 +100,12 @@ | |
] | ||
} | ||
}, | ||
computed: { | ||
...mapGetters([ | ||
'sidebarOpened', | ||
'toggleWithoutAnimation' | ||
]) | ||
}, | ||
methods: { | ||
...mapActions([ | ||
'closeMenu', | ||
|
@@ -126,20 +121,16 @@ | |
@import "~bootstrap/scss/mixins/breakpoints"; | ||
@import "~bootstrap/scss/functions"; | ||
@import "~bootstrap/scss/variables"; | ||
.navbar.app-navbar { | ||
position: fixed; top: 0; width: 100%; z-index: 1; | ||
.navbar-container { | ||
width: 100%; | ||
height: 100%; | ||
margin: 0; | ||
} | ||
height: $top-nav-height; | ||
padding-left: $nav-padding-left; | ||
padding-right: $nav-padding-right; | ||
background-color: $top-nav-bg; | ||
.avatar-container { | ||
display: inline-block; | ||
width: 50px; | ||
|
@@ -148,39 +139,33 @@ | |
border-radius: 50%; | ||
border: 2px solid $lighter-gray; | ||
overflow: hidden; | ||
img { | ||
height: 100%; | ||
width: 100%; | ||
} | ||
} | ||
.menu-icon-container { | ||
padding: 0; | ||
font-size: $font-size-base; | ||
} | ||
.navbar-brand-container { | ||
position: absolute; | ||
z-index: 1; | ||
z-index: 3; | ||
height: 100%; | ||
left: $navbar-brand-container-left; | ||
top: 0; | ||
} | ||
.nav-item { | ||
padding: 0; | ||
height: 100%; | ||
} | ||
.dropdown.navbar-dropdown { | ||
.dropdown-toggle { | ||
padding: 0; | ||
&:after { | ||
display: none; | ||
} | ||
} | ||
&.show { | ||
@include media-breakpoint-up(lg) { | ||
.dropdown-menu { | ||
|
@@ -201,61 +186,49 @@ | |
border-bottom: 10px solid $darkest-gray; | ||
} | ||
} | ||
.dropdown-menu { | ||
margin-top: $dropdown-show-b; | ||
padding-top: 0; | ||
width: 100%; | ||
} | ||
.dropdown-item { | ||
height: $navbar-dd-item-height; | ||
cursor: pointer; | ||
font-size: $font-size-base; | ||
&:hover, &:active, &:focus, &.active { | ||
outline: none; | ||
} | ||
&.plain-link-item { | ||
color: $brand-primary; | ||
&:hover, &:active, &:focus { | ||
background: $dropdown-background; | ||
} | ||
.plain-link { | ||
text-decoration: none; | ||
} | ||
} | ||
} | ||
} | ||
.notify { | ||
position: relative; | ||
&::after { | ||
content: ''; | ||
position: absolute; | ||
right: -6px; | ||
top: -6px; | ||
background-color: $brand-primary; | ||
height: 12px; | ||
width: 12px; | ||
border-radius: 50%; | ||
} | ||
content: ''; | ||
position: absolute; | ||
right: -6px; | ||
top: -6px; | ||
background-color: $brand-primary; | ||
height: 12px; | ||
width: 12px; | ||
border-radius: 50%; | ||
} | ||
} | ||
.i-nav-notification.notify::after { | ||
right: -4px; | ||
top: 0; | ||
} | ||
@include media-breakpoint-down(md) { | ||
height: $top-mobile-nav-height; | ||
padding: $nav-mobile-pt $nav-mobile-padding-h $nav-mobile-pb $nav-mobile-padding-h; | ||
.navbar-brand-container { | ||
width: $nav-mobile-brand-width; | ||
top: $nav-mobile-brand-top; | ||
|
@@ -267,13 +240,12 @@ | |
font-size: $font-size-smaller; | ||
} | ||
} | ||
.dropdown.navbar-dropdown { | ||
&.show { | ||
display: flex; | ||
&:after { | ||
bottom: -$dropdown-mobile-show-b; | ||
z-index: 1; | ||
z-index: 2; | ||
} | ||
.dropdown-menu { | ||
margin-top: $dropdown-mobile-show-b; | ||
|
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 |
---|---|---|
|
@@ -121,7 +121,6 @@ | |
} | ||
} | ||
position: fixed; | ||
width: $sidebar-width; | ||
top: $sidebar-top; | ||
left: $sidebar-left; | ||
|
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