]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2391: Baby steps toward getting a unified css -- haven't landed on a name yet...
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 14 Nov 2010 12:18:48 +0000 (12:18 +0000)
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 14 Nov 2010 12:18:48 +0000 (12:18 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7314 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/css.php
views/default/entities/entity_listing.php

index e60ec8e417d5c162b70973c64b4b0970d0e5ec27..923d7c958eb0255d824953474bd837d9a1ee61d6 100644 (file)
@@ -193,9 +193,22 @@ h2 {
        padding-bottom:5px;
 }
 
-/* Float-related */
-.clearfix:after {content:"."; display:block; height:0; clear:both; visibility:hidden;}
-.clearfloat {clear:both;}
+.clearfloat { clear:both; }
+
+/* Clearfix! */
+.clearfix:after,
+.listing:after,
+.listing .info:after {
+       content:".";
+       display:block;
+       height:0;
+       clear:both;
+       visibility:hidden;
+}
+
+.listing .icon { float: left; margin-right: 10px; }
+.listing .icon img { width: auto }
+.listing .info { display: table-cell; }
 
 .link {
        cursor:pointer;
@@ -1072,10 +1085,7 @@ li.navigation_more ul li {
 **************************************** */
 .entity_listing {
        border-bottom:1px dotted #cccccc;
-       clear:both;
-       display:block;
-       margin:0;
-       padding:4px 0 4px;
+       padding:4px 0;
        position:relative;
 }
 .entity_listing:first-child {
@@ -1084,17 +1094,11 @@ li.navigation_more ul li {
 .entity_listing:hover {
        background-color: #eeeeee;
 }
-.entity_listing_icon {
-       float:left;
+.entity_listing .icon {
        margin-left:3px;
        margin-top:3px;
 }
-.entity_listing_icon img {
-       width: auto;
-}
-.entity_listing_info {
-       float:left;
-       margin-left:7px;
+.entity_listing .info {
        min-height:28px;
        width:693px;
 }
index e547bbc680b881b756fbc771ab1e0e7336d1758e..11d1edcda5f909e0187c2507141fb6d42d106f9e 100644 (file)
@@ -9,11 +9,11 @@
  * @uses string $vars['info'] Info about the entity.
  */
 ?>
-<div class="entity_listing clearfix">
-       <div class="entity_listing_icon">
+<div class="listing entity_listing">
+       <div class="icon">
                <?php echo $vars['icon']; ?>
        </div>
-       <div class="entity_listing_info">
+       <div class="info">
                <?php echo $vars['info']; ?>
        </div>
 </div>