Simpify CSS for sticky chat

pull/1815/head
j@mailb.org 2013-06-17 14:28:04 +02:00 committed by j
parent 315e229c83
commit a554552bed
2 changed files with 3 additions and 3 deletions

View File

@ -168,9 +168,9 @@ a img {
} }
#editorcontainer { #editorcontainer {
position: absolute; position: absolute;
width: 100%;
top: 37px; /* + 1px border */ top: 37px; /* + 1px border */
left: 0px; left: 0px;
right: 0px;
bottom: 0px; bottom: 0px;
z-index: 1; z-index: 1;
} }

View File

@ -42,13 +42,13 @@ var chat = (function()
padcookie.setPref("chatAlwaysVisible", true); padcookie.setPref("chatAlwaysVisible", true);
$('#chatbox').addClass("stickyChat"); $('#chatbox').addClass("stickyChat");
$('#chattext').css({"top":"0px"}); $('#chattext').css({"top":"0px"});
$('#editorcontainer').css({"right":"192px", "width":"auto"}); $('#editorcontainer').css({"right":"192px"});
isStuck = true; isStuck = true;
} else { // Unstick it } else { // Unstick it
padcookie.setPref("chatAlwaysVisible", false); padcookie.setPref("chatAlwaysVisible", false);
$('#chatbox').removeClass("stickyChat"); $('#chatbox').removeClass("stickyChat");
$('#chattext').css({"top":"25px"}); $('#chattext').css({"top":"25px"});
$('#editorcontainer').css({"right":"0px", "width":"100%"}); $('#editorcontainer').css({"right":"0px"});
isStuck = false; isStuck = false;
} }
}, },