这是测试站点!!!!
不要保存重要内容!不要保存重要内容!不要保存重要内容!不要保存重要内容!不要保存重要内容!
模板:纯白魔方/common.css:修订间差异
来自Limbo Wiki
小 某不知名鸽子移动页面纯白魔方/common.css至模板:纯白魔方/common.css,不留重定向:命名空间错误 |
小无编辑摘要 标签:(旧)WikiEditor |
||
| 第1行: | 第1行: | ||
/* ===== .lw- | /* ===== .lw-treebut 样式===== */ | ||
.lw- | .lw-treebut { | ||
/* —— 盒模型与排版 —— */ | /* —— 盒模型与排版 —— */ | ||
display: block; | display: block; | ||
| 第24行: | 第24行: | ||
/* 左侧的 ◎ —— 颜色跟随文字(currentColor) */ | /* 左侧的 ◎ —— 颜色跟随文字(currentColor) */ | ||
.lw- | .lw-treebut::before { | ||
content: "◎"; | content: "◎"; | ||
position: absolute; | position: absolute; | ||
| 第37行: | 第37行: | ||
/* —— 桌面端:占屏幕宽度的 1/3 —— */ | /* —— 桌面端:占屏幕宽度的 1/3 —— */ | ||
@media (min-width: 768px) { | @media (min-width: 768px) { | ||
.lw- | .lw-treebut { | ||
width: 33.3333%; | width: 33.3333%; | ||
} | } | ||
| 第43行: | 第43行: | ||
/* —— 悬浮 / 键盘聚焦 —— */ | /* —— 悬浮 / 键盘聚焦 —— */ | ||
.lw- | .lw-treebut:hover, | ||
.lw- | .lw-treebut:focus { | ||
background: linear-gradient(to right, #000, #808080); | background: linear-gradient(to right, #000, #808080); | ||
color: #fff; | color: #fff; | ||
| 第51行: | 第51行: | ||
/* 可选:按下时的轻微反馈 */ | /* 可选:按下时的轻微反馈 */ | ||
.lw- | .lw-treebut:active { | ||
filter: brightness(1.15); | filter: brightness(1.15); | ||
} | } | ||
2026年9月20日 (日) 07:37的版本
/* ===== .lw-treebut 样式===== */
.lw-treebut {
/* —— 盒模型与排版 —— */
display: block;
box-sizing: border-box;
position: relative;
width: 100%; /* 移动端:占满整行 */
margin: 4px 0;
padding: 0 12px 0 1.5em; /* 左侧留出 ◎ 的位置 */
line-height: 1; /* 高度 = 字体高度 */
font-size: 1rem;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
/* —— 外观 —— */
color: #333;
background: linear-gradient(to right, #808080, transparent);
border-radius: 999px 0 0 999px;
cursor: pointer;
user-select: none;
transition: color .18s ease;
}
/* 左侧的 ◎ —— 颜色跟随文字(currentColor) */
.lw-treebut::before {
content: "◎";
position: absolute;
left: .45em;
top: 50%;
transform: translateY(-50%);
color: currentColor;
font-size: .9em;
line-height: 1;
}
/* —— 桌面端:占屏幕宽度的 1/3 —— */
@media (min-width: 768px) {
.lw-treebut {
width: 33.3333%;
}
}
/* —— 悬浮 / 键盘聚焦 —— */
.lw-treebut:hover,
.lw-treebut:focus {
background: linear-gradient(to right, #000, #808080);
color: #fff;
outline: none;
}
/* 可选:按下时的轻微反馈 */
.lw-treebut:active {
filter: brightness(1.15);
}
