@import "../../../main/content/css/mixins.i.less";
@import "../../../main/content/css/vars.i.less";

.control {
    &.dashboard-dash {
        >.container {
            float: left;
            padding-top: 10px;
            width: 394px;
            min-height: 200px;

            &.container-1 {
                padding-left: 10px;
                margin: 0 -1px 0 0;
            }

            >.placeholder {
                border: 2px dashed #68a;
                height: 40px;
                width: 100%;
                padding: 10px 5px;
                margin: 5px 0;
                box-sizing: border-box;
            }

            &.trash {
                display: none;

                border: 2px dashed #a86;
                box-sizing: border-box;

                width: 100%;
                font-weight: bold;
                padding: 20px 0;
                text-align: center;
                float: none;
                clear: both;
                min-height: 0;

                i:before {
                    color: #a86;
                    font-size: 60px;
                }

                .placeholder {
                    display: none;
                }

            }
        }
    }

    &.dashboard-widget {
        padding: 10px 5px 10px 4px;
        box-sizing: border-box;
        border-radius: 3px;
        border: 1px solid #eee;
        margin: 0 0 10px;
        background: white;
        position: relative;

        &>.handle {
            width: 8px;
            height: 30px;
            background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH2wkeCyEzNuGfhQAAABl0RVh0Q29tbWVudABDcmVhdGVkIHdpdGggR0lNUFeBDhcAAAAVSURBVAjXYzh9+vR/BnyAeAXUMwoAFlwUQUDbs/QAAAAASUVORK5CYII=') repeat;
            float: left;
            margin: 0 5px 0 5px;
            opacity: 0;
            cursor: move;
        }

        &:hover>.handle {
            opacity: .75;
        }

        &>.content {
            float: left;
        }

        &.ui-sortable-helper {
            background: white;
            box-shadow: 10px 10px 0 rgba(0,0,0,.0625);
        }

        &>a {
            position: absolute;
            top: -10px;
            color: white;
            width: 19px;
            height: 19px;
            text-align: center;
            line-height: 17px;
            border-radius: 10px;
            opacity: 0;
            .transition(0.25s opacity);
            transition-delay: 0;

            *::before {
                color: white;
            }
        }

        &>.configure {
            right: 25px;
            background: #aaa;
            &:hover {
                background: #bbb;
            }
        }

        &>.delete {
            right: 1px;
            background: #F56D51;
            &:hover {
                background: #FF3B12;
            }
        }

        &:hover > a {
            opacity: 1;
            .transition(2s opacity);
            transition-delay: 1s;
        }
    }

    .label.dashboard-host {
        font-size: 20px;
        margin: 0 0 0 10px;
        font-weight: bold;
        color: rgba(255,255,255,.75);
        text-shadow: 0 -1px 0 rgba(0,0,0,.5);
    }

    &.dashboard-header {
        &>.icon {
            float: left;

            .size(60px,60px);
            margin: 10px;
            .border-radius(2px);
            border: 1px solid rgba(0,0,0,.25);

            position: relative;

            &.ubuntu {
                #gradient > .radial(#FFD18C, #FF9900);
                >.image.ubuntu { display: block; }
            }

            &.debian {
                #gradient > .radial(#f94b89, #6D0329);
                >.image.debian { display: block; }
            }

            &.centos {
                #gradient > .radial(#d447b4, #601950);
                >.image.centos { display: block; }
            }

            &.rhel {
                #gradient > .radial(#ff6666, #8A2222);
                >.image.rhel { display: block; }
            }

            &.freebsd {
                @red: #f00;
                #gradient > .radial(lighten(@red, 20%), #6A0606);
                >.image.freebsd { display: block; }
            }

            &.arch {
                #gradient > .radial(lighten(#1793d1, 20%), #0A405B);
                >.image.arch { display: block; }
            }

            &.osx {
                #gradient > .radial(#1BB0A5, #08364d);
                >.image.osx { display: block; }
            }

            >.bar {
                position: absolute;
                width: 62px;
                padding: 4px 0 5px;
                bottom: -1px;
                left: -1px;
                .border-radius(0 0 2px 2px);
                background: #555;

                color: white;
                text-transform: uppercase;
                text-align: center;
                font-weight: bold;
                font-size: 10px;
            }

            >.image {
                .square(32px);
                position: absolute;
                left: 50%;
                top: 30%;
                margin: -16px;
                display: none;
            }
        }

        &>.labels {
            float: left;
            padding: 8px 0 0;

            .hostname {
                font-size: 24px;
                color: #888;
                text-shadow: 0 1px 0 #eee;
                font-weight: bold;
            }

            .distro {
                font-size: 16px;
                color: #aaa;
            }
        }

        &>.inner {
            float: right;
            padding: 20px;
        }
    }

    &.welcome {
        width: 350px;
        color: #444;
    }
}

