mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 03:35:51 +00:00
Make table of contents collapse on mobile
This commit is contained in:
@@ -385,7 +385,7 @@ $columns: 12; // Number of columns in the grid system
|
||||
|
||||
#page-toc-wrapper {
|
||||
position: static;
|
||||
display: block;
|
||||
// display: block;
|
||||
clear: both;
|
||||
overflow-y: inherit;
|
||||
max-width: 100%;
|
||||
|
||||
@@ -111,6 +111,11 @@ aside .active-parent > a {
|
||||
.right-sidebar {
|
||||
padding: 44px 0 24px 48px;
|
||||
|
||||
@include media-breakpoint-down(md) {
|
||||
padding: 1.5rem;
|
||||
border: 1px solid $gray-600;
|
||||
}
|
||||
|
||||
.toc-header {
|
||||
font-weight: bold;
|
||||
font-size: 14px;
|
||||
|
||||
@@ -541,7 +541,8 @@ a {
|
||||
background-color: $blue-purple-400;
|
||||
transition: all .2s ease;
|
||||
border: none;
|
||||
|
||||
}
|
||||
&:not(.expander) span {
|
||||
&:first-of-type {
|
||||
left: 0;
|
||||
transform: rotate(45deg);
|
||||
@@ -562,7 +563,8 @@ a {
|
||||
}
|
||||
}
|
||||
|
||||
.dropdown.show .chevron {
|
||||
.dropdown.show .chevron,
|
||||
.expander:not(.collapsed) .chevron {
|
||||
span:first-of-type {
|
||||
transform: rotate(-45deg);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user