dbmedialab/reader-critics

View on GitHub
src/admin/scss/custom/sidebar.scss

Summary

Maintainability
Test Coverage
.off-canvas-wrap {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: relative;
    width: 100%;
    overflow: hidden;

    .inner-wrap {
        @include transition(transform, .5s, ease);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        position: relative;
        width: 100%;

        .skin-select {
            position: absolute;
            top: 10px;
            width: 260px;
            height: 100%;
            left: 0;
            z-index: 101;
            background: #2f323a;

            .toggle {
                background: #111;
                color: #fff;
                cursor: pointer;
                display: block;
                height: 30px;
                line-height: 30px;
                position: absolute;
                right: -25px;
                text-align: center;
                top: 14px;
                width: 25px;
                font-size: 13px;
                z-index: 999;
                font-style: normal;
                text-decoration: none;
                font-weight: normal;
                border-radius: 0 4px 4px 0;

                .fa {
                    display: inline-block;
                    font-family: FontAwesome;
                    font-style: normal;
                    font-weight: normal;
                    margin-right: 5px;
                    line-height: 1;
                    -webkit-font-smoothing: antialiased;
                    -moz-osx-font-smoothing: grayscale;
                }

            }

            .skin-part {
                padding: 0;
                position: relative;
                top: 0;

                .tree-wrap {
                    .profile {
                        background: #111;
                        width: 100%;
                        position: relative;
                        top: -13px;
                        left: 0;
                        height: 75px;
                        font-size: 13px;
                        margin: 0;
                        padding: 0;
                        z-index: 99;

                        .logo {
                            width: 100%;
                            top: 15px;
                            float: left;
                            opacity: 1;
                            position: relative;
                            padding: 13px;
                            display: inline-block;
                        }

                        h3 {
                            margin-bottom: 10px;
                            margin-top: .2rem;
                            text-shadow: none;
                            color: #fff;
                            opacity: .9;
                            position: relative;
                            top: 30px;
                            letter-spacing: 5px;
                            font-weight: normal;
                            font-size: 10px;
                            left: 15px;

                            .app-version {
                                border: 2px solid rgba(255, 255, 255, .298039);
                                border-radius: 15px;
                                color: #FFF;
                                vertical-align: middle;
                                letter-spacing: 2px;
                                margin-left: 6px;
                                padding: 2px 6px;
                                position: relative;
                                top: 0;
                                font-size: 60%;
                                line-height: inherit;
                            }

                        }

                    }

                    .side-bar {
                        .menu-nav {
                            height: auto;
                            margin: -13px 0 0;
                            position: relative;
                            font-size: 14px;
                            line-height: .5em !important;
                            list-style: none !important;
                            padding: 0;
                            box-shadow: 0 1px 0 rgba(0, 0, 0, .2);

                            .menu-item {
                                text-align: right;

                                .tooltip-tip {
                                    color: #eee !important;
                                    font-weight: bold;
                                    display: block;
                                    font-size: 12px;
                                    height: 50px;
                                    line-height: 48px;
                                    list-style: none outside none;
                                    padding: 0 10px 0 40px;
                                    text-decoration: none;
                                    text-align: left;
                                    text-transform: uppercase;
                                    transition: all .2s ease 0s;

                                    &.menu-select {
                                        background: rgba(0, 0, 0, .3);
                                        padding: 0 0 0 50px;
                                        position: relative;
                                    }

                                    &:hover {
                                        background: $color-main-bg-darken;
                                        color: #fff !important;
                                        text-shadow: none;
                                        padding: 0 0 0 50px;
                                        position: relative;

                                        &::before {
                                            content: '';
                                            background: #92cd18;
                                            width: 3px;
                                            position: absolute;
                                            left: 0;
                                            top: 0;
                                            height: 100%;
                                        }

                                    }

                                    i {
                                        font-size: 16px;
                                        left: -15px;
                                        position: relative;
                                        width: 30px;
                                        top: 2px !important;
                                        display: inline-block;
                                        height: 30px;
                                        text-align: center;
                                        padding: 8px 0 0;
                                        border-radius: 100%;
                                    }

                                    span {
                                        left: 1px;
                                        font-weight: 700 !important;
                                        position: relative;
                                        font-family: 'Montserrat', sans-serif;
                                        font-size: 14px;
                                        display: inline-block;
                                        float: none;
                                    }

                                }

                            }

                            .menu-item-child {
                                padding-bottom: 5px;

                                .button {
                                    display: block;
                                    margin-left: 25px;
                                    margin-right: 25px;
                                    margin-bottom: 15px;
                                    border-radius: $button-radius;
                                }

                            }

                        }

                    }

                }

            }

        }

    }
}