Skip to content

Commit 6bc4dd1

Browse files
committed
Reduce padding and margins for smaller screens
1 parent 387b19b commit 6bc4dd1

File tree

1 file changed

+13
-4
lines changed
  • pep_sphinx_extensions/pep_theme/static

1 file changed

+13
-4
lines changed

pep_sphinx_extensions/pep_theme/static/mq.css

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
@charset "UTF-8";
22
/* Media Queries */
3-
@media (min-width: 0em) {
4-
section#pep-page-section {
5-
padding: .5rem 1rem 0;
3+
@media (max-width: 32.5em) {
4+
/* Reduce padding & margins for the smallest screens */
5+
section#pep-page-section > header > h1 {
6+
padding-right: 0;
7+
border-right: none;
8+
}
9+
ul.breadcrumbs {
10+
padding: 0 0 .5rem;
611
}
712
nav#pep-sidebar {
813
display: none;
914
}
15+
table th,
16+
table td {
17+
padding: 0 0.1rem;
18+
}
1019
}
1120
@media (min-width: 32.5em) {
1221
section#pep-page-section {
1322
max-width: 40em;
1423
width: 100%;
1524
margin: 0 auto;
25+
padding: .5rem 1rem 0;
1626
}
1727
}
1828
@media (min-width: 54em) {
@@ -30,7 +40,6 @@
3040
width: 24%;
3141
float: left;
3242
margin-right: 2%;
33-
display: initial;
3443
}
3544
}
3645
@media (min-width: 60em) {

0 commit comments

Comments
 (0)