+
+
拖动滑块完成拼图
+
+
![]()
+
![]()
+
+
+
+
+
+
登录
diff --git a/web/src/styles.css b/web/src/styles.css
index b2a9bfd..d4fc392 100644
--- a/web/src/styles.css
+++ b/web/src/styles.css
@@ -134,6 +134,65 @@ select {
color: var(--ink);
}
+.gate-card.with-jigsaw {
+ width: max-content;
+ max-width: calc(100% - 32px);
+}
+
+.jigsaw-block {
+ margin-top: 4px;
+}
+
+.jigsaw-block p {
+ margin: 0 0 8px;
+ text-align: center;
+}
+
+.jigsaw {
+ position: relative;
+ margin: 0 auto;
+ user-select: none;
+ touch-action: none;
+}
+
+.jigsaw .board,
+.jigsaw .piece {
+ display: block;
+ max-width: none;
+}
+
+.jigsaw .piece {
+ position: absolute;
+ pointer-events: none;
+}
+
+.jigsaw-track {
+ position: relative;
+ height: 36px;
+ margin: 8px auto 0;
+ border: 1px solid var(--line);
+ background: var(--elevated);
+ touch-action: none;
+}
+
+.jigsaw-handle {
+ position: absolute;
+ top: -1px;
+ width: 40px;
+ height: 36px;
+ display: grid;
+ place-items: center;
+ padding: 0;
+ border: 1px solid var(--accent);
+ background: var(--panel);
+ color: var(--accent);
+ cursor: grab;
+}
+
+.jigsaw-handle:disabled {
+ cursor: wait;
+}
+
.gate-actions {
display: flex;
justify-content: flex-end;