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

测试:NPC对话/style.css

来自EaseCation Wiki
/* 测试:NPC对话 样式 */

/* 外层容器 */
.npc-dialog {
    max-width: 580px;
    width: 100%;
    background-color: #cacbce;
    border: 2px solid #a0a0a0;
    padding: 0 16px 16px 16px;
    margin: 0 auto;
    font-family: 'Microsoft YaHei', 'SimHei', sans-serif;
    box-sizing: border-box;
}

/* 头部标题栏 */
.npc-dialog-header {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-bottom: 8px;
}

.npc-dialog-name {
    font-size: 15px;
    color: #555;
    font-weight: normal;
    word-break: break-word;
    white-space: pre-wrap;
}

.npc-dialog-close {
    position: absolute;
    right: -5px;
    background: none;
    border: none;
    font-size: 20px;
    color: #777;
    cursor: pointer;
    line-height: 1;
}

/* 身体区域(肖像+气泡) */
.npc-dialog-body {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 8px;
    align-items: stretch;
}

/* 肖像区(黑色框)固定80px */
.npc-dialog-portrait {
    width: 100px;
    min-width: 100px;
    flex-shrink: 0;
    background-color: #4a4a4a;
    display: flex;
    justify-content: center;
    align-items: center;
}

.npc-dialog-portrait img {
    max-width: 80px;
    max-height: 80px;
}

/* 气泡区容器 */
.npc-dialog-bubble-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: flex-start;
}

/* 气泡本体 - 文字顶部对齐 */
.npc-dialog-bubble {
    background-color: #eee9e4;
    border: 2px solid #808080;
    border-radius: 4px;
    padding: 8px 12px;
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* 气泡文字 - 缩小 */
.npc-dialog-text {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    margin: 0 0 3px 0;
    word-break: break-word;
    white-space: pre-wrap;
}

.npc-dialog-text-empty {
    font-size: 12px;
    color: #333;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
    white-space: pre-wrap;
}

/* 气泡尾巴 - 内层(浅色) */
.npc-dialog-tail-inner {
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid #e8e4dc;
    z-index: 1;
}

/* 气泡尾巴 - 外层(灰色边框) */
.npc-dialog-tail-outer {
    position: absolute;
    left: -12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid #808080;
    z-index: 0;
}

/* 选项按钮行 */
.npc-dialog-options-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}

/* 单个选项按钮 - 缩小 */
.npc-dialog-option {
    flex: 1 1 calc(33.33% - 4px);
    min-width: 80px;
    background-color: #cacbce;
    border: 2px solid #f0f0f0;
    border-bottom: 2px solid #505050;
    border-right: 2px solid #505050;
    padding: 6px 5px;
    font-size: 11px;
    color: #333;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    word-break: break-word;
    white-space: pre-wrap;
}