Skip to content

Commit 72e517d

Browse files
committed
Tweak styles a bit to remove the floats.
Currently the float applied to the load and save buttons ends up causing the tab order to be incorrect. Although the load button is displayed first, the tab order goes to the save button first, then the load button.
1 parent 2c63273 commit 72e517d

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

public/css/navbar.css

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ body * {
1212
left: 0;
1313
width: 100%;
1414
height: 50px;
15-
/* overflow: hidden; */
15+
display: flex;
16+
justify-content: space-between;
17+
align-items: center;
1618
background-color: #012C4E;
1719
}
1820

1921
.topnav a {
20-
float: left;
2122
display: block;
2223
color: white;
2324
text-align: center;
@@ -37,8 +38,7 @@ body * {
3738
}
3839

3940
.dropdown {
40-
float: left;
41-
/* overflow: hidden; */
41+
height: 100%;
4242
}
4343

4444
.dropdown .dropbtn {
@@ -62,7 +62,6 @@ body * {
6262
}
6363

6464
.dropdown-content a {
65-
float: none;
6665
color: white;
6766
background-color: #012C4E;
6867
padding: 12px 16px;
@@ -80,23 +79,25 @@ body * {
8079
display: block;
8180
}
8281

82+
.search-container {
83+
height: 100%;
84+
}
85+
8386
.topnav .search-container {
84-
float: right;
87+
display: flex;
88+
justify-content: flex-start;
89+
align-items: center;
90+
column-gap: 10px;
91+
padding: 10px;
8592
}
8693

8794
.topnav input[type=text] {
8895
padding: 6px;
89-
margin-top: 7px;
90-
margin-right: 16px;
91-
font-size: 17px;
9296
border: none;
9397
}
9498

9599
.topnav .search-container button {
96-
float: right;
97100
padding: 6px 10px;
98-
margin-top: 7px;
99-
margin-right: 16px;
100101
background: #C0CAD3;
101102
font-size: 17px;
102103
border: none;
@@ -108,11 +109,7 @@ body * {
108109
}
109110

110111
@media screen and (max-width: 600px) {
111-
.topnav .search-container {
112-
float: none;
113-
}
114112
.topnav a, .topnav input[type=text], .topnav .search-container button {
115-
float: none;
116113
display: block;
117114
text-align: left;
118115
width: 100%;

templates/layouts/navbar.html.ep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
<span id="hiddenSourceFilePath"></span>
2424
<input type="text" placeholder="file path..." name="sourceFilePath" id="sourceFilePath">
2525
<input type="text" placeholder="random seed..." name="problemSeed" id="problemSeed" style="width:130px;">
26-
<button type="button" id="save-problem">Save</button>
2726
<button type="button" id="load-problem">Load</button>
27+
<button type="button" id="save-problem">Save</button>
2828
<!--/form-->
2929
</div>
3030
</div>

0 commit comments

Comments
 (0)