Permalink
Browse files

more search input styling.

  • Loading branch information...
1 parent 477f5d4 commit 1ddaee014b5f3af836626e60e280f4baea7cd104 @anutron committed Apr 30, 2011
Showing with 21 additions and 18 deletions.
  1. BIN static/art/search.png
  2. +15 −13 static/css/left_menu.css
  3. +6 −5 test_runner/templates/left_menu.mako
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -6,24 +6,17 @@ div.mt-nav {
margin: 0px 8px 0 8px;
}
h1 {
- font-size: 14px;
- padding: 8px;
- background: #D3E0ED;
- font-weight: bold;
- position: relative;
- margin: 0px -8px 8px;
- border-bottom: 1px solid #aaa;
-}
-h1 a, h1 a:hover {
+ background: #465a73;
color: #fff;
- text-decoration: none;
- display: block;
+ font-size: 16px;
+ font-weight: bold;
+ padding: 4px;
+ margin: 0;
}
h2 {
font-weight: bold;
font-size: 14px;
}
-
dl {
margin-top: 6px;
}
@@ -68,6 +61,14 @@ a:hover {
color: #00E;
}
+#filter_wrapper {
+ font-size: 14px;
+ background: #D3E0ED;
+ font-weight: bold;
+ position: relative;
+ margin: 0px -8px 8px;
+ border-bottom: 1px solid #aaa;
+}
#filter {
background-color: #D3E0ED;
background-image: url("../art/search.png");
@@ -79,7 +80,8 @@ a:hover {
margin-left: 3px;
padding-left: 24px;
padding-right: 7px;
- width: 144px;
+ width: 158px;
+ outline: none;
}
label {
font-size: 10px;
@@ -31,7 +31,7 @@
});
var filter = $('filter');
var ac = new Autocompleter.Local(filter, terms, {
- width: 153,
+ width: 166,
minLength: 1,
selectMode: 'type-ahead',
overflow: true,
@@ -54,15 +54,16 @@
filter.blur.delay(20, $('filter'));
}
});
+ filter.addEvent('blur', function(){
+ filter.value = '';
+ });
});
</script>
</head>
<body>
+ <h1>${title}</h1>
<div class="mt-nav">
- <h1>
- ${title}
- <div id="filter_wrapper"><input id="filter" title="Search"></div>
- </h1>
+ <div id="filter_wrapper"><input id="filter" title="Search"></div>
% if projects is not None:
% for project, directories in sorted(projects.items()):
% if not excluded_tests or project not in excluded_tests:

0 comments on commit 1ddaee0

Please sign in to comment.