| |
| |
| |
|
|
| |
| select { |
| -webkit-appearance: none; |
| -moz-appearance: none; |
| appearance: none; |
| background-color: var(--page-bg, #fff); |
| border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1)); |
| border-radius: 6px; |
| padding: 6px 28px 6px 10px; |
| font-family: inherit; |
| font-size: 0.875rem; |
| color: var(--text-color, inherit); |
| cursor: pointer; |
| outline: none; |
| transition: border-color 0.15s ease, box-shadow 0.15s ease; |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); |
| background-repeat: no-repeat; |
| background-position: right 8px center; |
| background-size: 10px 6px; |
| } |
|
|
| select:hover, |
| select:focus { |
| border-color: var(--primary-color, #7c3aed); |
| } |
|
|
| select:focus { |
| box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15); |
| } |
|
|
| select:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
|
|
| [data-theme="dark"] select { |
| background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); |
| } |
|
|
| |
| input[type="checkbox"] { |
| -webkit-appearance: none; |
| appearance: none; |
| width: 16px; |
| height: 16px; |
| border: 2px solid var(--border-color, rgba(0, 0, 0, 0.2)); |
| border-radius: 3px; |
| background-color: var(--page-bg, #fff); |
| cursor: pointer; |
| position: relative; |
| transition: all 0.15s ease; |
| flex-shrink: 0; |
| } |
|
|
| input[type="checkbox"]:hover { |
| border-color: var(--primary-color, #7c3aed); |
| } |
|
|
| input[type="checkbox"]:focus { |
| outline: none; |
| box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15); |
| } |
|
|
| input[type="checkbox"]:checked { |
| background-color: var(--primary-color, #7c3aed); |
| border-color: var(--primary-color, #7c3aed); |
| } |
|
|
| input[type="checkbox"]:checked::before { |
| content: ''; |
| position: absolute; |
| top: 1px; |
| left: 4px; |
| width: 4px; |
| height: 8px; |
| border: solid var(--on-primary, #fff); |
| border-width: 0 2px 2px 0; |
| transform: rotate(45deg); |
| } |
|
|
| input[type="checkbox"]:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
|
|
| |
| input[type="radio"] { |
| -webkit-appearance: none; |
| appearance: none; |
| width: 16px; |
| height: 16px; |
| border: 2px solid var(--border-color, rgba(0, 0, 0, 0.2)); |
| border-radius: 50%; |
| background-color: var(--page-bg, #fff); |
| cursor: pointer; |
| position: relative; |
| transition: all 0.15s ease; |
| flex-shrink: 0; |
| } |
|
|
| input[type="radio"]:hover { |
| border-color: var(--primary-color, #7c3aed); |
| } |
|
|
| input[type="radio"]:focus { |
| outline: none; |
| box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15); |
| } |
|
|
| input[type="radio"]:checked { |
| border-color: var(--primary-color, #7c3aed); |
| } |
|
|
| input[type="radio"]:checked::before { |
| content: ''; |
| position: absolute; |
| top: 2px; |
| left: 2px; |
| width: 8px; |
| height: 8px; |
| border-radius: 50%; |
| background-color: var(--primary-color, #7c3aed); |
| } |
|
|
| input[type="radio"]:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
|
|
| |
| input[type="text"], |
| input[type="email"], |
| input[type="password"], |
| input[type="number"], |
| input[type="url"], |
| input[type="search"], |
| textarea { |
| -webkit-appearance: none; |
| appearance: none; |
| background-color: var(--page-bg, #fff); |
| border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1)); |
| border-radius: 6px; |
| padding: 6px 10px; |
| font-family: inherit; |
| font-size: 0.875rem; |
| color: var(--text-color, inherit); |
| transition: border-color 0.15s ease, box-shadow 0.15s ease; |
| width: 100%; |
| } |
|
|
| input[type="text"]:hover, |
| input[type="email"]:hover, |
| input[type="password"]:hover, |
| input[type="number"]:hover, |
| input[type="url"]:hover, |
| input[type="search"]:hover, |
| textarea:hover { |
| border-color: var(--primary-color, #7c3aed); |
| } |
|
|
| input[type="text"]:focus, |
| input[type="email"]:focus, |
| input[type="password"]:focus, |
| input[type="number"]:focus, |
| input[type="url"]:focus, |
| input[type="search"]:focus, |
| textarea:focus { |
| outline: none; |
| border-color: var(--primary-color, #7c3aed); |
| box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15); |
| } |
|
|
| input[type="text"]:disabled, |
| input[type="email"]:disabled, |
| input[type="password"]:disabled, |
| input[type="number"]:disabled, |
| input[type="url"]:disabled, |
| input[type="search"]:disabled, |
| textarea:disabled { |
| opacity: 0.5; |
| cursor: not-allowed; |
| } |
|
|
| |
| label { |
| display: flex; |
| align-items: center; |
| font-size: 0.875rem; |
| color: var(--text-color, inherit); |
| cursor: pointer; |
| margin-bottom: 0; |
| line-height: 1.4; |
| user-select: none; |
| } |
|
|
| |
| .form-group { |
| margin-bottom: 12px; |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| } |
|
|
| .form-group label { |
| margin-bottom: 0; |
| } |
|
|
| .form-group.vertical { |
| flex-direction: column; |
| align-items: flex-start; |
| } |
|
|
| .form-group.vertical label { |
| margin-bottom: 4px; |
| } |
|
|
| .form-inline { |
| display: flex; |
| align-items: center; |
| gap: 8px; |
| margin-bottom: 12px; |
| } |
|
|
| .form-inline label { |
| margin-bottom: 0; |
| } |
|
|