From edf14d870baf68f1d64897353e5c1a162eb82d2d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 19 Jan 2013 13:25:20 +0000 Subject: [PATCH] CSS changes --- lam/docs/devel/type_css.htm | 39 +++++------ lam/style/600_type_asteriskExt.css | 93 -------------------------- lam/style/600_type_dhcp.css | 94 -------------------------- lam/style/600_type_group.css | 93 -------------------------- lam/style/600_type_host.css | 93 -------------------------- lam/style/600_type_mailAlias.css | 93 -------------------------- lam/style/600_type_netgroup.css | 93 -------------------------- lam/style/600_type_smbDomain.css | 93 -------------------------- lam/style/600_type_user.css | 103 ----------------------------- 9 files changed, 20 insertions(+), 774 deletions(-) delete mode 100644 lam/style/600_type_asteriskExt.css delete mode 100644 lam/style/600_type_dhcp.css delete mode 100644 lam/style/600_type_group.css delete mode 100644 lam/style/600_type_host.css delete mode 100644 lam/style/600_type_mailAlias.css delete mode 100644 lam/style/600_type_netgroup.css delete mode 100644 lam/style/600_type_smbDomain.css delete mode 100644 lam/style/600_type_user.css diff --git a/lam/docs/devel/type_css.htm b/lam/docs/devel/type_css.htm index b14b2517..13233061 100644 --- a/lam/docs/devel/type_css.htm +++ b/lam/docs/devel/type_css.htm @@ -1,11 +1,10 @@ - - - Type HowTo - CSS file +Type HowTo - CSS file + + + - - - +

Type HowTo - CSS file


@@ -16,25 +15,27 @@ and fonts.

1. File name

The CSS files are saved in style/. -Your file must be named type_<your +Your file must be named 600_type_<your type>.css.

-Example:
+Example:

-The smbDomain type has the -CSS file style/type_smbDomain.css.
+The myType type has the +CSS file style/600_type_myType.css.


-

2. Contents

-Take the type_user.css file as template. It is well documented.
-You have to replace all occurrences of "user" with your account type.
+

2. Contents

