246 lines
4.3 KiB
CSS
246 lines
4.3 KiB
CSS
:root {
|
|
--primary-color: #0066cc;
|
|
--secondary-color: #6c757d;
|
|
--background-color: #ffffff;
|
|
--border-color: #dee2e6;
|
|
--text-color: #212529;
|
|
--text-secondary: #6c757d;
|
|
--muted-background: #f8f9fa;
|
|
--input-background: #ffffff;
|
|
--input-text: #212529;
|
|
}
|
|
|
|
:root[data-theme="dark"] {
|
|
color-scheme: dark;
|
|
--background-color: #202124;
|
|
--border-color: #4a4d52;
|
|
--text-color: #f1f3f4;
|
|
--text-secondary: #bdc1c6;
|
|
--muted-background: #35363a;
|
|
--input-background: #303134;
|
|
--input-text: #f1f3f4;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root[data-theme="system"] {
|
|
color-scheme: dark;
|
|
--background-color: #202124;
|
|
--border-color: #4a4d52;
|
|
--text-color: #f1f3f4;
|
|
--text-secondary: #bdc1c6;
|
|
--muted-background: #35363a;
|
|
--input-background: #303134;
|
|
--input-text: #f1f3f4;
|
|
}
|
|
}
|
|
|
|
select option {
|
|
background-color: var(--input-background);
|
|
color: var(--input-text);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
font-size: 14px;
|
|
color: var(--text-color);
|
|
min-width: 320px;
|
|
}
|
|
|
|
.popup-container {
|
|
padding: 16px;
|
|
background-color: var(--background-color);
|
|
}
|
|
|
|
.popup-header {
|
|
margin-bottom: 20px;
|
|
padding-bottom: 16px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.popup-header h2 {
|
|
font-size: 18px;
|
|
margin-bottom: 8px;
|
|
color: var(--primary-color);
|
|
}
|
|
|
|
.domain-display {
|
|
font-size: 12px;
|
|
color: var(--text-secondary);
|
|
font-family: monospace;
|
|
background-color: var(--muted-background);
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
display: inline-block;
|
|
}
|
|
|
|
.toggle-section {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.toggle-label {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.toggle-slider {
|
|
position: relative;
|
|
width: 40px;
|
|
height: 20px;
|
|
background-color: #ccc;
|
|
border-radius: 20px;
|
|
transition: background-color 0.3s;
|
|
}
|
|
|
|
.toggle-slider:after {
|
|
content: '';
|
|
position: absolute;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background-color: white;
|
|
top: 2px;
|
|
left: 2px;
|
|
transition: transform 0.3s;
|
|
}
|
|
|
|
input[type="checkbox"] {
|
|
display: none;
|
|
}
|
|
|
|
input[type="checkbox"]:checked + .toggle-slider {
|
|
background-color: var(--primary-color);
|
|
}
|
|
|
|
input[type="checkbox"]:checked + .toggle-slider:after {
|
|
transform: translateX(20px);
|
|
}
|
|
|
|
.toggle-text {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.proxy-form {
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.form-row {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 12px;
|
|
}
|
|
|
|
label {
|
|
display: block;
|
|
margin-bottom: 4px;
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
}
|
|
|
|
input, select {
|
|
width: 100%;
|
|
padding: 8px 10px;
|
|
background-color: var(--input-background);
|
|
color: var(--input-text);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
input:focus, select:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
}
|
|
|
|
input::placeholder {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.password-input {
|
|
position: relative;
|
|
}
|
|
|
|
.toggle-password {
|
|
position: absolute;
|
|
right: 8px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
font-size: 14px;
|
|
padding: 2px;
|
|
}
|
|
|
|
.form-actions {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.btn {
|
|
padding: 8px 16px;
|
|
border: none;
|
|
border-radius: 4px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
flex: 1;
|
|
}
|
|
|
|
.btn-primary {
|
|
background-color: var(--primary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
background-color: #0052a3;
|
|
}
|
|
|
|
.btn-secondary {
|
|
background-color: var(--secondary-color);
|
|
color: white;
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background-color: #5a6268;
|
|
}
|
|
|
|
.info-message {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
}
|
|
|
|
.info-message p {
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.popup-footer {
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid var(--border-color);
|
|
text-align: center;
|
|
}
|
|
|
|
.hint {
|
|
font-size: 11px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.hidden {
|
|
display: none !important;
|
|
}
|