首页加分类小按钮 + 参照 deertools 扩到 201 个工具
- app.js: 首页粘性搜索条 + 分类 chip(带数量),实时过滤,不再翻半天 - 新增 lib-simple.js(textTool / convTool / genTool 工厂) - 新增 9 个 catalog:cat-text / cat-encode / cat-convert / cat-random / cat-dev / cat-css / cat-device / cat-office / cat-life - 新增分组:随机 / 检测 / 办公 / 生活 - 工具数 44 → 201;全部 mount 通过(jsdom 201/201)
This commit is contained in:
1 parent
cea0c44e9d
commit
f454ea8da7
15 files changed
+1224
-16
No files matched your search
@@ -733,3 +733,34 @@ html, body { overflow-x: hidden; }
|
||||
.extract-row:first-of-type { border-top: none; }
|
||||
.extract-val { flex: 1; font: 12.5px/1.5 var(--mono); color: var(--txt); word-break: break-all; }
|
||||
@media (max-width: 640px) { .extract-row { flex-wrap: wrap; } .extract-val { width: 100%; } }
|
||||
|
||||
/* ---------- 首页:找工具(搜索 + 分类小按钮) ---------- */
|
||||
.findbar { position: sticky; top: 0; z-index: 20; padding: 12px 0 10px; margin-bottom: 6px;
|
||||
background: linear-gradient(var(--bg) 72%, transparent); backdrop-filter: blur(8px); }
|
||||
.find-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
|
||||
border: 1px solid var(--line); background: var(--panel); }
|
||||
.find-search svg { width: 17px; height: 17px; color: var(--dim-2); flex: none; }
|
||||
.find-search input { flex: 1; border: none; background: none; color: var(--txt); font-size: 14.5px; outline: none; }
|
||||
.find-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px 2px; scrollbar-width: none; }
|
||||
.find-chips::-webkit-scrollbar { display: none; }
|
||||
.find-chip { flex: none; font-size: 12.5px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line);
|
||||
background: var(--panel); color: var(--dim); cursor: pointer; transition: .15s; white-space: nowrap; }
|
||||
.find-chip:hover { color: var(--txt); border-color: rgba(91, 140, 255, .45); }
|
||||
.find-chip.on { background: rgba(91, 140, 255, .18); border-color: rgba(91, 140, 255, .6); color: var(--txt); font-weight: 600; }
|
||||
@media (max-width: 640px) { .findbar { padding-top: 8px; } .find-search { padding: 8px 12px; } }
|
||||
|
||||
/* ---------- 通用:行内字段、演示区、检测工具 ---------- */
|
||||
.inline-field { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); }
|
||||
.inline-field > span { white-space: nowrap; }
|
||||
.cssdemo { margin: 10px 0; height: 120px; border-radius: 12px; border: 1px solid var(--line); }
|
||||
.clickpad { margin-top: 12px; height: 170px; display: grid; place-items: center; border-radius: 14px; cursor: pointer;
|
||||
background: linear-gradient(160deg, rgba(91,140,255,.28), rgba(157,107,255,.22)); border: 1px solid rgba(91,140,255,.45);
|
||||
font-size: 16px; font-weight: 600; user-select: none; -webkit-tap-highlight-color: transparent; }
|
||||
.clickpad:active { transform: scale(.995); }
|
||||
.reactpad { margin-top: 12px; height: 170px; display: grid; place-items: center; border-radius: 14px; cursor: pointer;
|
||||
background: var(--panel-2); border: 1px solid var(--line); font-weight: 600; user-select: none; }
|
||||
.keypad { margin-top: 10px; height: 120px; display: grid; place-items: center; border-radius: 12px; border: 1px dashed var(--line); outline: none; color: var(--dim); }
|
||||
.keypad:focus { border-color: rgba(91,140,255,.6); color: var(--txt); }
|
||||
.meter { margin-top: 12px; height: 18px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); overflow: hidden; }
|
||||
.meter-in { height: 100%; width: 0; background: linear-gradient(90deg, #33d6a6, #5b8cff); transition: width .06s linear; }
|
||||
.fullscreen-stage { position: fixed; inset: 0; z-index: 999; cursor: pointer; }
|
||||
Reference in new issue
Block a user