188 lines
3.1 KiB
CSS
188 lines
3.1 KiB
CSS
body {
|
|
overflow: hidden;
|
|
}
|
|
.is2d {
|
|
background: #fff;
|
|
}
|
|
body.dark,
|
|
body.dark .is2d {
|
|
background: #2b2b2b;
|
|
}
|
|
div.lichess_game {
|
|
height: 100%;
|
|
flex-flow: row nowrap;
|
|
}
|
|
div.lichess_game div.lichess_board_wrap {
|
|
flex: 1 1 100%;
|
|
}
|
|
div.lichess_game div.lichess_ground {
|
|
flex: 1 1 100%;
|
|
padding-left: 0;
|
|
width: auto;
|
|
}
|
|
.cg-512 .cg-board-wrap {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
div.game_control {
|
|
border: 1px solid #ccc;
|
|
border-width: 0 1px 1px 0;
|
|
background: #eaeaea;
|
|
}
|
|
div.game_control .jumps {
|
|
flex: 1 1 100%;
|
|
justify-content: center;
|
|
}
|
|
.action_menu {
|
|
border: 1px solid #ccc;
|
|
border-width: 1px 1px 0 0;
|
|
background: #f8f8f8;
|
|
}
|
|
.pocket {
|
|
border-radius: 0;
|
|
background: #888!important;
|
|
padding: 2px 0;
|
|
margin: 0px!important;
|
|
justify-content: space-between;
|
|
max-height: 13%;
|
|
}
|
|
.pocket piece {
|
|
flex: 0 1 56px;
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
}
|
|
.pocket.usable piece:first-child:hover {
|
|
border-radius: 0;
|
|
}
|
|
@media (max-width: 739px) {
|
|
.pocket,
|
|
.pocket piece {
|
|
flex-basis: 46px;
|
|
}
|
|
.pocket piece::after {
|
|
line-height: 12px;
|
|
padding: 2px 3px 2px 3px;
|
|
font-weight: bold;
|
|
border-radius: 1px;
|
|
font-size: 13px;
|
|
}
|
|
}
|
|
@media (max-width: 599px) {
|
|
.pocket,
|
|
.pocket piece {
|
|
flex-basis: 40px;
|
|
}
|
|
}
|
|
footer {
|
|
font-size: 10.5px;
|
|
display: flex;
|
|
border: 1px solid #ccc;
|
|
border-top: none;
|
|
box-sizing: border-box;
|
|
height: 26px;
|
|
align-items: center;
|
|
padding: 0 0.7em;
|
|
background: #e4e4e4;
|
|
color: #888;
|
|
}
|
|
footer a {
|
|
color: #3893E8!important;
|
|
}
|
|
footer .left {
|
|
flex: 1 1 100%;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
footer h1 {
|
|
display: inline;
|
|
}
|
|
footer .open {
|
|
flex: 0 0 auto;
|
|
}
|
|
footer > * {
|
|
opacity: 0.8;
|
|
transition: opacity 0.13s;
|
|
}
|
|
footer:hover > * {
|
|
opacity: 1;
|
|
}
|
|
body.dark div.game_control {
|
|
border-color: #3d3d3d;
|
|
background: #333;
|
|
}
|
|
body.dark .action_menu {
|
|
border-color: #3d3d3d;
|
|
background: #303030;
|
|
}
|
|
body.dark footer {
|
|
border-color: #3d3d3d;
|
|
background: #3a3a3a;
|
|
}
|
|
@media (max-width: 699px) {
|
|
body,
|
|
.tview2 {
|
|
font-size: 12px;
|
|
}
|
|
.tview2 lines lines move {
|
|
font-size: 10.5px;
|
|
}
|
|
.cg-board-wrap coords {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (max-width: 549px) {
|
|
body,
|
|
.tview2 {
|
|
font-size: 11px;
|
|
}
|
|
.tview2 lines lines move {
|
|
font-size: 10px;
|
|
}
|
|
.cg-board-wrap coords {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (max-width: 400px) {
|
|
body,
|
|
.tview2 {
|
|
font-size: 10px;
|
|
}
|
|
.tview2 lines lines move {
|
|
font-size: 9px;
|
|
}
|
|
}
|
|
@media (max-width: 420px) {
|
|
div.game_control .jumps button:first-child,
|
|
div.game_control .jumps button:last-child {
|
|
display: none;
|
|
}
|
|
}
|
|
@media (max-height: 400px) {
|
|
div.game_control {
|
|
flex: 0 0 30px;
|
|
}
|
|
div.game_control button {
|
|
line-height: 30px;
|
|
}
|
|
}
|
|
.not_found {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100%;
|
|
background: radial-gradient(circle, #484848, #2F3031);
|
|
}
|
|
.not_found h1 {
|
|
font-family: Roboto;
|
|
font-size: 3vw;
|
|
text-align: center;
|
|
color: rgba(255,255,255,0.3);
|
|
text-shadow: 0 0 9px rgba(0,0,0,0.3);
|
|
}
|