Skip to content

Commit

Permalink
Remove custom blockquote styling
Browse files Browse the repository at this point in the history
This is causing weird issues where the width of blockquotes gets smaller
on wider screens. I don't particularly want to try to fix it, and I'm
personally fine with the default mdbook styling. I think we can revisit
this later to see if it can be made better.
  • Loading branch information
ehuss committed Jul 25, 2024
1 parent 2e19181 commit 2d08912
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions theme/reference.css
Original file line number Diff line number Diff line change
Expand Up @@ -170,23 +170,6 @@ dfn {
margin-top: 0px;
}

/* Change the default styling of blockquotes. */
blockquote {
padding: 1ex 1em;
margin: 1ex;
margin-left: 2em;
/* vw units allow this to be adaptive to the screen size so it isn't too small on mobile. */
margin-right: 12vw;
}

/* mdbook will wrap the blockquote content in a <p> tag, with a margin. However,
that adds too much space, so remove it.
*/
blockquote > p {
margin-top: 0px;
margin-bottom: 0px;
}

/* When the sidebar is visible, reduce the spacing of rules so that the
content doesn't get shifted too far, and make the text too narrow.
*/
Expand Down

0 comments on commit 2d08912

Please sign in to comment.