summaryrefslogtreecommitdiff
path: root/skins/classic
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2014-07-16 11:08:11 +0200
committerAleksander Machniak <alec@alec.pl>2014-07-16 11:08:11 +0200
commit3cb61e7528c2a8544083bf14e02ea4b9387671fb (patch)
treed162fc94ad941479a965603503c1b441673b4535 /skins/classic
parente0492d213b4c087b7092fa6bdc3dfecbc14f9bcf (diff)
Collapsible (and iconized) folders tree in folder manager (#1489648)
Diffstat (limited to 'skins/classic')
-rw-r--r--skins/classic/common.css154
-rw-r--r--skins/classic/mail.css146
-rw-r--r--skins/classic/settings.css30
-rw-r--r--skins/classic/templates/folders.html2
-rw-r--r--skins/classic/templates/mail.html2
5 files changed, 159 insertions, 175 deletions
diff --git a/skins/classic/common.css b/skins/classic/common.css
index 13f4e6483..c50d1c7af 100644
--- a/skins/classic/common.css
+++ b/skins/classic/common.css
@@ -290,9 +290,9 @@ body > #message div.loading,
body > #message div.voice
{
- position: absolute;
- top: -1000px;
- clip: rect(0 0 0 0);
+ position: absolute;
+ top: -1000px;
+ clip: rect(0 0 0 0);
}
body > #message a
@@ -766,6 +766,154 @@ ul.treelist li.droptarget
background-color: #FFFFA6;
}
+/***** folders list *****/
+
+.folderlist li ul li:last-child
+{
+ border-bottom: 0 none;
+}
+
+.folderlist li.inbox a
+{
+ background-position: 5px -18px;
+}
+
+.folderlist li.drafts a
+{
+ background-position: 5px -35px;
+}
+
+.folderlist li.sent a
+{
+ background-position: 5px -54px;
+}
+
+.folderlist li.junk a
+{
+ background-position: 5px -73px;
+}
+
+.folderlist li.trash a
+{
+ background-position: 5px -180px;
+}
+
+.folderlist li.trash.empty a
+{
+ background-position: 5px -90px;
+}
+
+.folderlist li a
+{
+ cursor: default;
+ display: block;
+ position: relative;
+ padding-left: 25px;
+ padding-top: 2px;
+ padding-bottom: 2px;
+ text-decoration: none;
+ height: 15px;
+ background: url(images/icons/folders.png) 5px 0 no-repeat;
+}
+
+.folderlist li.virtual > a
+{
+ color: #666;
+}
+
+.folderlist li.selected,
+.folderlist li.droptarget li.selected
+{
+ background-color: #929292;
+}
+
+.folderlist li.selected > a,
+.folderlist li.droptarget li.selected a
+{
+ color: #FFF;
+ font-weight: bold;
+}
+
+.folderlist li.droptarget
+{
+ background-color: #FFFFA6;
+}
+
+/* styles for nested folders */
+.folderlist ul {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ border-top: 1px solid #EBEBEB;
+ background-color: #FFF;
+ font-weight: normal;
+}
+
+.folderlist li.mailbox ul li a {
+ padding-left: 40px; /* 24 + 1 x 16 */
+ background-position: 20px 0; /* 4 + 1 x 16 */
+}
+.folderlist li.mailbox ul li div.treetoggle {
+ left: 23px !important;
+}
+
+.folderlist li.mailbox ul ul li.mailbox a {
+ padding-left: 56px; /* 2x */
+ background-position: 36px 0;
+}
+.folderlist li.mailbox ul ul li div.treetoggle {
+ left: 39px !important;
+}
+
+.folderlist li.mailbox ul ul ul li.mailbox a {
+ padding-left: 72px; /* 3x */
+ background-position: 52px 0;
+}
+.folderlist li.mailbox ul ul ul li div.treetoggle {
+ left: 55px !important;
+}
+
+.folderlist li.mailbox ul ul ul ul li.mailbox a {
+ padding-left: 88px; /* 4x */
+ background-position: 68px 0;
+}
+.folderlist li.mailbox ul ul ul ul li div.treetoggle {
+ left: 71px !important;
+}
+
+/* indent folders on levels > 4 */
+.folderlist li.mailbox ul ul ul ul ul li {
+ padding-left: 16px;
+}
+.folderlist li.mailbox ul ul ul ul ul li div.treetoggle {
+ left: 87px !important;
+}
+
+.folderlist li.mailbox ul li.drafts a
+{
+ background-position: 21px -37px;
+}
+
+.folderlist li.mailbox ul li.sent a
+{
+ background-position: 21px -54px;
+}
+
+.folderlist li.mailbox ul li.junk a
+{
+ background-position: 21px -73px;
+}
+
+.folderlist li.mailbox ul li.trash a
+{
+ background-position: 21px -180px;
+}
+
+.folderlist li.mailbox ul li.trash.empty a
+{
+ background-position: 21px -90px;
+}
+
/***** mac-style quicksearch field *****/
diff --git a/skins/classic/mail.css b/skins/classic/mail.css
index 58db795cb..1eeba491a 100644
--- a/skins/classic/mail.css
+++ b/skins/classic/mail.css
@@ -409,162 +409,16 @@
background-color: #FFF;
}
-#mailboxlist li ul li:last-child
-{
- border-bottom: 0 none;
-}
-
-#mailboxlist li.inbox a
-{
- background-position: 5px -18px;
-}
-
-#mailboxlist li.drafts a
-{
- background-position: 5px -37px;
-}
-
-#mailboxlist li.sent a
-{
- background-position: 5px -54px;
-}
-
-#mailboxlist li.junk a
-{
- background-position: 5px -73px;
-}
-
-#mailboxlist li.trash a
-{
- background-position: 5px -180px;
-}
-
-#mailboxlist li.trash.empty a
-{
- background-position: 5px -90px;
-}
-
-#mailboxlist li a
-{
- cursor: default;
- display: block;
- position: relative;
- padding-left: 25px;
- padding-top: 2px;
- padding-bottom: 2px;
- text-decoration: none;
- height: 15px;
- background: url(images/icons/folders.png) 5px 0 no-repeat;
-}
-
#mailboxlist li.unread
{
font-weight: bold;
}
-#mailboxlist li.virtual > a
-{
- color: #666;
-}
-
#mailboxlist li.recent > a
{
color: #0066FF;
}
-#mailboxlist li.selected,
-#mailboxlist li.droptarget li.selected
-{
- background-color: #929292;
-}
-
-#mailboxlist li.selected > a,
-#mailboxlist li.droptarget li.selected a
-{
- color: #FFF;
- font-weight: bold;
-}
-
-#mailboxlist li.droptarget
-{
- background-color: #FFFFA6;
-}
-
-/* styles for nested folders */
-#mailboxlist ul {
- list-style: none;
- padding: 0;
- margin: 0;
- border-top: 1px solid #EBEBEB;
- background-color: #FFF;
- font-weight: normal;
-}
-
-#mailboxlist li.mailbox ul li a {
- padding-left: 40px; /* 24 + 1 x 16 */
- background-position: 20px 0; /* 4 + 1 x 16 */
-}
-#mailboxlist li.mailbox ul li div.treetoggle {
- left: 23px !important;
-}
-
-#mailboxlist li.mailbox ul ul li.mailbox a {
- padding-left: 56px; /* 2x */
- background-position: 36px 0;
-}
-#mailboxlist li.mailbox ul ul li div.treetoggle {
- left: 39px !important;
-}
-
-#mailboxlist li.mailbox ul ul ul li.mailbox a {
- padding-left: 72px; /* 3x */
- background-position: 52px 0;
-}
-#mailboxlist li.mailbox ul ul ul li div.treetoggle {
- left: 55px !important;
-}
-
-#mailboxlist li.mailbox ul ul ul ul li.mailbox a {
- padding-left: 88px; /* 4x */
- background-position: 68px 0;
-}
-#mailboxlist li.mailbox ul ul ul ul li div.treetoggle {
- left: 71px !important;
-}
-
-/* indent folders on levels > 4 */
-#mailboxlist li.mailbox ul ul ul ul ul li {
- padding-left: 16px;
-}
-#mailboxlist li.mailbox ul ul ul ul ul li div.treetoggle {
- left: 87px !important;
-}
-
-#mailboxlist li.mailbox ul li.drafts a
-{
- background-position: 21px -37px;
-}
-
-#mailboxlist li.mailbox ul li.sent a
-{
- background-position: 21px -54px;
-}
-
-#mailboxlist li.mailbox ul li.junk a
-{
- background-position: 21px -73px;
-}
-
-#mailboxlist li.mailbox ul li.trash a
-{
- background-position: 21px -180px;
-}
-
-#mailboxlist li.mailbox ul li.trash.empty a
-{
- background-position: 21px -90px;
-}
-
#listcontrols
{
position: relative;
diff --git a/skins/classic/settings.css b/skins/classic/settings.css
index 3b084de87..fb4303f2b 100644
--- a/skins/classic/settings.css
+++ b/skins/classic/settings.css
@@ -23,12 +23,6 @@
font-style: italic;
}
-#subscription-table li.selected a
-{
- color: #FFF;
- background-color: #CC3333;
-}
-
#subscription-table li.root
{
font-size: 5%;
@@ -37,28 +31,16 @@
padding: 2px;
}
-#subscription-table li a.name
-{
- overflow: hidden;
- text-overflow: ellipsis;
- width: 100%;
- display: block;
- float: left;
- padding: 0 0 0 5px;
- height: 24px;
- line-height: 24px;
-}
-
-#subscription-table li input
-{
+#subscription-table li input {
position: absolute;
right: 0;
+ top: 2px;
}
-html.chrome #subscription-table li input,
-html.opera #subscription-table li input
-{
- margin-top: 6px;
+#subscription-table li a {
+ padding-right: 20px;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
#folder-box,
diff --git a/skins/classic/templates/folders.html b/skins/classic/templates/folders.html
index 66bec6243..7ca4ac49f 100644
--- a/skins/classic/templates/folders.html
+++ b/skins/classic/templates/folders.html
@@ -22,7 +22,7 @@
<div id="folderlist-title" class="boxtitle"><span class="rightalign"><roundcube:label name="subscribed" /></span><roundcube:label name="folders" /></div>
<div id="folderlist-content" class="boxlistcontent">
<roundcube:object name="foldersubscription" form="subscriptionform" id="subscription-table"
- summary="Folder subscription table" class="treelist" />
+ summary="Folder subscription table" class="treelist folderlist" />
</div>
<div id="folderlist-footer" class="boxfooter">
<roundcube:button command="create-folder" type="link" title="createfolder" class="buttonPas addgroup" classAct="button addgroup" content=" " />
diff --git a/skins/classic/templates/mail.html b/skins/classic/templates/mail.html
index b73398b95..7f1e1b8bd 100644
--- a/skins/classic/templates/mail.html
+++ b/skins/classic/templates/mail.html
@@ -24,7 +24,7 @@
<div id="mailboxlist-container">
<div id="mailboxlist-title" class="boxtitle"><roundcube:label name="mailboxlist" /></div>
<div id="mailboxlist-content" class="boxlistcontent">
-<roundcube:object name="mailboxlist" id="mailboxlist" class="treelist" folder_filter="mail" />
+ <roundcube:object name="mailboxlist" id="mailboxlist" class="treelist folderlist" folder_filter="mail" />
</div>
<div id="mailboxlist-footer" class="boxfooter">
<roundcube:button name="mailboxmenulink" id="mailboxmenulink" type="link" title="folderactions" class="button groupactions" onclick="rcmail_ui.show_popup('mailboxmenu');return false" content=" " />