From cadd4ffa034ebe569ff7290393171f0d3c1f6116 Mon Sep 17 00:00:00 2001 From: alec Date: Tue, 13 Mar 2012 11:33:28 +0000 Subject: - Larry skin for ACL plugin git-svn-id: https://svn.roundcube.net/trunk@6002 208e9e7b-5314-0410-a742-e7e81cd9613c --- plugins/acl/acl.php | 5 +- plugins/acl/package.xml | 8 +- plugins/acl/skins/larry/acl.css | 113 +++++++++++++++++++++++++++ plugins/acl/skins/larry/images/enabled.png | Bin 0 -> 674 bytes plugins/acl/skins/larry/images/partial.png | Bin 0 -> 389 bytes plugins/acl/skins/larry/templates/table.html | 34 ++++++++ 6 files changed, 156 insertions(+), 4 deletions(-) create mode 100644 plugins/acl/skins/larry/acl.css create mode 100644 plugins/acl/skins/larry/images/enabled.png create mode 100644 plugins/acl/skins/larry/images/partial.png create mode 100644 plugins/acl/skins/larry/templates/table.html (limited to 'plugins/acl') diff --git a/plugins/acl/acl.php b/plugins/acl/acl.php index dcc249421..ab981ab89 100644 --- a/plugins/acl/acl.php +++ b/plugins/acl/acl.php @@ -7,7 +7,7 @@ * @author Aleksander Machniak * * - * Copyright (C) 2011, Kolab Systems AG + * Copyright (C) 2011-2012, Kolab Systems AG * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 @@ -388,7 +388,8 @@ class acl extends rcube_plugin // Create table header $table->add_header('user', $this->gettext('identifier')); foreach (array_keys($items) as $key) { - $table->add_header('acl'.$key, $this->gettext('shortacl'.$key)); + $label = $this->gettext('shortacl'.$key); + $table->add_header(array('class' => 'acl'.$key, 'title' => $label), $label); } $i = 1; diff --git a/plugins/acl/package.xml b/plugins/acl/package.xml index 6d533965f..7ea0f3297 100644 --- a/plugins/acl/package.xml +++ b/plugins/acl/package.xml @@ -13,9 +13,9 @@ alec@alec.pl yes - 2012-01-10 + 2012-03-13 - 0.7 + 0.8 0.7 @@ -42,6 +42,10 @@ + + + + diff --git a/plugins/acl/skins/larry/acl.css b/plugins/acl/skins/larry/acl.css new file mode 100644 index 000000000..589d688f6 --- /dev/null +++ b/plugins/acl/skins/larry/acl.css @@ -0,0 +1,113 @@ +#aclcontainer +{ + overflow-x: auto; + border: 1px solid #CCDDE4; + background-color: #D9ECF4; + height: 272px; + box-shadow: none; +} + +#acllist-content +{ + position: relative; + height: 230px; + background-color: white; +} + +#acllist-footer +{ + position: relative; +} + +#acltable +{ + width: 100%; + border-collapse: collapse; + border: none; +} + +#acltable td +{ + white-space: nowrap; + border: none; + text-align: center; +} + +#acltable thead tr td +{ + border-left: #BBD3DA dotted 1px; + font-size: 11px; + font-weight: bold; +} + +#acltable tbody td +{ + border-bottom: #DDDDDD 1px solid; + text-align: center; + padding: 2px; + cursor: default; +} + +#acltable thead td.user +{ + border-left: none; +} + +#acltable tbody td.user +{ + text-align: left; + overflow: hidden; + text-overflow: ellipsis; + -o-text-overflow: ellipsis; + border-left: none; + width: 50px; +} + +#acltable tbody td.partial +{ + background-image: url(images/partial.png); + background-position: center; + background-repeat: no-repeat; +} + +#acltable tbody td.enabled +{ + background-image: url(images/enabled.png); + background-position: center; + background-repeat: no-repeat; +} + +#acltable tbody tr.selected td.partial +{ + background-color: #019bc6; + background-image: url(images/partial.png), -moz-linear-gradient(top, #019bc6 0%, #017cb4 100%); + background-image: url(images/partial.png), -webkit-gradient(linear, left top, left bottom, color-stop(0%,#019bc6), color-stop(100%,#017cb4)); + background-image: url(images/partial.png), -o-linear-gradient(top, #019bc6 0%, #017cb4 100%); + background-image: url(images/partial.png), -ms-linear-gradient(top, #019bc6 0%, #017cb4 100%); + background-image: url(images/partial.png), linear-gradient(top, #019bc6 0%, #017cb4 100%); +} + +#acltable tbody tr.selected td.enabled +{ + background-color: #019bc6; + background-image: url(images/enabled.png), -moz-linear-gradient(top, #019bc6 0%, #017cb4 100%); + background-image: url(images/enabled.png), -webkit-gradient(linear, left top, left bottom, color-stop(0%,#019bc6), color-stop(100%,#017cb4)); + background-image: url(images/enabled.png), -o-linear-gradient(top, #019bc6 0%, #017cb4 100%); + background-image: url(images/enabled.png), -ms-linear-gradient(top, #019bc6 0%, #017cb4 100%); + background-image: url(images/enabled.png), linear-gradient(top, #019bc6 0%, #017cb4 100%); +} + +#aclform +{ + top: 80px; + width: 480px; + padding: 10px; + background-color: white; +} + +#aclform div +{ + padding: 0; + text-align: center; + clear: both; +} diff --git a/plugins/acl/skins/larry/images/enabled.png b/plugins/acl/skins/larry/images/enabled.png new file mode 100644 index 000000000..98215f68c Binary files /dev/null and b/plugins/acl/skins/larry/images/enabled.png differ diff --git a/plugins/acl/skins/larry/images/partial.png b/plugins/acl/skins/larry/images/partial.png new file mode 100644 index 000000000..12023f057 Binary files /dev/null and b/plugins/acl/skins/larry/images/partial.png differ diff --git a/plugins/acl/skins/larry/templates/table.html b/plugins/acl/skins/larry/templates/table.html new file mode 100644 index 000000000..c8dff81b1 --- /dev/null +++ b/plugins/acl/skins/larry/templates/table.html @@ -0,0 +1,34 @@ +
+
+ +
+ +
+ +
+
    +
  • +
  • +
+
+ +
+
+ +
+
+ +
+
+ + +
+
-- cgit v1.2.3