Browse Source

Style search bar and slightly refactor header/footer styles

pm2
Luke Childs 8 years ago
parent
commit
e8aafa884a
  1. 48
      assets/style.css
  2. 6
      views/index.html

48
assets/style.css

@ -25,7 +25,7 @@ h2 {
}
.wrapper {
width: calc(100% - 4em);
width: calc(100% - 2em);
max-width: 1200px;
margin: 0 auto;
}
@ -36,29 +36,47 @@ h2 {
clear: both;
}
/* Header & footer */
header,
footer {
background: #fff;
padding: 1em;
}
/* Header */
header {
background: #fff;
box-shadow: 0px 3px rgba(255, 255, 255, 0.66);
margin-bottom: 2em;
}
footer {
margin-top: 2em;
header .wrapper {
display: flex;
}
header .title {
padding: 1em 0;
}
h1 {
margin: 0;
float: left;
}
.search {
float: right;
flex: 1;
margin-left: 5em;
}
.search .desc {
display: none;
}
.search input {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
color: #666;
width: 100%;
-webkit-appearance: none;
height: 100%;
border: 1px solid #eee;
border-width: 0 1px;
font-size: 28px;
padding: 0 0.2em;
}
.search input:focus {
outline: 0;
}
/* Main */
@ -120,3 +138,9 @@ td:first-child {
.pagination .divider {
display: none;
}
/* Footer */
footer {
margin-top: 2em;
padding: 1em 0;
background: #fff;
}

6
views/index.html

@ -9,11 +9,11 @@
<header>
<div class="wrapper clearfix">
<a href="/"><h1>Tor Explorer</h1></a>
<a class="title" href="/"><h1>Tor Explorer</h1></a>
<form class="search" action="/">
<label>
Search
<input type="search" name="s" value="{{ req.query.s }}">
<span class="desc">Search</span>
<input type="search" placeholder="Search..." name="s" value="{{ req.query.s }}">
</label>
</form>
</div>

Loading…
Cancel
Save