Skip to content
Snippets Groups Projects
gui.css 2.1 KiB
Newer Older
  • Learn to ignore specific revisions
  • @import "../../css/units.css";
    
        height: calc(100% - $menu-bar-height);
    
        /*
            Make 2 columns:
            a) for the blocks + workspace panes, and
            b) for combined stage menu + stage + sprite/stage selectors
    
        flex-direction: row;
    
        /*
            scratch-blocks is based on absolute positioning, which injects
    
        position: relative;
    
        /*
            Normally we'd use padding, but the absolute positioning ignores it,
            so use margin instead. Temporary, until tabs are inserted.
    
            Only reason we need this, is so .targetWrapper, which holds the selectors,
    
            goes to full vertical height of the window
        */
        display: flex;
    
        flex-direction: column;
    
        /*
            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
    
        flex-basis: calc(480px + ($space * 2));
    }
    
        padding-left: $space;
        padding-right: $space;
    
    }
    
    .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
    
        padding-top: $space;
        padding-left: $space;
        padding-right: $space;
    
        /*
    
            For making the sprite-selector a scrollable pane
    
            TODO: Not working in Safari
    
        */
        overflow: hidden;
    }
    
    .stage-menu-wrapper {
        display: flex;
        flex-shrink: 0;
        align-items: center;
    
        padding: $space;