Skip to content
Snippets Groups Projects
gui.css 2.87 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;
    
    Paul Kaplan's avatar
    Paul Kaplan committed
    .editor-wrapper {
        flex-basis: 600px;
        flex-grow: 1;
        flex-shrink: 0;
    
        position: relative;
    
    Paul Kaplan's avatar
    Paul Kaplan committed
        display: flex;
        flex-direction: column;
    }
    
    .tab-list {
        height: $stage-menu-height;
    
        width: 250px; /* Match width of the toolbox */
    
    Paul Kaplan's avatar
    Paul Kaplan committed
        display: flex;
        align-items: flex-end;
        flex-shrink: 0;
    
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    
        font-weight: 500;
        font-size: 0.80rem;
    
    Paul Kaplan's avatar
    Paul Kaplan committed
    
        /* Overrides for react-tabs styling */
    
        margin: 0 !important;
    
    Paul Kaplan's avatar
    Paul Kaplan committed
        border-bottom: 0 !important;
    }
    
    
    .tab-list .tab {
        flex-grow: 1;
        height: 80%;
        margin-left: 1px;
    
        border-radius: $space $space 0 0;
        border: none;
    
        background-color: #F6F8FA;
        color: #9AA1B5;
    
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    
    .tab-list .tab[aria-selected="true"] {
        color: #40B9F5;
    }
    
    
    Paul Kaplan's avatar
    Paul Kaplan committed
    .tabs {
        position: relative;
    
    Paul Kaplan's avatar
    Paul Kaplan committed
        display: flex;
        flex-direction: column;
    }
    
    Paul Kaplan's avatar
    Paul Kaplan committed
    .tab-panel {
        position: relative;
        flex-grow: 1;
        flex-shrink: 0;
        display: flex;
    }
    
    Paul Kaplan's avatar
    Paul Kaplan committed
    .blocks-wrapper {
        flex-grow: 1;
        position: relative;
    
            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;
    
    
        /* Hides negative space between edge of rounded corners + container, when selected */
    
        user-select: none;
    
    }
    
    .target-wrapper {
        /*  Take all the available vertical space available.
    
            Works in tandem with height: 100%; which is set on the child: .targetPane
    
    Steven Dale's avatar
    Steven Dale committed
            @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
    
    Steven Dale's avatar
    Steven Dale committed
            @todo: Not working in Safari
    
        */
        overflow: hidden;
    }
    
    .stage-menu-wrapper {
        display: flex;
        flex-shrink: 0;
        align-items: center;
    
        padding: $space;