Skip to content

Commit

Permalink
margin styles
Browse files Browse the repository at this point in the history
  • Loading branch information
AakashGfude committed Jan 24, 2022
1 parent af82599 commit 4fb5154
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/sphinx_book_theme/assets/styles/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ main.bd-content {
}
}

.margin-caption figcaption {
text-align: left;
}

// Figures
div.figure {
width: 100%;
Expand Down Expand Up @@ -595,7 +599,9 @@ button.toggle-button-hidden:before {
// Need to add a few specifics for `tag_` because these won't have a parent `.sidebar` class
div.sidebar,
div.margin,
aside.margin,
div.margin-caption p.caption,
.margin-caption figcaption,
.cell.tag_popout,
.cell.tag_margin {
width: 40%;
Expand Down Expand Up @@ -627,6 +633,8 @@ div.sidebar:not(.margin) {
div.cell.tag_popout,
div.cell.tag_margin,
div.margin,
aside.margin,
.margin-caption figcaption,
div.margin-caption p.caption {
border: none;
clear: right;
Expand Down
2 changes: 1 addition & 1 deletion src/sphinx_book_theme/assets/styles/_print.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
display: block !important;
}
.tag_popout,
div.margin {
div.margin, aside.margin {
float: none;
margin: 2em 0 2em auto !important;
border: 1px solid #a4a6a7;
Expand Down

0 comments on commit 4fb5154

Please sign in to comment.