fix(cyberpunk): fix floating ToC on mobile

pull/852/head
ppoffice 2021-03-19 04:54:54 -04:00
parent 8db2a3c57c
commit 0697bf90f8
No known key found for this signature in database
GPG Key ID: B33335481CC0D498
2 changed files with 35 additions and 29 deletions

View File

@ -27,35 +27,6 @@
.caption .caption
color: $grey color: $grey
/* ---------------------------------
* Table of Content Widget
* --------------------------------- */
+mobile()
#toc
display: none
position: fixed
margin: 1rem
left: 0
right: 0
bottom: 0
z-index: 100
max-height: calc(100vh - 2rem)
overflow-y: auto
#toc-mask
display: none
position: fixed
top: 0
left: 0
right: 0
bottom: 0
z-index: 99
background: rgba(0, 0, 0, .7)
#toc, #toc-mask
&.is-active
display: block
/* --------------------------------- /* ---------------------------------
* Page Loading Progressbar * Page Loading Progressbar
* --------------------------------- */ * --------------------------------- */

View File

@ -28,3 +28,38 @@
.level.is-multiline .level.is-multiline
flex-wrap: wrap flex-wrap: wrap
/* ---------------------------------
* Table of Content Widget
* --------------------------------- */
+mobile()
.widget.card#toc
display: none
position: fixed
margin: 1rem
left: 0
right: 0
bottom: 0
z-index: 100
.card-content
padding: 0
.menu
padding: 1.5rem
max-height: calc(100vh - 2rem)
overflow-y: auto
#toc-mask
display: none
position: fixed
top: 0
left: 0
right: 0
bottom: 0
z-index: 99
background: rgba(0, 0, 0, .7)
.widget.card#toc, #toc-mask
&.is-active
display: block