From 4b056b7416a09d6d77d2c0fe2beb2038f8029aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=A4=AA?= Date: Sun, 22 Dec 2013 08:36:49 +1100 Subject: [PATCH] Add toggle button to tournaments --- js/client-chat-tournament.js | 5 ++++- style/client.css | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/js/client-chat-tournament.js b/js/client-chat-tournament.js index efc2d6542..e21fa111b 100644 --- a/js/client-chat-tournament.js +++ b/js/client-chat-tournament.js @@ -83,7 +83,10 @@ this.$wrapper = $wrapper; $wrapper.html( - '
Tournament
' + + '
' + + ' Tournament' + + '
Toggle
' + + '
' + '
' + '
' + '
' + diff --git a/style/client.css b/style/client.css index f4749fadc..b5f84a55b 100644 --- a/style/client.css +++ b/style/client.css @@ -987,6 +987,17 @@ a.ilink:hover { font-weight: bold; cursor: pointer; } +.tournament-toggle { + position: absolute; + right: 0; + top: 0; + padding: 0 0.5em; + font-weight: normal; + font-size: 80%; + background-color: rgba(242, 247, 250, 0.85); + border-left: 1px #aaa solid; + border-right: 1px #aaa solid; +} .tournament-box { position: absolute; @@ -996,6 +1007,7 @@ a.ilink:hover { z-index: 1; line-height: 1em; border-bottom: 1px #aaa solid; + border-right: 1px #aaa solid; background-color: rgba(242, 247, 250, 0.85); max-height: 0; overflow: hidden;