Skip to content

Commit bd39cfd

Browse files
committed
move navbar to bottom
1 parent 2c7142d commit bd39cfd

File tree

2 files changed

+24
-20
lines changed

2 files changed

+24
-20
lines changed

compare50/_renderer/static/match.css

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ body {
1212
}
1313

1414
.wrapper {
15-
margin-top: 3em;
15+
margin-bottom: 3em;
1616
}
1717

1818
.view {
@@ -31,7 +31,7 @@ body {
3131

3232
.sub_name {
3333
margin-top: 0.33em;
34-
padding-right: 0px;
34+
padding-left: 10px;
3535
}
3636

3737
.row {
@@ -121,16 +121,20 @@ pre {
121121
}
122122

123123
#sidebar {
124-
padding: 10px 15px;
125-
top: 0;
126-
width: 100%;
127124
position: fixed;
128-
height: auto;
125+
bottom: 0;
126+
width: 100%;
127+
display: flex;
128+
justify-content: space-between;
129+
align-items: center;
130+
padding: 0.5em 1em;
129131
z-index: 1000;
132+
}
133+
134+
.sidebar-right {
130135
display: flex;
131136
align-items: center;
132137
gap: 0.5em;
133-
justify-content: normal;
134138
}
135139

136140
#next_prev_match {

compare50/_renderer/templates/match_page.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,27 @@
1111
</head>
1212
<body>
1313
<div class="wrapper" id="page">
14-
<nav class="bg-dark text-center" id="sidebar">
14+
<nav class="bg-dark text-light" id="sidebar">
1515
<div class="brand text-light">
1616
<h4><a href="index.html" class="index-link"><b>compare50</b></a></h4>
1717
</div>
18-
<div class="text-light id" id="{{id}}">{{id}} / {{max_id}}</div>
19-
<div class="btn-group" role="group" aria-label="NextPrev" id="next_prev_match">
20-
<button type="button" class="btn btn-outline-light prev_match" id="prev_match" {{'disabled' if id <= 1 else ''}}><<</button>
21-
<button type="button" class="btn btn-outline-light next_match" id="next_match" {{'disabled' if id >= max_id else ''}}>>></button>
22-
</div>
23-
<div class="btn-group" role="group" aria-label="Views" id="passes">
24-
{% for pass_ in passes %}
25-
<button type="button" class="btn btn-outline-light view_selector" id="{{pass_.__name__}}selector" title="{{pass_.__doc__}}">{{pass_.__name__}}</button>
26-
{% endfor %}
27-
</div>
28-
<div id="btn-group">
18+
<div class="sidebar-right">
19+
<div class="text-light id" id="{{id}}">{{id}} / {{max_id}}</div>
20+
<div class="btn-group" role="group" aria-label="NextPrev" id="next_prev_match">
21+
<button type="button" class="btn btn-outline-light prev_match" id="prev_match" {{'disabled' if id <= 1 else ''}}><<</button>
22+
<button type="button" class="btn btn-outline-light next_match" id="next_match" {{'disabled' if id >= max_id else ''}}>>></button>
23+
</div>
24+
<div class="btn-group" role="group" aria-label="Views" id="passes">
25+
{% for pass_ in passes %}
26+
<button type="button" class="btn btn-outline-light view_selector" id="{{pass_.__name__}}selector" title="{{pass_.__doc__}}">{{pass_.__name__}}</button>
27+
{% endfor %}
28+
</div>
2929
<div class="btn-group" role="group" aria-label="NextPrevGroup">
3030
<button type="button" class="btn btn-outline-light matches_group" id="previous_group">&lt;</button>
3131
<button type="button" class="btn btn-outline-light matches_group" id="next_group">&gt;</button>
3232
</div>
33+
<div class="text-light" id="group_counter"></div>
3334
</div>
34-
<div class="text-light" id="group_counter"></div>
3535
</nav>
3636
<div id="content">
3737
{% for match in matches %}

0 commit comments

Comments
 (0)