/*
 * Widgets barrel.
 */

.widget-icon {
    fill: inherit !important;
    stroke: inherit !important;
}

// this is a big c/c from .resource-type
.widget-type {
    border-radius: @border-radius-base;
    background: @gray-lightest;
    border: 1px solid transparent;
    padding: 5px;
    display: flex;
    align-items: center;
    font-size: @font-size-large;

    .widget-icon {
        width: 40px;
        height: 40px;
        margin-right: 10px;
        svg {
            width: 100%;
            height: 100%;
        }
    }

    h1 {
        padding: 0;
        margin: 0;
        font-size: 16px;
        font-weight: bold;
    }

    p {
        margin-top: 5px;
        margin-bottom: 0;
        font-style: italic;
        font-size: @font-size-small;
        color: @gray-light;
    }
}

.widget-container {
    text-align: right;
}

.widget {
    text-align: left;
    margin-bottom: 20px;
    background-size: cover !important;
    border: 1px solid transparent;
    border-radius: @panel-border-radius;

    .widget-title {
        padding: @panel-body-padding;
        margin: 0;
    }

    .widget-body {
        padding: @panel-body-padding;
    }
}

.widget-col-configure {
  text-align: center;
}

button.widget-insert-content {
    padding: 10px 15px;
    border-width: 2px;
    border-radius: 6px;
    border-style: dashed;
    background-color: #f0f0f0 !important;
}

.widget-layout-preview {
    display: block;
    min-width: 100%;
    margin-bottom: @component-margin-bottom;

    .widget-col-preview {
        background: #f5f5f5;
        border-radius: @border-radius-base;
        height: 60px;
        width: 100%;
    }
}

button.widget-layout-preview {
    &:hover {
        .widget-col-preview {
            background: @state-info-bg;
        }
    }

    &:focus,
    &:active {
        .widget-col-preview {
            background: @state-info-bg;
        }
    }
}
