refactor Setting

This commit is contained in:
Timi
2026-04-30 11:04:28 +08:00
parent 28f0eabff2
commit ff3297e879
15 changed files with 239 additions and 231 deletions
+21 -10
View File
@@ -127,12 +127,7 @@ textarea {
text-decoration: none !important;
}
/* 文本适当对齐 */
.justify-text {
text-align: justify;
}
/* 模糊玻璃效果:白色 */
// 模糊玻璃效果:白色
.glass-white {
color: var(--eui-black, #000);
background: rgba(255, 255, 255, .8);
@@ -140,7 +135,7 @@ textarea {
-webkit-backdrop-filter: blur(10px);
}
/* 模糊玻璃效果:黑色 */
// 模糊玻璃效果:黑色
.glass-black {
color: var(--eui-white, #FFF);
background: rgba(0, 0, 0, .8);
@@ -153,7 +148,7 @@ textarea {
margin: 0 .5rem;
}
/* 强制换行 */
// 强制换行
.break-all,
.break-all textarea {
word-wrap: break-word;
@@ -161,14 +156,29 @@ textarea {
white-space: normal;
}
/* 文本溢出截断 */
// 文本溢出省略
.clip-text {
flex: 1 1 auto;
overflow: hidden;
min-width: 0;
white-space: nowrap;
text-overflow: ellipsis;
}
/* 禁止选择 */
// 文本保持不换行不省略
.keep-text {
flex: none;
min-width: unset;
white-space: nowrap;
text-overflow: unset;
}
// 文本适当对齐
.justify-text {
text-align: justify;
}
// 禁止选择
.diselect {
-webkit-touch-callout: none;
-webkit-user-select: none;
@@ -177,6 +187,7 @@ textarea {
user-select: none;
}
// 可选文本
.selectable {
-webkit-touch-callout: default;
-webkit-user-select: text;