Skip to content

Commit e09edd4

Browse files
committed
add chessground workaround in ui/learn css - closes #8286
moved from hi-ogawa@832086f
1 parent 077653e commit e09edd4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

ui/learn/css/_board.scss

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,3 +151,20 @@
151151
content: '1';
152152
}
153153
}
154+
// Workaround for chessground 4.4 used in `ui/learn` page.
155+
// This selector has no effect for chessground 7.11.0 used in other pages.
156+
cg-container > cg-board > svg {
157+
overflow: hidden;
158+
position: absolute;
159+
top: 0px;
160+
left: 0px;
161+
width: 100%;
162+
height: 100%;
163+
pointer-events: none;
164+
z-index: z('cg__svg.cg-shapes');
165+
opacity: 0.6;
166+
167+
image {
168+
opacity: 0.5;
169+
}
170+
}

0 commit comments

Comments
 (0)