dgt play style tweaks

initial-glicko
Thibault Duplessis 2020-09-21 09:06:00 +02:00
parent 30a5f0462b
commit c794d88af9
3 changed files with 8 additions and 11 deletions

View File

@ -47,7 +47,6 @@ object dgt {
def play(token: AccessToken)(implicit ctx: Context) = def play(token: AccessToken)(implicit ctx: Context) =
layout("play", embedJsUnsafeLoadThen(s"""lichessDgt.playPage("${token.id.value}")"""))( layout("play", embedJsUnsafeLoadThen(s"""lichessDgt.playPage("${token.id.value}")"""))(
h1("DGT - play"),
div(id := "dgt-play-zone")(pre(id := "dgt-play-zone-log")), div(id := "dgt-play-zone")(pre(id := "dgt-play-zone-log")),
div(cls := "dgt__play__help")( div(cls := "dgt__play__help")(
h2(iconTag("", "If a move is not detected")), h2(iconTag("", "If a move is not detected")),

View File

@ -14,14 +14,14 @@
} }
#dgt-play-zone { #dgt-play-zone {
/* style goes here */ overflow: auto;
overflow: auto; height: 400px; height: 60vh;
@if $theme-dark { padding: 2em;
background-color: #222; background: #333;
} @else { &-log {
background-color: #333; font-family: monospace;
font-size: 1.2em;
} }
} }
.log-warn { color: orange } .log-warn { color: orange }
@ -32,6 +32,3 @@
.log-warn, .log-error { font-weight: bold; } .log-warn, .log-error { font-weight: bold; }
.dgt-black-move { color: brown; font-size: xx-large;} .dgt-black-move { color: brown; font-size: xx-large;}
.dgt-white-move { color: tan; font-size: xx-large;} .dgt-white-move { color: tan; font-size: xx-large;}

View File

@ -1,4 +1,5 @@
@import "../../../common/css/plugin"; @import "../../../common/css/plugin";
@import "../../../common/css/form/form3"; @import "../../../common/css/form/form3";
@import "../../../common/css/form/radio"; @import "../../../common/css/form/radio";
@import "../../../common/css/base/scrollbar";
@import "../dgt"; @import "../dgt";