From f8a9c2c59cda13e41f1295ce378885e29ad39780 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 4 Apr 2014 11:47:16 +0200 Subject: Improve HTML structure so toolbar and content are in separate containers. This makes splitters size and positioning better. --- skins/larry/addressbook.css | 6 ++--- skins/larry/mail.css | 12 +++++----- skins/larry/styles.css | 13 ++++++----- skins/larry/templates/addressbook.html | 19 +++++++++------- skins/larry/templates/compose.html | 4 ++++ skins/larry/templates/mail.html | 40 ++++++++++++++++----------------- skins/larry/templates/message.html | 8 ++++++- skins/larry/templates/messageerror.html | 4 ++++ skins/larry/templates/messagepart.html | 3 +++ skins/larry/ui.js | 2 +- 10 files changed, 67 insertions(+), 44 deletions(-) (limited to 'skins') diff --git a/skins/larry/addressbook.css b/skins/larry/addressbook.css index 8e17d77f7..bfdd68127 100644 --- a/skins/larry/addressbook.css +++ b/skins/larry/addressbook.css @@ -39,7 +39,7 @@ #directorylistbox { position: absolute; - top: 42px; + top: 0; left: 0; width: 100%; bottom: 0; @@ -47,7 +47,7 @@ #addresslist { position: absolute; - top: 42px; + top: 0; left: 0; width: 280px; bottom: 0; @@ -55,7 +55,7 @@ #contacts-box { position: absolute; - top: 42px; + top: 0; left: 292px; right: 0; bottom: 0; diff --git a/skins/larry/mail.css b/skins/larry/mail.css index 6cfbcaac3..74ce43e29 100644 --- a/skins/larry/mail.css +++ b/skins/larry/mail.css @@ -34,7 +34,7 @@ #mailview-top { position: absolute; - top: 42px; + top: 0; left: 0; right: 0; bottom: 0px; @@ -59,7 +59,7 @@ #mailboxcontainer, #messagelistcontainer { position: absolute; - top: 42px; + top: 0; left: 0; width: 100%; bottom: 0; @@ -1203,7 +1203,7 @@ div.message-partheaders .headers-table td.header { #messagepartcontainer { position: absolute; - top: 42px; + top: 0; left: 232px; right: 0; bottom: 0; @@ -1217,7 +1217,7 @@ div.message-partheaders .headers-table td.header { #messagepartheader { position: absolute; - top: 42px; + top: 0; left: 0; width: 220px; bottom: 0; @@ -1259,7 +1259,7 @@ div.message-partheaders .headers-table td.header { #compose-contacts { position: absolute; - top: 42px; + top: 0; left: 0; width: 100%; bottom: 0; @@ -1362,7 +1362,7 @@ div.message-partheaders .headers-table td.header { #compose-content { position: absolute; - top: 42px; + top: 0; left: 0; right: 0; bottom: 0px; diff --git a/skins/larry/styles.css b/skins/larry/styles.css index f55ac31b8..518ac725a 100644 --- a/skins/larry/styles.css +++ b/skins/larry/styles.css @@ -964,6 +964,14 @@ a.iconlink.upload { bottom: 20px; } +#mainscreencontent { + position: absolute; + top: 42px; + left: 0; + right: 0; + bottom: 0; +} + .minimal #mainscreen { top: 62px; } @@ -996,11 +1004,6 @@ a.iconlink.upload { } .minwidth { - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 100%; min-width: 1024px; } diff --git a/skins/larry/templates/addressbook.html b/skins/larry/templates/addressbook.html index ebdce51be..97efdc6f3 100644 --- a/skins/larry/templates/addressbook.html +++ b/skins/larry/templates/addressbook.html @@ -24,6 +24,15 @@ + + + +
+
@@ -41,13 +50,6 @@
- - -
@@ -73,9 +75,10 @@
-
+
+
diff --git a/skins/larry/templates/compose.html b/skins/larry/templates/compose.html index 11662d185..a7f2e7e2f 100644 --- a/skins/larry/templates/compose.html +++ b/skins/larry/templates/compose.html @@ -35,6 +35,8 @@
+
+
@@ -181,6 +183,8 @@
+
+
diff --git a/skins/larry/templates/mail.html b/skins/larry/templates/mail.html index ff5f7549c..b4e216a09 100644 --- a/skins/larry/templates/mail.html +++ b/skins/larry/templates/mail.html @@ -11,9 +11,8 @@ - + -
@@ -24,6 +23,23 @@
+
+ + +
+ +
+ + + + +
+ +
@@ -43,22 +59,6 @@
-
- - -
- -
- - - - -
-
@@ -119,9 +119,9 @@
-
+
-
+
    diff --git a/skins/larry/templates/message.html b/skins/larry/templates/message.html index df92b7511..0343004f6 100644 --- a/skins/larry/templates/message.html +++ b/skins/larry/templates/message.html @@ -20,6 +20,8 @@ +
    +
    @@ -31,7 +33,7 @@
    -
    +
    @@ -84,6 +86,10 @@
    + +
    + +
    diff --git a/skins/larry/templates/messageerror.html b/skins/larry/templates/messageerror.html index dbe373a12..d509ce804 100644 --- a/skins/larry/templates/messageerror.html +++ b/skins/larry/templates/messageerror.html @@ -23,6 +23,8 @@
+
+
@@ -40,6 +42,8 @@
+
+
diff --git a/skins/larry/templates/messagepart.html b/skins/larry/templates/messagepart.html index 0ec935873..3b878c9d7 100644 --- a/skins/larry/templates/messagepart.html +++ b/skins/larry/templates/messagepart.html @@ -16,6 +16,8 @@ +
+

@@ -29,6 +31,7 @@
+
diff --git a/skins/larry/ui.js b/skins/larry/ui.js index af5a6f3b9..05bfa704e 100644 --- a/skins/larry/ui.js +++ b/skins/larry/ui.js @@ -329,7 +329,7 @@ function rcube_mail_ui() }); // set min-width to show all toolbar buttons - var screen = $('body > div.minwidth'); + var screen = $('body.minwidth'); if (screen.length) { screen.css('min-width', $('.toolbar').width() + $('#quicksearchbar').width() + $('#searchfilter').width() + 30); } -- cgit v1.2.3