@ -76,52 +76,126 @@ Custom SCSS for the Matrix spec
scroll-behavior : smooth ;
overscroll-behavior : contain ;
& > . td-sidebar-nav__section {
& > . td-sidebar-nav__section {
margin-top : 1 rem ;
}
. td-sidebar-nav__section . ul-1 ul {
padding-left : 0 ;
}
. ul-1 ul {
padding-left : 0 ;
}
/ * This is to make the width of the items that have sub-items ( like room versions )
the same as the width of items that don ' t (like changelog) */
. pr-md-3 , . px-md-3 {
padding-right : 0 !important ;
}
/ * This is to make the width of the items that have sub-items ( like room versions )
the same as the width of items that don ' t (like changelog) */
. pr-md-3 , . px-md-3 {
padding-right : 0 !important ;
}
. ul-1 > li > a {
padding-left : 1 rem !important ;
}
. ul-1 > li > a {
padding-left : 1 rem !important ;
}
. ul-2 > li > a {
padding-left : 2 rem !important ;
. ul-2 > li > a {
padding-left : 2 rem !important ;
}
}
a . td-sidebar-link . tree-root {
color : $gray-800 ;
font-weight : $font-weight-bold ;
font-size : 1 .3 rem ;
margin-bottom : 0 ;
border-bottom : none ;
}
/* Styles for the table of contents */
& > . td-toc {
padding-top : 1 rem ;
padding-left : 1 .5 rem ;
/* Add border above the toc */
border-top : 1 px solid var ( -- bs-tertiary-color ) ;
a , a . td-sidebar-link {
color : $gray-800 ;
font-weight : $font-weight-normal ;
padding-top : .2 rem ;
padding-bottom : .2 rem ;
ol {
padding-left : 1 rem ;
counter-reset : section ;
list-style-type : none ;
}
display : block ;
transition : all 100 ms ease-in-out ;
# TableOfContents {
/* Remove the space between the title and the ToC */
margin-top : 0 ;
& : hover {
background-color : $secondary-lighter-background ;
& > ol > li {
margin-bottom : .5 rem ;
& > a {
font-weight : $font-weight-bold ;
}
}
ol {
padding-left : 0 ;
}
& > ol > li > a {
padding-left : 1 rem ;
}
& > ol > li > ol > li > a {
padding-left : 2 rem ;
}
& > ol > li > ol > li > ol > li > a {
padding-left : 3 rem ;
}
& > ol > li > ol > li > ol > li > ol > li > a {
padding-left : 4 rem ;
}
& > ol > li > ol > li > ol > li > ol > li > ol > li > a {
padding-left : 5 rem ;
}
}
li a : before {
counter-increment : section ;
content : counters ( section , " . " ) " " ;
}
. td-toc-title {
font-weight : $font-weight-bold ;
font-size : 1 .3 rem ;
/* Remove the border under the title */
border-bottom : 0 ;
/* Remove the space under the title */
margin-bottom : 0 ;
/* Fix the top of page link color */
a , a : hover {
color : $secondary ;
}
}
}
/* Apply the same style to links in the navigation and in the ToC */
& > . td-sidebar-nav__section , & > . td-toc # TableOfContents {
li a . td-sidebar-link . tree-root {
color : $gray-800 ;
font-weight : $font-weight-bold ;
font-size : 1 .3 rem ;
margin-bottom : 0 ;
border-bottom : none ;
}
& . active , & active : hover {
background-color : $secondary-background ;
li a , li a . td-sidebar-link {
color : $gray-800 ;
font-weight : $font-weight-normal ;
padding-top : .2 rem ;
padding-bottom : .2 rem ;
transition : all 100 ms ease-in-out ;
& : hover {
background-color : $secondary-lighter-background ;
color : $gray-800 ;
}
& . active , & active : hover {
background-color : $secondary-background ;
}
}
}
}
@ -199,64 +273,6 @@ Custom SCSS for the Matrix spec
scroll-margin-top : 5 .5 rem ;
}
/* Styles for the table of contents */
# toc {
padding-top : .5 rem ;
padding-left : 1 .5 rem ;
ol {
padding-left : 1 rem ;
counter-reset : section ;
list-style-type : none ;
}
# TableOfContents {
& > ol > li {
margin-bottom : .5 rem ;
& > a {
font-weight : $font-weight-bold ;
}
}
ol {
padding-left : 0 ;
}
& > ol > li > a {
padding-left : 1 rem ;
}
& > ol > li > ol > li > a {
padding-left : 2 rem ;
}
& > ol > li > ol > li > ol > li > a {
padding-left : 3 rem ;
}
& > ol > li > ol > li > ol > li > ol > li > a {
padding-left : 4 rem ;
}
& > ol > li > ol > li > ol > li > ol > li > ol > li > a {
padding-left : 5 rem ;
}
}
li a : before {
counter-increment : section ;
content : counters ( section , " . " ) " " ;
}
# toc-title {
font-weight : $font-weight-bold ;
font-size : 1 .3 rem ;
}
}
. endpoints-toc {
summary {
cursor : pointer ;