Skip to content

Commit 7bfa6a2

Browse files
committed
Prettier/consistent margins in and around the form
1 parent 8cfec3f commit 7bfa6a2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

datafiles/templates/Html/new-browse.html.st

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<style>
88
#searchQuery {
99
width: 50vw;
10+
margin-left: 0;
1011
}
1112
#newBrowse th a {
1213
display:block;
@@ -30,6 +31,7 @@
3031
}
3132
#newBrowse {
3233
width: 100%;
34+
margin-top: 3em;
3335
}
3436
#newBrowse th, #newBrowse td {
3537
padding: 4px 17px 4px 4px;
@@ -86,6 +88,9 @@
8688
align-items: center;
8789
margin-top: 1em;
8890
}
91+
.filterSuggestion > input {
92+
margin-left: 0;
93+
}
8994
.filterSuggestion > div {
9095
display: flex;
9196
flex-wrap: wrap;
@@ -132,11 +137,15 @@
132137
display: none;
133138
}
134139
#toggleAdvanced {
140+
margin: 0.7em 0 0.7em 0;
141+
}
142+
#toggleAdvanced a {
135143
text-decoration: inherit;
136144
color: inherit;
137145
}
138146
#advancedForm {
139147
display: none;
148+
margin-left: 2em;
140149
}
141150
#advRatingSlider {
142151
vertical-align: middle;
@@ -161,7 +170,12 @@
161170
<input type=text id=searchQuery />
162171
<input type=submit value="Search" />
163172
</form>
164-
<h3><a aria-expanded=false aria-controls=advancedForm id=toggleAdvanced href="javascript: toggleAdvanced();">Advanced options <span id=chevron>&#x25B8;</span></a></h3>
173+
<h3 id=toggleAdvanced>
174+
<a aria-expanded=false aria-controls=advancedForm href="javascript: toggleAdvanced();">
175+
<span id=chevron>&#x25B8;</span>
176+
Advanced options
177+
</a>
178+
</h3>
165179
<div id=advancedForm>
166180
<form class=filterSuggestion onsubmit="javascript:appendDeprecated(event);"><input type=submit value=Append> <div>Also show deprecated packages</div></form>
167181
<form class=filterSuggestion onsubmit="javascript:appendAgeOfLastUL(event);"><input type=submit value=Append><div><span>Last uploaded version younger than</span><input placeholder="e.g. 2y for 2 years" id=advAgeLastUL oninput="validateAgeOfLastUL();"></div></form>

0 commit comments

Comments
 (0)