_base.scss

 avatar
unknown
plain_text
10 months ago
3.3 kB
1
Indexable
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
}

#slide-out-blocker {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background-color: black;
    transition: opacity 0.5s ease;
}

#slide-out-container {
    position: absolute;
    bottom: -41.25%;
    display: flex;
    flex-direction: column;
    place-items: center;
    place-content: center;
    height: 55%;
    width: 100%;
    background-color: yellow;
    transition: all 0.5s ease;

    &.visible {
        z-index: 1;
        bottom: 0%;

        .toggler{
            top: -15%;
        }
    }

    .toggler {
        z-index: 1;
        position: absolute;
        top: -25%;
        align-self: center;
        max-height: 50%;
        height: 100%;
        width: 50%;
        border-radius: 50%;
        transition: top 0.5s ease;
    }

    #alt-controls {
        position: relative;
        top: 0;
        right: 0;
        display: flex;
        flex: 1;
        justify-content: space-between;
        width: 100%;
        background-color: pink;

        #clock-controls {
            width: 50%;

            button {
                height: 100%;
                width: 100%;
                text-align: left;
                padding-left: 2rem;
            }
        }

        #lf-controls {
            display: flex;
            flex-direction: column;
            flex: 1;
            max-width: 50%;
            justify-content: space-between;

            button {
                height: 100%;
                text-align: right;
                padding-right: 3rem;
            }
        }
    }
}

#longform-audio-container {
    position: relative;
    display: flex;
    width: 90%;
    max-height: 75%;
    height: 100%;
    background-color: black;

    button {
        height: 100%;
        background-color: wheat;
    }
}

.looping-audio-container {
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    width: 100vw;
    overflow-y: scroll;
}

.looping-audio-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    min-height: 50%;
    border: 2px inset black;

    input {
        position: relative;
        top: 25%;
        width: 75%;
    }

    button {
        height: 100%;
        width: 100%;
        background-color: transparent;
        border: none;
    }
}

.looping-audio-source-wrapper {
    position: absolute;
    top: 0;
    left: 0;
}

.-debug {
    display: none;
    z-index: 99999;
    position: absolute;
    top: 0;
    left: 10%;
    height: 10%;
    width: 80%;
    background-color: white;
    border: 2px solid red;
    color: darkred;
}

@media screen and (orientation: landscape) {
    #slide-out-blocker {
        &.visible {
            opacity: 1;
            pointer-events: auto;
        }
    }

    #slide-out-container {
        bottom: -64%;
        height: 85%;

        &.visible {
            .toggler {
                top: -15%;
            }
        }
    }
}
Editor is loading...
Leave a Comment