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.
Merge pull request epicmaxco#1 from vlad-shusterman/FirstTask
First task
- Loading branch information
Showing
10 changed files
with
179 additions
and
194 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
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 |
---|---|---|
|
@@ -88,7 +88,7 @@ | |
padding: 0; | ||
&:after { | ||
display: none; | ||
display: none; | ||
} | ||
} | ||
|
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,19 +121,16 @@ | |
@import "~bootstrap/scss/mixins/breakpoints"; | ||
@import "~bootstrap/scss/functions"; | ||
@import "~bootstrap/scss/variables"; | ||
.navbar.app-navbar { | ||
.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; | ||
|
@@ -147,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: 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; | ||
} | ||
display: none; | ||
} | ||
} | ||
&.show { | ||
@include media-breakpoint-up(lg) { | ||
.dropdown-menu { | ||
|
@@ -188,73 +174,61 @@ | |
} | ||
} | ||
&:after { | ||
position: absolute; | ||
bottom: -$dropdown-show-b; | ||
right: calc(50% - 10px); | ||
width: 0; | ||
height: 0; | ||
display: block; | ||
content: ''; | ||
border-left: 10px solid transparent; | ||
border-right: 10px solid transparent; | ||
border-bottom: 10px solid $darkest-gray; | ||
} | ||
position: absolute; | ||
bottom: -$dropdown-show-b; | ||
right: calc(50% - 10px); | ||
width: 0; | ||
height: 0; | ||
display: block; | ||
content: ''; | ||
border-left: 10px solid transparent; | ||
border-right: 10px solid transparent; | ||
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; | ||
|
@@ -266,7 +240,6 @@ | |
font-size: $font-size-smaller; | ||
} | ||
} | ||
.dropdown.navbar-dropdown { | ||
&.show { | ||
display: flex; | ||
|
Oops, something went wrong.