Spaces:
Running
Running
root commited on
Commit ·
487cc2a
1
Parent(s): 9a4e30f
UI polish: list/card transitions, custom checklist, editor bar sizing
Browse files
fanqie/dist/index.html
CHANGED
|
@@ -8,8 +8,8 @@
|
|
| 8 |
<title>小说写作台</title>
|
| 9 |
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23b8432f'/%3E%3Ctext x='32' y='44' font-size='34' text-anchor='middle' fill='%23fff' font-family='serif'%3E%E6%96%87%3C/text%3E%3C/svg%3E" />
|
| 10 |
<script>try{var t=localStorage.getItem('xs_theme');if(t==='night')document.documentElement.dataset.theme='night'}catch(e){}</script>
|
| 11 |
-
<script type="module" crossorigin src="/assets/index-
|
| 12 |
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
| 13 |
</head>
|
| 14 |
<body>
|
| 15 |
<div id="root"></div>
|
|
|
|
| 8 |
<title>小说写作台</title>
|
| 9 |
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23b8432f'/%3E%3Ctext x='32' y='44' font-size='34' text-anchor='middle' fill='%23fff' font-family='serif'%3E%E6%96%87%3C/text%3E%3C/svg%3E" />
|
| 10 |
<script>try{var t=localStorage.getItem('xs_theme');if(t==='night')document.documentElement.dataset.theme='night'}catch(e){}</script>
|
| 11 |
+
<script type="module" crossorigin src="/assets/index-DqtNJzXL.js"></script>
|
| 12 |
+
<link rel="stylesheet" crossorigin href="/assets/index-Bdpk798C.css">
|
| 13 |
</head>
|
| 14 |
<body>
|
| 15 |
<div id="root"></div>
|
public/assets/{index-CMuXdayH.css → index-Bdpk798C.css}
RENAMED
|
The diff for this file is too large to render.
See raw diff
|
|
|
public/assets/{index-DzwUAEm4.js → index-DqtNJzXL.js}
RENAMED
|
File without changes
|
public/index.html
CHANGED
|
@@ -8,8 +8,8 @@
|
|
| 8 |
<title>小说写作台</title>
|
| 9 |
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23b8432f'/%3E%3Ctext x='32' y='44' font-size='34' text-anchor='middle' fill='%23fff' font-family='serif'%3E%E6%96%87%3C/text%3E%3C/svg%3E" />
|
| 10 |
<script>try{var t=localStorage.getItem('xs_theme');if(t==='night')document.documentElement.dataset.theme='night'}catch(e){}</script>
|
| 11 |
-
<script type="module" crossorigin src="/assets/index-
|
| 12 |
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
| 13 |
</head>
|
| 14 |
<body>
|
| 15 |
<div id="root"></div>
|
|
|
|
| 8 |
<title>小说写作台</title>
|
| 9 |
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Crect width='64' height='64' rx='12' fill='%23b8432f'/%3E%3Ctext x='32' y='44' font-size='34' text-anchor='middle' fill='%23fff' font-family='serif'%3E%E6%96%87%3C/text%3E%3C/svg%3E" />
|
| 10 |
<script>try{var t=localStorage.getItem('xs_theme');if(t==='night')document.documentElement.dataset.theme='night'}catch(e){}</script>
|
| 11 |
+
<script type="module" crossorigin src="/assets/index-DqtNJzXL.js"></script>
|
| 12 |
+
<link rel="stylesheet" crossorigin href="/assets/index-Bdpk798C.css">
|
| 13 |
</head>
|
| 14 |
<body>
|
| 15 |
<div id="root"></div>
|
ui-src/src/styles.css
CHANGED
|
@@ -1551,3 +1551,23 @@ h1, h2, h3, .page-title, .room-title { text-wrap: balance; }
|
|
| 1551 |
}
|
| 1552 |
@keyframes slide-l { from { transform: translateX(-24px); opacity: 0; } }
|
| 1553 |
@media (max-width: 1100px) { .doc-tabs .tab { padding-inline: 10px; } }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1551 |
}
|
| 1552 |
@keyframes slide-l { from { transform: translateX(-24px); opacity: 0; } }
|
| 1553 |
@media (max-width: 1100px) { .doc-tabs .tab { padding-inline: 10px; } }
|
| 1554 |
+
/* 列表项与卡片的统一手感 */
|
| 1555 |
+
.src-item, .src-link, .toc-link, .reader-toc-item, .pick-item, .cand, .ch-card, .preset, .motif-tile, .mini-mat, .ref-card, .basket-item, .post, .disc-item, .genre, .fact, .beat-card, .mat-card, .role-slot, .le-item {
|
| 1556 |
+
transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease), color .18s;
|
| 1557 |
+
}
|
| 1558 |
+
.ch-card:hover, .preset:hover, .mini-mat:hover, .ref-card:hover { box-shadow: var(--shadow-s); }
|
| 1559 |
+
.le-item:focus-within { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 8%, transparent); }
|
| 1560 |
+
.checklist input {
|
| 1561 |
+
appearance: none; -webkit-appearance: none; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper) center / 11px 11px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s;
|
| 1562 |
+
}
|
| 1563 |
+
.checklist input:checked {
|
| 1564 |
+
background-color: var(--ok); border-color: var(--ok);
|
| 1565 |
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E");
|
| 1566 |
+
}
|
| 1567 |
+
.checklist label:hover input:not(:checked) { border-color: var(--ok); }
|
| 1568 |
+
.progress-big i, .bar i, .about-goal i { transition: width .6s var(--ease); }
|
| 1569 |
+
.loading { color: var(--ink-3); }
|
| 1570 |
+
.empty-icon { box-shadow: inset 0 0 0 1px var(--hair); }
|
| 1571 |
+
.empty-title { letter-spacing: .02em; }
|
| 1572 |
+
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--paper); color: var(--ink-2); }
|
| 1573 |
+
.editor-bar .icon-btn { width: 32px; height: 32px; }
|