Commit 8914c37a authored by Simon Welsh's avatar Simon Welsh

Pretty-up the search field

git-svn-id: svn+ssh://lsgn/var/logbot-www@41 5f99df0c-6b0a-442a-b40a-040688e84a9d
parent 36c9da4c
This diff is collapsed.
......@@ -48,7 +48,7 @@ function search_form($val = false) {
} else {
$val = '';
}
$form = sprintf('<form method="get" action="search.php"><input type="text" name="q" value="%s" /><input type="submit" value="Search logs" /></form>', $val);
$form = sprintf('<form id="searchform" method="get" action="search.php"><input type="text" class="text" name="q" value="%s" /><input type="submit" class="action" value="L" /></form>', $val);
return $form;
}
......
......@@ -10,15 +10,22 @@
<style type="text/css">
@font-face {
font-family: 'WebSymbolsRegular';
src: url('fonts/websymbols-regular-webfont.eot');
src: url('fonts/websymbols-regular-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/websymbols-regular-webfont.woff') format('woff'), url('fonts/websymbols-regular-webfont.ttf') format('truetype'), url('fonts/websymbols-regular-webfont.svg#WebSymbolsRegular') format('svg');
font-weight: normal;
font-style: normal;
}
body {
background: #ffffff;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
font-size: 12px;
padding: 0;
margin: 0;
width: 100%;
background: #ffffff;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #000000;
font-size: 12px;
padding: 0;
margin: 0;
width: 100%;
}
p, h1, h2, h3 {
......@@ -26,7 +33,7 @@ p, h1, h2, h3 {
}
.irc-date {font-family: Courier New, Courier, mono; white-space: nowrap; max-width: 150px;}
.irc-linenum {text-align: right;}
.irc-linenum {text-align: right;}
.irc-green {color: #009200;}
.irc-black {color: #000000;}
.irc-brown {color: #7b0000;}
......@@ -117,8 +124,43 @@ h3 {
}
form {
display: inline-block;
margin-left: 15px;
position: absolute;
right: 60px;
top: 15px;
}
#searchform input.text {
width: 155px;
padding: 5px 34px 5px 10px;
color: #888;
margin: 0;
border: none;
border-radius: 14px;
background: #fff;
font-size: 15px;
}
#searchform input.action {
font-size: 14px;
position: absolute;
right: 2px;
top: 4px;
cursor: pointer;
border: none;
padding: 5px;
background: none;
font-family: 'WebSymbolsRegular';
color: #848484;
border-radius: 0;
margin: 0;
}
#searchform input:focus,
#searchform input.action:hover {
color: #000
}
#searchform input:focus {
outline: none
}
.info { margin: 0 0 6px 0; padding: 18px; background-color: #003050; position: relative; line-height: 24px; color: #fff; background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #002137), color-stop(10%, #003050), color-stop(90%, #003050), color-stop(100%, #002137)); background-image: -webkit-linear-gradient(#002137, #003050 10%, #003050 90%, #002137); background-image: -moz-linear-gradient(#002137, #003050 10%, #003050 90%, #002137); background-image: -o-linear-gradient(#002137, #003050 10%, #003050 90%, #002137); background-image: linear-gradient(#002137, #003050 10%, #003050 90%, #002137); }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment