Skip to content

Commit 54b42e4

Browse files
committed
updated search box UI
1 parent fc738c5 commit 54b42e4

6 files changed

Lines changed: 40 additions & 5 deletions

File tree

‎cache.manifest‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# Build: 20170601115802
2+
# Build: 20170602091013
33

44
CACHE:
55
resources/fonts/Dressedless_Three.svg

‎index.html‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎static/app/html/main.html‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<section class="container main">
22
<header class="main-title">
33
<header><h1><a href="./"><span>C</span><span>O</span><span>D</span><span>E</span><span>L</span><span>F</span></a></h1></header>
4-
<h5>Search over projects from GitHub, Bitbucket, Google Code and more to find </h5>
5-
<h5><span class="label label-primary">real-world usage</span> <span class="label label-success">variable names</span></h5>
4+
<h5>Search over projects from GitHub, Bitbucket and more to find </h5>
5+
<h5><span class="label">real-world usage</span> <span class="label">variable names</span></h5>
66
</header>
77
<section class="row search-form">
88
<div class="col-xs-12">

‎static/app/resources/css/style.css‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,24 @@ html, body {
251251
max-height: 300px;
252252
transition: all 250ms ease-in-out;
253253
overflow: hidden; }
254+
.main-title h5 .label {
255+
background-color: #373a3c; }
254256

255257
.search-form {
256258
padding: 1rem 0; }
259+
.search-form .input-group {
260+
height: 44px;
261+
border-radius: 2px;
262+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.08);
263+
transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1); }
264+
.search-form .input-group:focus, .search-form .input-group:active, .search-form .input-group:hover {
265+
box-shadow: 0 3px 8px 0 rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.08); }
266+
.search-form input, .search-form button, .search-form a {
267+
height: 44px;
268+
line-height: 44px;
269+
padding-top: 0;
270+
padding-bottom: 0;
271+
border: 0 !important; }
257272
.search-form .dropdown-menu {
258273
max-height: 320px;
259274
overflow-y: scroll;

‎static/app/scss/_main.scss‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,31 @@
5555
max-height: 300px;
5656
transition: all 250ms ease-in-out;
5757
overflow: hidden;
58+
59+
.label {
60+
background-color: #373a3c;
61+
}
5862
}
5963
}
6064

6165
.search-form {
6266
padding: 1rem 0;
67+
.input-group{
68+
height: 44px;
69+
border-radius: 2px;
70+
box-shadow: 0 2px 2px 0 rgba(0,0,0,0.16), 0 0 0 1px rgba(0,0,0,0.08);
71+
transition: box-shadow 200ms cubic-bezier(0.4, 0.0, 0.2, 1);
72+
&:focus, &:active, &:hover {
73+
box-shadow: 0 3px 8px 0 rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.08);
74+
}
75+
}
76+
input, button, a {
77+
height: 44px;
78+
line-height: 44px;
79+
padding-top: 0;
80+
padding-bottom: 0;
81+
border: 0 !important;
82+
}
6383
.dropdown-menu {
6484
max-height: 320px;
6585
overflow-y: scroll;

‎sw.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ self.addEventListener('install', function(event) {
66
// long install takes, and if it failed
77
event.waitUntil(
88
// We open a cache…
9-
caches.open('20170601115802').then(function(cache) {
9+
caches.open('20170602091013').then(function(cache) {
1010
// And add resources to it
1111
return cache.addAll(["./",
1212
"resources/fonts/Dressedless_Three.svg",

0 commit comments

Comments
 (0)