Commit 7c70452b authored by JC Brand's avatar JC Brand

Some tweaks for better mobile/responsive behavior.

parent ea701f38
...@@ -1047,11 +1047,15 @@ ...@@ -1047,11 +1047,15 @@
display: block; display: block;
font-size: 14px; font-size: 14px;
height: 35px; height: 35px;
left: auto;
position: fixed; position: fixed;
right: 15px; left: 0;
right: 0;
width: auto; width: auto;
z-index: 30; } z-index: 30; }
@media screen and (max-width: 480px) {
#conversejs {
width: 100%;
width: 100vw; } }
#conversejs ::selection { #conversejs ::selection {
background-color: #DCF9F6; } background-color: #DCF9F6; }
#conversejs ::-moz-selection { #conversejs ::-moz-selection {
...@@ -1243,7 +1247,7 @@ ...@@ -1243,7 +1247,7 @@
display: block; display: block;
float: right; float: right;
height: 35px; height: 35px;
margin: 0 7px; margin: 0 0.5em;
width: 200px; } width: 200px; }
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
#conversejs .chatbox { #conversejs .chatbox {
...@@ -1260,7 +1264,8 @@ ...@@ -1260,7 +1264,8 @@
@media screen and (max-width: 480px) { @media screen and (max-width: 480px) {
#conversejs .chatbox .box-flyout { #conversejs .chatbox .box-flyout {
height: 400px; height: 400px;
width: 100%; } } width: 100%;
height: 88vh; } }
#conversejs .chatbox .chat-title { #conversejs .chatbox .chat-title {
color: white; color: white;
line-height: 15px; line-height: 15px;
...@@ -1457,7 +1462,11 @@ ...@@ -1457,7 +1462,11 @@
left: 0; } left: 0; }
#conversejs #controlbox { #conversejs #controlbox {
display: none; } display: none;
margin-right: 1em; }
@media screen and (max-width: 480px) {
#conversejs #controlbox {
margin: 0; } }
#conversejs #controlbox .controlbox-head { #conversejs #controlbox .controlbox-head {
background-color: #577BDD; background-color: #577BDD;
border-top-left-radius: 4px; border-top-left-radius: 4px;
...@@ -1739,7 +1748,7 @@ ...@@ -1739,7 +1748,7 @@
color: #0a0a0a; color: #0a0a0a;
float: right; float: right;
height: 100%; height: 100%;
margin: 0 7px; margin: 0 0.5em;
padding: 10px 8px 0 8px; } padding: 10px 8px 0 8px; }
#conversejs .toggle-controlbox span { #conversejs .toggle-controlbox span {
color: white; } color: white; }
...@@ -1986,7 +1995,7 @@ ...@@ -1986,7 +1995,7 @@
float: right; float: right;
font-weight: bold; font-weight: bold;
height: 100%; height: 100%;
margin: 0 7px; margin: 0 0.5em;
padding: 0; padding: 0;
width: 130px; } width: 130px; }
#conversejs #minimized-chats #toggle-minimized-chats { #conversejs #minimized-chats #toggle-minimized-chats {
......
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
@media screen and (max-width: $mobile-landscape-length) { @media screen and (max-width: $mobile-landscape-length) {
height: $mobile-chat-height; height: $mobile-chat-height;
width: $mobile-chat-width; width: $mobile-chat-width;
height: 88vh;
} }
} }
.chat-title { .chat-title {
......
#conversejs { #conversejs {
#controlbox { #controlbox {
display: none; display: none;
margin-right: 2*$chat-gutter;
@media screen and (max-width: $mobile-landscape-length) {
margin: 0;
}
.controlbox-head { .controlbox-head {
background-color: $controlbox-head-color; background-color: $controlbox-head-color;
border-top-left-radius: $chatbox-border-radius; border-top-left-radius: $chatbox-border-radius;
......
...@@ -5,11 +5,15 @@ ...@@ -5,11 +5,15 @@
display: block; display: block;
font-size: $font-size; font-size: $font-size;
height: $bottom-gutter-height; height: $bottom-gutter-height;
left: auto;
position: fixed; position: fixed;
right: 15px; left: 0;
right: 0;
width: auto; width: auto;
z-index: 30; z-index: 30;
@media screen and (max-width: $mobile-landscape-length) {
width: 100%;
width: 100vw;
}
::selection { ::selection {
background-color: $highlight-color; background-color: $highlight-color;
......
...@@ -49,7 +49,7 @@ $legend-font-size: 16px !default; ...@@ -49,7 +49,7 @@ $legend-font-size: 16px !default;
$chat-width: 200px !default; $chat-width: 200px !default;
$chat-height: 450px !default; $chat-height: 450px !default;
$chat-gutter: 7px !default; $chat-gutter: 0.5em !default;
$minimized-chats-width: 130px !default; $minimized-chats-width: 130px !default;
$mobile-chat-width: 100% !default; $mobile-chat-width: 100% !default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment