diff --git a/include/style/plugin.styl b/include/style/plugin.styl index fbeace4..e85f781 100644 --- a/include/style/plugin.styl +++ b/include/style/plugin.styl @@ -27,35 +27,6 @@ .caption 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 * --------------------------------- */ diff --git a/include/style/widget.styl b/include/style/widget.styl index 0e900f8..b97231f 100644 --- a/include/style/widget.styl +++ b/include/style/widget.styl @@ -28,3 +28,38 @@ .level.is-multiline 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 \ No newline at end of file