diff --git a/certificate.html b/certificate.html index 1b81159..79c20e8 100644 --- a/certificate.html +++ b/certificate.html @@ -348,35 +348,157 @@ } #signatureCanvas { - border: 1px solid #ced4da; - border-radius: 4px; - background-color: #f8f9fa; + border: 2px solid #ced4da; + border-radius: 8px; + background-color: white; cursor: crosshair; + width: 100%; + height: 200px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .signature-actions { - margin-top: 8px; - text-align: right; + margin-top: 12px; + display: flex; + justify-content: space-between; + align-items: center; } .signature-actions button { - padding: 6px 12px; + padding: 8px 16px; background-color: #6c757d; color: white; border: none; border-radius: 4px; font-size: 14px; + font-weight: 500; cursor: pointer; + transition: background-color 0.3s ease; } .signature-actions button:hover { background-color: #5a6268; } + .signature-actions .sign-hint { + font-size: 14px; + color: #666; + } + /* 签名显示样式 */ .signature-display img { - max-width: 200px; - max-height: 100px; + max-width: 250px; + max-height: 120px; + border: 1px solid #e0e0e0; + border-radius: 4px; + padding: 8px; + background-color: white; + } + + /* 签名弹窗样式 */ + .signature-modal { + display: none; + position: fixed; + top: 0; + left: 0; + width: 100%; + height: 100%; + background-color: rgba(0, 0, 0, 0.8); + z-index: 2000; + align-items: center; + justify-content: center; + padding: 20px; + } + + .signature-modal.show { + display: flex; + } + + .signature-modal-content { + background-color: white; + border-radius: 12px; + padding: 24px; + width: 90%; + max-width: 500px; + max-height: 80vh; + overflow: hidden; + box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); + } + + .signature-modal-header { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 20px; + } + + .signature-modal-header h3 { + font-size: 18px; + font-weight: 600; + color: #333; + margin: 0; + } + + .signature-modal-close { + background: none; + border: none; + font-size: 24px; + color: #666; + cursor: pointer; + } + + #signatureModalCanvas { + border: 2px solid #ced4da; + border-radius: 8px; + background-color: white; + cursor: crosshair; + width: 100%; + height: 300px; + box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); + } + + .signature-modal-actions { + margin-top: 20px; + display: flex; + gap: 12px; + } + + .signature-modal-actions button { + flex: 1; + padding: 12px; + border: none; + border-radius: 4px; + font-size: 16px; + font-weight: 500; + cursor: pointer; + transition: background-color 0.3s ease; + } + + .signature-modal-actions .cancel-btn { + background-color: #6c757d; + color: white; + } + + .signature-modal-actions .clear-btn { + background-color: #ffc107; + color: #212529; + } + + .signature-modal-actions .confirm-btn { + background-color: #28a745; + color: white; + } + + .signature-modal-actions .cancel-btn:hover { + background-color: #5a6268; + } + + .signature-modal-actions .clear-btn:hover { + background-color: #e0a800; + } + + .signature-modal-actions .confirm-btn:hover { + background-color: #218838; } /* 响应式设计 */ @@ -455,13 +577,30 @@