welcome.xhtml: improve layout by floating the icons to the left.
authorBrian Warner <warner@lothar.com>
Wed, 21 Jan 2015 01:24:27 +0000 (17:24 -0800)
committerBrian Warner <warner@lothar.com>
Wed, 21 Jan 2015 01:24:27 +0000 (17:24 -0800)
This uses less vertical space.

src/allmydata/web/static/css/new-tahoe.css
src/allmydata/web/welcome.xhtml

index fa1269a10796902374e5e1efc246e5afb18188de..175c3e33718c42d0eb4d04905079fd5b1ed75aa8 100644 (file)
@@ -46,7 +46,7 @@ body {
     margin-bottom: 20px;
 }
 
-.grid-status .status-indicator {
+.grid-status {
     margin-top: 5px;
 }
 
@@ -75,23 +75,5 @@ body {
 
 .status-indicator {
     float: left;
-    width: 16px;
-    height: 16px;
-    border-radius: 50%;
-    display: inline-block;
-    vertical-align: middle;
-    margin-right: 4px;
-    margin-top: 2px;
-}
-
-.connected-yes {
-    background: #468847;
-}
-
-.connected-no {
-    background: #B94A48;
-}
-
-.connected-not-configured {
-    background: #444444;
+    margin: 5px;
 }
index c4774c8138f3fadab2b481596c316d9f18ec74ce..3e23fc736fa3446b09ae9560caa80d79fe44a5e7 100644 (file)
               <div class="span6">
                 <div>
                   <h3>
-                    <img><n:attr name="src">img/connected-<n:invisible n:render="string" n:data="connected_to_introducer" />.png</n:attr><n:attr name="alt"><n:invisible n:render="string" n:data="connected_to_introducer_alt" /></n:attr></img>
+                    <div class="status-indicator"><img><n:attr name="src">img/connected-<n:invisible n:render="string" n:data="connected_to_introducer" />.png</n:attr><n:attr name="alt"><n:invisible n:render="string" n:data="connected_to_introducer_alt" /></n:attr></img></div>
                     <div n:render="string" n:data="introducer_description" />
                   </h3>
                   <div class="furl" n:render="string" n:data="introducer_furl_prefix" />
                 </div>
                 <div>
                   <h3>
-                    <img><n:attr name="src">img/connected-<n:invisible n:render="string" n:data="connected_to_helper" />.png</n:attr><n:attr name="alt"><n:invisible n:render="string" n:data="connected_to_helper_alt" /></n:attr></img>
+                    <div class="status-indicator"><img><n:attr name="src">img/connected-<n:invisible n:render="string" n:data="connected_to_helper" />.png</n:attr><n:attr name="alt"><n:invisible n:render="string" n:data="connected_to_helper_alt" /></n:attr></img></div>
                     <div n:render="string" n:data="helper_description" />
                   </h3>
                   <div class="furl" n:render="string" n:data="helper_furl_prefix" />
             </thead>
             <tr n:pattern="item" n:render="service_row">
               <td class="nickname-and-peerid">
-              <img><n:attr name="src">img/connected-<n:slot name="connected" />.png</n:attr><n:attr name="alt"><n:slot name="connected_alt" /></n:attr></img>
+              <div class="status-indicator"><img><n:attr name="src">img/connected-<n:slot name="connected" />.png</n:attr><n:attr name="alt"><n:slot name="connected_alt" /></n:attr></img></div>
                 <div class="nickname"><n:slot name="nickname"/></div>
                 <div class="nodeid"><n:slot name="peerid"/></div>
               </td>