Small style changes

master
rubenwardy 2014-11-07 15:49:37 +00:00
parent acb6d5e102
commit 97eccf8332
2 changed files with 15 additions and 6 deletions

View File

@ -1,17 +1,26 @@
/* Dark Style */
.lichess_widget {
font-family: "Open Sans","Lucida Grande", "Lucida Sans Unicode", Geneva, Verdana, sans-serif;
display: inline-block;
margin: 2px;
background: #333;
border: 1px solid #444;
padding: 5px 7px 7px 5px;
color: #e0e0e0;
color: #acacac;
border-radius: 4px;
text-decoration: none;
}
.lichess_widget:hover {
background: #4A4A4A;
}
.lichess_widget b {
font-weight: 700;
font-size: 100%;
}
.lichess_widget img {
margin: 0 10px 0 0;
display: inline-block;
@ -19,12 +28,12 @@
vertical-align: middle;
}
.lichess_widget span {
display:inline-block;
vertical-align:middle;
display: inline-block;
vertical-align: middle;
}
.lichess_long {
width: 200px;
min-width: 220px;
}
.lichess_long hr {

View File

@ -48,7 +48,7 @@ lichess.all_scores = function(author, text) {
if (text && text != "")
text = text + " | ";
$("#lichess_widget_" + id + " > span").text(text + "Classical: " + data.perfs.classical.rating + " | Bullet: " + data.perfs.bullet.rating);
$("#lichess_widget_" + id + " > span").html(text + "Classical <b>" + data.perfs.classical.rating + "</b> | Bullet <b>" + data.perfs.bullet.rating + "</b>");
}
});
};
@ -74,7 +74,7 @@ lichess.long_details = function(author, text) {
if (data.perfs.hasOwnProperty(key) && data.perfs[key].games > 0) {
if (res!="")
res += "<br />";
res += key.capitalize() + " rating: " + data.perfs[key].rating;
res += key.capitalize() + " <b>" + data.perfs[key].rating + "</b> / " + data.perfs[key].games + " Games";
}
}
$("#lichess_widget_" + id + " > span").html(res);