]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
improved icon css so that they do not require having display: block
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 19 Feb 2011 16:13:59 +0000 (16:13 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sat, 19 Feb 2011 16:13:59 +0000 (16:13 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8328 36083f99-b078-4883-b0ff-0f9b5a30f544

mod/bookmarks/views/default/object/bookmarks.php
views/default/css/elements/icons.php
views/default/css/elements/layout_objects.php
views/default/css/elements/navigation.php
views/default/css/elements/page_layout.php
views/default/layout/objects/list/body.php
views/default/output/tagcloud.php
views/default/output/tags.php

index f28a45619adc04beded62d0c821a050f040b4002..46c2466edeb45004b0236db17715b6cf1dda26bb 100644 (file)
@@ -68,7 +68,7 @@ if ($full && !elgg_in_context('gallery')) {
 $header
 $bookmark_info
 <div class="bookmark elgg-content">
-       <span class="elgg-icon elgg-icon-following"></span><h3 class="pbl">$link</h3>
+       <span class="elgg-icon elgg-icon-bookmark"></span><h3 class="pbl">$link</h3>
        $description
 </div>
 HTML;
@@ -103,7 +103,7 @@ HTML;
                'text' => $display_text
        )));
 
-       $content = "<span class=\"elgg-icon elgg-icon-following\"></span>$link{$excerpt}";
+       $content = "<span class=\"elgg-icon elgg-icon-bookmark\"></span>$link{$excerpt}";
 
        $params = array(
                'entity' => $bookmark,
index b52503b574e98aed314f6c11db3f6ef281d1cd10..7819798265a433c2c94fd6847794edda74e264a3 100644 (file)
 /* ***************************************
        ICONS
 *************************************** */
-
 .elgg-icon {
-       background: transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat left;
-       width: 16px;
-       height: 16px;
-       display: block;
-       float: left;
-       margin: 0 2px;
+       background: transparent url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png) no-repeat;
+       padding-left: 16px;
+       margin-left: 2px;
+       margin-right: 2px;
 }
 .elgg-icon-settings {
        background-position: -302px -44px;
 }
 .elgg-icon-friends {
        background-position: 0 -300px;
-       width: 36px;
+       padding-left: 36px;
 }
 .elgg-icon-friends:hover {
        background-position: 0 -340px;
        background-position: -302px -136px;
 }
 .elgg-icon-delete {
-       background-position: -199px 1px;
+       background-position: -199px 0px;
 }
 .elgg-icon-delete:hover {
-       background-position: -199px -15px;
+       background-position: -199px -16px;
+}
+.elgg-icon-tag {
+       background-position: 2px -198px;
 }
 .elgg-icon-likes {
        background-position: 0px -101px;
@@ -60,7 +60,7 @@
 }
 .elgg-icon-following {
        background-position: -35px -100px;
-       width: 22px;
+       padding-left: 22px;
        height: 20px;
 }
 .elgg-icon-rss {
        width: 21px;
        height: 21px;
 }
-.elgg-avatar > .elgg-icon-hover-menu {
-       display: none;
-       position: absolute;
-       right: 0;
-       bottom: 0;
-       margin: 0;
-       cursor: pointer;
-}
-
-.elgg-ajax-loader {
-       background-color: white;
-       background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/ajax_loader_bw.gif);
-       background-repeat: no-repeat;
-       background-position: center center;
-       min-height: 33px;
-       min-width: 33px;
-}
 
 /* ***************************************
        AVATAR ICONS
        width: 200px;
        height: 200px;
 }
+
+/* ***************************************
+       MISC ICONS
+*************************************** */
+.elgg-avatar > .elgg-icon-hover-menu {
+       display: none;
+       position: absolute;
+       right: 0;
+       bottom: 0;
+       margin: 0;
+       cursor: pointer;
+}
+
+.elgg-ajax-loader {
+       background-color: white;
+       background-image: url(<?php echo elgg_get_site_url(); ?>_graphics/ajax_loader_bw.gif);
+       background-repeat: no-repeat;
+       background-position: center center;
+       min-height: 33px;
+       min-width: 33px;
+}
index cc733ea069aeedacafe5dd226ce485ee4ae0121e..7968874c227b7f8d11a035bab81a975597d7746c 100644 (file)
@@ -78,9 +78,6 @@
 .elgg-list-item .elgg-subtext {
        margin-bottom: 5px;
 }
