69
69
<div class =" header-contents" >
70
70
<!-- Menu -->
71
71
<div id =" menu-wrap" :class =" { 'mobile-expanded' : focusSearch }" >
72
- <nav id =" menu" :class =" { 'admin' : adminMode }" >
72
+ <nav id =" menu" :class =" { 'admin-menu ' : adminMode }" >
73
73
<!-- Logo Section -->
74
- <h1 >
74
+ <h1 :class = " { 'hide-mobile': adminMode } " >
75
75
<router-link to =" /" v-if =" logo" ><img :src =" logo" id =" logo" /></router-link >
76
76
<router-link id =" logo-text" to =" /" > <!-- ng-bind="{{decode(title)}}" -->
77
77
Epochtalk Forums
78
78
</router-link >
79
79
</h1 >
80
+ <admin-navigation v-if =" adminMode" />
80
81
81
82
<!-- Login Section -->
82
83
<ul class =" signed-out" v-if =" !loggedIn" >
102
103
</ul >
103
104
104
105
<!-- User Dropdown -->
105
- <ul v-if =" loggedIn" >
106
+ <ul v-if =" loggedIn" :class =" { 'menu-right': adminMode }" >
107
+ <li class =" back-to-forum" ><router-link :to =" { path: '/' }" >Back to Forum</router-link ></li >
106
108
<li class =" search" v-if =" permissionUtils.hasPermission('posts.search.allow')" >
107
109
<form action =" ." class =" search-btn" autocomplete =" off" @submit.prevent =" searchForum" >
108
110
<div class =" balloon" data-balloon =" Search" data-balloon-pos =" down" >
227
229
</div >
228
230
229
231
<!-- Breadcrumbs -->
230
- <breadcrumbs v-if =" !adminMode" ></breadcrumbs >
231
-
232
+ <breadcrumbs v-if =" !adminMode" />
232
233
<!-- Alerts -->
233
- <alert ></ alert >
234
+ <alert / >
234
235
235
236
<!-- Bans -->
236
237
<div id =" ban-notice" v-if =" BanStore.updateBanNotice()" v-html =" BanStore.updateBanNotice()" ></div >
@@ -259,6 +260,7 @@ import LoginModal from '@/components/modals/auth/Login.vue'
259
260
import InviteModal from ' @/components/modals/auth/Invite.vue'
260
261
import RegisterModal from ' @/components/modals/auth/Register.vue'
261
262
import Breadcrumbs from ' @/components/layout/Breadcrumbs.vue'
263
+ import AdminNavigation from ' @/components/layout/AdminNavigation.vue'
262
264
import decode from ' @/composables/filters/decode'
263
265
import { AuthStore } from ' @/composables/stores/auth'
264
266
import { PreferencesStore } from ' @/composables/stores/prefs'
@@ -272,7 +274,7 @@ import { motdApi } from '@/api'
272
274
import { watchPublicChannel } from ' @/composables/services/websocket'
273
275
274
276
export default {
275
- components: { Breadcrumbs, LoginModal, InviteModal, RegisterModal, Alert },
277
+ components: { AdminNavigation, Breadcrumbs, LoginModal, InviteModal, RegisterModal, Alert },
276
278
setup () {
277
279
onBeforeMount (() => {
278
280
let fetchMotd = () => motdApi .get ().then (d => v .motdData = d).catch (() => {})
@@ -582,7 +584,18 @@ header {
582
584
583
585
#menu {
584
586
@include base- layout- width;
585
- & .admin { max- width: unset; }
587
+ & .admin - menu {
588
+ max- width: unset;
589
+ .burger - icon {
590
+ display: none;
591
+ @include break - mobile- sm {
592
+ display: flex;
593
+ flex: 0 ;
594
+ order: 3 ;
595
+ justify- content: flex- end;
596
+ }
597
+ }
598
+ }
586
599
h1 {
587
600
float: left;
588
601
font- family: $base- font- sans;
@@ -648,6 +661,7 @@ header {
648
661
height: inherit;
649
662
div a { text- decoration: none; }
650
663
}
664
+ li .back - to- forum { display: none; }
651
665
form, form div { height: inherit; }
652
666
.search {
653
667
position: relative;
@@ -976,22 +990,11 @@ header {
976
990
}
977
991
#menu .admin - menu {
978
992
display: flex;
979
-
980
- .brand {
981
- display: flex;
982
- align- items: center;
983
- font- size: 1 .3rem ;
984
- margin- right: 1rem ;
985
-
986
- .brandLogo {
987
- width: 2rem ;
988
- margin- right: 0 .5rem ;
989
- max- height: 2rem ;
990
- }
991
- }
992
-
993
- #menu- left {
993
+ .menu - left {
994
994
float: left;
995
+ margin- left: 2rem ;
996
+ @include break - mobile- sm { order: 1 ; margin- left: 0 ; }
997
+
995
998
.menu - btn, .menu - btn- selected {
996
999
padding: 0 0 .8rem ;
997
1000
display: table- cell;
@@ -1000,19 +1003,31 @@ header {
1000
1003
}
1001
1004
.menu - btn- selected { background- color: $header- dropdown- bg- color; border- bottom: 2px solid $color- primary; }
1002
1005
}
1003
- # menu- right {
1006
+ . menu - right {
1004
1007
display: flex;
1005
- flex: 1 0 auto;
1008
+ flex: 1 ;
1009
+ order: 2 ;
1006
1010
justify- content: flex- end;
1011
+ margin- left: auto;
1012
+
1013
+ li .back - to- forum { display: none; }
1007
1014
1008
- li: first- child, li: nth- child (2n ) {
1015
+ li: first- child, li: nth- child (2n ): not (. search ) {
1009
1016
padding- right: 0 .8rem ;
1010
1017
a {
1011
1018
display: table- cell;
1012
1019
height: inherit;
1013
1020
vertical- align: middle;
1014
1021
}
1015
1022
}
1023
+ @include break - mobile- sm {
1024
+ li { display: none; }
1025
+ li .back - to- forum { display: table- cell; }
1026
+ }
1027
+ @include break - mobile- med {
1028
+ li .search { display: none; }
1029
+ li#notifications- tray { display: none; }
1030
+ }
1016
1031
}
1017
1032
}
1018
1033
}
0 commit comments