You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

659 lines
23 KiB

  1. <template lang="pug">
  2. v-app(v-scroll='upBtnScroll', :dark='$vuetify.theme.dark', :class='$vuetify.rtl ? `is-rtl` : `is-ltr`')
  3. nav-header(v-if='!printView')
  4. v-navigation-drawer(
  5. v-if='navMode !== `NONE` && !printView'
  6. :class='$vuetify.theme.dark ? `grey darken-4-d4` : `primary`'
  7. dark
  8. app
  9. clipped
  10. mobile-breakpoint='600'
  11. :temporary='$vuetify.breakpoint.smAndDown'
  12. v-model='navShown'
  13. :right='$vuetify.rtl'
  14. )
  15. vue-scroll(:ops='scrollStyle')
  16. nav-sidebar(:color='$vuetify.theme.dark ? `grey darken-4-d4` : `primary`', :items='sidebarDecoded', :nav-mode='navMode')
  17. v-fab-transition(v-if='navMode !== `NONE`')
  18. v-btn(
  19. fab
  20. color='primary'
  21. fixed
  22. bottom
  23. :right='$vuetify.rtl'
  24. :left='!$vuetify.rtl'
  25. small
  26. @click='navShown = !navShown'
  27. v-if='$vuetify.breakpoint.mdAndDown'
  28. v-show='!navShown'
  29. )
  30. v-icon mdi-menu
  31. v-main(ref='content')
  32. template(v-if='path !== `home`')
  33. v-toolbar(:color='$vuetify.theme.dark ? `grey darken-4-d3` : `grey lighten-3`', flat, dense, v-if='$vuetify.breakpoint.smAndUp')
  34. //- v-btn.pl-0(v-if='$vuetify.breakpoint.xsOnly', flat, @click='toggleNavigation')
  35. //- v-icon(color='grey darken-2', left) menu
  36. //- span Navigation
  37. v-breadcrumbs.breadcrumbs-nav.pl-0(
  38. :items='breadcrumbs'
  39. divider='/'
  40. )
  41. template(slot='item', slot-scope='props')
  42. v-icon(v-if='props.item.path === "/"', small, @click='goHome') mdi-home
  43. v-btn.ma-0(v-else, :href='props.item.path', small, text) {{props.item.name}}
  44. template(v-if='!isPublished')
  45. v-spacer
  46. .caption.red--text {{$t('common:page.unpublished')}}
  47. status-indicator.ml-3(negative, pulse)
  48. v-divider
  49. v-container.grey.pa-0(fluid, :class='$vuetify.theme.dark ? `darken-4-l3` : `lighten-4`')
  50. v-row(no-gutters, align-content='center', style='height: 90px;')
  51. v-col.page-col-content.is-page-header(offset-xl='2', offset-lg='3', style='margin-top: auto; margin-bottom: auto;', :class='$vuetify.rtl ? `pr-4` : `pl-4`')
  52. .headline.grey--text(:class='$vuetify.theme.dark ? `text--lighten-2` : `text--darken-3`') {{title}}
  53. .caption.grey--text.text--darken-1 {{description}}
  54. v-divider
  55. v-container.pl-5.pt-4(fluid, grid-list-xl)
  56. v-layout(row)
  57. v-flex.page-col-sd(lg3, xl2, v-if='$vuetify.breakpoint.lgAndUp')
  58. v-card.mb-5(v-if='tocDecoded.length')
  59. .overline.pa-5.pb-0(:class='$vuetify.theme.dark ? `blue--text text--lighten-2` : `primary--text`') {{$t('common:page.toc')}}
  60. v-list.pb-3(dense, nav, :class='$vuetify.theme.dark ? `darken-3-d3` : ``')
  61. template(v-for='(tocItem, tocIdx) in tocDecoded')
  62. v-list-item(@click='$vuetify.goTo(tocItem.anchor, scrollOpts)')
  63. v-icon(color='grey', small) {{ $vuetify.rtl ? `mdi-chevron-left` : `mdi-chevron-right` }}
  64. v-list-item-title.px-3 {{tocItem.title}}
  65. //- v-divider(v-if='tocIdx < toc.length - 1 || tocItem.children.length')
  66. template(v-for='tocSubItem in tocItem.children')
  67. v-list-item(@click='$vuetify.goTo(tocSubItem.anchor, scrollOpts)')
  68. v-icon.px-3(color='grey lighten-1', small) {{ $vuetify.rtl ? `mdi-chevron-left` : `mdi-chevron-right` }}
  69. v-list-item-title.px-3.caption.grey--text(:class='$vuetify.theme.dark ? `text--lighten-1` : `text--darken-1`') {{tocSubItem.title}}
  70. //- v-divider(inset, v-if='tocIdx < toc.length - 1')
  71. v-card.mb-5(v-if='tags.length > 0')
  72. .pa-5
  73. .overline.teal--text.pb-2(:class='$vuetify.theme.dark ? `text--lighten-3` : ``') {{$t('common:page.tags')}}
  74. v-chip.mr-1.mb-1(
  75. label
  76. :color='$vuetify.theme.dark ? `teal darken-1` : `teal lighten-5`'
  77. v-for='(tag, idx) in tags'
  78. :href='`/t/` + tag.tag'
  79. :key='`tag-` + tag.tag'
  80. )
  81. v-icon(:color='$vuetify.theme.dark ? `teal lighten-3` : `teal`', left, small) mdi-tag
  82. span(:class='$vuetify.theme.dark ? `teal--text text--lighten-5` : `teal--text text--darken-2`') {{tag.title}}
  83. v-chip.mr-1.mb-1(
  84. label
  85. :color='$vuetify.theme.dark ? `teal darken-1` : `teal lighten-5`'
  86. :href='`/t/` + tags.map(t => t.tag).join(`/`)'
  87. :aria-label='$t(`common:page.tagsMatching`)'
  88. )
  89. v-icon(:color='$vuetify.theme.dark ? `teal lighten-3` : `teal`', size='20') mdi-tag-multiple
  90. v-card.mb-5(v-if='commentsEnabled && commentsPerms.read')
  91. .pa-5
  92. .overline.pb-2.blue-grey--text.d-flex.align-center(:class='$vuetify.theme.dark ? `text--lighten-3` : `text--darken-2`')
  93. span {{$t('common:comments.sdTitle')}}
  94. //- v-spacer
  95. //- v-chip.text-center(
  96. //- v-if='!commentsExternal'
  97. //- label
  98. //- x-small
  99. //- :color='$vuetify.theme.dark ? `blue-grey darken-3` : `blue-grey darken-2`'
  100. //- dark
  101. //- style='min-width: 50px; justify-content: center;'
  102. //- )
  103. //- span {{commentsCount}}
  104. .d-flex
  105. v-btn.text-none(
  106. @click='goToComments()'
  107. :color='$vuetify.theme.dark ? `blue-grey` : `blue-grey darken-2`'
  108. outlined
  109. style='flex: 1 1 100%;'
  110. small
  111. )
  112. span.blue-grey--text(:class='$vuetify.theme.dark ? `text--lighten-1` : `text--darken-2`') {{$t('common:comments.viewDiscussion')}}
  113. v-tooltip(right, v-if='commentsPerms.write')
  114. template(v-slot:activator='{ on }')
  115. v-btn.ml-2(
  116. @click='goToComments(true)'
  117. v-on='on'
  118. outlined
  119. small
  120. :color='$vuetify.theme.dark ? `blue-grey` : `blue-grey darken-2`'
  121. :aria-label='$t(`common:comments.newComment`)'
  122. )
  123. v-icon(:color='$vuetify.theme.dark ? `blue-grey lighten-1` : `blue-grey darken-2`', dense) mdi-comment-plus
  124. span {{$t('common:comments.newComment')}}
  125. v-card.mb-5
  126. .pa-5
  127. .overline.indigo--text.d-flex(:class='$vuetify.theme.dark ? `text--lighten-3` : ``')
  128. span {{$t('common:page.lastEditedBy')}}
  129. v-spacer
  130. v-tooltip(right, v-if='isAuthenticated')
  131. template(v-slot:activator='{ on }')
  132. v-btn.btn-animate-edit(
  133. icon
  134. :href='"/h/" + locale + "/" + path'
  135. v-on='on'
  136. x-small
  137. v-if='hasReadHistoryPermission'
  138. :aria-label='$t(`common:header.history`)'
  139. )
  140. v-icon(color='indigo', dense) mdi-history
  141. span {{$t('common:header.history')}}
  142. .body-2.grey--text(:class='$vuetify.theme.dark ? `` : `text--darken-3`') {{ authorName }}
  143. .caption.grey--text.text--darken-1 {{ updatedAt | moment('calendar') }}
  144. //- v-card.mb-5
  145. //- .pa-5
  146. //- .overline.pb-2.yellow--text(:class='$vuetify.theme.dark ? `text--darken-3` : `text--darken-4`') Rating
  147. //- .text-center
  148. //- v-rating(
  149. //- v-model='rating'
  150. //- color='yellow darken-3'
  151. //- background-color='grey lighten-1'
  152. //- half-increments
  153. //- hover
  154. //- )
  155. //- .caption.grey--text 5 votes
  156. v-card(flat)
  157. v-toolbar(:color='$vuetify.theme.dark ? `grey darken-4-d3` : `grey lighten-3`', flat, dense)
  158. v-spacer
  159. v-tooltip(bottom)
  160. template(v-slot:activator='{ on }')
  161. v-btn(icon, tile, v-on='on', :aria-label='$t(`common:page.bookmark`)'): v-icon(color='grey') mdi-bookmark
  162. span {{$t('common:page.bookmark')}}
  163. v-menu(offset-y, bottom, min-width='300')
  164. template(v-slot:activator='{ on: menu }')
  165. v-tooltip(bottom)
  166. template(v-slot:activator='{ on: tooltip }')
  167. v-btn(icon, tile, v-on='{ ...menu, ...tooltip }', :aria-label='$t(`common:page.share`)'): v-icon(color='grey') mdi-share-variant
  168. span {{$t('common:page.share')}}
  169. social-sharing(
  170. :url='pageUrl'
  171. :title='title'
  172. :description='description'
  173. )
  174. v-tooltip(bottom)
  175. template(v-slot:activator='{ on }')
  176. v-btn(icon, tile, v-on='on', @click='print', :aria-label='$t(`common:page.printFormat`)')
  177. v-icon(:color='printView ? `primary` : `grey`') mdi-printer
  178. span {{$t('common:page.printFormat')}}
  179. v-spacer
  180. v-flex.page-col-content(xs12, lg9, xl10)
  181. v-tooltip(:right='$vuetify.rtl', :left='!$vuetify.rtl', v-if='hasAnyPagePermissions')
  182. template(v-slot:activator='{ on: onEditActivator }')
  183. v-speed-dial(
  184. v-model='pageEditFab'
  185. direction='top'
  186. open-on-hover
  187. transition='scale-transition'
  188. bottom
  189. :right='!$vuetify.rtl'
  190. :left='$vuetify.rtl'
  191. fixed
  192. dark
  193. )
  194. template(v-slot:activator)
  195. v-btn.btn-animate-edit(
  196. fab
  197. color='primary'
  198. v-model='pageEditFab'
  199. @click='pageEdit'
  200. v-on='onEditActivator'
  201. :disabled='!hasWritePagesPermission'
  202. :aria-label='$t(`common:page.editPage`)'
  203. )
  204. v-icon mdi-pencil
  205. v-tooltip(:right='$vuetify.rtl', :left='!$vuetify.rtl', v-if='hasReadHistoryPermission')
  206. template(v-slot:activator='{ on }')
  207. v-btn(
  208. fab
  209. small
  210. color='white'
  211. light
  212. v-on='on'
  213. @click='pageHistory'
  214. )
  215. v-icon(size='20') mdi-history
  216. span {{$t('common:header.history')}}
  217. v-tooltip(:right='$vuetify.rtl', :left='!$vuetify.rtl', v-if='hasReadSourcePermission')
  218. template(v-slot:activator='{ on }')
  219. v-btn(
  220. fab
  221. small
  222. color='white'
  223. light
  224. v-on='on'
  225. @click='pageSource'
  226. )
  227. v-icon(size='20') mdi-code-tags
  228. span {{$t('common:header.viewSource')}}
  229. v-tooltip(:right='$vuetify.rtl', :left='!$vuetify.rtl', v-if='hasWritePagesPermission')
  230. template(v-slot:activator='{ on }')
  231. v-btn(
  232. fab
  233. small
  234. color='white'
  235. light
  236. v-on='on'
  237. @click='pageDuplicate'
  238. )
  239. v-icon(size='20') mdi-content-duplicate
  240. span {{$t('common:header.duplicate')}}
  241. v-tooltip(:right='$vuetify.rtl', :left='!$vuetify.rtl', v-if='hasManagePagesPermission')
  242. template(v-slot:activator='{ on }')
  243. v-btn(
  244. fab
  245. small
  246. color='white'
  247. light
  248. v-on='on'
  249. @click='pageMove'
  250. )
  251. v-icon(size='20') mdi-content-save-move-outline
  252. span {{$t('common:header.move')}}
  253. v-tooltip(:right='$vuetify.rtl', :left='!$vuetify.rtl', v-if='hasDeletePagesPermission')
  254. template(v-slot:activator='{ on }')
  255. v-btn(
  256. fab
  257. dark
  258. small
  259. color='red'
  260. v-on='on'
  261. @click='pageDelete'
  262. )
  263. v-icon(size='20') mdi-trash-can-outline
  264. span {{$t('common:header.delete')}}
  265. span {{$t('common:page.editPage')}}
  266. v-alert.mb-5(v-if='!isPublished', color='red', outlined, icon='mdi-minus-circle', dense)
  267. .caption {{$t('common:page.unpublishedWarning')}}
  268. .contents(ref='container')
  269. slot(name='contents')
  270. .comments-container#discussion(v-if='commentsEnabled && commentsPerms.read && !printView')
  271. .comments-header
  272. v-icon.mr-2(dark) mdi-comment-text-outline
  273. span {{$t('common:comments.title')}}
  274. .comments-main
  275. slot(name='comments')
  276. nav-footer
  277. notify
  278. search-results
  279. v-fab-transition
  280. v-btn(
  281. v-if='upBtnShown'
  282. fab
  283. fixed
  284. bottom
  285. :right='$vuetify.rtl'
  286. :left='!$vuetify.rtl'
  287. small
  288. :depressed='this.$vuetify.breakpoint.mdAndUp'
  289. @click='$vuetify.goTo(0, scrollOpts)'
  290. color='primary'
  291. dark
  292. :style='upBtnPosition'
  293. :aria-label='$t(`common:actions.returnToTop`)'
  294. )
  295. v-icon mdi-arrow-up
  296. </template>
  297. <script>
  298. import { StatusIndicator } from 'vue-status-indicator'
  299. import Tabset from './tabset.vue'
  300. import NavSidebar from './nav-sidebar.vue'
  301. import Prism from 'prismjs'
  302. import mermaid from 'mermaid'
  303. import { get, sync } from 'vuex-pathify'
  304. import _ from 'lodash'
  305. import ClipboardJS from 'clipboard'
  306. import Vue from 'vue'
  307. Vue.component('tabset', Tabset)
  308. Prism.plugins.autoloader.languages_path = '/_assets/js/prism/'
  309. Prism.plugins.NormalizeWhitespace.setDefaults({
  310. 'remove-trailing': true,
  311. 'remove-indent': true,
  312. 'left-trim': true,
  313. 'right-trim': true,
  314. 'remove-initial-line-feed': true,
  315. 'tabs-to-spaces': 2
  316. })
  317. Prism.plugins.toolbar.registerButton('copy-to-clipboard', (env) => {
  318. let linkCopy = document.createElement('button')
  319. linkCopy.textContent = 'Copy'
  320. const clip = new ClipboardJS(linkCopy, {
  321. text: () => { return env.code }
  322. })
  323. clip.on('success', () => {
  324. linkCopy.textContent = 'Copied!'
  325. resetClipboardText()
  326. })
  327. clip.on('error', () => {
  328. linkCopy.textContent = 'Press Ctrl+C to copy'
  329. resetClipboardText()
  330. })
  331. return linkCopy
  332. function resetClipboardText() {
  333. setTimeout(() => {
  334. linkCopy.textContent = 'Copy'
  335. }, 5000)
  336. }
  337. })
  338. export default {
  339. components: {
  340. NavSidebar,
  341. StatusIndicator
  342. },
  343. props: {
  344. pageId: {
  345. type: Number,
  346. default: 0
  347. },
  348. locale: {
  349. type: String,
  350. default: 'en'
  351. },
  352. path: {
  353. type: String,
  354. default: 'home'
  355. },
  356. title: {
  357. type: String,
  358. default: 'Untitled Page'
  359. },
  360. description: {
  361. type: String,
  362. default: ''
  363. },
  364. createdAt: {
  365. type: String,
  366. default: ''
  367. },
  368. updatedAt: {
  369. type: String,
  370. default: ''
  371. },
  372. tags: {
  373. type: Array,
  374. default: () => ([])
  375. },
  376. authorName: {
  377. type: String,
  378. default: 'Unknown'
  379. },
  380. authorId: {
  381. type: Number,
  382. default: 0
  383. },
  384. isPublished: {
  385. type: Boolean,
  386. default: false
  387. },
  388. toc: {
  389. type: String,
  390. default: ''
  391. },
  392. sidebar: {
  393. type: String,
  394. default: ''
  395. },
  396. navMode: {
  397. type: String,
  398. default: 'MIXED'
  399. },
  400. commentsEnabled: {
  401. type: Boolean,
  402. default: false
  403. },
  404. effectivePermissions: {
  405. type: String,
  406. default: ''
  407. },
  408. commentsExternal: {
  409. type: Boolean,
  410. default: false
  411. }
  412. },
  413. data() {
  414. return {
  415. navShown: false,
  416. navExpanded: false,
  417. upBtnShown: false,
  418. pageEditFab: false,
  419. scrollOpts: {
  420. duration: 1500,
  421. offset: 0,
  422. easing: 'easeInOutCubic'
  423. },
  424. scrollStyle: {
  425. vuescroll: {},
  426. scrollPanel: {
  427. initialScrollX: 0.01, // fix scrollbar not disappearing on load
  428. scrollingX: false,
  429. speed: 50
  430. },
  431. rail: {
  432. gutterOfEnds: '2px'
  433. },
  434. bar: {
  435. onlyShowBarOnScroll: false,
  436. background: '#42A5F5',
  437. hoverStyle: {
  438. background: '#64B5F6'
  439. }
  440. }
  441. },
  442. winWidth: 0
  443. }
  444. },
  445. computed: {
  446. isAuthenticated: get('user/authenticated'),
  447. commentsCount: get('page/commentsCount'),
  448. commentsPerms: get('page/effectivePermissions@comments'),
  449. rating: {
  450. get () {
  451. return 3.5
  452. },
  453. set (val) {
  454. }
  455. },
  456. breadcrumbs() {
  457. return [{ path: '/', name: 'Home' }].concat(_.reduce(this.path.split('/'), (result, value, key) => {
  458. result.push({
  459. path: _.get(_.last(result), 'path', `/${this.locale}`) + `/${value}`,
  460. name: value
  461. })
  462. return result
  463. }, []))
  464. },
  465. pageUrl () { return window.location.href },
  466. upBtnPosition () {
  467. if (this.$vuetify.breakpoint.mdAndUp) {
  468. return this.$vuetify.rtl ? `right: 235px;` : `left: 235px;`
  469. } else {
  470. return this.$vuetify.rtl ? `right: 65px;` : `left: 65px;`
  471. }
  472. },
  473. sidebarDecoded () {
  474. return JSON.parse(Buffer.from(this.sidebar, 'base64').toString())
  475. },
  476. tocDecoded () {
  477. return JSON.parse(Buffer.from(this.toc, 'base64').toString())
  478. },
  479. hasAdminPermission: get('page/effectivePermissions@system.manage'),
  480. hasWritePagesPermission: get('page/effectivePermissions@pages.write'),
  481. hasManagePagesPermission: get('page/effectivePermissions@pages.manage'),
  482. hasDeletePagesPermission: get('page/effectivePermissions@pages.delete'),
  483. hasReadSourcePermission: get('page/effectivePermissions@source.read'),
  484. hasReadHistoryPermission: get('page/effectivePermissions@history.read'),
  485. hasAnyPagePermissions () {
  486. return this.hasAdminPermission || this.hasWritePagesPermission || this.hasManagePagesPermission ||
  487. this.hasDeletePagesPermission || this.hasReadSourcePermission || this.hasReadHistoryPermission
  488. },
  489. printView: sync('site/printView')
  490. },
  491. created() {
  492. this.$store.set('page/authorId', this.authorId)
  493. this.$store.set('page/authorName', this.authorName)
  494. this.$store.set('page/createdAt', this.createdAt)
  495. this.$store.set('page/description', this.description)
  496. this.$store.set('page/isPublished', this.isPublished)
  497. this.$store.set('page/id', this.pageId)
  498. this.$store.set('page/locale', this.locale)
  499. this.$store.set('page/path', this.path)
  500. this.$store.set('page/tags', this.tags)
  501. this.$store.set('page/title', this.title)
  502. this.$store.set('page/updatedAt', this.updatedAt)
  503. if (this.effectivePermissions) {
  504. this.$store.set('page/effectivePermissions', JSON.parse(Buffer.from(this.effectivePermissions, 'base64').toString()))
  505. }
  506. this.$store.set('page/mode', 'view')
  507. },
  508. mounted () {
  509. if (this.$vuetify.theme.dark) {
  510. this.scrollStyle.bar.background = '#424242'
  511. }
  512. // -> Check side navigation visibility
  513. this.handleSideNavVisibility()
  514. window.addEventListener('resize', _.debounce(() => {
  515. this.handleSideNavVisibility()
  516. }, 500))
  517. // -> Highlight Code Blocks
  518. Prism.highlightAllUnder(this.$refs.container)
  519. // -> Render Mermaid diagrams
  520. mermaid.mermaidAPI.initialize({
  521. startOnLoad: true,
  522. theme: this.$vuetify.theme.dark ? `dark` : `default`
  523. })
  524. // -> Handle anchor scrolling
  525. if (window.location.hash && window.location.hash.length > 1) {
  526. if (document.readyState === 'complete') {
  527. this.$nextTick(() => {
  528. this.$vuetify.goTo(window.location.hash, this.scrollOpts)
  529. })
  530. } else {
  531. window.addEventListener('load', () => {
  532. this.$vuetify.goTo(window.location.hash, this.scrollOpts)
  533. })
  534. }
  535. }
  536. // -> Handle anchor links within the page contents
  537. this.$nextTick(() => {
  538. this.$refs.container.querySelectorAll(`a[href^="#"], a[href^="${window.location.href.replace(window.location.hash, '')}#"]`).forEach(el => {
  539. el.onclick = ev => {
  540. ev.preventDefault()
  541. ev.stopPropagation()
  542. this.$vuetify.goTo(decodeURIComponent(ev.target.hash), this.scrollOpts)
  543. }
  544. })
  545. })
  546. },
  547. methods: {
  548. goHome () {
  549. window.location.assign('/')
  550. },
  551. toggleNavigation () {
  552. this.navOpen = !this.navOpen
  553. },
  554. upBtnScroll () {
  555. const scrollOffset = window.pageYOffset || document.documentElement.scrollTop
  556. this.upBtnShown = scrollOffset > window.innerHeight * 0.33
  557. },
  558. print () {
  559. if (this.printView) {
  560. this.printView = false
  561. } else {
  562. this.printView = true
  563. this.$nextTick(() => {
  564. window.print()
  565. })
  566. }
  567. },
  568. pageEdit () {
  569. this.$root.$emit('pageEdit')
  570. },
  571. pageHistory () {
  572. this.$root.$emit('pageHistory')
  573. },
  574. pageSource () {
  575. this.$root.$emit('pageSource')
  576. },
  577. pageDuplicate () {
  578. this.$root.$emit('pageDuplicate')
  579. },
  580. pageMove () {
  581. this.$root.$emit('pageMove')
  582. },
  583. pageDelete () {
  584. this.$root.$emit('pageDelete')
  585. },
  586. handleSideNavVisibility () {
  587. if (window.innerWidth === this.winWidth) { return }
  588. this.winWidth = window.innerWidth
  589. if (this.$vuetify.breakpoint.mdAndUp) {
  590. this.navShown = true
  591. } else {
  592. this.navShown = false
  593. }
  594. },
  595. goToComments (focusNewComment = false) {
  596. this.$vuetify.goTo('#discussion', this.scrollOpts)
  597. if (focusNewComment) {
  598. document.querySelector('#discussion-new').focus()
  599. }
  600. }
  601. }
  602. }
  603. </script>
  604. <style lang="scss">
  605. .breadcrumbs-nav {
  606. .v-btn {
  607. min-width: 0;
  608. &__content {
  609. text-transform: none;
  610. }
  611. }
  612. .v-breadcrumbs__divider:nth-child(2n) {
  613. padding: 0 6px;
  614. }
  615. .v-breadcrumbs__divider:nth-child(2) {
  616. padding: 0 6px 0 12px;
  617. }
  618. }
  619. .page-col-sd {
  620. margin-top: -90px;
  621. align-self: flex-start;
  622. position: sticky;
  623. top: 64px;
  624. max-height: calc(100vh - 64px);
  625. overflow-y: auto;
  626. -ms-overflow-style: none;
  627. }
  628. .page-col-sd::-webkit-scrollbar {
  629. display: none;
  630. }
  631. </style>