Skip to content

Commit

Permalink
fixup! Add table of contents to articles (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamkudrna committed Jun 14, 2021
1 parent cfa6720 commit 2cee70d
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions assets/scss/styles/04-components/_table-of-contents.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,15 @@
$_breakpoint: xl;

.table-of-contents {
display: none;

@include breakpoint.up($_breakpoint) {
@include transition.add('visibility, opacity');

position: sticky;
top: 0;
right: 0;
display: block;
visibility: hidden;
opacity: 0;
//visibility: hidden;
//opacity: 0;
width: calc((100vw - #{container.$article-width}) / 2);
height: 0;
padding: spacing.of(2) container.$padding-sm;
Expand All @@ -27,18 +25,18 @@ $_breakpoint: xl;
}

.table-of-contents__list {
@include breakpoint.up($_breakpoint) {
@include typography.style(small);
}
//@include breakpoint.up($_breakpoint) {
@include typography.style(small);
//}
}

.table-of-contents__list .table-of-contents__list {
font-size: inherit;
}

.table-of-contents--active {
@include breakpoint.up($_breakpoint) {
visibility: visible;
opacity: 1;
}
//@include breakpoint.up($_breakpoint) {
// visibility: visible;
// opacity: 1;
//}
}

0 comments on commit 2cee70d

Please sign in to comment.