Fixed issue #7876: beautify the permissions module a bit
authorIngo Renner <ingo.renner@typo3.org>
Sun, 16 Mar 2008 22:03:35 +0000 (22:03 +0000)
committerIngo Renner <ingo.renner@typo3.org>
Sun, 16 Mar 2008 22:03:35 +0000 (22:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@3440 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/gfx/perm-allowed.gif [new file with mode: 0644]
typo3/gfx/perm-denied.gif [new file with mode: 0644]
typo3/mod/web/perm/index.php
typo3/mod/web/perm/legend.gif
typo3/stylesheet.css

index 5cf08e6..9096158 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -9,6 +9,7 @@
        * Fixed bug #7396: hardcoded fieldset and legend around radio buttons
        * Fixed bug #7817: Transparent PNGs do not work in IE6
        * Fixed bug #7873: Wrong condition for IE6, credits Steffen Kamper
+       * Fixed issue #7876: beautify the permissions module a bit
        * Code cleanup: replaced CVS with SVN
        * Updated Copyright notices
 
diff --git a/typo3/gfx/perm-allowed.gif b/typo3/gfx/perm-allowed.gif
new file mode 100644 (file)
index 0000000..0614e29
Binary files /dev/null and b/typo3/gfx/perm-allowed.gif differ
diff --git a/typo3/gfx/perm-denied.gif b/typo3/gfx/perm-denied.gif
new file mode 100644 (file)
index 0000000..561619c
Binary files /dev/null and b/typo3/gfx/perm-denied.gif differ
index b8c2f8e..2ee00ac 100755 (executable)
@@ -222,19 +222,6 @@ class SC_mod_web_perm_index {
                $this->doc->loadJavascriptLib('contrib/prototype/prototype.js');
                $this->doc->loadJavascriptLib(TYPO3_MOD_PATH . 'perm.js');
 
-               // Adding special styles to the permissions indicators and selecot boxes
-               $this->doc->inDocStyles .= "
-                       A.perm-allowed, A.perm-denied { padding: 2px 3px 1px 3px; border: 0; cursor: pointer; }
-                       A.perm-allowed:hover, A.perm-denied:hover { padding: 1px 2px 0 2px; border: 1px solid red; cursor: pointer; }
-                       A.perm-allowed:hover { color: green; }
-                       A.perm-denied:hover { color: red; }
-                       A IMG { cursor: pointer; }
-                       .ug_selector, .ug_selector A { text-decoration: underline; cursor: pointer; }
-                       .not_set, .not_set A, .editlock, .editlock A { text-decoration: none; cursor: pointer; color: #CCC; }
-                       .not_set:hover, .not_set A:hover, .editlock:hover, .editlock A:hover { text-decoration: none; cursor: pointer; color: #000; font-weight: bold; }
-                       .not_set { color: #000; font-style: italic; }
-               ";
-
                        // Setting up the context sensitive menu:
                $this->doc->getContextMenuCode();
 
@@ -703,7 +690,7 @@ class SC_mod_web_perm_index {
                }
 
                        // Wrap rows in table tags:
-               $code = '<table border="0" cellspacing="0" cellpadding="0" id="typo3-permissionList" width="98%">'.$code.'</table>';
+               $code = '<table border="0" cellspacing="0" cellpadding="0" id="typo3-permissionList" width="99.5%">'.$code.'</table>';
 
                        // Adding the content as a section:
                $this->content.=$this->doc->section('',$code);
@@ -724,9 +711,10 @@ class SC_mod_web_perm_index {
                                <td valign="top" nowrap="nowrap">'.$legendText.'</td>
                        </tr>
                </table>';
-               $code.='<br />'.$LANG->getLL('def',1);
-               $code.='<br /><br /><span class="perm-allowed">*</span>: '.$LANG->getLL('A_Granted',1);
-               $code.='<br /><span class="perm-denied">x</span>: '.$LANG->getLL('A_Denied',1);
+               $code.='<div id="perm-legend">'.$LANG->getLL('def',1);
+               $code.='<br /><br /><span class="perm-allowed">*</span>: '.$LANG->getLL('A_Granted', 1);
+               $code.='<br /><span class="perm-denied">x</span>: '.$LANG->getLL('A_Denied', 1);
+               $code.='</div>';
 
                        // Adding section with legend code:
                $this->content.=$this->doc->spacer(20);
index 0052b3d..26ab10c 100755 (executable)
Binary files a/typo3/mod/web/perm/legend.gif and b/typo3/mod/web/perm/legend.gif differ
index bb86021..42ff4ae 100755 (executable)
@@ -1320,7 +1320,7 @@ div#typo3-docheader div.infooptions {
 
 div#typo3-docbody {
        width: 98%;
-       padding: 2% 0% 2% 2%;
+       padding: 2% 0% 2% 10px;
        overflow: auto;
        top: 51px;
        bottom: 0;
@@ -2356,14 +2356,74 @@ Permissions, green and red
 
 - - - - - - - - - - - - - - - - - - - - - */
 
-.perm-allowed {
-       color: green;
+a.perm-allowed,
+a.perm-denied,
+#perm-legend .perm-allowed,
+#perm-legend .perm-denied {
+       font-size: 0px;
        font-weight: bold;
+       cursor: pointer;
+
+       display: block;
+       float: left;
+       height: 10px;
+       width: 10px;
+       padding: 2px;
 }
 
-.perm-denied {
+#perm-legend .perm-allowed,
+#perm-legend .perm-denied {
+       clear: left;
+}
+
+a.perm-allowed:hover,
+a.perm-denied:hover {
+       background-color: #e3dfdb;
+}
+
+a.perm-allowed,
+#perm-legend .perm-allowed {
+       color: green;
+       background:transparent url('gfx/perm-allowed.gif') no-repeat scroll center;
+}
+
+a.perm-denied,
+#perm-legend .perm-denied {
        color: red;
-       font-weight: bold;
+       background:transparent url('gfx/perm-denied.gif') no-repeat scroll center;
+}
+
+#perm-legend {
+       margin-top: 10px;
+}
+
+.ug_selector,
+.ug_selector a {
+       text-decoration: underline;
+       cursor: pointer;
+}
+
+.not_set,
+.not_set a,
+.editlock,
+.editlock a {
+       text-decoration: none;
+       cursor: pointer;
+       color: #ccc;
+}
+
+.not_set:hover,
+.not_set a:hover,
+.editlock:hover,
+.editlock a:hover {
+       text-decoration: none;
+       cursor: pointer;
+       color: #000;
+}
+
+.not_set {
+       color: #000;
+       font-style: italic;
 }