Files
console-dev/app/assets/styles/SensitiveValue.BSZlaRHT.css
T

40 lines
1.2 KiB
CSS

/* 敏感信息展示:掩码文本和显示/隐藏按钮。 */
/* 导入方:app/components/SensitiveValue.vue、app/pages/account/index.vue、app/pages/index.vue。 */
.sensitive-value[data-v-07008ebf] {
vertical-align: middle;
align-items: center;
gap: 4px;
min-width: 0;
max-width: 100%;
display: inline-flex;
}
/* 允许连续长文本换行,防止IP、密钥或用户输入撑破当前容器;不会修改原始数据。 */
.sensitive-value-text[data-v-07008ebf] {
overflow-wrap: anywhere;
min-width: 0;
}
.sensitive-value-toggle[data-v-07008ebf] {
min-width: 28px;
min-height: 28px;
color: var(--p-text-muted-color, #64748b);
cursor: pointer;
background: 0 0;
border: 0;
border-radius: 4px;
flex: none;
justify-content: center;
align-items: center;
padding: 4px;
font-size: 0.9375rem;
display: inline-flex;
}
.sensitive-value-toggle[data-v-07008ebf]:hover {
color: var(--p-primary-color);
background: var(--p-content-hover-background);
}
/* 键盘操作的可见焦点:不要只保留鼠标 hover 效果而移除此反馈。 */
.sensitive-value-toggle[data-v-07008ebf]:focus-visible {
outline: 2px solid var(--p-primary-color);
outline-offset: 2px;
}