Files
Peter Siegmund f7cedf24e8
Some checks failed
ESP-IDF Build / build (esp32c6, release-v5.4) (push) Failing after 7m45s
ESP-IDF Build / build (esp32c6, release-v5.5) (push) Failing after 4m52s
ESP-IDF Build / build (esp32s3, release-v5.4) (push) Failing after 4m35s
ESP-IDF Build / build (esp32s3, release-v5.5) (push) Failing after 4m58s
shared website header
Signed-off-by: Peter Siegmund <developer@mars3142.org>
2026-01-18 10:59:08 +01:00

217 lines
3.4 KiB
CSS

@media (max-width: 600px) {
.header {
flex-direction: row;
align-items: flex-start;
text-align: left;
}
.header h1 {
flex: 1 1 100%;
text-align: center;
order: 2;
margin-top: 8px;
}
.header-controls {
order: 1;
flex: 1 1 auto;
justify-content: flex-start;
display: flex;
gap: 8px;
}
}
/* Captive Portal CSS - WiFi setup specific styles */
/* Base styles are in shared.css */
body {
padding: 12px;
}
.container {
max-width: 900px;
margin: 0 auto;
width: 100%;
}
/* Header */
.header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
flex-wrap: wrap;
gap: 10px;
}
.header h1 {
font-size: 1.5rem;
margin: 0;
}
.header p {
color: var(--text-muted);
font-size: 0.9rem;
}
/* Theme Toggle - Absolute positioned */
/* Handled by .captive-header in shared.css */
/* Card - Larger padding for captive */
.card {
border-radius: 16px;
padding: 24px;
box-shadow: 0 4px 20px var(--shadow);
}
#connect-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
pointer-events: none;
box-shadow: none;
background-color: #888 !important;
}
}
/* Form Group - More spacing */
.form-group {
margin-bottom: 16px;
}
label {
margin-bottom: 8px;
font-weight: 500;
}
/* Inputs - Thicker border for captive */
input[type="text"],
input[type="password"],
select {
padding: 14px 16px;
border-width: 2px;
border-radius: 10px;
}
/* Buttons - Full width for captive */
.btn {
width: 100%;
padding: 14px 20px;
border-radius: 10px;
font-size: 1rem;
font-weight: 600;
min-height: 50px;
}
.btn-secondary {
margin-top: 10px;
}
.btn-group {
flex-direction: column;
gap: 10px;
margin-top: 20px;
}
/* Status - Centered text */
.status {
text-align: center;
border-radius: 10px;
padding: 12px 16px;
}
/* Divider */
.divider {
display: flex;
align-items: center;
margin: 20px 0;
color: var(--text-muted);
font-size: 0.85rem;
}
.divider::before,
.divider::after {
content: '';
flex: 1;
height: 1px;
background: var(--border);
}
.divider span {
padding: 0 12px;
}
/* Network List */
.network-list {
max-height: 200px;
overflow-y: auto;
border: 1px solid var(--border);
border-radius: 10px;
margin-bottom: 16px;
}
.network-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 16px;
border-bottom: 1px solid var(--border);
cursor: pointer;
transition: background 0.2s;
}
.network-item:last-child {
border-bottom: none;
}
.network-item:hover {
background: var(--accent);
}
.network-item.selected {
background: var(--accent);
border-left: 3px solid var(--success);
}
.network-name {
font-weight: 500;
display: flex;
align-items: center;
gap: 8px;
}
.network-signal {
color: var(--text-muted);
font-size: 0.85rem;
}
.signal-icon {
font-size: 1.1rem;
}
/* Info Box */
.info-box {
background: var(--accent);
border-radius: 10px;
padding: 12px 16px;
margin-top: 20px;
font-size: 0.85rem;
color: var(--text-muted);
}
.info-box strong {
color: var(--text);
}
/* Spinner - Smaller for captive */
.spinner {
width: 30px;
height: 30px;
}
.loading {
padding: 20px;
}