From 50d9b2934742ad9fb0dc8354d405789e3c14cd00 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 1 Apr 2016 00:16:39 +0200 Subject: slightly change the way fullscreen works and bring it to mod mail --- view/css/mod_chat.css | 4 +--- view/js/main.js | 10 ++++++---- view/theme/redbasic/css/style.css | 12 ++++++++++-- view/tpl/chat.tpl | 4 ++-- view/tpl/mail_display.tpl | 10 +++++++--- 5 files changed, 26 insertions(+), 14 deletions(-) (limited to 'view') diff --git a/view/css/mod_chat.css b/view/css/mod_chat.css index 3dd8309d3..830cc2f06 100644 --- a/view/css/mod_chat.css +++ b/view/css/mod_chat.css @@ -1,5 +1,4 @@ -#chatroom-new, -#inline { +#chatroom-new { display: none; } @@ -31,7 +30,6 @@ aside { } #chatTopBar { - float: left; width: 100%; overflow-y: auto; } diff --git a/view/js/main.js b/view/js/main.js index d6d1238d4..4e99bf1aa 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -1454,13 +1454,15 @@ function zid(s) { function makeFullScreen(full) { if(typeof full=='undefined' || full == true) { - $('#fullscreen, aside').hide(); - $('#inline').show(); + $('#fullscreen-btn, header, nav, aside').hide(); + $('main').css({'width': '100%', 'max-width': 'none'}); + $('#inline-btn').show(); $('.generic-content-wrapper').addClass('fullscreen'); } else { - $('#fullscreen, aside').show(); - $('#inline').hide(); + $('#fullscreen-btn, header, nav, aside').show(); + $('main').removeAttr('style'); + $('#inline-btn').hide(); $('.generic-content-wrapper').removeClass('fullscreen'); } } diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 3172a6520..6feb1154b 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -1519,19 +1519,27 @@ nav .dropdown-menu { } .generic-content-wrapper.fullscreen { - position: fixed; + position: absolute; width: 100%; height: 100%; top: 0px; left: 0px; + border: 0px; border-radius: 0px; - z-index: 10000; } .generic-content-wrapper.fullscreen .section-title-wrapper { border-radius: 0px; } +.generic-content-wrapper.fullscreen .section-content-wrapper { + border-radius: 0px; +} + +#inline-btn { + display: none; +} + .chatroom-index-row:hover td, .locs-index-row:hover td, [id^="cloud-index-"]:hover td, diff --git a/view/tpl/chat.tpl b/view/tpl/chat.tpl index 47b1e83b1..4750f81fd 100644 --- a/view/tpl/chat.tpl +++ b/view/tpl/chat.tpl @@ -1,8 +1,8 @@
- - + + {{if $is_owner}}
diff --git a/view/tpl/mail_display.tpl b/view/tpl/mail_display.tpl index 24e763571..a7754daf2 100755 --- a/view/tpl/mail_display.tpl +++ b/view/tpl/mail_display.tpl @@ -1,8 +1,12 @@
- {{if $mailbox == 'combined'}} - {{$delete}} - {{/if}} +
+ + + {{if $mailbox == 'combined'}} + {{$delete}} + {{/if}} +

{{$prvmsg_header}}

-- cgit v1.2.3