| |
|
|
| |
| .dialog-overlay { |
| position: fixed; |
| top: -500px; |
| left: 0; |
| right: 0; |
| bottom: -500px; |
| background: rgba(0, 0, 0, 0.5); |
| z-index: 100; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| overflow-y: auto; |
| -webkit-overflow-scrolling: touch; |
| } |
|
|
| |
| .dialog { |
| background: var(--bg-color, #fff); |
| border-radius: 8px; |
| padding: 16px; |
| |
| display: flex; |
| flex-direction: column; |
| max-height: 85vh; |
| overflow: hidden; |
| -webkit-overflow-scrolling: touch; |
| box-shadow: 0 4px 20px rgba(0,0,0,0.3); |
| margin: 20px; |
| margin-top: max(20px, env(safe-area-inset-top, 20px)); |
| margin-bottom: max(20px, env(safe-area-inset-bottom, 20px)); |
| margin-left: max(20px, env(safe-area-inset-left, 20px)); |
| margin-right: max(20px, env(safe-area-inset-right, 20px)); |
| box-sizing: border-box; |
| flex-shrink: 0; |
| |
| |
| @supports not (margin-top: env(safe-area-inset-top)) { |
| margin-top: 20px; |
| margin-bottom: 20px; |
| margin-left: 20px; |
| margin-right: 20px; |
| } |
| } |
|
|
| |
| .dialog-title { |
| font-size: 16px; |
| font-weight: bold; |
| margin-bottom: 12px; |
| color: var(--text-color); |
| flex-shrink: 0; |
| } |
|
|
| |
| .dialog-content { |
| margin-bottom: 12px; |
| flex: 1; |
| min-height: 0; |
| display: flex; |
| flex-direction: column; |
| overflow: hidden; |
| } |
|
|
| |
| .dialog-buttons { |
| display: flex; |
| justify-content: flex-end; |
| gap: 10px; |
| flex-shrink: 0; |
| } |
|
|
| |
| .dialog-button { |
| padding: 8px 16px; |
| border-radius: 4px; |
| cursor: pointer; |
| transition: all 0.2s ease; |
| font-weight: 500; |
| |
| |
| &.cancel { |
| background-color: transparent; |
| color: var(--text-color, #333); |
| border: 1px solid var(--input-border, #ccc); |
| |
| &:hover { |
| background-color: rgba(0, 0, 0, 0.05); |
| border-color: var(--input-border, #999); |
| } |
| } |
| |
| |
| :root[data-theme="dark"] & { |
| &.cancel { |
| &:hover { |
| background-color: rgba(255, 255, 255, 0.05); |
| } |
| } |
| } |
| |
| |
| &.confirm { |
| background-color: #007bff; |
| color: white; |
| border: none; |
| font-weight: 600; |
| |
| &:hover:not(:disabled) { |
| background-color: #0056b3; |
| } |
| |
| &:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
| |
| |
| &.queuing { |
| position: relative; |
| opacity: 0.7; |
| cursor: wait; |
| |
| .queuing-text { |
| display: inline-block; |
| margin-right: 8px; |
| } |
| |
| .queuing-spinner { |
| display: inline-block; |
| width: 12px; |
| height: 12px; |
| border: 2px solid rgba(255, 255, 255, 0.3); |
| border-top-color: white; |
| border-radius: 50%; |
| animation: spin 0.8s linear infinite; |
| } |
| } |
| |
| |
| @keyframes spin { |
| to { transform: rotate(360deg); } |
| } |
| } |
| } |
|
|
| |
| .dialog-form-container { |
| margin-bottom: 15px; |
| } |
|
|
| .dialog-label { |
| display: block; |
| margin-bottom: 5px; |
| font-size: 14px; |
| color: var(--text-color); |
| } |
|
|
| |
| .dialog-label-container { |
| display: flex; |
| justify-content: space-between; |
| align-items: center; |
| margin-bottom: 5px; |
| |
| .dialog-label { |
| margin-bottom: 0; |
| flex: 1; |
| } |
| } |
|
|
| .dialog-input { |
| width: 100%; |
| padding: 8px; |
| font-size: 16px; |
| border: 1px solid #ccc; |
| border-radius: 4px; |
| box-sizing: border-box; |
| background: var(--bg-color, #fff); |
| color: var(--text-color); |
| |
| &:focus { |
| outline: none; |
| border-color: #007bff; |
| } |
| } |
|
|
| .dialog-select { |
| width: 100%; |
| padding: 8px; |
| font-size: 16px; |
| border: 1px solid #ccc; |
| border-radius: 4px; |
| box-sizing: border-box; |
| background: var(--bg-color, #fff); |
| color: var(--text-color); |
| font-weight: normal; |
| |
| &:focus { |
| outline: none; |
| border-color: #007bff; |
| } |
| } |
|
|
| |
| .dialog-message { |
| font-size: 14px; |
| color: var(--text-color); |
| line-height: 1.5; |
| white-space: pre-line; |
| } |
|
|
| |
| .dialog-textarea { |
| font-family: inherit; |
| width: 100%; |
| min-height: 100px; |
| max-height: 300px; |
| box-sizing: border-box; |
| resize: vertical; |
| padding: 8px; |
| font-size: 16px; |
| border: 1px solid var(--input-border, #ccc); |
| border-radius: 4px; |
| background-color: var(--input-bg, #fff); |
| color: var(--text-color); |
| transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; |
| |
| &:focus { |
| outline: none; |
| border-color: #007bff; |
| } |
| } |
|
|
| |
| .dialog-textarea-counter { |
| font-size: 8pt; |
| color: var(--text-muted, #666); |
| white-space: nowrap; |
| flex-shrink: 0; |
| } |
|
|
| |
| .dialog-form-container .device-info { |
| color: var(--text-color); |
| } |
|
|
| |
| .loading-overlay { |
| position: fixed; |
| top: 0; |
| left: 0; |
| right: 0; |
| bottom: 0; |
| background: rgba(0, 0, 0, 0.7); |
| z-index: 150; |
| display: flex; |
| align-items: center; |
| justify-content: center; |
| } |
|
|
| .loading-content { |
| background: var(--bg-color, #fff); |
| border-radius: 8px; |
| padding: 30px 40px; |
| text-align: center; |
| |
| p { |
| margin-top: 15px; |
| color: var(--text-color); |
| font-size: 14px; |
| } |
| } |
|
|
|
|