Skip to content

Commit 13bc494

Browse files
authored
feat: Make workspace focus highlight more visible (#83)
A small hack (kludge?) from @bmxedd to make it a bit more obvious when the workspace is focused. @bmxedd notes: "Many CSS styles don't work on internal SVG elements. This at least allows to the outline to be shown and not be obscured by the flyout. There is something going on with the width of the outline to the top and left side that I couldn't figure out."
1 parent 3100903 commit 13bc494

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@
2626
width: 100%;
2727
max-height: 100%;
2828
position: relative;
29+
--outline-width: 3px;
30+
}
31+
32+
.blocklyMainBackground {
33+
height: calc(100% - var(--outline-width));
34+
width: calc(100% - var(--outline-width));
35+
}
36+
37+
.blocklyFlyout {
38+
top: var(--outline-width);
39+
left: var(--outline-width);
40+
height: calc(100% - calc(var(--outline-width) * 2.5));
2941
}
3042

3143
pre,

0 commit comments

Comments
 (0)