Skip to content

Commit 92399c6

Browse files
committed
refactor query bar look & feel
1 parent 937b508 commit 92399c6

3 files changed

Lines changed: 14 additions & 41 deletions

File tree

bzkanban.css

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -144,26 +144,17 @@ body {
144144
font-size: small;
145145
margin-left: 15px;
146146
}
147-
#query .fa {
148-
vertical-align: bottom;
149-
border-radius: 3px 0 0 3px;
150-
border-style: solid;
151-
border-width: 1px 0 1px 1px;
152-
border-color: darkgrey;
147+
#query label, #query span {
153148
padding: 3.5px;
154-
background-color: #E2E4E6;
155-
149+
font-size: small;
150+
margin-right: 8px;
156151
}
157152
input#textFilter {
158153
padding: 4px;
159154
}
160155
#query select, #query input {
161156
width: 150px;
162-
border-width: 1px 1px 1px 0;
163-
border-radius: 0 3px 3px 0;
164-
}
165-
#query span {
166-
margin-right: 8px;
157+
margin-left: 5px;
167158
}
168159
#whoami {
169160
font-size: small;
@@ -309,14 +300,9 @@ input#textFilter {
309300
font-size: x-small;
310301
}
311302
select, textarea, input, button {
312-
padding: 3px;
313-
border-radius: 3px;
314-
border-style: solid;
315-
border-width: 1px;
316-
border-color: darkgrey;
303+
padding: 4px;
317304
}
318305
button {
319-
background-color: #E2E4E6;
320306
}
321307
button:hover {
322308
background-color: lightgrey;

bzkanban.js

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,8 @@ function createQueryFields() {
135135
var query = document.createElement("span");
136136
query.id = "query";
137137

138-
var product = document.createElement("span");
139-
140-
var productIcon = document.createElement("i");
141-
productIcon.className = "fa fa-archive";
142-
productIcon.title = "Product";
143-
138+
var product = document.createElement("label");
139+
var productLabel = document.createTextNode("Product");
144140
var productList = document.createElement("select");
145141
productList.id = "textProduct";
146142
productList.name = "product";
@@ -172,12 +168,8 @@ function createQueryFields() {
172168
});
173169
});
174170

175-
var milestone = document.createElement("span");
176-
177-
var milestoneIcon = document.createElement("i");
178-
milestoneIcon.className = "fa fa-flag";
179-
milestoneIcon.title = "Milestone";
180-
171+
var milestone = document.createElement("label");
172+
var milestoneLabel = document.createTextNode("Milestone");
181173
var milestoneList = document.createElement("select");
182174
milestoneList.id = "textMilestone";
183175
milestoneList.name = "milestone";
@@ -191,12 +183,8 @@ function createQueryFields() {
191183
loadBoard();
192184
});
193185

194-
var assignee = document.createElement("span");
195-
196-
var assigneeIcon = document.createElement("i");
197-
assigneeIcon.className = "fa fa-user";
198-
assigneeIcon.title = "Assignee";
199-
186+
var assignee = document.createElement("label");
187+
var assigneeLabel = document.createTextNode("Assignee");
200188
var assigneeList = document.createElement("select");
201189
assigneeList.id = "textAssignee";
202190
assigneeList.name = "assignee";
@@ -224,11 +212,11 @@ function createQueryFields() {
224212
debounce( filterByString( document.getElementById("textFilter").value ), 500);
225213
});
226214

227-
product.appendChild(productIcon);
215+
product.appendChild(productLabel);
228216
product.appendChild(productList);
229-
milestone.appendChild(milestoneIcon);
217+
milestone.appendChild(milestoneLabel);
230218
milestone.appendChild(milestoneList);
231-
assignee.appendChild(assigneeIcon);
219+
assignee.appendChild(assigneeLabel);
232220
assignee.appendChild(assigneeList);
233221
filter.appendChild(filterIcon);
234222
filter.appendChild(filterText);

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1">
77

88
<title>Bz Kanban Board</title>
9-
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
109
<link rel="stylesheet" href="bzkanban.css">
1110
<link rel="icon" href="https://assets-cdn.github.com/images/icons/emoji/unicode/1f52a.png">
1211
</head>

0 commit comments

Comments
 (0)