]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3236 removed elgg-states-* from admin css since it was overaggressive
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 28 Apr 2011 19:53:05 +0000 (19:53 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Thu, 28 Apr 2011 19:53:05 +0000 (19:53 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@9045 36083f99-b078-4883-b0ff-0f9b5a30f544

views/default/css/admin.php
views/default/object/plugin/elements/dependencies.php

index 3a9db0fd06fa635d60c6883cc2ccc8f3a3727683..ae3002dcbb48e0a849abc4b74015d35313ba9d75 100644 (file)
@@ -226,6 +226,17 @@ table.mceLayout {
        border: 2px solid #ddd;
        cursor: pointer;
 }
+.elgg-message.elgg-state-error {
+       background: #fbe3e4;
+       color: #8a1f11;
+       border-color: #fbc2c4;
+       font-weight: bold;
+}
+.elgg-message.elgg-state-success {
+       background: #e6efc2;
+       color: #264409;
+       border-color: #c6d880;
+}
 
 /* ***************************************
        BODY
@@ -685,6 +696,16 @@ input[type="submit"]:hover, .elgg-button-submit:hover, .elgg-button-action:hover
 .elgg-widgets-add-panel li a {
        display: block;
 }
+.elgg-widget-single.elgg-state-available {
+       color: #333;
+       cursor: pointer;
+}
+.elgg-widget-single.elgg-state-available:hover {
+       border-color: #aaa;
+}
+.elgg-widget-single.elgg-state-unavailable {
+       color: #888;
+}
 
 .elgg-module-widget {
        background-color: #dedede;
@@ -1044,58 +1065,11 @@ a.elgg-longtext-control {
 .right {float:right}
 .elgg-toggle {cursor:pointer}
 
-/* ***************************************
-       STATES
-*************************************** */
-
-.elgg-state-active {
-       background:#ccc;
-       color: #333;
-}
-
-.elgg-state-inactive {
-       background:#dedede;
-}
-
-.elgg-state-available {
-       color: #333;
-       cursor: pointer;
-}
-
-.elgg-state-available:hover {
-       border-color: #aaa;
-}
-
-.elgg-state-unavailable {
-       color: #888;
-}
-
-.elgg-state-success {
-       background: #e6efc2;
-       color: #264409;
-       border-color: #c6d880;
-}
-
-.elgg-state-error {
-       background: #fbe3e4;
-       color: #8a1f11;
-       border-color: #fbc2c4;
-       font-weight: bold;
-}
-
-p.elgg-state-error {
-       padding: 5px;
-}
-
 <?php //@todo elgg-drag-handle instead? ?>
 .elgg-state-draggable .elgg-head {
        cursor: move;
 }
 
-<?php //What to do with states that don't have default styles? ?>
-.elgg-state-selected {}
-.elgg-state-disabled {}
-
 /* ***************************************
        ADMIN MISC
 *************************************** */
@@ -1134,8 +1108,8 @@ form.admin_plugins_simpleview .elgg-button-submit {
        margin-right: 10px;
 }
 ul.admin_plugins {
-       margin-bottom:0;
-       padding-left:0;
+       margin-bottom: 0;
+       padding-left: 0;
        list-style: none;
 }
 .elgg-plugin {
@@ -1185,6 +1159,15 @@ ul.admin_plugins {
 .elgg-plugin.elgg-state-active {
        background: white;
 }
+.elgg-plugin.elgg-state-inactive {
+       background: #dedede;
+}
+.elgg-dependency.elgg-state-error {
+       background: #fbe3e4;
+       color: #8a1f11;
+       border-color: #fbc2c4;
+       font-weight: bold;
+}
 
 .admin_notices {
        padding-bottom: 15px;
index b5cdaf8b6f255acd6ac744a02b877999e51a0a88..f4d1ccc5a77d1704a56b41df3eaddbefbde994f1 100644 (file)
@@ -28,9 +28,9 @@ foreach ($deps as $dep) {
        $type = $dep['type'];
 
        if ($dep['status']) {
-               $class = "elgg-state-success elgg-dependency-$type";
+               $class = "elgg-state-success elgg-dependency elgg-dependency-$type";
        } else {
-               $class = "elgg-state-error elgg-dependency-$type";
+               $class = "elgg-state-error elgg-dependency elgg-dependency-$type";
        }
 
        echo "<tr class=\"$row\">";