scratch-gui
Version:
GraphicaL User Interface for creating and running Scratch 3.0 projects
92 lines (77 loc) • 1.92 kB
CSS
@import "../../css/units.css";
@import "../../css/colors.css";
.stage {
/*
Fixes a few extra pixels of margin/padding, that adds on to the bottom
of the element, which messes up the chrome padding consistency
*/
display: block;
/* Attach border radius directly to canvas to prevent needing overflow:hidden; */
border-radius: $space;
border: 1px solid $ui-black-transparent;
/* @todo: This is for overriding the value being set somewhere. Where is it being set? */
background-color: transparent;
/* Allow custom touch handling to prevent scrolling on Edge */
touch-action: none;
}
.with-color-picker {
cursor: none;
z-index: 2001;
}
.color-picker-background {
position: absolute;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.55);
display: block;
z-index: 2000;
top: 0;
left: 0;
}
.stage-wrapper {
position: relative;
}
.stage-wrapper-overlay {
position: fixed;
top: $stage-menu-height;
left: 0;
right: 0;
bottom: 0;
z-index: 5000;
background-color: $ui-white;
}
.stage-overlay-content {
outline: none;
margin: auto;
border: 3px solid rgb(126, 133, 151);
padding: 0;
margin-top: 3px;
margin-bottom: 3px;
border-radius: $space;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.stage-overlay-content-border-override {
border: none;
}
.question-wrapper {
position: absolute;
}
.monitor-wrapper, .color-picker-wrapper, .queston-wrapper {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
overflow: hidden;
}
.dragging-sprite {
position: absolute;
top: 0;
left: 0;
z-index: 1000; /* Above everything so it is draggable into other panes */
filter: drop-shadow(5px 5px 5px $ui-black-transparent);
}