8000 Adjust to responsive changes · python/python-docs-theme@dd57722 · GitHub
[go: up one dir, main page]

Skip to content

Commit dd57722

Browse files
committed
Adjust to responsive changes
1 parent 31e888d commit dd57722

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

python_docs_theme/static/pydoctheme.css

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ div.sphinxsidebar ul,
1616
div.sphinxsidebar h3,
1717
div.sphinxsidebar h3 a,
1818
div.sphinxsidebar h4,
19+
.menu a,
20+
.menu p,
21+
.menu ul,
22+
.menu h3,
23+
.menu h3 a,
24+
.menu h4,
1925
table.docutils td,
2026
table.indextable tr.cap,
2127
pre {
@@ -213,6 +219,7 @@ table.docutils td,
213219
table.docutils th {
214220
border: 1px solid #ddd !important;
215221
border-radius: 3px;
222+
padding: 0.3em 0.5em;
216223
}
217224

218225
table p,
@@ -222,12 +229,6 @@ table li {
222229

223230
table.docutils th {
224231
background-color: #eee;
225-
padding: 0.3em 0.5em;
226-
}
227-
228-
table.docutils td {
229-
background-color: white;
230-
padding: 0.3em 0.5em;
231232
}
232233

233234
table.footnote,
@@ -465,6 +466,7 @@ dl > dt span ~ em {
465466
width: 300px;
466467
height: 100%;
467468
background-color: #eee;
469+
color: #444444;
468470
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
469471
overflow-y: auto;
470472
}
@@ -484,7 +486,6 @@ dl > dt span ~ em {
484486
font-size: 1.3em;
485487
}
486488
.menu-wrapper h3 {
487-
color: #444444;
488489
font-size: 1.4em;
489490
}
490491
.menu-wrapper h3 + p,
@@ -493,7 +494,6 @@ dl > dt span ~ em {
493494
}
494495
.menu a {
495496
font-size: smaller;
496-
color: #444444;
497497
text-decoration: none;
498498
}
499499
.menu ul {

python_docs_theme/static/pydoctheme_dark.css

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ div.related {
1717
}
1818

1919
/* SIDEBAR */
20-
div.sphinxsidebar {
20+
div.sphinxsidebar, .menu-wrapper {
2121
background-color: #333;
2222
color: inherit;
2323
}
@@ -112,3 +112,7 @@ div.note {
112112
.note code {
113113
background-color: rgba(255, 255, 255, 0.1);
114114
}
115+
116+
.mobile-nav {
117+
box-shadow: rgba(255, 255, 255, 0.25) 0 0 2px 0;
118+
}

0 commit comments

Comments
 (0)
0