Skip to content

Commit

Permalink
use grid layout for the nav bars
Browse files Browse the repository at this point in the history
fixes #1030

The nav bars for question navigation are now siblings of the <main> tag,
and all three are positioned with grid layout.

This commit removes the jasny-bootstrap library, which provided the
floating left nav bar.

On narrow screens when the main question navigation is toggled on, it
takes the full width of the screen and the main area is hidden. It's
shown again when you move to a question or info page.

This also fixes the max-width of the matrix sizing box, so that it
breaks to two lines when there isn't enough space.
  • Loading branch information
christianp committed Aug 25, 2023
1 parent 1054661 commit 081df1b
Show file tree
Hide file tree
Showing 11 changed files with 147 additions and 1,493 deletions.
1 change: 1 addition & 0 deletions locales/en-GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
"control.back to results": "Go back to results",
"control.back to menu": "Go back to the menu",
"control.toggle navigation menu": "Toggle the navigation menu",
"control.return to question": "Return to the question",
"control.style options": "Display options",
"control.move to next question": "Move to the next question",
"control.show introduction": "Introduction",
Expand Down
2 changes: 1 addition & 1 deletion themes/default/files/resources/bootstrap/css/bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -4011,7 +4011,7 @@ select[multiple].input-group-sm > .input-group-btn > .btn {
.nav > li > a:hover,
.nav > li > a:focus {
text-decoration: none;
background-color: #eeeeee;
background-color: #ccffcc;
}
.nav > li.disabled > a {
color: #777777;
Expand Down
Loading

0 comments on commit 081df1b

Please sign in to comment.