feat: 自动拼图失败三次后改为手动拖动
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user