UNPKG

puzzle-react

Version:

a puzzle verify component for react

94 lines (85 loc) 1.81 kB
.puzzle { padding: 10px; display: inline-block; background-color: #fff; border: 1px solid #f1f1f1; position: relative; } #puzzle-background { } #puzzle-slide { position: absolute; z-index: 5; background-color: transparent; box-shadow: 0 0 4px 0.8px rgba(255, 255, 255, 0.3); } #puzzle-goal { position: absolute; background-color: #fff; bottom: 50px; box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.3) inset; } .puzzle-box { height: 40px; margin-top: 7px; border: 1px solid #f1f1f1; position: relative; user-select: none; } .puzzle-handle { position: absolute; } .puzzle-button { position: absolute; height: 40px; width: 40px; background-color: #fff; box-sizing: border-box; box-shadow: 0 0 2px 1px lightgray; text-align: center; line-height: 40px; font-size: 14px; cursor: w-resize; color: #555; font-weight: bold; } .puzzle-button:hover { color: #000; font-weight: bold; } .puzzle-result { width: calc(100% - 20px); position: absolute; height: 0px; z-index: 6; bottom: 60px; transition: height 0.2s ease-out; text-align: center; color: #fff; font-size: 12px; font-family: 微软雅黑; } .puzzle-result-success { background-color: rgba(52, 189, 104, 1); height: 20px; line-height: 20px; } .puzzle-result-fail { background-color: #f13a3a; height: 20px; line-height: 20px; } .puzzle-refresh { position: absolute; right: 20px; top: 20px; width: 20px; height: 20px; cursor: pointer; background: #fff; border-radius: 50%; box-shadow: 0 0 4 2px #fff; display: flex; align-items: center; justify-content: center; }