Sha256: 19114fdeff37b8ebb5c297031829ae31e0233891fbb61dccf640e59a88447202

Contents?: true

Size: 1.51 KB

Versions: 9

Compression:

Stored size: 1.51 KB

Contents

.uniformDropdown{
    cursor: pointer;
}
.uniformDropdown-dropdown{
    position: absolute;
    z-index: 9999;
    background: white;
    border-top: white;
    border-radius: 0.25em;
    button{
        appearance: none;
        outline: none;
        border: none;
        background: none;
        width: 100%;
        padding: 0.5em;
        display: block;
        &:hover{
            background: lighten(color('blue'), 45);
        }
    }
    &.absolute{
        box-shadow: 0 0 3px 2px rgba(black, 0.2);
    }
    &.square{
        border-radius: 0;
    }
    &.has-pointer{
        @include size-rule('md'){
            margin-top:1em;
        }
    }
}

.uniformDropdown-pointer{
    @include size-rule('md'){
        position:absolute;
        bottom: 100%;
        left: 50%;
        margin-left: -1em;
        width: 2em;
        height: 2em;
        overflow: hidden;
        &:after{
            content: "";
            position: absolute;
            width: 100%;
            height: 100%;
            background: white;
            transform: rotate(-45deg);
            top: 85%;
            left: 0;
            box-shadow: 0 1px 3px 2px rgba(black, 0.2);
        }
    }
}

@include size-rule('sm'){
    .uniformOverlay{
        position: fixed;
        top:0;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        z-index: 9998;
    }
    .uniformDropdown-dropdown{
        left: 0 !important;
        top: 0 !important;
        box-shadow: none !important;
        width: 100%;
    }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
uniform-ui-2.4.1 lib/assets/stylesheets/uniform/components/dropdown.scss
uniform-ui-2.4.0 lib/assets/stylesheets/uniform/components/dropdown.scss
uniform-ui-2.3.8 lib/assets/stylesheets/uniform/components/dropdown.scss
uniform-ui-2.3.7 lib/assets/stylesheets/uniform/components/dropdown.scss
uniform-ui-2.3.6 lib/assets/stylesheets/uniform/components/dropdown.scss
uniform-ui-2.3.5 lib/assets/stylesheets/uniform/components/dropdown.scss
uniform-ui-2.3.4 lib/assets/stylesheets/uniform/components/dropdown.scss
uniform-ui-2.3.3 lib/assets/stylesheets/uniform/components/dropdown.scss
uniform-ui-2.3.2 lib/assets/stylesheets/uniform/components/dropdown.scss