Newer
Older
Steven Dale
committed
.page-wrapper {
height: 100%;
}
.body-wrapper {
Steven Dale
committed
Calc the height by subtracting the menu bar height
TODO: Make height a reusable variable, link to use in .menu-bar
*/
Steven Dale
committed
background-color: #e8edf1;
}
.flex-wrapper {
display: flex;
/*
Make 2 columns:
a) for the blocks + workspace panes, and
b) for combined stage menu + stage + sprite/stage selectors
Steven Dale
committed
*/
Steven Dale
committed
height: 100%;
}
.blocks-wrapper {
/*
scratch-blocks is based on absolute positioning, which injects
Steven Dale
committed
inside this element and becomes the child
*/
Steven Dale
committed
flex-basis: 600px;
flex-grow: 1;
flex-shrink: 0;
/*
Normally we'd use padding, but the absolute positioning ignores it,
so use margin instead. Temporary, until tabs are inserted.
Steven Dale
committed
*/
Steven Dale
committed
background: #e8edf1;
}
.stage-and-target-wrapper {
Steven Dale
committed
1) stage menu
2) stage
3) sprite/stage selectors
Only reason we need this, is so .targetWrapper, which holds the selectors,
Steven Dale
committed
goes to full vertical height of the window
*/
display: flex;
Steven Dale
committed
/*
Calc the minimum width for this pane, accounting for left + right spacing.
If and when the width doesn't need to be fixed, we can move the spacing out
of this calc, and into padding instead
Steven Dale
committed
*/
flex-basis: calc(480px + ($space * 2));
}
Steven Dale
committed
.stage-wrapper {
padding-left: $space;
padding-right: $space;
Steven Dale
committed
}
.target-wrapper {
/* Take all the available vertical space available.
Works in tandem with height: 100%; which is set on the child: .targetPane
TODO: Not working in Safari, not great in FFx
Steven Dale
committed
*/
flex-grow: 1;
flex-basis: 0;
padding-top: $space;
padding-left: $space;
padding-right: $space;
/*
Steven Dale
committed
For making the sprite-selector a scrollable pane.
Steven Dale
committed
*/
overflow: hidden;
}
.stage-menu-wrapper {
display: flex;
flex-shrink: 0;
align-items: center;
height: 3rem;