Skip to content

Commit f6cfdd9

Browse files
Remove one DOM level for lint name filter input and controls
1 parent 1e0ed3e commit f6cfdd9

File tree

2 files changed

+25
-26
lines changed

2 files changed

+25
-26
lines changed

util/gh-pages/index_template.html

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,11 @@ <h1 class="page-header">Clippy Lints <span class="badge">Total number: {{+ count
152152
</div> {# #}
153153
</div> {# #}
154154
<div class="search-control"> {# #}
155-
<div class="input-group"> {# #}
156-
<label class="input-group-addon" id="filter-label" for="search-input">Filter:</label> {# #}
157-
<input type="text" class="form-control filter-input" placeholder="Keywords or search string (`S` or `/` to focus)" id="search-input" /> {# #}
158-
<button id="filter-clear" type="button"> {# #}
159-
Clear {# #}
160-
</button> {# #}
161-
</div> {# #}
155+
<label class="input-group-addon" id="filter-label" for="search-input">Filter:</label> {# #}
156+
<input type="text" class="form-control filter-input" placeholder="Keywords or search string (`S` or `/` to focus)" id="search-input" /> {# #}
157+
<button id="filter-clear" type="button"> {# #}
158+
Clear {# #}
159+
</button> {# #}
162160
</div> {# #}
163161
<div class="btn-group expansion-group"> {# #}
164162
<button title="Collapse All" class="btn-default expansion-control" type="button" id="collapse-all"> {# #}

util/gh-pages/style.css

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -239,45 +239,45 @@ article:hover .panel-title-name .anchor { display: inline;}
239239
min-height: 1px;
240240
padding-right: 15px;
241241
padding-left: 15px;
242+
display: flex;
242243
}
243244

244-
.input-group {
245-
position: relative;
245+
#filter-label {
246+
padding: 6px 12px;
247+
font-size: 14px;
248+
font-weight: 400;
249+
line-height: 1;
250+
text-align: center;
251+
border: 1px solid #ccc;
252+
border-radius: 4px;
253+
white-space: nowrap;
246254
display: flex;
255+
align-items: center;
256+
justify-content: center;
257+
border-right: 0;
258+
border-top-right-radius: 0;
259+
border-bottom-right-radius: 0;
247260
}
248-
.input-group > :last-child {
261+
.search-control > :last-child {
249262
border-left: 0;
250263
}
251-
.input-group > :first-child, .btn-group > :first-child {
264+
.btn-group > :first-child {
252265
border-right: 0;
253266
border-top-right-radius: 0;
254267
border-bottom-right-radius: 0;
255268
}
256-
.input-group > :last-child, .btn-group > :last-child {
269+
.search-control > :last-child, .btn-group > :last-child {
257270
border-top-left-radius: 0;
258271
border-bottom-left-radius: 0;
259272
}
260-
.input-group .form-control:not(:first-child):not(:last-child) {
273+
.search-control .form-control:not(:first-child):not(:last-child) {
261274
border-radius: 0;
262275
}
263276
.form-control:focus {
264277
border-color: #66afe9;
265278
outline: 0;
266279
box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);
267280
}
268-
.input-group-addon {
269-
padding: 6px 12px;
270-
font-size: 14px;
271-
font-weight: 400;
272-
line-height: 1;
273-
text-align: center;
274-
border: 1px solid #ccc;
275-
border-radius: 4px;
276-
white-space: nowrap;
277-
display: flex;
278-
align-items: center;
279-
justify-content: center;
280-
}
281281

282282
.glyphicon.glyphicon-collapse-up::before, .glyphicon.glyphicon-collapse-down::before {
283283
--background-img-size: 14px;
@@ -340,6 +340,7 @@ article:hover .panel-title-name .anchor { display: inline;}
340340
@media (min-width: 992px) {
341341
.search-control {
342342
margin-top: 0;
343+
align-self: flex-start;
343344
}
344345
.container {
345346
width: 970px;

0 commit comments

Comments
 (0)