From a3644638aaf0418598196a870204e0b632a4c8ad Mon Sep 17 00:00:00 2001 From: Thomas Bruederli <thomas@roundcube.net> Date: Fri, 17 Apr 2015 06:28:40 -0400 Subject: [PATCH] Allow preference sections to define CSS class names --- skins/classic/addressbook.css | 112 ++++++++++++++++++++++++++++++++----------------------- 1 files changed, 65 insertions(+), 47 deletions(-) diff --git a/skins/classic/addressbook.css b/skins/classic/addressbook.css index 9575ae2..b54f057 100644 --- a/skins/classic/addressbook.css +++ b/skins/classic/addressbook.css @@ -43,6 +43,16 @@ background-position: -32px -32px; } +#abooktoolbar a.print { + background: url(images/mail_toolbar.png) 0 0 no-repeat transparent; + background-position: -256px 0; +} + +#abooktoolbar a.printSel { + background: url(images/mail_toolbar.png) 0 0 no-repeat transparent; + background-position: -256px -32px; +} + #abooktoolbar a.delete { background-position: -64px 0; } @@ -116,13 +126,6 @@ overflow: hidden; } -#directorylistbox input -{ - margin: 0 0 0 20px; - font-size: 11px; - width: 90%; -} - #addresslist { position: absolute; @@ -144,29 +147,8 @@ width: 280px; } -#directorylist, -#directorylist li ul -{ - list-style: none; - margin: 0; - padding: 0; - background-color: #FFFFFF; -} - -#directorylist li ul -{ - border-top: 1px solid #EBEBEB; -} - -#directorylist li -{ - display: block; - font-size: 11px; - border-bottom: 1px solid #EBEBEB; - white-space: nowrap; -} - -#directorylist li a +#directorylist li a, +#savedsearchlist li a { cursor: default; display: block; @@ -176,39 +158,52 @@ height: 16px; text-decoration: none; white-space: nowrap; - background: url(images/icons/folders.png) 5px -108px no-repeat; + background-image: url(images/icons/folders.png); + background-position: 5px -108px; + background-repeat: no-repeat; } -#directorylist li ul li a +#directorylist ul li a { padding-left: 45px; + background-position: 22px -108px; } -#directorylist li ul li:last-child +#directorylist ul ul li a { - border-bottom: 0; + padding-left: 62px; + background-position: 39px -108px; +} + +#directorylist ul ul ul li a +{ + padding-left: 79px; + background-position: 39px -108px; } #directorylist li.contactgroup a { + background-position: 5px -143px; +} + +#directorylist ul li.contactgroup a +{ background-position: 22px -143px; } -#directorylist li.contactsearch a +#directorylist ul ul li.contactgroup a +{ + background-position: 39px -143px; +} + +#directorylist ul ul ul li.contactgroup a +{ + background-position: 56px -143px; +} + +#savedsearchlist li.contactsearch a { background-position: 6px -162px; -} - -#directorylist li.selected > a -{ - color: #FFF; - font-weight: bold; - background-color: #929292; -} - -#directorylist li.droptarget -{ - background-color: #FFFFA6; } #contacts-table @@ -222,6 +217,24 @@ cursor: default; text-overflow: ellipsis; -o-text-overflow: ellipsis; +} + +/* This padding-left should be equal to the focused border-left + the focused padding-left */ +#contacts-table thead tr td:first-child, +#contacts-table tbody tr td:first-child { + border-left: 0; + padding-left: 8px; +} + +/* because of border-collapse, we make the left border twice what we want it to be - half will be hidden to the left */ +#contacts-table tbody tr.focused > td:first-child { + border-left: 2px solid #d4d4d4; + padding-left: 6px; +} + +#contacts-table tbody tr.selected.focused > td:first-child { + border-left: 1px solid #ccc; + padding-left: 7px; } #contacts-table .contact.readonly td @@ -298,6 +311,11 @@ padding: 0; } +#contacthead > legend +{ + display: none; +} + #contacthead .names span.namefield, #contacthead .names input { -- Gitblit v1.9.1