]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
adding elgg-state-* css elements
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 26 Jan 2011 11:27:52 +0000 (11:27 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Wed, 26 Jan 2011 11:27:52 +0000 (11:27 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7937 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/css/admin.php
views/default/css/elements/navigation.php
views/default/css/elements/reset.php
views/default/navigation/menu/elements/item.php
views/default/navigation/pagination.php
views/default/navigation/tabs.php

index 9db1aa9b6809865928ac3e46f672660abf5e6e49..0b0fae692a50196da99e8a4bde3db67895acda51 100644 (file)
@@ -268,7 +268,7 @@ table.mceLayout {
        color: black;
        text-decoration: none;
 }
-.elgg-page-menu li.selected > ul {
+.elgg-page-menu li.elgg-state-selected > ul {
        display: block;
 }
 .elgg-page-menu .elgg-child-menu {
@@ -433,15 +433,11 @@ input[type="submit"]:hover, .elgg-submit-button:hover, .elgg-action-button:hover
        color: white;
        text-decoration: none;
 }
-
-<?php //@todo use "disabled" on the li ?>
-.elgg-pagination .inactive {
+.elgg-pagination .elgg-state-disabled {
        color: #CCCCCC;
        border-color: #CCCCCC;
 }
-
-<?php //@todo Choose b/w elgg-state-active or elgg-state-selected ?>
-.elgg-pagination .active {
+.elgg-pagination .elgg-state-selected {
        color: #555555;
        border-color: #555555;
 }
index dae6b58bebea240ca88aaeda71d9679ef38201b9..d5a8208b0ba3655fc63bd3776bc18aae498e7d79 100644 (file)
        color: white;
        text-decoration: none;
 }
-
-<?php //@todo use "disabled" on the li ?>
-.elgg-pagination .inactive {
+.elgg-pagination .elgg-state-disabled {
        color: #CCCCCC;
        border-color: #CCCCCC;
 }
-
-<?php //@todo Choose b/w elgg-state-active or elgg-state-selected ?>
-.elgg-pagination .active {
+.elgg-pagination .elgg-state-selected {
        color: #555555;
        border-color: #555555;
 }
        TABS
 *************************************** */
 .elgg-tabs {
-       margin-bottom:5px;
+       margin-bottom: 5px;
        border-bottom: 2px solid #cccccc;
-       display:table;
-       width:100%;
+       display: table;
+       width: 100%;
 }
 .elgg-tabs li {
        float: left;
        border-bottom-width: 0;
        background: #eeeeee;
        margin: 0 0 0 10px;
-       -moz-border-radius-topleft:5px;
-       -moz-border-radius-topright:5px;
-       -webkit-border-top-left-radius:5px;
-       -webkit-border-top-right-radius:5px;
+       -moz-border-radius-topleft: 5px;
+       -moz-border-radius-topright: 5px;
+       -webkit-border-top-left-radius: 5px;
+       -webkit-border-top-right-radius: 5px;
 }
 .elgg-tabs a {
        text-decoration: none;
        display: block;
-       padding:3px 10px 0 10px;
+       padding: 3px 10px 0 10px;
        text-align: center;
-       height:21px;
-       color:#999999;
+       height: 21px;
+       color: #999999;
 }
 .elgg-tabs a:hover {
        background: #dedede;
        color:#4690D6;
 }
-.elgg-tabs .selected {
+.elgg-tabs .elgg-state-selected {
        border-color: #cccccc;
        background: white;
 }
-.elgg-tabs .selected a {
+.elgg-tabs .elgg-state-selected a {
        position: relative;
        top: 2px;
        background: white;
 .elgg-site-menu a:hover {
        text-decoration: none;
 }
-.elgg-site-menu li.selected a,
+.elgg-site-menu li.elgg-state-selected a,
 .elgg-site-menu li a:hover,
 .elgg-site-menu .elgg-more:hover a {
        background: white;
        color: white;
        text-decoration: none;
 }
-.elgg-page-menu li.selected > a {
+.elgg-page-menu li.elgg-state-selected > a {
        background-color: #4690D6;
        color: white;
 }
index 05682dac12cd9fac52b2efe0168502edf1ff4705..b5f77675e30d4dfc3a459a0657b1827bce7c9061 100644 (file)
@@ -7,7 +7,6 @@
  */
 ?>
 
-<?php //@todo * { ... }? ?>
 /* ***************************************
        RESET CSS
 *************************************** */
index 7c88c344c690d554c37f62a76d862f98bf06bb40..5a9a8743dac94ca01aec740a474ea2bbe4ab29d0 100644 (file)
@@ -5,7 +5,7 @@ $item = $vars['item'];
 $class = '';
 $link_class = 'elgg-menu-closed';
 if ($item->getSelected()) {
-       $class = 'class="selected"';
+       $class = 'class="elgg-state-selected"';
        $link_class = 'elgg-menu-opened';
 }
 
index b8c576d43ee39a48fa7bd9eb2451a50682bb8a5b..153395c4d2b5ba71c9eb383cb76e3f8d90565509 100644 (file)
@@ -94,12 +94,12 @@ if ($pages->prev['href']) {
        $link = elgg_view('output/url', $pages->prev);
        echo "<li>$link</li>";
 } else {
-       echo "<li><span class=\"inactive\">{$pages->prev['text']}</span></li>";
+       echo "<li><span class=\"elgg-state-disabled\">{$pages->prev['text']}</span></li>";
 }
 
 foreach ($pages->items as $page) {
        if ($page == $current_page) {
-               echo "<li><span class=\"active\">$page</span></li>";
+               echo "<li><span class=\"elgg-state-selected\">$page</span></li>";
        } else {
                $page_offset = (($page - 1) * $limit);
                $url = elgg_http_add_url_query_elements($base_url, array($offset_key => $page_offset));
@@ -111,7 +111,7 @@ if ($pages->next['href']) {
        $link = elgg_view('output/url', $pages->next);
        echo "<li>$link</li>";
 } else {
-       echo "<li><span class=\"inactive\">{$pages->next['text']}</span></li>";
+       echo "<li><span class=\"elgg-state-disabled\">{$pages->next['text']}</span></li>";
 }
 
 echo '</ul>';
index 21fae82021364136495a5ef777dbe4afb87c77fe..4e9d1ee17ee7f20f4559f6d1dbf6721ca18cc6e3 100644 (file)
@@ -2,7 +2,7 @@
 /**
  * Tab navigation
  *
- * @uses string $vars['type'] horizontal || vertical - Defaults to horizontal (vertical TBI)
+ * @uses string $vars['type'] horizontal || vertical - Defaults to horizontal
  * @uses array $vars['tabs'] A multi-dimensional array of tab entries in the format array(
  *     'title' => string, // Title of link
  *     'url' => string, // URL for the link
@@ -31,7 +31,7 @@ if (isset($vars['tabs']) && is_array($vars['tabs']) && !empty($vars['tabs'])) {
                
                $selected = elgg_get_array_value('selected', $info, FALSE);
                if ($selected) {
-                       $class .= ' selected';
+                       $class .= ' elgg-state-selected';
                }
 
                $class_str = ($class) ? "class=\"$class\"" : '';