File "rs-search-result.scss"

Full Path: /home/adniftyx/public_html/wp-content/plugins/credio-addons/widgets/search-result/rs-search-result.scss
File size: 4.12 KB
MIME-type: text/plain
Charset: utf-8

@import '../../common';

.rs-search-result {
    position: relative;
    .input-wrapper {
        position: relative;
        overflow: hidden;
        input {
            height: 100%;
            padding-right: 130px;
            margin: 0;
            border-radius: 0;
        }
        button {
            position: absolute;
            top: 0;
            bottom: 0;
            right: 0;
            min-width: 200px;
            padding: 10px;
            z-index: 1;
            transition: $transition;
            background: $titleColor;
            i {
                font-size: 18px;
                color: #fff;
                line-height: 1;
                transition: $transition;
            }
            > * {
                position: absolute;
                left: 0;
                top: 0;
                right: 0;
                bottom: 0;
                font-size: inherit;
                color: inherit;
                transition: $transition;
                width: 100%;
                display: flex;
                gap: 10px;
                align-items: center;
                justify-content: center;
                overflow: hidden;
                color: #fff;
                font-size: 17px;
                &:last-child {
                    opacity: 0;
                    pointer-events: none;
                    top: 100%;
                }
            }
            &:hover {
                i {
                    color: #fff;
                }
            }
            &.active {
                > * {
                    &:first-child {
                        opacity: 0;
                        pointer-events: none;
                        bottom: 100%;
                    }
                    &:last-child {
                        opacity: 1;
                        pointer-events: unset;
                        top: 0;
                    }
                }
            }
        }
    }
    .search-result-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 120%;
        opacity: 0;
        visibility: hidden;
        transition: $transition;
        background: #ececec;
        padding: 20px;
        z-index: 999;
        border-radius: 0 0 10px 10px;
        box-shadow: 0px 0px 20px rgba(0,0,0,0.02);
        ul.search-result-ul {
            margin: 0;
            padding: 0;
            list-style: none;
            max-height: 178px;
            overflow-y: auto;
            padding-right: 8px;
            li {
                margin-bottom: 10px;
                a {
                    padding: 10px 30px;
                    border: 1px solid rgba(0,0,0,0.1);
                    position: relative;
                    color: $titleColor;
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    gap: 15px;
                    transition: $transition;
                    &:after {
                        content: "\ea6c";
                        font-family: remixicon;
                        font-size: 18px;
                        color: $titleColor;
                        transition: $transition;
                    }
                    &:hover {
                        color: $primaryColor;
                        &:after {
                            color: $primaryColor;
                        }
                    }
                }
                &:last-child {
                    margin: 0;
                }
            }
            &::-webkit-scrollbar {
                width: 4px;
                border-radius: 5px;
            }
            &::-webkit-scrollbar-track {
                background-color: #f9f9f9;
                border-radius: 5px;
            }
            &::-webkit-scrollbar-thumb {
                background-color: $titleColor;
                border-radius: 5px;
            }
        }
        &.active {
            top: 100%;
            opacity: 1;
            visibility: visible;
        }
    }
}