-.elgg-tags {
-       margin-bottom: 5px;
-}
 .elgg-list-content {
        margin: 10px 5px;
 }
        Tags
 *************************************** */
 .elgg-tags {
-       background-image:url(<?php echo elgg_get_site_url(); ?>_graphics/elgg_sprites.png);
-       background-repeat: no-repeat;
-       background-position: left -196px;
-       padding:1px 0 0 14px;
+       display: inline;
        font-size: 85%;
 }
 .elgg-tags li {
index 0c92f069a25a28a56e00927968ff2265da2aae4b..e6a324a7524f1ae80eebf6c572735cbff06cb306 100644 (file)
 .elgg-menu-footer li {
        float: left;
 }
-.elgg-menu-footer li:after{
+.elgg-menu-footer li:after {
        content: "\007C";
        display: inline-block;
        padding: 0 4px 0 4px;
index 7af2dddd451f52837183b24447692fb9ea5a66ca..5dac2127b998a5acd1ed3f99249a37f18b12e400 100644 (file)
 /***** PAGE FOOTER ******/
 .elgg-page-footer {
        position: relative;
-       z-index: 999;
-}
-<?php //@todo location-dependent styles ?>
-.elgg-page-footer a {
-       float: left;
-}
-.elgg-page-footer a.elgg-alt {
-       float: right;
 }
 .elgg-page-footer .elgg-menu {
        float: left;
        width: 100%;
 }
-.elgg-page-footer, .elgg-page-footer a {
+.elgg-page-footer * {
        color: #999999;
 }
 .elgg-page-footer a:hover {
        color: #666666;
 }
+.elgg-page-footer a.elgg-alt {
+       float: right;
+}
\ No newline at end of file
index 187cc9690c6dac4fcfe9aa26f78139194d35961f..ef62df198620e36ef8d0c428991734c3a484ca4e 100644 (file)
@@ -39,10 +39,7 @@ $content = elgg_extract('content', $vars, '');
 
 $tags = elgg_extract('tags', $vars, '');
 if ($tags !== false) {
-       $tag_text = elgg_view('output/tags', array('tags' => $entity->tags));
-       if ($tag_text) {
-               $tags = '<p class="elgg-tags">' . $tag_text . '</p>';
-       }
+       $tags = elgg_view('output/tags', array('tags' => $entity->tags));
 }
 
 if ($metadata) {
index d9397faabaf5366743cf7a21ae5804fac0409f43..329119a6b9261bf7f128f2f4b1ac3a83669f61d0 100644 (file)
@@ -56,8 +56,9 @@ if (!empty($vars['tagcloud']) && is_array($vars['tagcloud'])) {
                
        if ($context != 'tags') {
                $text = elgg_echo('tagcloud:allsitetags');
-               $cloud .= '<p class="elgg-tags">';
-               $cloud .= "<a href=\"".elgg_get_site_url()."pg/tags\">$text</a>";
+               $cloud .= '<p class="small">';
+               $cloud .= '<span class="elgg-icon elgg-icon-tag"></span>';
+               $cloud .= "<a href=\"" . elgg_get_site_url() . "pg/tags\">$text</a>";
                $cloud .= '</p>';
        }
        
index f4804e76e91ac964798e19019ef14c999e6f49e1..76145276cf6614e331fefcd309ce00ec26e43ca1 100644 (file)
@@ -32,6 +32,8 @@ if (!empty($vars['tags'])) {
                $vars['tags'] = array($vars['tags']);
        }
 
+       echo '<div>';
+       echo '<span class="elgg-icon elgg-icon-tag"></span>';
        echo '<ul class="elgg-tags">';
        foreach($vars['tags'] as $tag) {
                if (!empty($vars['type'])) {
@@ -47,4 +49,5 @@ if (!empty($vars['tags'])) {
                }
        }
        echo '</ul>';
+       echo '</div>';
 }