changeset 334:54d4445cc5c6

mod_admin_web: Add some margin so that elements don't overlap.
author Florian Zeitz <florob@babelmonkeys.de>
date Fri, 04 Feb 2011 17:08:51 +0100
parents 8821a772799a
children 8b81257c9dc5
files mod_admin_web/admin_web/www_files/index.html mod_admin_web/admin_web/www_files/js/main.js mod_admin_web/admin_web/www_files/style.css
diffstat 3 files changed, 25 insertions(+), 22 deletions(-) [+]
line wrap: on
line diff
--- a/mod_admin_web/admin_web/www_files/index.html	Thu Feb 03 23:57:54 2011 +0100
+++ b/mod_admin_web/admin_web/www_files/index.html	Fri Feb 04 17:08:51 2011 +0100
@@ -35,23 +35,25 @@
   </div>
 </div>
 
-<div id='main'>
+<div id='right'>
   <span id="selector">Host: <select id="host"></select></span>
-  <div id="adhoc"></div>
-  <div id="s2sList">
-    <div class="container">
-      Incomming S2S connections:
-      <ul id="s2sin"></ul>
+  <div id='main'>
+    <div id="adhoc"></div>
+    <div id="s2sList">
+      <div class="container">
+	Incomming S2S connections:
+	<ul id="s2sin"></ul>
+      </div>
+      <div class="container">
+	Outgoing S2S connections:
+	<ul id="s2sout"></ul>
+      </div>
     </div>
-    <div class="container">
-      Outgoing S2S connections:
-      <ul id="s2sout"></ul>
-    </div>
-  </div>
-  <div id="c2sList">
-    <div class="container">
-      Client connections:
-      <ul id="c2s"></ul>
+    <div id="c2sList">
+      <div class="container">
+	Client connections:
+	<ul id="c2s"></ul>
+      </div>
     </div>
   </div>
 </div>
--- a/mod_admin_web/admin_web/www_files/js/main.js	Thu Feb 03 23:57:54 2011 +0100
+++ b/mod_admin_web/admin_web/www_files/js/main.js	Fri Feb 04 17:08:51 2011 +0100
@@ -142,7 +142,7 @@
     pass.show();
     jid.show();
     $('#menu').hide();
-    $('#main').hide();
+    $('#right').hide();
     $('#cred label').show();
     $('#cred br').show();
     $('#s2sin').empty();
@@ -160,7 +160,7 @@
     pass.hide();
     jid.hide();
     $('#menu').show();
-    $('#main').show();
+    $('#right').show();
     $('#adhoc').show();
     $('#s2sList').hide();
     $('#c2sList').hide();
--- a/mod_admin_web/admin_web/www_files/style.css	Thu Feb 03 23:57:54 2011 +0100
+++ b/mod_admin_web/admin_web/www_files/style.css	Fri Feb 04 17:08:51 2011 +0100
@@ -45,8 +45,13 @@
   color: #000000
 }
 
+#right {
+  display: none;
+  float: left
+}
+
 #main {
-  display: none
+  margin-top: 1em
 }
 
 #cred input[type="submit"] {
@@ -69,7 +74,3 @@
 #menu li {
   font-size: 20pt
 }
-
-#main {
-  float: left
-}