200 lines
3.5 KiB
CSS
200 lines
3.5 KiB
CSS
#trainer {
|
|
margin-bottom: 160px;
|
|
position: relative;
|
|
min-height: 600px;
|
|
}
|
|
#trainer .board_and_ground {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
#trainer div.box {
|
|
margin-bottom: 1em;
|
|
border: 1px solid #ccc;
|
|
padding: 7px;
|
|
}
|
|
#trainer > .side {
|
|
position: absolute;
|
|
top: 64px;
|
|
left: -222px;
|
|
width: 212px;
|
|
}
|
|
#trainer > .side h1 {
|
|
text-align: center;
|
|
font-size: 1.4em;
|
|
font-weight: bold;
|
|
margin-bottom: 10px;
|
|
}
|
|
#trainer > .side div.box {
|
|
margin-bottom: 20px;
|
|
padding: 0;
|
|
}
|
|
#trainer > .side div.box p {
|
|
padding: 10px;
|
|
}
|
|
body.dark #trainer > .side div.box {
|
|
border-color: #3d3d3d;
|
|
}
|
|
#trainer > .side div.box {
|
|
}
|
|
|
|
#trainer .right {
|
|
display: flex;
|
|
flex-flow: column nowrap;
|
|
justify-content: center;
|
|
padding-left: 15px;
|
|
width: 242px;
|
|
}
|
|
body.transp #trainer .right {
|
|
padding: 8px;
|
|
margin-left: 10px;
|
|
background: rgba(0,0,0,0.6);
|
|
}
|
|
|
|
form.color .color i {
|
|
display: block;
|
|
width: 30px;
|
|
height: 30px;
|
|
background-size: 30px 30px;
|
|
background-repeat: no-repeat;
|
|
padding: 0;
|
|
}
|
|
form.color .color_1 i {
|
|
background-image: url(../piece/cburnett/wK.svg);
|
|
}
|
|
form.color .color_2 i {
|
|
background-image: url(../piece/cburnett/wbK.svg);
|
|
}
|
|
form.color .color_3 i {
|
|
background-image: url(../piece/cburnett/bK.svg);
|
|
}
|
|
#trainer .lichess_board {
|
|
display: none;
|
|
border: 1px solid #ccc;
|
|
}
|
|
#trainer.white .white .lichess_board,
|
|
#trainer.black .black .lichess_board {
|
|
display: block;
|
|
}
|
|
#trainer .overlay_container {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
#trainer .score_container {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
}
|
|
#trainer .progress_bar_container {
|
|
margin: 10px 0 10px 0;
|
|
width: 514px;
|
|
height: 10px;
|
|
}
|
|
#trainer .progress_bar {
|
|
width: 100%;
|
|
height: 10px;
|
|
background-color: #759900;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) inset;
|
|
}
|
|
#trainer .next_coord {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
z-index: 2;
|
|
width: 460px;
|
|
height: 514px;
|
|
line-height: 512px;
|
|
text-align: center;
|
|
font-size: 150px;
|
|
font-family: monospace;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
opacity: 1;
|
|
pointer-events: none;
|
|
color: #eee;
|
|
text-shadow: 0 10px 10px #444;
|
|
opacity: 0.8;
|
|
transition: 0.13s;
|
|
}
|
|
#trainer .next_coord.nope {
|
|
color: red !important;
|
|
}
|
|
#trainer #next_coord0 {
|
|
color: #fff;
|
|
}
|
|
#trainer #next_coord1 {
|
|
left: 150px;
|
|
top: 50px;
|
|
font-size: 65px;
|
|
opacity: 0.7;
|
|
}
|
|
#trainer #next_coord2 {
|
|
transition: none;
|
|
left: 235px;
|
|
top: 66px;
|
|
font-size: 30px;
|
|
opacity: 0.4;
|
|
}
|
|
#trainer #next_coord1,
|
|
#trainer #next_coord2,
|
|
#trainer #next_coord0 {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
}
|
|
#trainer .explanation {
|
|
text-align: justify;
|
|
margin-bottom: 20px;
|
|
width: 242px;
|
|
}
|
|
#trainer .explanation li {
|
|
list-style: inside disc;
|
|
margin-top: 1em;
|
|
}
|
|
#trainer .start {
|
|
font-size: 20px;
|
|
}
|
|
#trainer .score {
|
|
position: absolute;
|
|
top: 202px;
|
|
left: 202px;
|
|
z-index: 9;
|
|
font-family: 'Roboto Mono';
|
|
font-size: 70px;
|
|
display: block;
|
|
margin: auto;
|
|
width: 110px;
|
|
height: 110px;
|
|
text-align: center;
|
|
line-height: 110px;
|
|
color: #fff;
|
|
background-color: #759900;
|
|
transition: 1s;
|
|
opacity: 1;
|
|
box-shadow: 0 0 10px #fff;
|
|
border-radius: 3px;
|
|
transform: rotate(360deg);
|
|
cursor: pointer;
|
|
}
|
|
#trainer.init .score {
|
|
opacity: 0;
|
|
}
|
|
#trainer.play .score {
|
|
opacity: 1;
|
|
top: 550px;
|
|
box-shadow: 0 0 1px #fff;
|
|
border-radius: 100px;
|
|
transform: rotate(0deg);
|
|
}
|
|
#trainer.wrong .progress_bar,
|
|
#trainer.wrong strong.score {
|
|
background-color: #ac524f;
|
|
}
|
|
#trainer.play .start,
|
|
#trainer #next_coord,
|
|
#trainer.play form.color {
|
|
display: none;
|
|
}
|
|
#trainer.play #next_coord {
|
|
display: block;
|
|
}
|