force inner coords in col1-uniboard

This commit is contained in:
Thibault Duplessis 2019-05-02 16:10:27 +07:00
parent 552a2ba78e
commit 5858876692
3 changed files with 31 additions and 24 deletions

View file

@ -1,3 +1,5 @@
@import 'inner-mixin';
coords {
@extend %page-text;
position: absolute;
@ -33,7 +35,8 @@ coords {
coord {
flex: 1 1 auto;
}
@include breakpoint($mq-col1-uniboard) {
display: none;
}
}
@include breakpoint($mq-col1-uniboard) {
@include inner-base;
}

View file

@ -0,0 +1,22 @@
@mixin inner-base {
coords {
/* bypass display: none on $mq-col1-uniboard mobile can only have inside coords */
display: flex !important;
color: #fff;
text-shadow: 0 1px 2px #000;
font-size: 12px;
font-weight: bold;
&.files {
bottom: 0px;
left: 4px;
text-align: left;
}
&.ranks {
top: 1px;
right: -2px;
& coord {
transform: none;
}
}
}
}

View file

@ -1,24 +1,6 @@
coords {
/* bypass display: none on $mq-col1-uniboard
* mobile can only have inside coords */
display: flex !important;
color: #fff;
text-shadow: 0 1px 2px #000;
font-size: 12px;
font-weight: bold;
&.files {
bottom: 0px;
left: 4px;
text-align: left;
}
&.ranks {
top: 1px;
right: -2px;
& coord {
transform: none;
}
}
}
@import 'inner-mixin';
@include inner-base;
/* negate inner coords colors */
.is3d .cg-board-wrap coords coord {