app.less

119 lines | 1.957 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 > *, .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;
}

.code-editor-containers.force-close {
    min-width: 0 !important;
    max-width: 0 !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;
    }
}