From 04ad8026ef3f8ea2ebc9c7f63e3d19e11fbe6304 Mon Sep 17 00:00:00 2001 From: Thibault Duplessis Date: Tue, 6 Jan 2015 21:27:13 +0100 Subject: [PATCH] tournament style tweaks --- public/stylesheets/tournament.css | 17 +++++++++++------ ui/tournament/src/view/arena.js | 2 +- ui/tournament/src/view/util.js | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/public/stylesheets/tournament.css b/public/stylesheets/tournament.css index e9befd0b85..81fab6bbe4 100644 --- a/public/stylesheets/tournament.css +++ b/public/stylesheets/tournament.css @@ -29,6 +29,12 @@ ol.scheduled_tournaments a:hover { padding-top: 20px; overflow: hidden; } +#tournament a.user_link em { + font-weight: lighter; + font-style: italic; + font-size: 0.8em; + padding-left: 5px; +} #tournament a.pov { display: block; margin: 0 25px 1em 25px; @@ -84,7 +90,7 @@ ol.scheduled_tournaments a:hover { } #tournament table.standing td.name, #tournament table.standing th:first-child { - padding-left: 15px; + padding-left: 10px; white-space: nowrap; } #tournament table.standing td.name span { @@ -101,20 +107,19 @@ ol.scheduled_tournaments a:hover { #tournament table.standing .legend span { margin-left: 10px; } -#tournament table.standing .sheet { - letter-spacing: -1.5px; -} #tournament table.standing .sheet, #tournament table.standing .total { text-align: right; font-family: monospace; + letter-spacing: 0; } #tournament table.standing .sheet span, #tournament table.standing .total span { - padding: 0 3px; + display: inline-block; + width: 12px; } #tournament div.standing_wrap td.total { - padding-right: 22px; + padding-right: 20px; } #tournament .double { color: #d59120; diff --git a/ui/tournament/src/view/arena.js b/ui/tournament/src/view/arena.js index b5a4340132..3a458dd1ae 100644 --- a/ui/tournament/src/view/arena.js +++ b/ui/tournament/src/view/arena.js @@ -37,7 +37,7 @@ function playerTrs(ctrl, maxScore, player) { m('td.total', m('strong', player.sheet.fire ? { - class: 'is-gold text', + class: 'is-gold', 'data-icon': 'Q' } : {}, player.sheet.total)) ] diff --git a/ui/tournament/src/view/util.js b/ui/tournament/src/view/util.js index e31600b71a..d9216828eb 100644 --- a/ui/tournament/src/view/util.js +++ b/ui/tournament/src/view/util.js @@ -58,7 +58,7 @@ module.exports = { }, children: [ (p.title ? p.title + ' ' : '') + p.username, - p.rating ? ' (' + p.rating + ')' : '', + p.rating ? m('em', p.rating) : null ] }; },