YetiForceCompany/YetiForceCRM

View on GitHub
public_html/layouts/basic/styles/pages/_Dashboard.scss

Summary

Maintainability
Test Coverage
/* {[The file is published on the basis of YetiForce Public License 6.5 that can be found in the following directory: licenses/LicenseEN.txt or yetiforce.com]} */

.dashboardContainer {
    padding: 0;

    .dashboardHeading hr {
        border-bottom: 1px solid #ddd;
    }
}

.widgetsList {
    min-width: 150px;
    max-height: 450px;
    text-align: left;
    overflow-y: auto;
    overflow-x: hidden;

    li {
        display: block;

        a {
            white-space: nowrap;
            word-wrap: break-word;
        }
    }
}

.dashboard_notebookWidget_view .row {
    margin-bottom: 5px;
}

.grid-stack {
    width: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    word-wrap: break-word;
    display: block;
    min-height: 460px;
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-top: 0 !important;
}

.dashboardWidget {
    background: #fff;
    border-radius: 1px;
    border: 1px solid #ddd;
    -webkit-box-shadow: 0 0 3px -1px #ddd;
    -moz-box-shadow: 0 0 3px -1px #ddd;
    box-shadow: 0 0 3px -1px #ddd;

    .dashboardWidgetHeader {
        background-color: $light;
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f6f6f6', endColorstr='#f3f3f4', GradientType=0);
        border-color: #f3f3f4 #f3f3f4 #cbcbcf;
        text-shadow: 0 1px #fff;
        border-top: 1px solid #fff;
        border-bottom: 1px solid #ddd;
        color: #444;
        cursor: move;
        padding: 7px 5px;

        table {
            height: 28px;
        }

        .js-tree-container {
            .input-group {
                @extend .input-group-sm;
                .input-group-prepend {
                    border-top-right-radius: 0 !important;
                    border-bottom-right-radius: 0 !important;
                }
                .input-group-append {
                    border-top-left-radius: 0 !important;
                    border-bottom-left-radius: 0 !important;
                }
                input {
                    border-radius: 0 !important;
                }
            }
        }
    }

    .widgetFooterContent .row:first-child {
        position: relative;
        background-color: #f5f5f5;
        padding-top: 3px;
        padding-bottom: 2px;
    }

    .dashboardWidgetHeader {
        .dashboardTitle {
            text-align: left;
            padding-left: 10px;
        }

        .widgeticons {
            opacity: 0.5;
            padding-right: 6px;
        }

        .box {
            position: relative;
            top: -2px;
        }
    }

    .filterContainer {
        position: absolute;
        border: 1px solid #ddd;
        background: #fff;
        margin-left: -7px;
        margin-right: 3px;
        margin-top: 4px;
        padding: 8px 0;
        border-radius: 0 0 5px 5px;
        box-shadow: 0 5px 8px -5px #888;

        div span {
            margin-top: 6px;
        }

        .col-md-5 {
            margin-top: 3px;
        }
    }

    .dashboardWidgetContent {
        @extend .small;

        &:not(.dashboardWidgetCalendar) {
            padding: 5px;
            line-height: 20px;
        }

        .row {
            @extend .mx-0;
        }

        .fc-bg {
            pointer-events: none;
        }
    }

    .widgeticons {
        min-width: 50px;
        height: 30px;
        margin-right: 30px;

        a {
            cursor: pointer;
            text-decoration: none;
        }
    }
}

.widgetChartContainer {
    height: 100% !important;
}

.NotificationsItem {
    .userImage {
        width: 22px;
    }
}

.js-css-element-queries {
    .no-gutters {
        margin-right: 0;
        margin-left: 0;

        > .col,
        > [class*="col-"] {
            padding-right: 0;
            padding-left: 0;
        }
    }

    &[min-width~="#{map-get($grid-breakpoints, xsm)}"] {
        .col-ceq-xsm-6 {
            @extend .col-6;
        }

        .col-ceq-xsm-6:nth-child(2) {
            @extend .pl-1, .pt-0;
        }
    }

    .col-ceq-xsm-6 {
        @extend .col-12;

        &:nth-child(2) {
            @extend .pt-1;
        }
    }
}

.o-tablet-scroll {
    &__container {
        width: 25px;
    }

    &__content {
        height: calc(#{$h-main-viewport} - #{$h-breadcrumb} - #{$h-breadcrumb} - 0.5rem);
    }

    &__icons {
        top: 50%;
        transform: translateY(-50%);
    }
}
//--- Widgets Working time counter---
.o-time-counter {
    &__navigator-icon {
        font-size: 140px;
        color: #f8f9fa;
    }
    &__timer {
        font-size: 40px;
        color: #b4b2af;
    }
    &__navigator-buttons {
        width: calculate-rem(160px);
        height: calculate-rem(160px);
        border: 13px solid #fafafa;
        border-radius: 50%;
        a {
            font-size: calculate-rem(85px);
        }
    }

    &__navigator-buttons.active {
        a {
            font-size: calculate-rem(55px);
        }
    }
}