diff --git a/assets/sass/grav-plugins/_page-toc.scss b/assets/sass/grav-plugins/_page-toc.scss new file mode 100644 index 0000000..43c12bc --- /dev/null +++ b/assets/sass/grav-plugins/_page-toc.scss @@ -0,0 +1,39 @@ +/* +Future2021 +Grav Theme by Pedro Moreno + +CSS Styles for Page Toc Plugin +*/ + +.page-toc { + + margin-bottom: 2.5em; + + a { + color: inherit; + text-decoration: none; + } + + ul { + list-style: none; + font-family: _font(family-heading); + font-size: 1em; + padding: 0.5em 0 0 0; + margin: 0em; + line-height: 2.3em; + + li { + padding-left: 0.5em; + font-size: 0.9em; + } + + } + +} + +.page-toc-sticky { + height: 25vh; + position: -webkit-sticky; + position: sticky; + top: 3.5em; +} \ No newline at end of file diff --git a/assets/sass/main.scss b/assets/sass/main.scss index 71fad75..5af35c5 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -62,4 +62,8 @@ @import 'layout/sidebar'; @import 'layout/intro'; @import 'layout/footer'; - @import 'layout/menu'; \ No newline at end of file + @import 'layout/menu'; + +// Grav Plugins. + + @import 'grav-plugins/page-toc.scss';