Skip to content

Commit

Permalink
Style: Add a bit more padding around content container at narrow widths
Browse files Browse the repository at this point in the history
  • Loading branch information
CAM-Gerlach committed Mar 17, 2022
1 parent f92bd9b commit cb01bd4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 7 additions & 0 deletions pep_sphinx_extensions/pep_theme/static/mq.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

/* Further reduce width of fixed elements for smallest screens */
@media (max-width: 32em) {
section#pep-page-section {
padding: 0.25rem;
}
code {
word-break: break-all;
}
Expand All @@ -18,6 +21,9 @@

/* Reduce padding & margins for smaller screens */
@media (max-width: 36em) {
section#pep-page-section {
padding: 0.5rem;
}
section#pep-page-section > header > h1 {
padding-right: 0;
border-right: none;
Expand Down Expand Up @@ -48,6 +54,7 @@

@media (min-width: 54em) {
section#pep-page-section {
display: table;
max-width: 75em;
}
section#pep-page-section > article {
Expand Down
3 changes: 1 addition & 2 deletions pep_sphinx_extensions/pep_theme/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ body {
background-color: var(--colour-background);
}
section#pep-page-section {
padding: 0.25rem 0.25rem 0;
display: table;
padding: 0.25rem;
}

/* Reduce margin sizes for body text */
Expand Down

0 comments on commit cb01bd4

Please sign in to comment.