From 91b44ad2b87059570362e7f38c71ec6ab37e1a05 Mon Sep 17 00:00:00 2001 From: "pmoreno.rodriguez" Date: Fri, 29 Sep 2023 13:54:51 +0200 Subject: [PATCH] Page-Toc css file added --- assets/sass/grav-plugins/_page-toc.scss | 39 +++++++++++++++++++++++++ assets/sass/main.scss | 6 +++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 assets/sass/grav-plugins/_page-toc.scss 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';