nav-header.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572
  1. <template lang='pug'>
  2. v-app-bar.nav-header(color='black', dark, app, :clipped-left='!$vuetify.rtl', :clipped-right='$vuetify.rtl', fixed, flat, :extended='searchIsShown && $vuetify.breakpoint.smAndDown')
  3. v-toolbar(color='deep-purple', flat, slot='extension', v-if='searchIsShown && $vuetify.breakpoint.smAndDown')
  4. v-text-field(
  5. ref='searchFieldMobile'
  6. v-model='search'
  7. clearable
  8. background-color='deep-purple'
  9. color='white'
  10. :label='$t(`common:header.search`)'
  11. single-line
  12. solo
  13. flat
  14. hide-details
  15. prepend-inner-icon='mdi-magnify'
  16. :loading='searchIsLoading'
  17. @keyup.enter='searchEnter'
  18. autocomplete='none'
  19. )
  20. v-layout(row)
  21. v-flex(xs5, md4)
  22. v-toolbar.nav-header-inner(color='black', dark, flat, :class='$vuetify.rtl ? `pr-3` : `pl-3`')
  23. v-avatar(tile, size='34', @click='goHome')
  24. v-img.org-logo(:src='logoUrl')
  25. //- v-menu(open-on-hover, offset-y, bottom, left, min-width='250', transition='slide-y-transition')
  26. //- template(v-slot:activator='{ on }')
  27. //- v-app-bar-nav-icon.btn-animate-app(v-on='on', :class='$vuetify.rtl ? `mx-0` : ``')
  28. //- v-icon mdi-menu
  29. //- v-list(nav, :light='!$vuetify.theme.dark', :dark='$vuetify.theme.dark', :class='$vuetify.theme.dark ? `grey darken-4` : ``')
  30. //- v-list-item.pl-4(href='/')
  31. //- v-list-item-avatar(size='24'): v-icon(color='blue') mdi-home
  32. //- v-list-item-title.body-2 {{$t('common:header.home')}}
  33. //- v-list-item.pl-4(@click='')
  34. //- v-list-item-avatar(size='24'): v-icon(color='grey lighten-2') mdi-file-tree
  35. //- v-list-item-content
  36. //- v-list-item-title.body-2.grey--text.text--ligten-2 {{$t('common:header.siteMap')}}
  37. //- v-list-item-subtitle.overline.grey--text.text--lighten-2 Coming soon
  38. //- v-list-item.pl-4(href='/t')
  39. //- v-list-item-avatar(size='24'): v-icon(color='teal') mdi-tag-multiple
  40. //- v-list-item-title.body-2 {{$t('common:header.browseTags')}}
  41. //- v-list-item.pl-4(@click='assets')
  42. //- v-list-item-avatar(size='24'): v-icon(color='grey lighten-2') mdi-folder-multiple-image
  43. //- v-list-item-content
  44. //- v-list-item-title.body-2.grey--text.text--ligten-2 {{$t('common:header.imagesFiles')}}
  45. //- v-list-item-subtitle.overline.grey--text.text--lighten-2 Coming soon
  46. v-toolbar-title(:class='{ "mx-3": $vuetify.breakpoint.mdAndUp, "mx-1": $vuetify.breakpoint.smAndDown }')
  47. span.subheading {{title}}
  48. v-flex(md4, v-if='$vuetify.breakpoint.mdAndUp')
  49. v-toolbar.nav-header-inner(color='black', dark, flat)
  50. slot(name='mid')
  51. transition(name='navHeaderSearch', v-if='searchIsShown')
  52. v-text-field(
  53. ref='searchField',
  54. v-if='searchIsShown && $vuetify.breakpoint.mdAndUp',
  55. v-model='search',
  56. color='white',
  57. :label='$t(`common:header.search`)',
  58. single-line,
  59. solo
  60. flat
  61. rounded
  62. hide-details,
  63. prepend-inner-icon='mdi-magnify',
  64. :loading='searchIsLoading',
  65. @keyup.enter='searchEnter'
  66. @keyup.esc='searchClose'
  67. @focus='searchFocus'
  68. @blur='searchBlur'
  69. @keyup.down='searchMove(`down`)'
  70. @keyup.up='searchMove(`up`)'
  71. autocomplete='none'
  72. )
  73. v-tooltip(bottom)
  74. template(v-slot:activator='{ on }')
  75. v-btn.ml-2.mr-0(icon, v-on='on', href='/t', :aria-label='$t(`common:header.browseTags`)')
  76. v-icon(color='grey') mdi-tag-multiple
  77. span {{$t('common:header.browseTags')}}
  78. v-flex(xs7, md4)
  79. v-toolbar.nav-header-inner.pr-4(color='black', dark, flat)
  80. v-spacer
  81. .navHeaderLoading.mr-3
  82. v-progress-circular(indeterminate, color='blue', :size='22', :width='2' v-show='isLoading')
  83. slot(name='actions')
  84. //- (mobile) SEARCH TOGGLE
  85. v-btn(
  86. v-if='!hideSearch && $vuetify.breakpoint.smAndDown'
  87. @click='searchToggle'
  88. icon
  89. )
  90. v-icon(color='grey') mdi-magnify
  91. //- LANGUAGES
  92. template(v-if='mode === `view` && locales.length > 0')
  93. v-menu(offset-y, bottom, transition='slide-y-transition', max-height='320px', min-width='210px', left)
  94. template(v-slot:activator='{ on: menu, attrs }')
  95. v-tooltip(bottom)
  96. template(v-slot:activator='{ on: tooltip }')
  97. v-btn(
  98. icon
  99. v-bind='attrs'
  100. v-on='{ ...menu, ...tooltip }'
  101. :class='$vuetify.rtl ? `ml-3` : ``'
  102. tile
  103. height='64'
  104. :aria-label='$t(`common:header.language`)'
  105. )
  106. v-icon(color='grey') mdi-web
  107. span {{$t('common:header.language')}}
  108. v-list(nav)
  109. template(v-for='(lc, idx) of locales')
  110. v-list-item(@click='changeLocale(lc)')
  111. v-list-item-action(style='min-width:auto;'): v-chip(:color='lc.code === locale ? `blue` : `grey`', small, label, dark) {{lc.code.toUpperCase()}}
  112. v-list-item-title {{lc.name}}
  113. v-divider(vertical)
  114. //- PAGE ACTIONS
  115. template(v-if='hasAnyPagePermissions && path && mode !== `edit`')
  116. v-menu(offset-y, bottom, transition='slide-y-transition', left)
  117. template(v-slot:activator='{ on: menu, attrs }')
  118. v-tooltip(bottom)
  119. template(v-slot:activator='{ on: tooltip }')
  120. v-btn(
  121. icon
  122. v-bind='attrs'
  123. v-on='{ ...menu, ...tooltip }'
  124. :class='$vuetify.rtl ? `ml-3` : ``'
  125. tile
  126. height='64'
  127. :aria-label='$t(`common:header.pageActions`)'
  128. )
  129. v-icon(color='grey') mdi-file-document-edit-outline
  130. span {{$t('common:header.pageActions')}}
  131. v-list(nav, :light='!$vuetify.theme.dark', :dark='$vuetify.theme.dark', :class='$vuetify.theme.dark ? `grey darken-4` : ``')
  132. .overline.pa-4.grey--text {{$t('common:header.currentPage')}}
  133. v-list-item.pl-4(@click='pageView', v-if='mode !== `view`')
  134. v-list-item-avatar(size='24', tile): v-icon(color='indigo') mdi-file-document-outline
  135. v-list-item-title.body-2 {{$t('common:header.view')}}
  136. v-list-item.pl-4(@click='pageEdit', v-if='mode !== `edit` && hasWritePagesPermission')
  137. v-list-item-avatar(size='24', tile): v-icon(color='indigo') mdi-file-document-edit-outline
  138. v-list-item-title.body-2 {{$t('common:header.edit')}}
  139. v-list-item.pl-4(@click='pageHistory', v-if='mode !== `history` && hasReadHistoryPermission')
  140. v-list-item-avatar(size='24', tile): v-icon(color='indigo') mdi-history
  141. v-list-item-content
  142. v-list-item-title.body-2 {{$t('common:header.history')}}
  143. v-list-item.pl-4(@click='pageSource', v-if='mode !== `source` && hasReadSourcePermission')
  144. v-list-item-avatar(size='24', tile): v-icon(color='indigo') mdi-code-tags
  145. v-list-item-title.body-2 {{$t('common:header.viewSource')}}
  146. v-list-item.pl-4(@click='pageConvert', v-if='hasWritePagesPermission')
  147. v-list-item-avatar(size='24', tile): v-icon(color='indigo') mdi-lightning-bolt
  148. v-list-item-title.body-2 {{$t('common:header.convert')}}
  149. v-list-item.pl-4(@click='pageDuplicate', v-if='hasWritePagesPermission')
  150. v-list-item-avatar(size='24', tile): v-icon(color='indigo') mdi-content-duplicate
  151. v-list-item-title.body-2 {{$t('common:header.duplicate')}}
  152. v-list-item.pl-4(@click='pageMove', v-if='hasManagePagesPermission')
  153. v-list-item-avatar(size='24', tile): v-icon(color='indigo') mdi-content-save-move-outline
  154. v-list-item-content
  155. v-list-item-title.body-2 {{$t('common:header.move')}}
  156. v-list-item.pl-4(@click='pageDelete', v-if='hasDeletePagesPermission')
  157. v-list-item-avatar(size='24', tile): v-icon(color='red darken-2') mdi-trash-can-outline
  158. v-list-item-title.body-2 {{$t('common:header.delete')}}
  159. v-divider(vertical)
  160. //- NEW PAGE
  161. template(v-if='hasNewPagePermission && path && mode !== `edit`')
  162. v-tooltip(bottom)
  163. template(v-slot:activator='{ on }')
  164. v-btn(icon, tile, height='64', v-on='on', @click='pageNew', :aria-label='$t(`common:header.newPage`)')
  165. v-icon(color='grey') mdi-text-box-plus-outline
  166. span {{$t('common:header.newPage')}}
  167. v-divider(vertical)
  168. //- ADMIN
  169. template(v-if='isAuthenticated && isAdmin')
  170. v-tooltip(bottom, v-if='mode !== `admin`')
  171. template(v-slot:activator='{ on }')
  172. v-btn(icon, tile, height='64', v-on='on', href='/a', :aria-label='$t(`common:header.admin`)')
  173. v-icon(color='grey') mdi-cog
  174. span {{$t('common:header.admin')}}
  175. v-btn(v-else, text, tile, height='64', href='/', :aria-label='$t(`common:actions.exit`)')
  176. v-icon(left, color='grey') mdi-exit-to-app
  177. span {{$t('common:actions.exit')}}
  178. v-divider(vertical)
  179. //- ACCOUNT
  180. v-menu(v-if='isAuthenticated', offset-y, bottom, min-width='300', transition='slide-y-transition', left)
  181. template(v-slot:activator='{ on: menu, attrs }')
  182. v-tooltip(bottom)
  183. template(v-slot:activator='{ on: tooltip }')
  184. v-btn(
  185. icon
  186. v-bind='attrs'
  187. v-on='{ ...menu, ...tooltip }'
  188. :class='$vuetify.rtl ? `ml-0` : ``'
  189. tile
  190. height='64'
  191. :aria-label='$t(`common:header.account`)'
  192. )
  193. v-icon(v-if='picture.kind === `initials`', color='grey') mdi-account-circle
  194. v-avatar(v-else-if='picture.kind === `image`', :size='34')
  195. v-img(:src='picture.url')
  196. span {{$t('common:header.account')}}
  197. v-list(nav)
  198. v-list-item.py-3.grey(:class='$vuetify.theme.dark ? `darken-4-l5` : `lighten-5`')
  199. v-list-item-avatar
  200. v-avatar.blue(v-if='picture.kind === `initials`', :size='40')
  201. span.white--text.subheading {{picture.initials}}
  202. v-avatar(v-else-if='picture.kind === `image`', :size='40')
  203. v-img(:src='picture.url')
  204. v-list-item-content
  205. v-list-item-title {{name}}
  206. v-list-item-subtitle {{email}}
  207. //- v-list-item(href='/w', disabled)
  208. //- v-list-item-action: v-icon(color='blue') mdi-view-compact-outline
  209. //- v-list-item-content
  210. //- v-list-item-title {{$t('common:header.myWiki')}}
  211. //- v-list-item-subtitle.overline Coming soon
  212. v-list-item(href='/p')
  213. v-list-item-action: v-icon(color='blue-grey') mdi-face-profile
  214. v-list-item-content
  215. v-list-item-title(:class='$vuetify.theme.dark ? `blue-grey--text text--lighten-3` : `blue-grey--text`') {{$t('common:header.profile')}}
  216. v-list-item(@click='logout')
  217. v-list-item-action: v-icon(color='red') mdi-logout
  218. v-list-item-title.red--text {{$t('common:header.logout')}}
  219. v-tooltip(v-else, left)
  220. template(v-slot:activator='{ on }')
  221. v-btn(icon, v-on='on', color='grey darken-3', href='/login', :aria-label='$t(`common:header.login`)')
  222. v-icon(color='grey') mdi-account-circle
  223. span {{$t('common:header.login')}}
  224. page-selector(mode='create', v-model='newPageModal', :open-handler='pageNewCreate', :locale='locale')
  225. page-selector(mode='move', v-model='movePageModal', :open-handler='pageMoveRename', :path='path', :locale='locale')
  226. page-selector(mode='create', v-model='duplicateOpts.modal', :open-handler='pageDuplicateHandle', :path='duplicateOpts.path', :locale='duplicateOpts.locale')
  227. page-delete(v-model='deletePageModal', v-if='path && path.length')
  228. page-convert(v-model='convertPageModal', v-if='path && path.length')
  229. .nav-header-dev(v-if='isDevMode')
  230. v-icon mdi-alert
  231. div
  232. .overline DEVELOPMENT VERSION
  233. .overline This code base is NOT for production use!
  234. </template>
  235. <script>
  236. import { get, sync } from 'vuex-pathify'
  237. import _ from 'lodash'
  238. import movePageMutation from 'gql/common/common-pages-mutation-move.gql'
  239. /* global siteConfig, siteLangs */
  240. export default {
  241. components: {
  242. PageDelete: () => import('./page-delete.vue'),
  243. PageConvert: () => import('./page-convert.vue')
  244. },
  245. props: {
  246. dense: {
  247. type: Boolean,
  248. default: false
  249. },
  250. hideSearch: {
  251. type: Boolean,
  252. default: false
  253. }
  254. },
  255. data() {
  256. return {
  257. menuIsShown: true,
  258. searchIsShown: true,
  259. searchAdvMenuShown: false,
  260. newPageModal: false,
  261. movePageModal: false,
  262. convertPageModal: false,
  263. deletePageModal: false,
  264. locales: siteLangs,
  265. isDevMode: false,
  266. duplicateOpts: {
  267. locale: 'en',
  268. path: 'new-page',
  269. modal: false
  270. }
  271. }
  272. },
  273. computed: {
  274. search: sync('site/search'),
  275. searchIsFocused: sync('site/searchIsFocused'),
  276. searchIsLoading: sync('site/searchIsLoading'),
  277. searchRestrictLocale: sync('site/searchRestrictLocale'),
  278. searchRestrictPath: sync('site/searchRestrictPath'),
  279. isLoading: get('isLoading'),
  280. title: get('site/title'),
  281. logoUrl: get('site/logoUrl'),
  282. path: get('page/path'),
  283. locale: get('page/locale'),
  284. mode: get('page/mode'),
  285. name: get('user/name'),
  286. email: get('user/email'),
  287. pictureUrl: get('user/pictureUrl'),
  288. isAuthenticated: get('user/authenticated'),
  289. permissions: get('user/permissions'),
  290. picture () {
  291. if (this.pictureUrl && this.pictureUrl.length > 1) {
  292. return {
  293. kind: 'image',
  294. url: (this.pictureUrl === 'internal') ? `/_userav/${this.$store.get('user/id')}` : this.pictureUrl
  295. }
  296. } else {
  297. const nameParts = this.name.toUpperCase().split(' ')
  298. let initials = _.head(nameParts).charAt(0)
  299. if (nameParts.length > 1) {
  300. initials += _.last(nameParts).charAt(0)
  301. }
  302. return {
  303. kind: 'initials',
  304. initials
  305. }
  306. }
  307. },
  308. isAdmin () {
  309. return _.intersection(this.permissions, ['manage:system', 'write:users', 'manage:users', 'write:groups', 'manage:groups', 'manage:navigation', 'manage:theme', 'manage:api']).length > 0
  310. },
  311. hasNewPagePermission () {
  312. return this.hasAdminPermission || _.intersection(this.permissions, ['write:pages']).length > 0
  313. },
  314. hasAdminPermission: get('page/effectivePermissions@system.manage'),
  315. hasWritePagesPermission: get('page/effectivePermissions@pages.write'),
  316. hasManagePagesPermission: get('page/effectivePermissions@pages.manage'),
  317. hasDeletePagesPermission: get('page/effectivePermissions@pages.delete'),
  318. hasReadSourcePermission: get('page/effectivePermissions@source.read'),
  319. hasReadHistoryPermission: get('page/effectivePermissions@history.read'),
  320. hasAnyPagePermissions () {
  321. return this.hasAdminPermission || this.hasWritePagesPermission || this.hasManagePagesPermission ||
  322. this.hasDeletePagesPermission || this.hasReadSourcePermission || this.hasReadHistoryPermission
  323. }
  324. },
  325. created () {
  326. if (this.hideSearch || this.dense || this.$vuetify.breakpoint.smAndDown) {
  327. this.searchIsShown = false
  328. }
  329. },
  330. mounted () {
  331. this.$root.$on('pageEdit', () => {
  332. this.pageEdit()
  333. })
  334. this.$root.$on('pageHistory', () => {
  335. this.pageHistory()
  336. })
  337. this.$root.$on('pageSource', () => {
  338. this.pageSource()
  339. })
  340. this.$root.$on('pageMove', () => {
  341. this.pageMove()
  342. })
  343. this.$root.$on('pageConvert', () => {
  344. this.pageConvert()
  345. })
  346. this.$root.$on('pageDuplicate', () => {
  347. this.pageDuplicate()
  348. })
  349. this.$root.$on('pageDelete', () => {
  350. this.pageDelete()
  351. })
  352. this.isDevMode = siteConfig.devMode === true
  353. },
  354. methods: {
  355. searchFocus () {
  356. this.searchIsFocused = true
  357. },
  358. searchBlur () {
  359. this.searchIsFocused = false
  360. },
  361. searchClose () {
  362. this.search = ''
  363. this.searchBlur()
  364. },
  365. searchToggle () {
  366. this.searchIsShown = !this.searchIsShown
  367. if (this.searchIsShown) {
  368. _.delay(() => {
  369. this.$refs.searchFieldMobile.focus()
  370. }, 200)
  371. }
  372. },
  373. searchEnter () {
  374. this.$root.$emit('searchEnter', true)
  375. },
  376. searchMove(dir) {
  377. this.$root.$emit('searchMove', dir)
  378. },
  379. pageNew () {
  380. this.newPageModal = true
  381. },
  382. pageNewCreate ({ path, locale }) {
  383. window.location.assign(`/e/${locale}/${path}`)
  384. },
  385. pageView () {
  386. window.location.assign(`/${this.locale}/${this.path}`)
  387. },
  388. pageEdit () {
  389. window.location.assign(`/e/${this.locale}/${this.path}`)
  390. },
  391. pageHistory () {
  392. window.location.assign(`/h/${this.locale}/${this.path}`)
  393. },
  394. pageSource () {
  395. window.location.assign(`/s/${this.locale}/${this.path}`)
  396. },
  397. pageDuplicate () {
  398. const pathParts = this.path.split('/')
  399. this.duplicateOpts = {
  400. locale: this.locale,
  401. path: (pathParts.length > 1) ? _.initial(pathParts).join('/') + `/new-page` : `new-page`,
  402. modal: true
  403. }
  404. },
  405. pageDuplicateHandle ({ locale, path }) {
  406. window.location.assign(`/e/${locale}/${path}?from=${this.$store.get('page/id')}`)
  407. },
  408. pageConvert () {
  409. this.convertPageModal = true
  410. },
  411. pageMove () {
  412. this.movePageModal = true
  413. },
  414. async pageMoveRename ({ path, locale }) {
  415. this.$store.commit(`loadingStart`, 'page-move')
  416. try {
  417. const resp = await this.$apollo.mutate({
  418. mutation: movePageMutation,
  419. variables: {
  420. id: this.$store.get('page/id'),
  421. destinationLocale: locale,
  422. destinationPath: path
  423. }
  424. })
  425. if (_.get(resp, 'data.pages.move.responseResult.succeeded', false)) {
  426. window.location.replace(`/${locale}/${path}`)
  427. } else {
  428. throw new Error(_.get(resp, 'data.pages.move.responseResult.message', this.$t('common:error.unexpected')))
  429. }
  430. } catch (err) {
  431. this.$store.commit('pushGraphError', err)
  432. this.$store.commit(`loadingStop`, 'page-move')
  433. }
  434. },
  435. pageDelete () {
  436. this.deletePageModal = true
  437. },
  438. assets () {
  439. // window.location.assign(`/f`)
  440. this.$store.commit('showNotification', {
  441. style: 'indigo',
  442. message: `Coming soon...`,
  443. icon: 'ferry'
  444. })
  445. },
  446. async changeLocale (locale) {
  447. await this.$i18n.i18next.changeLanguage(locale.code)
  448. switch (this.mode) {
  449. case 'view':
  450. case 'history':
  451. window.location.assign(`/${locale.code}/${this.path}`)
  452. break
  453. }
  454. },
  455. logout () {
  456. window.location.assign('/logout')
  457. },
  458. goHome () {
  459. window.location.assign('/')
  460. }
  461. }
  462. }
  463. </script>
  464. <style lang='scss'>
  465. .nav-header {
  466. //z-index: 1000;
  467. .v-toolbar__extension {
  468. padding: 0;
  469. .v-toolbar__content {
  470. padding: 0;
  471. }
  472. .v-text-field .v-input__prepend-inner {
  473. padding: 0 14px 0 5px;
  474. padding-right: 14px;
  475. }
  476. }
  477. .org-logo {
  478. cursor: pointer;
  479. }
  480. &-inner {
  481. .v-toolbar__content {
  482. padding: 0;
  483. }
  484. }
  485. &-search-adv {
  486. position: absolute;
  487. top: 7px;
  488. right: 12px;
  489. border-radius: 4px !important;
  490. @at-root .v-application--is-rtl & {
  491. right: initial;
  492. left: 12px;
  493. }
  494. &::before {
  495. border-radius: 4px !important;
  496. }
  497. &:hover, &:focus {
  498. position: absolute !important;
  499. &::before {
  500. border-radius: 4px;
  501. }
  502. }
  503. }
  504. &-dev {
  505. background-color: mc('red', '600');
  506. position: absolute;
  507. top: 11px;
  508. left: 255px;
  509. padding: 5px 15px;
  510. border-radius: 5px;
  511. display: flex;
  512. .v-icon {
  513. margin-right: 15px;
  514. }
  515. .overline:nth-child(2) {
  516. text-transform: none;
  517. }
  518. }
  519. }
  520. .navHeaderSearch {
  521. &-enter-active, &-leave-active {
  522. transition: opacity .25s ease, transform .25s ease;
  523. opacity: 1;
  524. }
  525. &-enter-active {
  526. transition-delay: .25s;
  527. }
  528. &-enter, &-leave-to {
  529. opacity: 0;
  530. transform: scale(.7, .7);
  531. }
  532. }
  533. .navHeaderLoading { // To avoid search bar jumping
  534. width: 22px;
  535. }
  536. </style>