more tweaks for small screens

This commit is contained in:
Thibault Duplessis 2013-05-29 23:33:48 +02:00
parent 2806132b69
commit d601cadb43
3 changed files with 5 additions and 18 deletions

View file

@ -278,7 +278,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
}
} else {
$(document.body).removeClass("tight");
$('#timeline, div.lichess_goodies div.box').each(function() {
$('#timeline, div.lichess_goodies div.box, div.lichess_chat, div.under_chat').each(function() {
var ol = $(this).offset().left;
if (ol < 3) {
var dec = 3 - ol;
@ -287,6 +287,7 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
'margin-left': (dec - 30) + 'px',
'width': (230 - pad - dec) + 'px'
});
$(this).find('input.lichess_say').css('width', (204 - dec) + 'px');
}
});
}
@ -516,10 +517,6 @@ var lichess_sri = Math.random().toString(36).substring(5); // 8 chars
return false;
});
if ($(window).width() < 1060) {
$("div.lichess_chat").addClass("small_chat");
}
$("a.view_pgn_toggle").one("click", function() {
var $this = $(this).text("...");
$.ajax({

View file

@ -509,12 +509,11 @@ div.lichess_chat {
font-size: 11.5px;
position: absolute;
top: 205px;
left: -30px;
left: 0;
width: 228px;
margin-left: -30px;
border-radius: 4px;
}
div.lichess_chat.small_chat {
left: 0px;
}
div.lichess_chat_top {
border-radius: 4px 4px 0 0;
border: 1px solid #ccc;
@ -538,7 +537,6 @@ div.lichess_chat input.toggle_chat {
div.lichess_chat .lichess_messages {
height: 263px;
width: 226px;
border: 1px solid #ccc;
border-top: none;
overflow: hidden;
@ -546,9 +544,6 @@ div.lichess_chat .lichess_messages {
div.lichess_chat:hover .lichess_messages {
overflow: auto;
}
div.lichess_chat.small_chat .lichess_messages {
width: 186px;
}
div.lichess_chat form {
position: relative;
@ -560,9 +555,6 @@ div.lichess_chat form input {
border-radius: 0 0 4px 4px;
width: 202px;
}
div.lichess_chat.small_chat form input {
width: 172px;
}
div.lichess_chat a.send {
position: absolute;
top: 0px;
@ -587,7 +579,6 @@ div.lichess_chat li {
}
div.lichess_chat.kings ol.lichess_messages {
padding-left: 5px;
width: 221px;
}
div.lichess_chat.kings li {
margin: 0.6em 0;

1
todo
View file

@ -73,7 +73,6 @@ search bug http://fr.lichess.org/forum/search?text=user:aybabtu
hooks do not always disappear
don't show team leaders activity in mod logs
LilaError['[analysis] fred65 already analyses ueogn4fr, won't process ueogn4fr']
1024 compat (timeline) and http://ft.trillian.im/785abe041074fd64135ab3318aff1ec8767ab03d/6gZ41ZXugNdywSLY0JSQiVm7y6aeh.jpg
white advantage rounding http://en.lichess.org/analyse/fqzfbgll
DEPLOY p21