打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

模板:角色对话/style.css

来自EaseCation Wiki
/* 视觉小说风格角色对话模板 */

/* 渐变背景(共用) */
.vn-dialog {
    display: flex;
    align-items: center;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.2) 85%, transparent 100%);
    padding: 10px 40px 10px 0;
    margin: 8px 0 8px 10px;
    box-sizing: border-box;
    max-width: 700px;
    overflow: visible;
}

/* 头像区 */
.vn-dialog-avatar {
    width: 80px;
    height: 80px;
    margin-left: -10px;
    margin-right: 14px;
    flex-shrink: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vn-dialog-avatar img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    display: block;
}

/* 文字区 */
.vn-dialog-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex: 1;
    min-width: 0;
}

.vn-dialog-name {
    line-height: 1.3;
    white-space: nowrap;
}

.vn-dialog-text {
    line-height: 1.6;
    word-break: break-word;
}

/* 无头像模式 */
.vn-dialog.name-only,
.vn-dialog.text-only {
    padding: 10px 40px 10px 16px;
    margin-left: 0;
}

.vn-dialog.text-only {
    max-width: 600px;
}

/* 深色模式 */
html.skin-theme-clientpref-night .vn-dialog,
html.skin-theme-clientpref-night .vn-dialog.name-only,
html.skin-theme-clientpref-night .vn-dialog.text-only {
    background: linear-gradient(to right, rgba(20,20,30,0.6) 0%, rgba(20,20,30,0.4) 60%, rgba(20,20,30,0.15) 85%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
    html.skin-theme-clientpref-os .vn-dialog,
    html.skin-theme-clientpref-os .vn-dialog.name-only,
    html.skin-theme-clientpref-os .vn-dialog.text-only {
        background: linear-gradient(to right, rgba(20,20,30,0.6) 0%, rgba(20,20,30,0.4) 60%, rgba(20,20,30,0.15) 85%, transparent 100%);
    }
}

/* 响应式 */
@media (max-width: 500px) {
    .vn-dialog {
        padding: 8px 24px 8px 0;
        margin-left: 8px;
    }
    .vn-dialog-avatar {
        width: 60px;
        height: 60px;
        margin-left: -8px;
        margin-right: 10px;
    }
    .vn-dialog-avatar img {
        width: 60px;
        height: 60px;
    }
    .vn-dialog.name-only,
    .vn-dialog.text-only {
        padding: 8px 24px 8px 12px;
        margin-left: 0;
    }
}