Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 241ee51

Browse files
Various minor layout fixes
Prevent component overlap, fix progress bar rendering gap, fix css bug, assorted minor whitespace fixes
1 parent ae98363 commit 241ee51

2 files changed

Lines changed: 29 additions & 15 deletions

File tree

runestone/common/css/runestone-custom-sphinx-bootstrap.css

Lines changed: 27 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ a {
194194
/* Remove top padding when top navbar goes collapsed in narrow viewports */
195195
body {
196196
padding-top: 0;
197-
margin: auto auto auto 5px;
198197
}
199198

200199
.navbar-fixed-top {
@@ -204,12 +203,15 @@ a {
204203
}
205204

206205
@media (min-width: 768px) {
207-
208206
/* when navbar is collapsed we don't want any vertical dividers taking up space */
209207
.navbar .divider-vertical {
210208
margin: 0 3px;
211209
border-left: 1px solid #f2f2f2;
212210
}
211+
212+
.navbar-fixed-top .container {
213+
padding: 0;
214+
}
213215
}
214216

215217
div.container {
@@ -222,8 +224,8 @@ div.section {
222224
}
223225

224226
.container {
225-
padding-left: 0;
226-
padding-right: 0;
227+
padding-left: 10px;
228+
padding-right: 10px;
227229
}
228230

229231
.container .section>*:not(.section):not(.ac_section) {
@@ -254,6 +256,11 @@ div.section {
254256
max-width: none;
255257
}
256258

259+
.container-fluid>.navbar-collapse, .container-fluid>.navbar-header, .container>.navbar-collapse, .container>.navbar-header {
260+
margin-left: 0;
261+
margin-right: 0;
262+
}
263+
257264
.navbar>.container .navbar-brand {
258265
margin-left: 0;
259266
}
@@ -262,6 +269,10 @@ div.section {
262269
background-color: var(--navbar);
263270
}
264271

272+
.navbar-toggle {
273+
margin-right: 0px;
274+
}
275+
265276
.footer>.container {
266277
background-color: var(--outerBackground);
267278
}
@@ -726,10 +737,6 @@ div.flash {
726737
}
727738
}
728739

729-
.navLink a {
730-
color: #999;
731-
}
732-
733740
#completionButton {
734741
margin-top: 25px;
735742
margin-bottom: 15px;
@@ -949,9 +956,14 @@ textarea#lp-result {
949956

950957

951958
#scprogresscontainer {
952-
width: 50%;
953-
margin-left: auto;
954-
margin-right: auto;
959+
width: 100%;
960+
max-width: 500px;
961+
margin: 10px auto;
962+
}
963+
964+
#subchapterprogress.ui-progressbar .ui-progressbar-value {
965+
margin: 0;
966+
border-radius: 0px;
955967
}
956968

957969
#subchapterprogress>div {
@@ -997,11 +1009,11 @@ body {
9971009
.theme-switch-wrapper {
9981010
display: flex;
9991011
align-items: center;
1012+
}
10001013

1001-
em {
1002-
margin-left: 10px;
1003-
font-size: 1rem;
1004-
}
1014+
.theme-switch-wrapper em {
1015+
margin-left: 10px;
1016+
font-size: 1rem;
10051017
}
10061018

10071019
.theme-switch {

runestone/common/project_template/_templates/plugin_layouts/sphinx_bootstrap/layout.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -384,6 +384,8 @@
384384
</script>
385385

386386
<script async src="https://hypothes.is/embed.js"></script>
387+
<!--provide space to prevent hypothes.is sidebar from obscuring content-->
388+
<style>@media screen and (max-width:767px) { body { padding-right: 21px; }}</style>
387389

388390
{% endif %}
389391
{% endif %}

0 commit comments

Comments
 (0)