There are three colors that are defined for each type:
+
.<your type>-border { border-color:#af8800; }
+
.<your type>-bright { background-color:#fff3c8 !important; }
+
.<your type>-dark { background-color:#ffe27f !important; }
+Border is used for e.g. table borders, bright and dark are used as background colors for tables and fieldsets.

-Example:

-Take a look at type_user.css and type_smbDomain.css.
+Example:
+
.smbDomain-border { border-color:#1d993e; }
+
.smbDomain-bright { background-color:#c9ddd2 !important; }
+
.smbDomain-dark { background-color:#a8ddbf !important; }
+The colors for LAM's included types can be found in 500_layout.css.
- - + \ No newline at end of file diff --git a/lam/style/600_type_asteriskExt.css b/lam/style/600_type_asteriskExt.css deleted file mode 100644 index 4b08acb7..00000000 --- a/lam/style/600_type_asteriskExt.css +++ /dev/null @@ -1,93 +0,0 @@ -/* -$Id$ - - This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2009 - 2010 Roland Gruber - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more detaexils. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - - -/** - * style definition for Asterisk accounts - */ - - -/* navigation bar */ -table.asteriskExtnav { - background-color:#fff3c8; - border-width:1px; - border-style:solid; - border-color:#af8800; -} - -/* input elements */ -table.asteriskExtnav input { - background-color:#ffe27f; -} - -/* color for active page digit */ -td.asteriskExtnav-activepage { - color:red; -} - -/* table preferences */ -table.asteriskExtlist { - border-width:1px; - border-style:solid; - border-color:#af8800; - border-collapse:collapse; -} - -table.asteriskExtlist td,th { - border-color:#af8800; -} - -/* input elements */ -table.asteriskExtlist input, table.asteriskExtlist select, table.asteriskExtlist button { - background-color:#ffe27f; -} - -/* color of bright rows */ -.asteriskExtlist-bright { - background-color:#fff3c8 !important; -} - -/* color of dark rows */ -.asteriskExtlist-dark { - background-color:#ffe27f !important; -} - -fieldset.asteriskExtedit { - background-color:#fff3c8; - border:1px solid #af8800; -} - -/* input elements */ -fieldset.asteriskExtedit input, fieldset.asteriskExtedit select, fieldset.asteriskExtedit button { - background-color:#ffe27f; -} - -/* input elements */ -input.asteriskExt { - background-color:#ffe27f; -} - -/* select elements */ -select.asteriskExt { - background-color:#ffe27f; -} - diff --git a/lam/style/600_type_dhcp.css b/lam/style/600_type_dhcp.css deleted file mode 100644 index e36d5659..00000000 --- a/lam/style/600_type_dhcp.css +++ /dev/null @@ -1,94 +0,0 @@ -/* -$Id$ - - This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2008 Thomas Manninger - 2010 Roland Gruber - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more detaexils. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - - -/** - * style definition for dhcp accounts - */ - - -/* navigation bar */ -table.dhcpnav { - background-color:#d4f19b; - border-width:1px; - border-style:solid; - border-color:#527510; -} - -/* input elements */ -table.dhcpnav input { - background-color:#bde178; -} - -/* color for active page digit */ -td.dhcpnav-activepage { - color: red; -} - -/* table preferences */ -table.dhcplist { - border-width:1px; - border-style:solid; - border-color:#527510; - border-collapse:collapse; -} - -table.dhcplist td,th { - border-color:#527510; -} - -/* input elements */ -table.dhcplist input, table.dhcplist select, table.dhcplist button { - background-color:#bde178; -} - -/* color of bright rows */ -.dhcplist-bright { - background-color:#d4f19b !important; -} - -/* color of dark rows */ -.dhcplist-dark { - background-color:#9fc653 !important; -} - -fieldset.dhcpedit { - background-color:#d4f19b; - border:1px solid #527510; -} - -/* input elements */ -fieldset.dhcpedit input, fieldset.dhcpedit select, fieldset.dhcpedit button { - background-color:#bde178; -} - -/* input elements */ -input.dhcp { - background-color:#bde178; -} - -/* select elements */ -select.dhcp { - background-color:#bde178; -} - diff --git a/lam/style/600_type_group.css b/lam/style/600_type_group.css deleted file mode 100644 index 87e5a3c8..00000000 --- a/lam/style/600_type_group.css +++ /dev/null @@ -1,93 +0,0 @@ -/* -$Id$ - - This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2005-2010 Roland Gruber - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more detaexils. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - - -/** - * style definition for group accounts - */ - - -/* navigation bar */ -table.groupnav { - background-color:#d6e3ff; - border-width:1px; - border-style:solid; - border-color:#7167bf; -} - -/* input elements */ -table.groupnav input { - background-color:#a8c3ff; -} - -/* color for active page digit */ -td.groupnav-activepage { - color:red; -} - -/* table preferences */ -table.grouplist { - border-width:1px; - border-style:solid; - border-color:#7167bf; - border-collapse:collapse; -} - -table.grouplist td,th { - border-color:#7167bf; -} - -/* input elements */ -table.grouplist input, table.grouplist select, table.grouplist button { - background-color:#a8c3ff; -} - -/* color of bright rows */ -.grouplist-bright { - background-color:#d6e3ff !important; -} - -/* color of dark rows */ -.grouplist-dark { - background-color:#a8c3ff !important; -} - -fieldset.groupedit { - background-color:#d6e3ff; - border:1px solid #7167bf; -} - -/* input elements */ -fieldset.groupedit input, fieldset.groupedit select, fieldset.groupedit button { - background-color:#a8c3ff; -} - -/* input elements */ -input.group { - background-color:#a8c3ff; -} - -/* select elements */ -select.group { - background-color:#a8c3ff; -} - diff --git a/lam/style/600_type_host.css b/lam/style/600_type_host.css deleted file mode 100644 index 78c33cbe..00000000 --- a/lam/style/600_type_host.css +++ /dev/null @@ -1,93 +0,0 @@ -/* -$Id$ - - This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2005-2010 Roland Gruber - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more detaexils. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - - -/** - * style definition for host accounts - * - */ - -/* */ -table.hostnav { - background-color:#ffe2dd; - border-width:1px; - border-style:solid; - border-color:#911a1a; -} - -/* input elements */ -table.hostnav input { - background-color:#ffc4ba; -} - -/* color for active page digit */ -td.hostnav-activepage { - color:red; -} - -/* table preferences */ -table.hostlist { - border-width:1px; - border-style:solid; - border-color:#911a1a; - border-collapse:collapse; -} - -table.hostlist td,th { - border-color:#911a1a; -} - -/* input elements */ -table.hostlist input, table.hostlist select, table.hostlist button { - background-color:#ffc4ba; -} - -/* color of bright rows */ -.hostlist-bright { - background-color:#ffe2dd !important; -} - -/* color of dark rows */ -.hostlist-dark { - background-color:#ffc4ba !important; -} - -fieldset.hostedit { - background-color:#ffe2dd; - border:1px solid #911a1a; -} - -/* input elements */ -fieldset.hostedit input, fieldset.hostedit select, fieldset.hostedit button { - background-color:#ffc4ba; -} - -/* input elements */ -input.host { - background-color:#ffc4ba; -} - -/* select elements */ -select.host { - background-color:#ffc4ba; -} - diff --git a/lam/style/600_type_mailAlias.css b/lam/style/600_type_mailAlias.css deleted file mode 100644 index aadaae85..00000000 --- a/lam/style/600_type_mailAlias.css +++ /dev/null @@ -1,93 +0,0 @@ -/* -$Id$ - - This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2005-2010 Roland Gruber - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more detaexils. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - - -/** - * style definition for mailing list accounts - */ - - -/* navigation bar */ -table.mailAliasnav { - background-color:#fff3c8; - border-width:1px; - border-style:solid; - border-color:#af8800; -} - -/* input elements */ -table.mailAliasnav input { - background-color:#ffe27f; -} - -/* color for active page digit */ -td.mailAliasnav-activepage { - color:red; -} - -/* table preferences */ -table.mailAliaslist { - border-width:1px; - border-style:solid; - border-color:#af8800; - border-collapse:collapse; -} - -table.mailAliaslist td,th { - border-color:#af8800; -} - -/* input elements */ -table.mailAliaslist input, table.mailAliaslist select, table.mailAliaslist button { - background-color:#ffe27f; -} - -/* color of bright rows */ -.mailAliaslist-bright { - background-color:#fff3c8 !important; -} - -/* color of dark rows */ -.mailAliaslist-dark { - background-color:#ffe27f !important; -} - -fieldset.mailAliasedit { - background-color:#fff3c8; - border:1px solid #af8800; -} - -/* input elements */ -fieldset.mailAliasedit input, fieldset.mailAliasedit select, fieldset.mailAliasedit button { - background-color:#ffe27f; -} - -/* input elements */ -input.mailAlias { - background-color:#ffe27f; -} - -/* select elements */ -select.mailAlias { - background-color:#ffe27f; -} - diff --git a/lam/style/600_type_netgroup.css b/lam/style/600_type_netgroup.css deleted file mode 100644 index 6277516a..00000000 --- a/lam/style/600_type_netgroup.css +++ /dev/null @@ -1,93 +0,0 @@ -/* -$Id$ - - This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2009 - 2010 Roland Gruber - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more detaexils. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - - -/** - * style definition for NIS netnetgroup entries - */ - - -/* navigation bar */ -table.netgroupnav { - background-color:#d6e3ff; - border-width:1px; - border-style:solid; - border-color:#7167bf; -} - -/* input elements */ -table.netgroupnav input { - background-color:#a8c3ff; -} - -/* color for active page digit */ -td.netgroupnav-activepage { - color:red; -} - -/* table preferences */ -table.netgrouplist { - border-width:1px; - border-style:solid; - border-color:#7167bf; - border-collapse:collapse; -} - -table.netgrouplist td,th { - border-color:#7167bf; -} - -/* input elements */ -table.netgrouplist input, table.netgrouplist select, table.netgrouplist button { - background-color:#a8c3ff; -} - -/* color of bright rows */ -.netgrouplist-bright { - background-color:#d6e3ff !important; -} - -/* color of dark rows */ -.netgrouplist-dark { - background-color:#a8c3ff !important; -} - -fieldset.netgroupedit { - background-color:#d6e3ff; - border:1px solid #7167bf; -} - -/* input elements */ -fieldset.netgroupedit input, fieldset.netgroupedit select, fieldset.netgroupedit button { - background-color:#a8c3ff; -} - -/* input elements */ -input.netgroup { - background-color:#a8c3ff; -} - -/* select elements */ -select.netgroup { - background-color:#a8c3ff; -} - diff --git a/lam/style/600_type_smbDomain.css b/lam/style/600_type_smbDomain.css deleted file mode 100644 index 3e720f8a..00000000 --- a/lam/style/600_type_smbDomain.css +++ /dev/null @@ -1,93 +0,0 @@ -/* -$Id$ - - This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2005-2010 Roland Gruber - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more detaexils. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - - -/** - * style definition for smbDomain accounts - * - */ - -/* */ -table.smbDomainnav { - background-color:#c9ddd2; - border-width:1px; - border-style:solid; - border-color:#1d993e; -} - -/* input elements */ -table.smbDomainnav input { - background-color:#a8ddbf; -} - -/* color for active page digit */ -td.smbDomainnav-activepage { - color:red; -} - -/* table preferences */ -table.smbDomainlist { - border-width:1px; - border-style:solid; - border-color:#1d993e; - border-collapse:collapse; -} - -table.smbDomainlist td,th { - border-color:#1d993e; -} - -/* input elements */ -table.smbDomainlist input, table.smbDomainlist select, table.smbDomainlist button { - background-color:#a8ddbf; -} - -/* color of bright rows */ -.smbDomainlist-bright { - background-color:#c9ddd2 !important; -} - -/* color of dark rows */ -.smbDomainlist-dark { - background-color:#a8ddbf !important; -} - -fieldset.smbDomainedit { - background-color:#c9ddd2; - border:1px solid #1d993e; -} - -/* input elements */ -fieldset.smbDomainedit input, fieldset.smbDomainedit select, fieldset.smbDomainedit button { - background-color:#a8ddbf; -} - -/* input elements */ -input.smbDomain { - background-color:#a8ddbf; -} - -/* select elements */ -select.smbDomain { - background-color:#a8ddbf; -} - diff --git a/lam/style/600_type_user.css b/lam/style/600_type_user.css deleted file mode 100644 index 6d5677c8..00000000 --- a/lam/style/600_type_user.css +++ /dev/null @@ -1,103 +0,0 @@ -/* -$Id$ - - This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) - Copyright (C) 2005-2010 Roland Gruber - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more detaexils. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -*/ - - -/** - * style definition for user accounts - */ - -/** -* Preferences for the list view and some other pages which have no own definitions (e.g. profile editor). -*/ - -/* main table of account list */ -table.userlist { - border-width:1px; - border-style:solid; - border-color:#9b8523; - border-collapse:collapse; -} - -table.userlist td,th { - border-color:#9b8523; -} - -/* input elements */ -table.userlist input, table.userlist select, table.userlist button { - background-color:#fff2a3; -} - -/* color of bright rows */ -.userlist-bright { - background: #fffde2 !important; -} - -/* color of dark rows */ -.userlist-dark { - background-color:#fff2a3 !important; -} - -/* style of navigation bar */ -table.usernav { - background-color:#fffde2; - border-width:1px; - border-style:solid; - border-color:#9b8523; -} - -/* input elements */ -table.usernav input { - background-color:#fff2a3; -} - -/* color for active page number */ -td.usernav-activepage { - color:red; -} - - - - -/* account pages */ - -/* main fieldset */ -fieldset.useredit { - background-color:#fffde2; - border:1px solid #9b8523; -} - -/* input elements */ -fieldset.useredit input, fieldset.useredit select, fieldset.useredit button { - background-color:#fff2a3; -} - -/* input elements */ -input.user { - background-color:#fff2a3; -} - -/* select elements */ -select.user { - background-color:#fff2a3; -} - -