From 6769ba767005b8adc93a077c04eb745502b01238 Mon Sep 17 00:00:00 2001 From: alecpl Date: Wed, 6 Oct 2010 06:48:19 +0000 Subject: - Improve tabs to fixed width and add tabs in identities info (#1486974) --- skins/default/common.css | 81 ++++++++++++++++++++++++++++-- skins/default/functions.js | 50 ++++++++++++++++++ skins/default/images/tabs-left.gif | Bin 0 -> 461 bytes skins/default/images/tabs-right.gif | Bin 0 -> 2851 bytes skins/default/images/tabs.gif | Bin 821 -> 0 bytes skins/default/settings.css | 45 ----------------- skins/default/templates/editidentity.html | 5 +- 7 files changed, 130 insertions(+), 51 deletions(-) create mode 100644 skins/default/images/tabs-left.gif create mode 100644 skins/default/images/tabs-right.gif delete mode 100644 skins/default/images/tabs.gif (limited to 'skins/default') diff --git a/skins/default/common.css b/skins/default/common.css index c068ca270..dd01774e5 100644 --- a/skins/default/common.css +++ b/skins/default/common.css @@ -698,6 +698,16 @@ a.rcmContactAddress:hover opacity: 0.8; } +.disabled +{ + color: #999; +} + +font.bold +{ + font-weight: bold; +} + /***** onclick menu list *****/ @@ -767,12 +777,75 @@ ul.toolbarmenu li.separator_above padding-top: 2px; } -.disabled + +/***** tabbed interface elements *****/ + +div.tabsbar, +#tabsbar { - color: #999; + position: absolute; + top: 50px; + left: 220px; + right: 20px; + height: 22px; + border-bottom: 1px solid #999999; + white-space: nowrap; } -font.bold +div.tabsbar { - font-weight: bold; + top: 35px; + left: 12px; + right: 12px; +} + +span.tablink, +span.tablink-selected +{ + float: left; + height: 23px !important; + height: 22px; + overflow: hidden; + background: url(images/tabs-left.gif) top left no-repeat; +} + +span.tablink +{ + cursor: pointer; +} + +span.tablink-selected +{ + cursor: default; + background-position: 0px -23px; +} + +span.tablink a, +span.tablink-selected a +{ + display: block; + padding: 5px 10px 0 5px; + margin-left: 5px; + height: 23px; + color: #555555; + max-width: 185px; + text-decoration: none; + overflow: hidden; + text-overflow: ellipsis; + -o-text-overflow: ellipsis; + background: url(images/tabs-right.gif) top right no-repeat; +} + +span.tablink-selected a +{ + cursor: inherit; + color: #000000; + background-position: right -23px; +} + +fieldset.tabbed +{ + margin-top: 22px; + padding-top: 12px; } + diff --git a/skins/default/functions.js b/skins/default/functions.js index 64a6d9921..82f7c1562 100644 --- a/skins/default/functions.js +++ b/skins/default/functions.js @@ -21,6 +21,56 @@ function rcube_show_advanced(visible) $('tr.advanced').css('display', (visible ? (bw.ie ? 'block' : 'table-row') : 'none')); } +// Fieldsets-to-tabs converter +// Warning: don't place "caller" + -- cgit v1.2.3