Rob Drew
6 years ago
10 changed files with 242 additions and 8 deletions
File diff suppressed because one or more lines are too long
@ -0,0 +1,61 @@
|
||||
//@format |
||||
.toc { |
||||
position: -webkit-sticky; /* Safari */ |
||||
position: sticky; |
||||
top: 0; |
||||
} |
||||
.toc-block--mobile { |
||||
@include breakpoint($desktop-up) { |
||||
display: none; |
||||
} |
||||
} |
||||
|
||||
.toc-block--wide { |
||||
.toc--title { |
||||
&[aria-expanded='true'] h2::after { |
||||
//content: "\f146";//square |
||||
content: '\f068'; |
||||
} |
||||
&[aria-expanded='false'] h2::after { |
||||
//content: "\f0fe"; |
||||
content: '\f067'; |
||||
} |
||||
h2::after { |
||||
font-family: 'FontAwesome'; |
||||
position: absolute; |
||||
//top: 6px; |
||||
right: 0; |
||||
font-weight: 400; |
||||
line-height: 20px; |
||||
font-size: 2rem; |
||||
background: #ccc; |
||||
padding: 10px; |
||||
//text-align: right; |
||||
} |
||||
h2 { |
||||
border: 1px dotted #ccc; |
||||
padding: 0px; |
||||
padding-left: 10px; |
||||
line-height: 40px; |
||||
margin-bottom: 0px; |
||||
background: #f5f3f3; |
||||
} |
||||
} |
||||
.toc--list { |
||||
border: 1px dotted #ccc; |
||||
border-top: 0px; |
||||
} |
||||
} |
||||
|
||||
.region-sidebar-second { |
||||
height: 1000px; |
||||
} |
||||
.toc-block--wide { |
||||
position: -webkit-sticky; /* Safari */ |
||||
position: sticky; |
||||
top: 300px; |
||||
display: none; |
||||
@include breakpoint($desktop-up) { |
||||
display: block; |
||||
} |
||||
} |
@ -0,0 +1,7 @@
|
||||
$mobile-only: 0px 767px; |
||||
$tablet-only: 768px 991px; |
||||
$tablet-up: 768px; |
||||
$desktop-up: 992px; |
||||
$desktop-only: 992px 1199px; |
||||
$wide-up: 1200px; |
||||
|
Loading…
Reference in new issue