nukeop/nuclear

View on GitHub
packages/ui/lib/components/CommandPalette/styles.scss

Summary

Maintainability
Test Coverage
@import "../../common.scss";

.transition_container {
    position: absolute;

    width: 100%;
    height: 100%;
    z-index: 20;
}

div.command_palette_container {
    position: absolute;
    display: flex !important;
    flex-flow: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2em;
    background: rgba(#000000, 0.85);
}

.command_palette {
    @include roundCorners-lg;
    position: absolute;
    display: flex;
    flex-flow: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 36em;
    box-sizing: border-box;
    padding: 1em 1em 0 1em;
    background: $bgdark;

    .input {
        position: relative;
        width: 100%;
        box-sizing: border-box;

        color: $white;

        input {
            background: $bgdarker;
            transition: $short-duration;
            caret-color: $white;
            color: $white;
            border: none;

            &::selection {
                background-color: $blue;
                color: $white;
            }

            &:active,
            &:focus {
                background: $background3;
                border: none;
                color: $white;
            }
        }
    }

    .actions {
        width: 100%;
        margin-top: 1em;
    }
}