这是测试站点!!!!

不要保存重要内容!不要保存重要内容!不要保存重要内容!不要保存重要内容!不要保存重要内容!

模板:纯白魔方/common.css:修订间差异

来自Limbo Wiki
某不知名鸽子​(留言 | 贡献)
创建页面,内容为“→感谢ds老师支援:​ lw-treebutton { 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-image: linear-gradient(to right, grey, transparent); border-radius: 999px…”
标签:(旧)WikiEditor
 
某不知名鸽子​(留言 | 贡献)
小无编辑摘要
标签:(旧)WikiEditor
 
(未显示同一用户的7个中间版本)
第1行: 第1行:
/* 感谢ds老师支援 */
.lw-treebut {
lw-treebutton {
   display: block;
   display: block;
   box-sizing: border-box;
   box-sizing: border-box;
   position: relative;
   position: relative;
   width: 100%;                 /* 移动端:占满整行 */
   width: 100%;
   margin: 4px 0;
   margin: 4px 0;
   padding: 0 12px 0 1.5em;
   padding: 0 12px 0 1.5em;
   line-height: 1;        
   line-height: 1.2;
   font-size: 1rem;
   font-size: 1rem;
   white-space: nowrap;
   white-space: nowrap;
   overflow: hidden;
   overflow: hidden;
   text-overflow: ellipsis;
   text-overflow: ellipsis;
 
   text-align: left;
   /* —— 外观 —— */
   border: none;
   color: #333;
   background: linear-gradient(to right, #ddd, transparent);
   background-image: linear-gradient(to right, grey, transparent);
   border-radius: 999px 0 0 999px;
   border-radius: 999px 0 0 999px;   /* 左端圆弧(半圆) */
   cursor: pointer;
   cursor: pointer;
   user-select: none;
   user-select: none;
  -webkit-tap-highlight-color: transparent;
   transition: color .18s ease;
   transition: color .18s ease;
}
}


/* 左侧的 ◎ —— 颜色跟随文字(currentColor) */
.lw-treebut::before {
lw-treebutton::before {
   content: "◎";
   content: "◎";
   position: absolute;
   position: absolute;
第30行: 第26行:
   top: 50%;
   top: 50%;
   transform: translateY(-50%);
   transform: translateY(-50%);
   color: currentColor;         /* 与文本颜色保持一致 */
   color: currentColor;
   font-size: .9em;
   font-size: .9em;
   line-height: 1;
   line-height: 1;
  pointer-events: none;
}
}


/* —— 桌面端:占屏幕宽度的 1/3 —— */
@media (min-width: 768px) {
@media (min-width: 768px) {
   lw-treebutton {
   .lw-treebut {
     width: 33.3333%;
     width: 33.3333%;
   }
   }
}
}


/* —— 悬浮 / 键盘聚焦 —— */
.lw-treebut:hover,
lw-treebutton:hover,
.lw-treebut:focus {
lw-treebutton:focus-visible {
   background: linear-gradient(to right, #000, grey);
   background-image: linear-gradient(to right, #000, grey);
   color: #fff;
   color: #fff;                 /* 字体变白,◎ 也随 currentColor 变白 */
   outline: none;
   outline: none;
}
}


/* 可选:按下时的轻微反馈 */
.lw-treebut:active {
lw-treebutton:active {
   filter: brightness(1.15);
   filter: brightness(1.15);
}
}

2026年9月20日 (日) 07:54的最新版本

.lw-treebut {
  display: block;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  margin: 4px 0;
  padding: 0 12px 0 1.5em;
  line-height: 1.2;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  border: none;
  background: linear-gradient(to right, #ddd, transparent);
  border-radius: 999px 0 0 999px;
  cursor: pointer;
  user-select: none;
  transition: color .18s ease;
}

.lw-treebut::before {
  content: "◎";
  position: absolute;
  left: .45em;
  top: 50%;
  transform: translateY(-50%);
  color: currentColor;
  font-size: .9em;
  line-height: 1;
}

@media (min-width: 768px) {
  .lw-treebut {
    width: 33.3333%;
  }
}

.lw-treebut:hover,
.lw-treebut:focus {
  background: linear-gradient(to right, #000, grey);
  color: #fff;
  outline: none;
}

.lw-treebut:active {
  filter: brightness(1.15);
}