app.less

175 lines | 3.106 kB Blame History Raw Download
@import url('../shared/theme.less');

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: @median-bg-white;
}


.flex-horiz {
    display: flex;
    flex-direction: row;
    height: 100%;
    overflow: hidden;
}

.flex-vert {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.flex-horiz > * {
    min-height: auto !important;
    max-height: none !important;
}

.flex-vert > * {
    min-width: auto !important;
    max-width: none !important;
}


.flex-horiz > *, .flex-vert > * {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 1px;
    position: relative;
}

.animate .flex-horiz > *, .animate .flex-vert > * {
    transition: all 280ms ease-in-out;
}

.flex-horiz .flex-shrink, .flex-vert .flex-shrink {
    flex-grow: 0;
    flex-shrink: 1;
}

.flex-horiz .flex-grow, .flex-vert .flex-grow {
    flex-grow: 1;
    flex-shrink: 0;
}

.flex-reset {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: @primary-font-family;
}

.section {
    background: @primary-bg-color-white; 
    padding: 10px; 
    font-size: 18px;
}

.section.top {
    border-bottom: 1px solid @primary-border-color-white;
    padding: 0;
}

.section.top h1 {
    margin: 0;
    padding: 10px;
    font-family: @primary-font-family;
    font-weight: 400;
    font-size: 18px;
    display: inline-block;
}

.section.bottom {
    padding: 10px;
    border-top: 1px solid @primary-border-color-white;
    font-size: 10px;
    text-align: right;
}

.code-editor-containers {
    background: @editor-bg-white;
}

.flex-dynamic.flex-horiz .code-editor-containers {
    min-width: 50%;
    max-width: 50%;
}

.flex-dynamic.flex-vert .code-editor-containers {
    min-height: 50%;
    max-height: 50%;
}

.flex-dynamic.flex-horiz .code-editor-containers.force-close {
    min-width: 0 !important;
    max-width: 0 !important;
}

.flex-dynamic.flex-vert .code-editor-containers.force-close {
    min-height: 0 !important;
    max-height: 0 !important;
}

.flex-dynamic.flex-horiz .code-editor-containers resize-handle[dir='vertical'] {
    display: none;
}

.flex-dynamic.flex-vert .code-editor-containers resize-handle[dir='horizontal'] {
    display: none;
}

@media (orientation: landscape) and (max-height: 320px) {
    .output-frame-container {
        display: none;
    }

    .code-editor-containers {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

@media (orientation: portrait) and (max-height: 400px) {
    .output-frame-container {
        display: none;
    }

    .code-editor-containers {
        min-height: 100% !important;
        max-height: 100% !important;
    }
}


@media (prefers-color-scheme: dark) {
    body {
        background: @median-bg-dark;
    }

    .section {
        color: @primary-text-color-dark;
        background: @primary-bg-color-dark; 
    }

    .section.top {
        border-color: @primary-border-color-dark;
    }
    
    .section.bottom {
        border-color: @primary-bg-color-dark;
    }

    .code-editor-containers {
        background: @editor-bg-dark;
    }
}