Skip to content

Commit e436f75

Browse files
committed
make it look more nice
1 parent aaa4300 commit e436f75

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

‎index.html‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,15 @@
1919
.search-result{
2020
padding: 40px 0;
2121
}
22-
blockquote{
22+
.search-result .label-warp{
23+
display: inline-block;
24+
}
25+
.blockquote{
2326
text-align: center;
2427
}
28+
.quote-attribution{
29+
text-align: right;
30+
}
2531

2632
@media (min-width: 62em) {
2733
.search-form .title{
@@ -35,7 +41,7 @@
3541
<section class="row search-form">
3642
<header class="title">
3743
<header><h1>Codelf</h1></header>
38-
<h5>Search over projects from Github, Bitbucket, Google Code, Codeplex, Sourceforge, Fedora Projec to find a <span class="label label-success">variable name</span> for you!</h5>
44+
<h5>Search over projects from Github, Bitbucket, Google Code, Codeplex, Sourceforge, Fedora Projec to find a <span class="label label-pill label-default">variable name</span> for you!</h5>
3945
</header>
4046
<div class="col-lg-12">
4147
<div class="input-group">
@@ -48,12 +54,14 @@ <h5>Search over projects from Github, Bitbucket, Google Code, Codeplex, Sourcefo
4854
</section>
4955
<section class="row search-result">
5056
<div class="col-lg-12">
51-
<div class="alert alert-success bd" role="alert">
52-
<blockquote>
53-
<p>"There are only two hard things in Computer Science: cache invalidation and naming things." -- Phil Karlton</p>
57+
<div class="jumbotron bd" role="alert">
58+
<blockquote class="blockquote">
59+
<h5>"There are only two hard things in Computer Science: cache invalidation and naming things."</h5>
60+
61+
<h5 class="quote-attribution">-- Phil Karlton</h5>
5462
</blockquote>
5563
<script type="text/html">
56-
<span class="label label-{type}" data-toggle="tooltip" data-placement="top" title="{val}">{val}</span>
64+
<h5 class="label-warp"><span class="label label-{type}" data-toggle="tooltip" data-placement="top" title="{val}">{val}</span></h5>
5765
</script>
5866
</div>
5967
</div>
@@ -214,9 +222,7 @@ <h5>Search over projects from Github, Bitbucket, Google Code, Codeplex, Sourcefo
214222

215223
function renderSearchBtn(){
216224
var val = els.searchInput.val().trim();
217-
if(val.length){
218-
els.searchBtn.html(val==els.lastVal?'Next Group':'Search');
219-
}
225+
els.searchBtn.html((val.length && val==els.lastVal)?'Next Group':'Search');
220226
}
221227

222228
function getRandomLabelType(){

0 commit comments

Comments
 (0)