Page-Toc css file added

This commit is contained in:
pmoreno.rodriguez 2023-09-29 13:54:51 +02:00
parent 910e1a3bb4
commit 91b44ad2b8
2 changed files with 44 additions and 1 deletions

View file

@ -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;
}

View file

@ -62,4 +62,8 @@
@import 'layout/sidebar';
@import 'layout/intro';
@import 'layout/footer';
@import 'layout/menu';
@import 'layout/menu';
// Grav Plugins.
@import 'grav-plugins/page-toc.scss';