Skip to content

Commit

Permalink
fix(toc): md/sm styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ariellalgilmore committed Sep 13, 2023
1 parent a0a6a7a commit b4aa738
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -389,9 +389,6 @@ $hover-transition-timing: 95ms;
.#{$prefix}--tableofcontents {
display: block;
}
.#{$prefix}--tableofcontents__mobile {
display: none;
}

&[toc-layout='horizontal'] {
.#{$prefix}--tableofcontents__navbar {
Expand Down Expand Up @@ -437,9 +434,13 @@ $hover-transition-timing: 95ms;
height: $spacing-09;
}

:host(#{$c4d-prefix}-table-of-contents[toc-layout='horizontal'])
.#{$prefix}--tableofcontents__mobile {
margin: 0;
:host(#{$c4d-prefix}-table-of-contents)
.#{$prefix}--tableofcontents-container {
@include breakpoint-down(lg){
position: relative;
overflow: hidden;
height: $spacing-09;
}
}

:host(#{$c4d-prefix}-table-of-contents[toc-layout='horizontal'])
Expand Down

0 comments on commit b4aa738

Please sign in to comment.