-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into style-guide
- Loading branch information
Showing
14 changed files
with
141 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Styles for docs-like pages without left sidebar | ||
|
||
.td-no-left-sidebar .td-main { | ||
// Hide left sidebar | ||
.td-sidebar { | ||
display: none !important; | ||
} | ||
|
||
// Adjust ToC sidebar, e.g., to fill Bootstrap columns that the left sidebar | ||
// would have taken was using. | ||
.td-sidebar-toc { | ||
@include media-breakpoint-up(md) { | ||
display: block !important; | ||
} | ||
|
||
// Always 2 col wide (unless hidden) | ||
@extend .col-md-2; | ||
|
||
// Don't scroll with the page (otherwise, for short pages, the ToC hides | ||
// behind the top navbar). | ||
position: fixed; | ||
right: 0; | ||
|
||
// Ensure ToC doesn't overlap with the footer | ||
z-index: -1; | ||
} | ||
|
||
// The <main> element sibling of the ToC sidebar | ||
> div > main { | ||
// Always 10 col wide (unless the ToC sidebar is hidden) | ||
@extend .col-md-10; | ||
@extend .col-xl-10; | ||
|
||
@include media-breakpoint-up(md) { | ||
padding-right: 3rem; | ||
} | ||
|
||
@include media-breakpoint-up(lg) { | ||
// Center content on larger screens | ||
|
||
.td-content { | ||
max-width: 80%; | ||
margin-left: auto; | ||
margin-right: auto; | ||
|
||
// Cancel .td-max-width-on-larger-screens | ||
> * { | ||
max-width: 100%; | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters