Always show right toggle

This commit is contained in:
Mattias Erming 2014-10-10 21:21:40 +02:00
parent 1707396e82
commit b3712842bf
2 changed files with 12 additions and 7 deletions

View File

@ -120,9 +120,14 @@ button {
content: "\f0c9"; content: "\f0c9";
} }
#viewport .rt { #viewport .rt {
display: block;
float: right; float: right;
margin: 6px -12px 0 12px; margin: 6px -12px 0 12px;
} }
#viewport.rt #chat .sidebar {
-webkit-transform: translate3d(180px, 0, 0);
transform: translate3d(180px, 0, 0);
}
#sidebar { #sidebar {
bottom: 52px; bottom: 52px;
left: 0; left: 0;
@ -463,6 +468,11 @@ button {
position: absolute; position: absolute;
right: 0; right: 0;
width: 180px; width: 180px;
transition: all .4s;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-perspective: 1000;
perspective: 1000;
} }
#chat .lobby .chat, #chat .lobby .chat,
#chat .query .chat { #chat .query .chat {
@ -958,11 +968,6 @@ button {
} }
#chat .sidebar { #chat .sidebar {
right: -180px; right: -180px;
transition: all .4s;
-webkit-transform: translateZ(0);
transform: translateZ(0);
-webkit-perspective: 1000;
perspective: 1000;
} }
#chat .title:before { #chat .title:before {
display: none; display: none;

View File

@ -385,7 +385,7 @@ $(function() {
if (viewport.is(".lt, .rt")) { if (viewport.is(".lt, .rt")) {
e.stopPropagation(); e.stopPropagation();
chat.find(".chat").one("click", function() { chat.find(".chat").one("click", function() {
viewport.removeClass("lt rt"); viewport.removeClass("lt");
}); });
} }
}); });
@ -462,7 +462,7 @@ $(function() {
favico.badge(""); favico.badge("");
} }
viewport.removeClass(); viewport.removeClass("lt");
$("#windows .active").removeClass("active"); $("#windows .active").removeClass("active");
var chan = $(target) var chan = $(target)