Skip to content

Commit

Permalink
fix: always display nav controls in a single row
Browse files Browse the repository at this point in the history
  • Loading branch information
gvwilson committed Apr 8, 2024
1 parent 3414dff commit 01b9dc6
Show file tree
Hide file tree
Showing 12 changed files with 38 additions and 24 deletions.
2 changes: 1 addition & 1 deletion docs/bib/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Bibliography</h1>
</div>


<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">
<a href="../contrib/" title="previous" class="undecorated">&#8678;</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/colophon/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Colophon</h1>
</div>


<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">
<a href="../glossary/" title="previous" class="undecorated">&#8678;</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/conduct/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Code of Conduct</h1>
</div>


<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">
<a href="../license/" title="previous" class="undecorated">&#8678;</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/contents/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Index</h1>
</div>


<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">
<a href="../colophon/" title="previous" class="undecorated">&#8678;</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/contrib/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Contributing</h1>
</div>


<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">
<a href="../conduct/" title="previous" class="undecorated">&#8678;</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/finale/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Conclusion</h1>
</div>


<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">
<a href="../intro/" title="previous" class="undecorated">&#8678;</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/glossary/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Glossary</h1>
</div>


<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">
<a href="../bib/" title="previous" class="undecorated">&#8678;</a>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/intro/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>Introduction</h1>
</div>


<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">

</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/license/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ <h1>License</h1>
</div>


<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">
<a href="../finale/" title="previous" class="undecorated">&#8678;</a>
</div>
Expand Down
21 changes: 14 additions & 7 deletions docs/mccole.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,24 @@

/* Small screen: display rows with one column. */
@media screen {
.row {
width: 100%
}
.row {
width: 100%
}
}

/* Wide screen: display rows as rows. */
@media screen and (min-width: 60rem) {
.row {
display: flex;
flex-flow: row wrap;
}
.row {
display: flex;
flex-flow: row wrap;
}
}

/* Always display as row. */
.row-always {
width: 100%;
display: flex;
flex-flow: row wrap;
}

/* Flex grid */
Expand Down
21 changes: 14 additions & 7 deletions lib/mccole/resources/mccole.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,24 @@

/* Small screen: display rows with one column. */
@media screen {
.row {
width: 100%
}
.row {
width: 100%
}
}

/* Wide screen: display rows as rows. */
@media screen and (min-width: 60rem) {
.row {
display: flex;
flex-flow: row wrap;
}
.row {
display: flex;
flex-flow: row wrap;
}
}

/* Always display as row. */
.row-always {
width: 100%;
display: flex;
flex-flow: row wrap;
}

/* Flex grid */
Expand Down
2 changes: 1 addition & 1 deletion lib/mccole/templates/nav.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% if node.title %}
<nav class="row notex">
<nav class="row-always notex">
<div class="col-1 left">
{% if node | nav_prev %}<a href="{{node | nav_prev }}" title="previous" class="undecorated">&#8678;</a>{% endif %}
</div>
Expand Down

0 comments on commit 01b9dc6

Please sign in to comment.