﻿/* 必填标志 */
label.required::after {
    content: "*";
    color: red;
    margin-left: 2px;
}

.form-control.disabled {
    background-color: var(--bs-secondary-bg);
    opacity: 1;
}

/* 图片上传 */
.image-input {
    position: relative;
    display: inline-block;
    margin-top: 1rem;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 0.475rem;
}

    .image-input .image-input-wrapper {
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 0.475rem;
    }

    .image-input.image-input-outline .image-input-wrapper {
        box-shadow: var(--bs-box-shadow);
        border: 3px solid var(--bs-body-bg);
        overflow: hidden;
    }

.image-input-wrapper img {
    width: 100%;
}

.image-input [data-kt-image-input-action] {
    width: 25px;
    height: 25px;
    padding: 0 !important;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

    .image-input [data-kt-image-input-action] svg {
        width: 15px;
        height: 15px;
        opacity: 0.5;
    }

    .image-input [data-kt-image-input-action]:hover svg {
        fill: rgb(13, 110, 253);
        opacity: 1;
    }

.image-input [data-kt-image-input-action="change"] {
    left: 100%;
    top: 0px;
}

    .image-input [data-kt-image-input-action="change"] input {
        opacity: 0;
        width: 0px;
        height: 0px;
        overflow: hidden;
    }

.image-input [data-kt-image-input-action="cancel"], .image-input [data-kt-image-input-action="remove"] {
    position: absolute;
    left: 100%;
    top: 100%;
}

.image-input-placeholder {
    background: url('/img/banner-placeholder.webp') center/cover no-repeat;
}

[data-bs-theme="dark"] .image-input-placeholder {
    background-image: url('/img/banner-placeholder.webp');
}

.w-100px {
    width: 100%;
}

.w-120px {
    width: 120px;
}

.w-300px {
    width: 300px;
}

.h-120px {
    height: 120px;
}

.h-150px {
    height: 150px;
}
