Permalink
Browse files

A little html clean up of the demo template

  • Loading branch information...
1 parent cec355b commit 745108544f7b4715d179624e7c9b0679f0b57259 @anutron committed May 4, 2011
Showing with 9 additions and 13 deletions.
  1. +2 −4 frontend_dev/templates/demo_components.mako
  2. +1 −2 static/css/shared.css
  3. +5 −6 static/css/tests.css
  4. +1 −1 static/js/test-helpers.js
@@ -7,16 +7,14 @@
<head>
<title>${title_prefix} - ${title}</title>
<link rel="stylesheet" href="/static/css/reset.css" type="text/css" media="screen" title="no title" charset="utf-8">
+ <link rel="stylesheet" href="/static/css/shared.css" type="text/css" media="screen" title="no title" charset="utf-8">
<link rel="stylesheet" href="/static/css/tests.css" type="text/css" media="screen" title="no title" charset="utf-8">
- <link rel="stylesheet" href="/static/css/minibuttons.css" type="text/css" media="screen" title="no title" charset="utf-8">
<script src="/static/js/test-helpers.js"></script>
</head>
- <div id="mt-content">
- <div id="mt-loading">Loading...</div>
+ <div id="mt-loading">Loading...</div>
</%def>
<%def name="footer()">
- </div>
<script>
document.body.className = 'loaded';
</script>
View
@@ -1,3 +1,4 @@
+@import url("minibuttons.css");
body {
height: 100%;
position: absolute;
@@ -11,5 +12,3 @@ a {
cursor: pointer;
color:#009;
}
-
-@import url("minibuttons.css");
View
@@ -1,3 +1,6 @@
+body {
+ padding: 12px;
+}
#mt-loading {
position: fixed;
bottom: 10px;
@@ -18,17 +21,13 @@ body.loaded #mt-loading {
display: none;
}
-#mt-content {
- padding: 8px;
-}
-
-#mt-content h3.h3_test {
+h3.h3_test {
border-bottom: 1px solid #999;
font-weight: bold;
font-size: 14px;
margin-top: 8px;
}
-#mt-content p {
+p {
margin-bottom: 4px;
}
#actions {
@@ -1,6 +1,6 @@
var makeActions = function(tests){
try {
- if (!$('actions')) new Element('dt', {'id': 'actions'}).inject($('mt-content'), 'top');
+ if (!$('actions')) new Element('dt', {'id': 'actions'}).inject(document.body, 'top');
tests.each(function(test, i) {
new Element('dt').adopt(
new Element('a', {

0 comments on commit 7451085

Please sign in to comment.