mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
Make nav drop-down cleaner/scrollable (#10138)
* Make nav drop-down cleaner/scrollable * Stop overriding bootstrap navbar * Move user menu to top bar in mobile * Restructure/style first drop-down item * Add ALL the pretty colors * Apply menu drop-down re-structure to all menu drop-downs * Replace curly brace lost during rebase
This commit is contained in:
committed by
Matteo Pagliazzi
parent
daa4994382
commit
ba52a90d93
22
package-lock.json
generated
22
package-lock.json
generated
@@ -151,7 +151,7 @@
|
|||||||
},
|
},
|
||||||
"@sinonjs/formatio": {
|
"@sinonjs/formatio": {
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"resolved": "http://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-2.0.0.tgz",
|
||||||
"integrity": "sha512-ls6CAMA6/5gG+O/IdsBcblvnd8qcO/l1TYoNeAzp3wcISOxlPXQEus0mLcdwazEkWjaBdaJ3TaxmNgCLWwvWzg==",
|
"integrity": "sha512-ls6CAMA6/5gG+O/IdsBcblvnd8qcO/l1TYoNeAzp3wcISOxlPXQEus0mLcdwazEkWjaBdaJ3TaxmNgCLWwvWzg==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
@@ -3765,7 +3765,7 @@
|
|||||||
},
|
},
|
||||||
"compression": {
|
"compression": {
|
||||||
"version": "1.7.2",
|
"version": "1.7.2",
|
||||||
"resolved": "http://registry.npmjs.org/compression/-/compression-1.7.2.tgz",
|
"resolved": "https://registry.npmjs.org/compression/-/compression-1.7.2.tgz",
|
||||||
"integrity": "sha1-qv+81qr4VLROuygDU9WtFlH1mmk=",
|
"integrity": "sha1-qv+81qr4VLROuygDU9WtFlH1mmk=",
|
||||||
"requires": {
|
"requires": {
|
||||||
"accepts": "1.3.5",
|
"accepts": "1.3.5",
|
||||||
@@ -7544,7 +7544,6 @@
|
|||||||
"version": "1.1.3",
|
"version": "1.1.3",
|
||||||
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/fsevents/-/fsevents-1.1.3.tgz",
|
||||||
"integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==",
|
"integrity": "sha512-WIr7iDkdmdbxu/Gh6eKEZJL6KPE74/5MEsf2whTOFNxbIoIixogroLdKYqB6FDav4Wavh/lZdzzd3b2KxIXC5Q==",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"nan": "2.6.2",
|
"nan": "2.6.2",
|
||||||
"node-pre-gyp": "0.6.39"
|
"node-pre-gyp": "0.6.39"
|
||||||
@@ -7581,7 +7580,6 @@
|
|||||||
"version": "1.1.4",
|
"version": "1.1.4",
|
||||||
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz",
|
"resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz",
|
||||||
"integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=",
|
"integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"delegates": "1.0.0",
|
"delegates": "1.0.0",
|
||||||
"readable-stream": "2.2.9"
|
"readable-stream": "2.2.9"
|
||||||
@@ -7815,7 +7813,6 @@
|
|||||||
"version": "1.0.5",
|
"version": "1.0.5",
|
||||||
"resolved": "https://registry.npmjs.org/fstream-ignore/-/fstream-ignore-1.0.5.tgz",
|
"resolved": "https://registry.npmjs.org/fstream-ignore/-/fstream-ignore-1.0.5.tgz",
|
||||||
"integrity": "sha1-nDHa40dnAY/h0kmyTa2mfQktoQU=",
|
"integrity": "sha1-nDHa40dnAY/h0kmyTa2mfQktoQU=",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"fstream": "1.0.11",
|
"fstream": "1.0.11",
|
||||||
"inherits": "2.0.3",
|
"inherits": "2.0.3",
|
||||||
@@ -7826,7 +7823,6 @@
|
|||||||
"version": "2.7.4",
|
"version": "2.7.4",
|
||||||
"resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
|
"resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
|
||||||
"integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
|
"integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"aproba": "1.1.1",
|
"aproba": "1.1.1",
|
||||||
"console-control-strings": "1.1.0",
|
"console-control-strings": "1.1.0",
|
||||||
@@ -7915,7 +7911,6 @@
|
|||||||
"version": "1.1.1",
|
"version": "1.1.1",
|
||||||
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz",
|
"resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.1.1.tgz",
|
||||||
"integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=",
|
"integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"assert-plus": "0.2.0",
|
"assert-plus": "0.2.0",
|
||||||
"jsprim": "1.4.0",
|
"jsprim": "1.4.0",
|
||||||
@@ -8013,7 +8008,6 @@
|
|||||||
"version": "1.4.0",
|
"version": "1.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.0.tgz",
|
||||||
"integrity": "sha1-o7h+QCmNjDgFUtjMdiigu5WiKRg=",
|
"integrity": "sha1-o7h+QCmNjDgFUtjMdiigu5WiKRg=",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"assert-plus": "1.0.0",
|
"assert-plus": "1.0.0",
|
||||||
"extsprintf": "1.0.2",
|
"extsprintf": "1.0.2",
|
||||||
@@ -8073,7 +8067,6 @@
|
|||||||
"version": "0.6.39",
|
"version": "0.6.39",
|
||||||
"resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz",
|
"resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.6.39.tgz",
|
||||||
"integrity": "sha512-OsJV74qxnvz/AMGgcfZoDaeDXKD3oY3QVIbBmwszTFkRisTSXbMQyn4UWzUMOtA5SVhrBZOTp0wcoSBgfMfMmQ==",
|
"integrity": "sha512-OsJV74qxnvz/AMGgcfZoDaeDXKD3oY3QVIbBmwszTFkRisTSXbMQyn4UWzUMOtA5SVhrBZOTp0wcoSBgfMfMmQ==",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"detect-libc": "1.0.2",
|
"detect-libc": "1.0.2",
|
||||||
"hawk": "3.1.3",
|
"hawk": "3.1.3",
|
||||||
@@ -8102,7 +8095,6 @@
|
|||||||
"version": "4.1.0",
|
"version": "4.1.0",
|
||||||
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.0.tgz",
|
"resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.0.tgz",
|
||||||
"integrity": "sha512-ocolIkZYZt8UveuiDS0yAkkIjid1o7lPG8cYm05yNYzBn8ykQtaiPMEGp8fY9tKdDgm8okpdKzkvu1y9hUYugA==",
|
"integrity": "sha512-ocolIkZYZt8UveuiDS0yAkkIjid1o7lPG8cYm05yNYzBn8ykQtaiPMEGp8fY9tKdDgm8okpdKzkvu1y9hUYugA==",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"are-we-there-yet": "1.1.4",
|
"are-we-there-yet": "1.1.4",
|
||||||
"console-control-strings": "1.1.0",
|
"console-control-strings": "1.1.0",
|
||||||
@@ -8223,7 +8215,6 @@
|
|||||||
"version": "2.81.0",
|
"version": "2.81.0",
|
||||||
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz",
|
"resolved": "https://registry.npmjs.org/request/-/request-2.81.0.tgz",
|
||||||
"integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=",
|
"integrity": "sha1-xpKJRqDgbF+Nb4qTM0af/aRimKA=",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"aws-sign2": "0.6.0",
|
"aws-sign2": "0.6.0",
|
||||||
"aws4": "1.6.0",
|
"aws4": "1.6.0",
|
||||||
@@ -8365,7 +8356,6 @@
|
|||||||
"version": "3.4.0",
|
"version": "3.4.0",
|
||||||
"resolved": "https://registry.npmjs.org/tar-pack/-/tar-pack-3.4.0.tgz",
|
"resolved": "https://registry.npmjs.org/tar-pack/-/tar-pack-3.4.0.tgz",
|
||||||
"integrity": "sha1-I74tf2cagzk3bL2wuP4/3r8xeYQ=",
|
"integrity": "sha1-I74tf2cagzk3bL2wuP4/3r8xeYQ=",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"debug": "2.6.8",
|
"debug": "2.6.8",
|
||||||
"fstream": "1.0.11",
|
"fstream": "1.0.11",
|
||||||
@@ -8415,14 +8405,12 @@
|
|||||||
"uuid": {
|
"uuid": {
|
||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.0.1.tgz",
|
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.0.1.tgz",
|
||||||
"integrity": "sha1-ZUS7ot/ajBzxfmKaOjBeK7H+5sE=",
|
"integrity": "sha1-ZUS7ot/ajBzxfmKaOjBeK7H+5sE="
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"verror": {
|
"verror": {
|
||||||
"version": "1.3.6",
|
"version": "1.3.6",
|
||||||
"resolved": "https://registry.npmjs.org/verror/-/verror-1.3.6.tgz",
|
"resolved": "https://registry.npmjs.org/verror/-/verror-1.3.6.tgz",
|
||||||
"integrity": "sha1-z/XfEpRtKX0rqu+qJoniW+AcAFw=",
|
"integrity": "sha1-z/XfEpRtKX0rqu+qJoniW+AcAFw=",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"extsprintf": "1.0.2"
|
"extsprintf": "1.0.2"
|
||||||
}
|
}
|
||||||
@@ -8431,7 +8419,6 @@
|
|||||||
"version": "1.1.2",
|
"version": "1.1.2",
|
||||||
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz",
|
"resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz",
|
||||||
"integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==",
|
"integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==",
|
||||||
"optional": true,
|
|
||||||
"requires": {
|
"requires": {
|
||||||
"string-width": "1.0.2"
|
"string-width": "1.0.2"
|
||||||
}
|
}
|
||||||
@@ -13626,8 +13613,7 @@
|
|||||||
"nan": {
|
"nan": {
|
||||||
"version": "2.6.2",
|
"version": "2.6.2",
|
||||||
"resolved": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/nan/-/nan-2.6.2.tgz",
|
||||||
"integrity": "sha1-5P805slf37WuzAjeZZb0NgWn20U=",
|
"integrity": "sha1-5P805slf37WuzAjeZZb0NgWn20U="
|
||||||
"optional": true
|
|
||||||
},
|
},
|
||||||
"nanomatch": {
|
"nanomatch": {
|
||||||
"version": "1.2.9",
|
"version": "1.2.9",
|
||||||
|
|||||||
@@ -55,7 +55,6 @@ div
|
|||||||
}
|
}
|
||||||
|
|
||||||
#app-header {
|
#app-header {
|
||||||
margin-top: 56px;
|
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
padding-top: 9px;
|
padding-top: 9px;
|
||||||
padding-bottom: 8px;
|
padding-bottom: 8px;
|
||||||
|
|||||||
@@ -3,60 +3,60 @@ div
|
|||||||
inbox-modal
|
inbox-modal
|
||||||
creator-intro
|
creator-intro
|
||||||
profile
|
profile
|
||||||
b-navbar.navbar.navbar-inverse.fixed-top.navbar-expand-lg(type="dark", :class="navbarZIndexClass")
|
b-navbar.topbar.navbar-inverse.static-top.navbar-expand-lg(type="dark", :class="navbarZIndexClass")
|
||||||
.navbar-header
|
b-navbar-brand.brand
|
||||||
.logo.svg-icon.d-none.d-xl-block(v-html="icons.logo")
|
.logo.svg-icon.d-none.d-xl-block(v-html="icons.logo")
|
||||||
.svg-icon.gryphon.d-md-block.d-none.d-xl-none
|
.svg-icon.gryphon.d-xs-block.d-xl-none
|
||||||
.svg-icon.gryphon.d-sm-block.d-lg-none.d-md-none
|
b-nav-toggle(target='menu_collapse').menu-toggle
|
||||||
b-nav-toggle(target='nav_collapse')
|
.quick-menu.mobile-only.form-inline
|
||||||
b-collapse#nav_collapse.collapse.navbar-collapse.justify-content-between.flex-wrap(is-nav)
|
a.item-with-icon(@click="sync", v-b-tooltip.hover.bottom="$t('sync')")
|
||||||
.ul.navbar-nav
|
.top-menu-icon.svg-icon(v-html="icons.sync")
|
||||||
router-link.nav-item(tag="li", :to="{name: 'tasks'}", exact)
|
notification-menu.item-with-icon
|
||||||
a.nav-link(v-once) {{ $t('tasks') }}
|
user-dropdown.item-with-icon
|
||||||
router-link.nav-item.dropdown(tag="li", :to="{name: 'items'}", :class="{'active': $route.path.startsWith('/inventory')}")
|
b-collapse#menu_collapse.collapse.navbar-collapse
|
||||||
a.nav-link(v-once) {{ $t('inventory') }}
|
b-navbar-nav.menu-list
|
||||||
.dropdown-menu
|
b-nav-item.topbar-item(tag="li", :to="{name: 'tasks'}", exact) {{ $t('tasks') }}
|
||||||
router-link.dropdown-item(:to="{name: 'items'}", exact) {{ $t('items') }}
|
li.topbar-item(:class="{'active': $route.path.startsWith('/inventory')}")
|
||||||
router-link.dropdown-item(:to="{name: 'equipment'}") {{ $t('equipment') }}
|
router-link.nav-link(:to="{name: 'items'}") {{ $t('inventory') }}
|
||||||
router-link.dropdown-item(:to="{name: 'stable'}") {{ $t('stable') }}
|
.topbar-dropdown
|
||||||
router-link.nav-item.dropdown(tag="li", :to="{name: 'market'}", :class="{'active': $route.path.startsWith('/shop')}")
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'items'}", exact) {{ $t('items') }}
|
||||||
a.nav-link(v-once) {{ $t('shops') }}
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'equipment'}") {{ $t('equipment') }}
|
||||||
.dropdown-menu
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'stable'}") {{ $t('stable') }}
|
||||||
router-link.dropdown-item(:to="{name: 'market'}", exact) {{ $t('market') }}
|
li.topbar-item(:class="{'active': $route.path.startsWith('/shop')}")
|
||||||
router-link.dropdown-item(:to="{name: 'quests'}") {{ $t('quests') }}
|
router-link.nav-link(:to="{name: 'market'}") {{ $t('shops') }}
|
||||||
router-link.dropdown-item(:to="{name: 'seasonal'}") {{ $t('titleSeasonalShop') }}
|
.topbar-dropdown
|
||||||
router-link.dropdown-item(:to="{name: 'time'}") {{ $t('titleTimeTravelers') }}
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'market'}", exact) {{ $t('market') }}
|
||||||
router-link.nav-item(tag="li", :to="{name: 'party'}", v-if='this.user.party._id')
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'quests'}") {{ $t('quests') }}
|
||||||
a.nav-link(v-once) {{ $t('party') }}
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'seasonal'}") {{ $t('titleSeasonalShop') }}
|
||||||
.nav-item(@click='openPartyModal()', v-if='!this.user.party._id')
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'time'}") {{ $t('titleTimeTravelers') }}
|
||||||
a.nav-link(v-once) {{ $t('party') }}
|
b-nav-item.topbar-item(tag="li", :to="{name: 'party'}", v-if='this.user.party._id') {{ $t('party') }}
|
||||||
router-link.nav-item.dropdown(tag="li", :to="{name: 'tavern'}", :class="{'active': $route.path.startsWith('/guilds')}")
|
b-nav-item.topbar-item(@click='openPartyModal()', v-if='!this.user.party._id') {{ $t('party') }}
|
||||||
a.nav-link(v-once) {{ $t('guilds') }}
|
li.topbar-item(:class="{'active': $route.path.startsWith('/guilds')}")
|
||||||
.dropdown-menu
|
router-link.nav-link(:to="{name: 'tavern'}") {{ $t('guilds') }}
|
||||||
router-link.dropdown-item(:to="{name: 'tavern'}") {{ $t('tavern') }}
|
.topbar-dropdown
|
||||||
router-link.dropdown-item(:to="{name: 'myGuilds'}") {{ $t('myGuilds') }}
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'tavern'}") {{ $t('tavern') }}
|
||||||
router-link.dropdown-item(:to="{name: 'guildsDiscovery'}") {{ $t('guildsDiscovery') }}
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'myGuilds'}") {{ $t('myGuilds') }}
|
||||||
router-link.nav-item.dropdown(tag="li", :to="{name: 'groupPlan'}", :class="{'active': $route.path.startsWith('/group-plans')}")
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'guildsDiscovery'}") {{ $t('guildsDiscovery') }}
|
||||||
a.nav-link(v-once) {{ $t('group') }}
|
li.topbar-item(:class="{'active': $route.path.startsWith('/group-plans')}")
|
||||||
.dropdown-menu
|
router-link.nav-link(:to="{name: 'groupPlan'}") {{ $t('group') }}
|
||||||
router-link.dropdown-item(v-for='group in groupPlans', :key='group._id', :to="{name: 'groupPlanDetailTaskInformation', params: {groupId: group._id}}") {{ group.name }}
|
.topbar-dropdown
|
||||||
router-link.nav-item.dropdown(tag="li", :to="{name: 'myChallenges'}", :class="{'active': $route.path.startsWith('/challenges')}")
|
router-link.topbar-dropdown-item.dropdown-item(v-for='group in groupPlans', :key='group._id', :to="{name: 'groupPlanDetailTaskInformation', params: {groupId: group._id}}") {{ group.name }}
|
||||||
a.nav-link(v-once) {{ $t('challenges') }}
|
li.topbar-item(:class="{'active': $route.path.startsWith('/challenges')}")
|
||||||
.dropdown-menu
|
router-link.nav-link(:to="{name: 'myChallenges'}") {{ $t('challenges') }}
|
||||||
router-link.dropdown-item(:to="{name: 'myChallenges'}") {{ $t('myChallenges') }}
|
.topbar-dropdown
|
||||||
router-link.dropdown-item(:to="{name: 'findChallenges'}") {{ $t('findChallenges') }}
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'myChallenges'}") {{ $t('myChallenges') }}
|
||||||
router-link.nav-item.dropdown(tag="li", :class="{'active': $route.path.startsWith('/help')}", :to="{name: 'faq'}")
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'findChallenges'}") {{ $t('findChallenges') }}
|
||||||
a.nav-link(v-once) {{ $t('help') }}
|
li.topbar-item(:class="{'active': $route.path.startsWith('/help')}")
|
||||||
.dropdown-menu
|
router-link.nav-link(:to="{name: 'faq'}") {{ $t('help') }}
|
||||||
router-link.dropdown-item(:to="{name: 'faq'}") {{ $t('faq') }}
|
.topbar-dropdown
|
||||||
router-link.dropdown-item(:to="{name: 'overview'}") {{ $t('overview') }}
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'faq'}") {{ $t('faq') }}
|
||||||
router-link.dropdown-item(to="/groups/guild/a29da26b-37de-4a71-b0c6-48e72a900dac") {{ $t('reportBug') }}
|
router-link.topbar-dropdown-item.dropdown-item(:to="{name: 'overview'}") {{ $t('overview') }}
|
||||||
router-link.dropdown-item(to="/groups/guild/5481ccf3-5d2d-48a9-a871-70a7380cee5a") {{ $t('askAQuestion') }}
|
router-link.topbar-dropdown-item.dropdown-item(to="/groups/guild/a29da26b-37de-4a71-b0c6-48e72a900dac") {{ $t('reportBug') }}
|
||||||
|
router-link.topbar-dropdown-item.dropdown-item(to="/groups/guild/5481ccf3-5d2d-48a9-a871-70a7380cee5a") {{ $t('askAQuestion') }}
|
||||||
a.dropdown-item(href="https://trello.com/c/odmhIqyW/440-read-first-table-of-contents", target='_blank') {{ $t('requestAF') }}
|
a.dropdown-item(href="https://trello.com/c/odmhIqyW/440-read-first-table-of-contents", target='_blank') {{ $t('requestAF') }}
|
||||||
a.dropdown-item(href="http://habitica.wikia.com/wiki/Contributing_to_Habitica", target='_blank') {{ $t('contributing') }}
|
a.dropdown-item(href="http://habitica.wikia.com/wiki/Contributing_to_Habitica", target='_blank') {{ $t('contributing') }}
|
||||||
a.dropdown-item(href="http://habitica.wikia.com/wiki/Habitica_Wiki", target='_blank') {{ $t('wiki') }}
|
a.dropdown-item(href="http://habitica.wikia.com/wiki/Habitica_Wiki", target='_blank') {{ $t('wiki') }}
|
||||||
a.dropdown-item(@click='modForm()') {{ $t('contactForm') }}
|
.currency-tray.form-inline
|
||||||
.user-menu.d-flex.align-items-center
|
|
||||||
.item-with-icon(v-if="userHourglasses > 0")
|
.item-with-icon(v-if="userHourglasses > 0")
|
||||||
.top-menu-icon.svg-icon(v-html="icons.hourglasses", v-b-tooltip.hover.bottom="$t('mysticHourglassesTooltip')")
|
.top-menu-icon.svg-icon(v-html="icons.hourglasses", v-b-tooltip.hover.bottom="$t('mysticHourglassesTooltip')")
|
||||||
span {{ userHourglasses }}
|
span {{ userHourglasses }}
|
||||||
@@ -66,6 +66,7 @@ div
|
|||||||
.item-with-icon.gold
|
.item-with-icon.gold
|
||||||
.top-menu-icon.svg-icon(v-html="icons.gold", v-b-tooltip.hover.bottom="$t('gold')")
|
.top-menu-icon.svg-icon(v-html="icons.gold", v-b-tooltip.hover.bottom="$t('gold')")
|
||||||
span {{Math.floor(user.stats.gp * 100) / 100}}
|
span {{Math.floor(user.stats.gp * 100) / 100}}
|
||||||
|
.form-inline.desktop-only
|
||||||
a.item-with-icon(@click="sync", v-b-tooltip.hover.bottom="$t('sync')")
|
a.item-with-icon(@click="sync", v-b-tooltip.hover.bottom="$t('sync')")
|
||||||
.top-menu-icon.svg-icon(v-html="icons.sync")
|
.top-menu-icon.svg-icon(v-html="icons.sync")
|
||||||
notification-menu.item-with-icon
|
notification-menu.item-with-icon
|
||||||
@@ -76,16 +77,6 @@ div
|
|||||||
@import '~client/assets/scss/colors.scss';
|
@import '~client/assets/scss/colors.scss';
|
||||||
@import '~client/assets/scss/utils.scss';
|
@import '~client/assets/scss/utils.scss';
|
||||||
|
|
||||||
@media only screen and (max-width: 1305px) {
|
|
||||||
.nav-link {
|
|
||||||
padding: .8em 1em !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.navbar-header {
|
|
||||||
margin-right: 5px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 1200px) {
|
@media only screen and (max-width: 1200px) {
|
||||||
.gryphon {
|
.gryphon {
|
||||||
background-image: url('~assets/images/melior@3x.png');
|
background-image: url('~assets/images/melior@3x.png');
|
||||||
@@ -94,57 +85,107 @@ div
|
|||||||
background-size: cover;
|
background-size: cover;
|
||||||
color: $white;
|
color: $white;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.svg-icon.gryphon.d-sm-block {
|
.topbar-item {
|
||||||
|
font-size: 14px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (min-width: 992px) {
|
||||||
|
.mobile-only {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar {
|
||||||
|
max-height: 56px;
|
||||||
|
|
||||||
|
.currency-tray {
|
||||||
|
margin-left: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar-item {
|
||||||
|
padding-top: 5px;
|
||||||
|
height: 56px;
|
||||||
|
|
||||||
|
&.active:not(:hover) {
|
||||||
|
box-shadow: 0px -4px 0px $purple-300 inset;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar-dropdown {
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 992px) {
|
||||||
|
.brand {
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.gryphon {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: calc(50% - 30px);
|
left: calc(50% - 30px);
|
||||||
top: 1em;
|
top: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item .nav-link {
|
#menu_collapse {
|
||||||
font-size: 14px !important;
|
margin: 0.6em -16px -8px;
|
||||||
padding: 16px 12px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media only screen and (max-width: 990px) {
|
|
||||||
#nav_collapse {
|
|
||||||
margin-top: 0.6em;
|
|
||||||
flex-direction: row !important;
|
|
||||||
max-height: 650px;
|
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
flex-direction: column;
|
||||||
|
background-color: $purple-100;
|
||||||
|
|
||||||
.navbar-nav {
|
.menu-list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
background: $purple-100;
|
order: 1;
|
||||||
|
text-align: center;
|
||||||
|
|
||||||
|
.topbar-dropdown-item {
|
||||||
|
background: #432874;
|
||||||
|
border-bottom: #6133b4 solid 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-menu {
|
.topbar-item {
|
||||||
flex-direction: column !important;
|
&.active {
|
||||||
align-items: left !important;
|
background: #6133b4;
|
||||||
background: $purple-100;
|
}
|
||||||
|
|
||||||
|
background: #4f2a93;
|
||||||
|
border-bottom: #6133b4 solid 1px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.currency-tray {
|
||||||
|
justify-content: center;
|
||||||
|
min-height: 40px;
|
||||||
|
background: #271b3d;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.item-with-icon {
|
|
||||||
width: 100%;
|
|
||||||
padding-bottom: 1em;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.desktop-only {
|
||||||
|
display: none !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#nav_collapse {
|
.menu-toggle {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#menu_collapse {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
|
|
||||||
nav.navbar {
|
.topbar {
|
||||||
background: $purple-100 url(~assets/svg/for-css/bits.svg) right no-repeat;
|
background: $purple-100 url(~assets/svg/for-css/bits.svg) right top no-repeat;
|
||||||
padding-left: 25px;
|
min-height: 56px;
|
||||||
padding-right: 12.5px;
|
|
||||||
height: 56px;
|
|
||||||
box-shadow: 0 1px 2px 0 rgba($black, 0.24);
|
box-shadow: 0 1px 2px 0 rgba($black, 0.24);
|
||||||
|
|
||||||
|
a {
|
||||||
|
color: white !important;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-z-index {
|
.navbar-z-index {
|
||||||
@@ -154,49 +195,46 @@ div
|
|||||||
|
|
||||||
&-modal {
|
&-modal {
|
||||||
z-index: 1035;
|
z-index: 1035;
|
||||||
|
z-index: 1042; // To stay above snakbar notifications and modals
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar-header {
|
|
||||||
margin-right: 48px;
|
|
||||||
|
|
||||||
.logo {
|
.logo {
|
||||||
|
padding-left: 10px;
|
||||||
width: 128px;
|
width: 128px;
|
||||||
height: 28px;
|
height: 28px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.quick-menu {
|
||||||
|
display: flex;
|
||||||
|
margin-left: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-item {
|
.currency-tray {
|
||||||
.nav-link {
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.topbar-item {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
color: $white !important;
|
color: $white !important;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 1.5;
|
|
||||||
padding: 16px 20px;
|
|
||||||
transition: none;
|
transition: none;
|
||||||
|
|
||||||
|
.topbar-dropdown {
|
||||||
|
display: none; // Display is set to block on hover.
|
||||||
|
}
|
||||||
|
|
||||||
|
>a {
|
||||||
|
padding: .8em 1em !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
.nav-link {
|
|
||||||
color: $white !important;
|
color: $white !important;
|
||||||
background: $purple-200;
|
background: $purple-200;
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
&.active:not(:hover) {
|
.topbar-dropdown {
|
||||||
.nav-link {
|
display: block; // Open drop-down on hover.
|
||||||
box-shadow: 0px -4px 0px $purple-300 inset;
|
margin-top: 0; // Remove gap between navbar and drop-down.
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Make the dropdown menu open on hover
|
|
||||||
.dropdown:hover .dropdown-menu {
|
|
||||||
display: block;
|
|
||||||
margin-top: 0; // remove the gap so it doesn't close
|
|
||||||
}
|
|
||||||
|
|
||||||
.dropdown-menu {
|
|
||||||
background: $purple-200;
|
background: $purple-200;
|
||||||
border-radius: 0px;
|
border-radius: 0px;
|
||||||
border: none;
|
border: none;
|
||||||
@@ -206,12 +244,13 @@ div
|
|||||||
border-bottom-right-radius: 5px;
|
border-bottom-right-radius: 5px;
|
||||||
border-bottom-left-radius: 5px;
|
border-bottom-left-radius: 5px;
|
||||||
|
|
||||||
.dropdown-item {
|
.topbar-dropdown-item {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
box-shadow: none;
|
box-shadow: none;
|
||||||
color: $white;
|
color: $white;
|
||||||
border: none;
|
border: none;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
|
display: list-item;
|
||||||
|
|
||||||
&.active {
|
&.active {
|
||||||
background: $purple-300;
|
background: $purple-300;
|
||||||
@@ -219,7 +258,6 @@ div
|
|||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
background: $purple-300;
|
background: $purple-300;
|
||||||
color: $white;
|
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
border-bottom-right-radius: 5px;
|
border-bottom-right-radius: 5px;
|
||||||
@@ -228,6 +266,8 @@ div
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.dropdown + .dropdown {
|
.dropdown + .dropdown {
|
||||||
margin-left: 0px;
|
margin-left: 0px;
|
||||||
@@ -380,6 +420,7 @@ export default {
|
|||||||
|
|
||||||
this.$root.$emit('bv::show::modal', 'buy-gems', {alreadyTracked: true});
|
this.$root.$emit('bv::show::modal', 'buy-gems', {alreadyTracked: true});
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user