diff --git a/app/ui/SiteMenu.scala b/app/ui/SiteMenu.scala index 8a4d3fd1f1..550752c56d 100644 --- a/app/ui/SiteMenu.scala +++ b/app/ui/SiteMenu.scala @@ -21,14 +21,10 @@ final class SiteMenu(trans: I18nKeys) { val tv = new Elem("tv", routes.Tv.index, I18nKey.untranslated("TV")) val message = new Elem("message", routes.Message.inbox(page = 1), trans.inbox) - private val beta = List(play, game, puzzle, tournament, user, team, forum, tv) - private val authenticated = List(play, game, tournament, user, team, forum, tv) + private val authenticated = List(play, game, puzzle, tournament, user, team, forum, tv) private val anonymous = List(play, game, tournament, user, team, forum, tv) - private val betaTesters = Set("thibault", "hellball", "clarkey", "legend", "chubakka", "iron_logician") - def all(me: Option[User]) = me match { - case Some(me) if betaTesters(me.id) ⇒ beta case Some(me) ⇒ authenticated case _ ⇒ anonymous } diff --git a/cljs/puzzle/src/core.cljs b/cljs/puzzle/src/core.cljs index b31d7c34f8..048eb3d51e 100644 --- a/cljs/puzzle/src/core.cljs +++ b/cljs/puzzle/src/core.cljs @@ -31,6 +31,11 @@ (jq/css $right {:top (str (- 256 (/ (jq/height $right) 2)) "px")})) (defn user-chart! [$chart] - (.sparkline $chart (jq/data $chart :points) (clj->js {:type "line" - :width "213px" - :height "80px"}))) + (let [dark (jq/has-class ($ :body) :dark) + theme {:lineColor (if dark "#4444ff" "#0000ff") + :fillColor (if dark "#222255" "#ccccff")}] + (.sparkline $chart (jq/data $chart :points) (clj->js (merge + {:type "line" + :width "213px" + :height "80px"} + theme))))) diff --git a/public/images/vote-dark.png b/public/images/vote-dark.png new file mode 100644 index 0000000000..49dda8cbfc Binary files /dev/null and b/public/images/vote-dark.png differ diff --git a/public/images/vote.png b/public/images/vote.png index ba247d04cc..a7983181c0 100644 Binary files a/public/images/vote.png and b/public/images/vote.png differ diff --git a/public/stylesheets/dark.css b/public/stylesheets/dark.css index 5036164e0d..a557359073 100644 --- a/public/stylesheets/dark.css +++ b/public/stylesheets/dark.css @@ -12,7 +12,7 @@ body.dark input, body.dark textarea, body.dark div.analysis_menu > a.active { body.dark div.analysis_menu > a.active { border-bottom-color: #1a1a1a; } -body.dark #reconnecting, body.dark .mini_board, body.dark #nb_connected_players, body.dark div.lichess_chat_top, body.dark div.lichess_chat .lichess_messages, body.dark div.undertable_top, body.dark div.undertable_inner, body.dark div.undertable td, body.dark div.lichess_table .lichess_button, body.dark div.lichess_chat form input, body.dark div.lichess_board_wrap, body.dark #translation_call, body.dark div.footer_wrap, body.dark div.game_config .optional_config, body.dark .ui-state-default, body.dark .ui-widget-content, body.dark div.lichess_goodies div.box, body.dark div.lichess_table, body.dark div.lichess_separator, body.dark div.clock, body.dark .button, body.dark #GameText, body.dark #tournament_side, body.dark #GameBoard table.boardTable, body.dark div.shortcuts .title, body.dark div.content_box, body.dark div.content_box_top, body.dark div.content_box_top a, body.dark div.content_box_inter, body.dark div.content_box_inter a.active, body.dark #site_header div.side_menu a.active, body.dark div.game_row, body.dark form.search_user_form input, body.dark div.user_show div.boxed_data, body.dark #lichess_forum div.post, body.dark #lichess_forum textarea, body.dark #lichess_forum form.wide input, body.dark #lichess_message tr, body.dark #lichess_message div.thread_message, body.dark #lichess_message textarea, body.dark #lichess_message input, body.dark .content_box form input, body.dark div.progressbar, body.dark form.translation_form div.messages, body.dark form.translation_form input, body.dark div.locale_menu a, body.dark #adv_chart, body.dark #top .dropdown, body.dark div.search_status, body.dark table.slist, body.dark table.slist thead th, body.dark #notifications > div, body.dark form.wide input[type="text"], body.dark form.wide textarea, body.dark #team .team-left, body.dark #team .team-right, body.dark #team h2, body.dark .leaderboard_title, body.dark #friend_box, body.dark #friend_box .title, body.dark div.user_show div.mod_zone, body.dark div.user_show div.user-infos, body.dark div.game_config input[type="text"], body.dark #powerTip, body.dark #powerTip > .title, body.dark #powerTip > .actions a, body.dark #hooks_table th, body.dark #hooks_table td, body.dark #hooks_wrap > div.tabs > a, body.dark #hooks_chart > div.grid, body.dark div.analysis_menu, body.dark div.analysis_menu > a { +body.dark #reconnecting, body.dark .mini_board, body.dark #nb_connected_players, body.dark div.lichess_chat_top, body.dark div.lichess_chat .lichess_messages, body.dark div.undertable_top, body.dark div.undertable_inner, body.dark div.undertable td, body.dark div.lichess_table .lichess_button, body.dark div.lichess_chat form input, body.dark div.lichess_board_wrap, body.dark #translation_call, body.dark div.footer_wrap, body.dark div.game_config .optional_config, body.dark .ui-state-default, body.dark .ui-widget-content, body.dark div.lichess_goodies div.box, body.dark #puzzle div.box, body.dark #puzzle h1, body.dark div.lichess_table, body.dark div.lichess_separator, body.dark div.clock, body.dark .button, body.dark #GameText, body.dark #tournament_side, body.dark #GameBoard table.boardTable, body.dark div.shortcuts .title, body.dark div.content_box, body.dark div.content_box_top, body.dark div.content_box_top a, body.dark div.content_box_inter, body.dark div.content_box_inter a.active, body.dark #site_header div.side_menu a.active, body.dark div.game_row, body.dark form.search_user_form input, body.dark div.user_show div.boxed_data, body.dark #lichess_forum div.post, body.dark #lichess_forum textarea, body.dark #lichess_forum form.wide input, body.dark #lichess_message tr, body.dark #lichess_message div.thread_message, body.dark #lichess_message textarea, body.dark #lichess_message input, body.dark .content_box form input, body.dark div.progressbar, body.dark form.translation_form div.messages, body.dark form.translation_form input, body.dark div.locale_menu a, body.dark #adv_chart, body.dark #top .dropdown, body.dark div.search_status, body.dark table.slist, body.dark table.slist thead th, body.dark #notifications > div, body.dark form.wide input[type="text"], body.dark form.wide textarea, body.dark #team .team-left, body.dark #team .team-right, body.dark #team h2, body.dark .leaderboard_title, body.dark #friend_box, body.dark #friend_box .title, body.dark div.user_show div.mod_zone, body.dark div.user_show div.user-infos, body.dark div.game_config input[type="text"], body.dark #powerTip, body.dark #powerTip > .title, body.dark #powerTip > .actions a, body.dark #hooks_table th, body.dark #hooks_table td, body.dark #hooks_wrap > div.tabs > a, body.dark #hooks_chart > div.grid, body.dark div.analysis_menu, body.dark div.analysis_menu > a { border-color: #3d3d3d; } body.dark #timeline, body.dark #timeline > .entry { @@ -159,6 +159,22 @@ body.dark .s16.ddown { body.dark .future_game_analysis .spinner { background-image: url("../images/spinner-gray-dark.gif"); } +body.dark #puzzle div.upvote a { + background-image: url('../images/vote-dark.png'); +} +body.dark #puzzle > .side p.loss { + color: #e97472; + background: #582b33; +} +body.dark #puzzle > .side p.retry { + color: #8482c9; + background: #101034; +} +body.dark #puzzle > .side p.great, +body.dark #puzzle > .side p.win { + background: #103410; + color: #74a962; +} body.dark ::-webkit-input-placeholder { color: #666; diff --git a/public/stylesheets/puzzle.css b/public/stylesheets/puzzle.css index d92d2dc7e4..d963f60845 100644 --- a/public/stylesheets/puzzle.css +++ b/public/stylesheets/puzzle.css @@ -99,6 +99,9 @@ #puzzle div.upvote { float: right; } +#puzzle div.upvote a { + cursor: normal; +} #puzzle div.upvote.enabled a { cursor: pointer; }