summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/assets/css/bucky.css31
-rw-r--r--public/assets/js/lib/router.js27
2 files changed, 40 insertions, 18 deletions
diff --git a/public/assets/css/bucky.css b/public/assets/css/bucky.css
index 3950585..9bce371 100644
--- a/public/assets/css/bucky.css
+++ b/public/assets/css/bucky.css
@@ -70,9 +70,8 @@ h1 {
.bluebox big {
display: block;
text-align: center;
- margin-bottom: 4px;
- margin-left: 3px;
margin-top: 2px;
+ margin-bottom: 4px;
}
a:link { color: #2050ca; text-decoration: underline; }
a:visited { color: #1030aa; text-decoration: none; }
@@ -527,9 +526,7 @@ code br {
}
#search {
- background: #f8f8f8;
padding: 5px;
- border: 1px solid #ddd;
color: #333;
}
#search b {
@@ -538,7 +535,6 @@ code br {
#search a b {
color: #000;
}
-
#search .preamble {
font-size: 14px;
margin: 10px;
@@ -584,6 +580,31 @@ code br {
#search .next_page {
font-size: 14px;
}
+#search_form .button {
+ background-image: url("data:image/svg+xml,%3C%3Fxml version=%221.0%22 encoding=%22UTF-8%22%3F%3E%0A%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2212%22 height=%2213%22%3E%0A%09%3Cg fill=%22none%22 stroke=%22%2354595d%22 stroke-width=%222%22%3E%0A%09%09%3Cpath d=%22M11.29 11.71l-4-4%22/%3E%0A%09%09%3Ccircle cx=%225%22 cy=%225%22 r=%224%22/%3E%0A%09%3C/g%3E%0A%3C/svg%3E%0A");
+ background-position: center center;
+ background-repeat: no-repeat;
+ width: 16px; height: 16px;
+ position: relative;
+ top: 3px;
+ display: inline-block;
+}
+#search_form input[type='text'] {
+ border-top: 0;
+ border-left: 0;
+ border-right: 0;
+ border-bottom: 1px solid #ddd;
+ padding-bottom: 3px;
+ font-size: 14px;
+ font-family: 'Trebuchet MS', sans-serif;
+ background: transparent;
+ outline: 0;
+ width: 300px;
+}
+#search_form input[type='text']:focus {
+ border-bottom: 1px solid #211;
+ color: #211;
+}
#messages {
width: 100%;
diff --git a/public/assets/js/lib/router.js b/public/assets/js/lib/router.js
index 95b0ac6..122822b 100644
--- a/public/assets/js/lib/router.js
+++ b/public/assets/js/lib/router.js
@@ -3,25 +3,26 @@ var SiteRouter = Router.extend({
el: "body",
routes: {
- "/": 'login',
- "/index": 'index',
- "/login": 'login',
- "/details/:id": 'details',
- "/post": 'post',
- "/post/:keyword": 'post',
- "/search": 'search',
- "/mail": 'mailbox',
- "/mail/:mailbox": 'mailbox',
- "/mail/compose": 'compose',
- "/message/:id": 'message',
+ "/": 'login',
+ "/index": 'index',
+ "/index/:keyword": 'index',
+ "/login": 'login',
+ "/details/:id": 'details',
+ "/post": 'post',
+ "/post/:keyword": 'post',
+ "/search": 'search',
+ "/mail": 'mailbox',
+ "/mail/:mailbox": 'mailbox',
+ "/mail/compose": 'compose',
+ "/message/:id": 'message',
},
initialize: function(){
this.route()
},
- index: function(){
- app.view = new IndexView ()
+ index: function(keyword){
+ app.view = new IndexView (keyword)
},
login: function(){