mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 20:08:54 +00:00
Page-Toc css file added
This commit is contained in:
parent
910e1a3bb4
commit
91b44ad2b8
2 changed files with 44 additions and 1 deletions
39
assets/sass/grav-plugins/_page-toc.scss
Normal file
39
assets/sass/grav-plugins/_page-toc.scss
Normal 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;
|
||||
}
|
|
@ -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';
|
||||
|
|
Loading…
Add table
Reference in a new issue