Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b9e1d9d

Browse files
committed
add search icon
1 parent cb98902 commit b9e1d9d

File tree

4 files changed

+40
-17
lines changed

4 files changed

+40
-17
lines changed

css/stylesheet.css

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,19 +181,29 @@ nav h3 {
181181
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.48), inset 0 -2px 2px rgba(0, 0, 0, 0.36);
182182
}
183183

184-
input.search_bar {
185-
box-sizing: border-box;
184+
.search_bar_container {
186185
background: rgba(0, 0, 0, .10);
187-
border: none;
188186
border-bottom: 2px solid rgb(38, 38, 38);
189-
width: 100%;
190187
height: 30px;
191-
color: white;
192-
padding-left: 10px;
188+
color: rgb(187, 187, 187);
189+
font-size: 12px;
190+
padding: 0 8px 0 8px;
193191
}
194192

195-
input.search_bar:focus {
193+
.search_bar_container > .fa {
194+
position: absolute;
195+
line-height: 30px;
196+
}
197+
198+
#search-bar {
199+
box-sizing: border-box;
200+
padding-left: 16px;
201+
background: none;
202+
border: none;
203+
width: 100%;
204+
height: 100%;
196205
outline: none;
206+
overflow: hidden;
197207
}
198208

199209
.workspace {

index.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,17 @@ <h3>
6161
</div>
6262
</nav>
6363
<section class="sidemenu active">
64-
<input type = "text" class="search_bar" id="search-bar" autofocus/>
64+
<div class="search_bar_container">
65+
<i class="fa fa-search" aria-hidden="true"></i>
66+
<input type="text" id="search-bar" autofocus/>
67+
</div>
6568
<div id="list">
6669
</div>
6770
<div id="footer">
6871
<button id="scratch-paper"><i class="fa fa-fw fa-code"></i> Scratch Paper</button>
6972
<button id="documentation"><i class="fa fa-fw fa-book"></i> Tracer API</button>
7073
<button class="category open" id="powered-by">
71-
<i class="fa fa-fw fa-github"></i> Powered by ...
74+
<i class="fa fa-fw fa-github"></i> Powered by ...
7275
</button>
7376
<div id="powered-by-list">
7477
<a href="https://github.com/jquery/jquery">

public/algorithm_visualizer.css

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -301,19 +301,29 @@ nav h3 {
301301
box-shadow: inset 0 2px 2px rgba(0, 0, 0, 0.48), inset 0 -2px 2px rgba(0, 0, 0, 0.36);
302302
}
303303

304-
input.search_bar {
305-
box-sizing: border-box;
304+
.search_bar_container {
306305
background: rgba(0, 0, 0, .10);
307-
border: none;
308306
border-bottom: 2px solid rgb(38, 38, 38);
309-
width: 100%;
310307
height: 30px;
311-
color: white;
312-
padding-left: 10px;
308+
color: rgb(187, 187, 187);
309+
font-size: 12px;
310+
padding: 0 8px 0 8px;
313311
}
314312

315-
input.search_bar:focus {
313+
.search_bar_container > .fa {
314+
position: absolute;
315+
line-height: 30px;
316+
}
317+
318+
#search-bar {
319+
box-sizing: border-box;
320+
padding-left: 16px;
321+
background: none;
322+
border: none;
323+
width: 100%;
324+
height: 100%;
316325
outline: none;
326+
overflow: hidden;
317327
}
318328

319329
.workspace {

public/algorithm_visualizer.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)