app.less

89 lines | 1.436 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%;
}

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


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

.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;
}

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

@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;
    }
}