Files
glastree/installer/assets/style.css
T

506 lines
8.4 KiB
CSS
Raw Normal View History

2026-06-01 16:11:29 +02:00
/* =============================================================================
Glastree Installer - Styles
============================================================================= */
:root {
--primary: #007bff;
--primary-dark: #0056b3;
--success: #28a745;
--danger: #dc3545;
--warning: #ffc107;
--info: #17a2b8;
--dark: #343a40;
--light: #f8f9fa;
--border: #dee2e6;
--text: #212529;
--text-muted: #6c757d;
--radius: 8px;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
font-size: 15px;
line-height: 1.6;
color: var(--text);
background: #e9ecef;
}
.container {
max-width: 800px;
margin: 0 auto;
padding: 0 20px;
}
/* Header */
.installer-header {
background: linear-gradient(135deg, #343a40 0%, #212529 100%);
color: #fff;
padding: 30px 0;
text-align: center;
}
.installer-header h1 {
font-size: 28px;
font-weight: 700;
margin-bottom: 4px;
}
.installer-header .subtitle {
font-size: 14px;
opacity: 0.75;
margin: 0;
}
/* Step indicator */
.step-indicator {
text-align: center;
padding: 12px 0;
color: var(--text-muted);
font-size: 13px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 1px;
}
/* Card */
.card {
background: #fff;
border: 1px solid var(--border);
border-radius: var(--radius);
margin-bottom: 24px;
box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card-body {
padding: 28px;
}
.card-body h2 {
font-size: 22px;
font-weight: 700;
margin-bottom: 8px;
}
.card-body h4 {
font-size: 17px;
font-weight: 600;
margin-bottom: 12px;
color: var(--dark);
}
.card-body h5 {
font-size: 15px;
font-weight: 600;
margin-bottom: 8px;
}
.card-body p {
color: var(--text-muted);
margin-bottom: 20px;
}
hr {
border: none;
border-top: 1px solid var(--border);
margin: 24px 0;
}
/* Form elements */
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
font-weight: 600;
margin-bottom: 4px;
font-size: 14px;
color: var(--dark);
}
.form-control {
width: 100%;
padding: 10px 14px;
font-size: 15px;
border: 1px solid var(--border);
border-radius: 6px;
background: #fff;
transition: border-color 0.2s;
}
.form-control:focus {
outline: none;
border-color: var(--primary);
box-shadow: 0 0 0 3px rgba(0,123,255,0.15);
}
.form-text {
display: block;
margin-top: 4px;
font-size: 13px;
color: var(--text-muted);
}
/* Buttons */
.btn {
display: inline-block;
padding: 10px 22px;
font-size: 15px;
font-weight: 600;
border: none;
border-radius: 6px;
cursor: pointer;
text-decoration: none;
transition: all 0.2s;
}
.btn-primary {
background: var(--primary);
color: #fff;
}
.btn-primary:hover {
background: var(--primary-dark);
}
.btn-secondary {
background: #6c757d;
color: #fff;
}
.btn-secondary:hover {
background: #5a6268;
}
.btn-lg {
padding: 14px 32px;
font-size: 17px;
}
.form-actions {
display: flex;
gap: 12px;
justify-content: space-between;
align-items: center;
margin-top: 24px;
}
/* Option cards */
.option-group {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin: 20px 0;
}
.option-card {
display: block;
position: relative;
border: 2px solid var(--border);
border-radius: var(--radius);
cursor: pointer;
transition: all 0.2s;
overflow: hidden;
}
.option-card:hover {
border-color: var(--primary);
box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}
.option-card.selected {
border-color: var(--primary);
background: rgba(0,123,255,0.03);
}
.option-card .option-radio {
position: absolute;
opacity: 0;
width: 0;
height: 0;
}
.option-content {
padding: 20px;
}
.option-icon {
font-size: 32px;
margin-bottom: 8px;
color: var(--primary);
}
.option-card h3 {
font-size: 17px;
font-weight: 700;
margin-bottom: 6px;
}
.option-card p {
font-size: 13px;
line-height: 1.5;
}
.option-card ul {
margin-top: 8px;
padding-left: 18px;
font-size: 13px;
color: var(--text-muted);
}
.option-card ul li {
margin-bottom: 2px;
}
/* Requirements */
.requirements-list {
margin: 16px 0;
}
.requirement-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: 6px;
margin-bottom: 6px;
font-size: 14px;
}
.requirement-item.passed {
background: #f0fff4;
border-color: #b8e6c8;
}
.requirement-item.failed {
background: #fff5f5;
border-color: #f5c6cb;
}
.req-icon {
font-size: 18px;
width: 24px;
text-align: center;
}
.requirement-item.passed .req-icon { color: var(--success); }
.requirement-item.failed .req-icon { color: var(--danger); }
.req-name {
flex: 1;
font-weight: 600;
}
.req-status {
font-size: 12px;
font-weight: 700;
padding: 2px 8px;
border-radius: 4px;
}
.requirement-item.passed .req-status {
background: #d4edda;
color: #155724;
}
.requirement-item.failed .req-status {
background: #f8d7da;
color: #721c24;
}
.req-msg {
width: 100%;
margin-top: 4px;
font-size: 13px;
color: var(--danger);
}
/* Alerts */
.alert {
padding: 14px 18px;
border-radius: 6px;
margin-bottom: 16px;
font-size: 14px;
line-height: 1.5;
}
.alert-danger {
background: #f8d7da;
border: 1px solid #f5c6cb;
color: #721c24;
}
.alert-success {
background: #d4edda;
border: 1px solid #c3e6cb;
color: #155724;
}
.alert-warning {
background: #fff3cd;
border: 1px solid #ffeeba;
color: #856404;
}
.alert-info {
background: #d1ecf1;
border: 1px solid #bee5eb;
color: #0c5460;
}
.alert ul {
margin-top: 8px;
padding-left: 20px;
}
/* Log list */
.log-list {
margin: 12px 0;
}
.log-item {
padding: 6px 12px;
font-size: 13px;
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
background: var(--light);
border-left: 3px solid var(--success);
margin-bottom: 2px;
}
/* Results list */
.results-list {
margin: 16px 0;
}
.result-item {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 14px;
border-radius: 6px;
margin-bottom: 4px;
font-size: 14px;
}
.result-item.success {
background: #f0fff4;
color: #155724;
}
.result-item.error {
background: #fff5f5;
color: #721c24;
}
.result-icon {
font-size: 18px;
}
/* Final box */
.final-box {
background: var(--light);
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px;
margin-bottom: 20px;
}
.final-box h3 {
font-size: 17px;
font-weight: 700;
margin-bottom: 12px;
}
.final-box ol,
.final-box ul {
padding-left: 20px;
line-height: 1.8;
}
code {
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
font-size: 13px;
background: #f4f4f4;
padding: 2px 6px;
border-radius: 4px;
border: 1px solid #e0e0e0;
}
code.d-block {
display: block;
background: #f4f4f4;
border-radius: 6px;
font-size: 13px;
}
.bg-light {
background: var(--light);
}
.p-2 {
padding: 12px;
}
.p-3 {
padding: 16px;
}
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 8px; }
.border {
border: 1px solid var(--border);
}
.rounded {
border-radius: 6px;
}
.badge-admin {
background: #007bff;
color: #fff;
font-size: 11px;
padding: 2px 8px;
border-radius: 4px;
font-weight: 600;
}
/* Icons via unicode/emoji fallback since no icon font */
.icon-ok::before { content: "\2714 "; }
.icon-error::before { content: "\2718 "; }
.icon-warning::before { content: "\26A0 "; }
.icon-rocket::before { content: "\1F680 "; }
.icon-upload::before { content: "\2191 "; }
.icon-tree::before { content: "\2328 "; }
/* Responsive */
@media (max-width: 600px) {
.option-group {
grid-template-columns: 1fr;
}
.form-actions {
flex-direction: column;
}
.form-actions .btn {
width: 100%;
text-align: center;
}
}
/* Footer */
.installer-footer {
text-align: center;
padding: 16px 0;
color: var(--text-muted);
font-size: 13px;
}