Full codebase including API server (32 modules + routes), dashboard frontend, DashCA certificate distribution, installer script, and deployment skills.
355 lines
6.5 KiB
CSS
355 lines
6.5 KiB
CSS
/**
|
|
* Onboarding Tooltip Styles
|
|
* Custom styling for Driver.js tooltips to match DashCaddy theme
|
|
*/
|
|
|
|
/* Driver.js overrides are injected dynamically by ThemeAdapter */
|
|
/* This file contains additional custom styles */
|
|
|
|
.driver-popover {
|
|
max-width: 500px !important;
|
|
z-index: 10000 !important;
|
|
}
|
|
|
|
.driver-popover-title {
|
|
font-size: 1.2rem !important;
|
|
margin-bottom: 12px !important;
|
|
}
|
|
|
|
.driver-popover-description {
|
|
font-size: 0.95rem !important;
|
|
line-height: 1.6 !important;
|
|
}
|
|
|
|
.driver-popover-description p {
|
|
margin: 8px 0 !important;
|
|
}
|
|
|
|
.driver-popover-description ul {
|
|
margin: 8px 0 !important;
|
|
padding-left: 20px !important;
|
|
}
|
|
|
|
.driver-popover-description li {
|
|
margin: 4px 0 !important;
|
|
}
|
|
|
|
.driver-popover-description code {
|
|
background: rgba(0, 0, 0, 0.1) !important;
|
|
padding: 2px 6px !important;
|
|
border-radius: 3px !important;
|
|
font-family: 'Courier New', monospace !important;
|
|
font-size: 0.9em !important;
|
|
}
|
|
|
|
.driver-popover-footer {
|
|
margin-top: 16px !important;
|
|
display: flex !important;
|
|
gap: 8px !important;
|
|
justify-content: flex-end !important;
|
|
}
|
|
|
|
.driver-popover-footer button {
|
|
padding: 8px 16px !important;
|
|
border-radius: 8px !important;
|
|
font-size: 0.9rem !important;
|
|
cursor: pointer !important;
|
|
transition: all 0.2s ease !important;
|
|
}
|
|
|
|
.driver-popover-footer button:hover {
|
|
transform: translateY(-1px) !important;
|
|
}
|
|
|
|
.driver-popover-close-btn {
|
|
position: absolute !important;
|
|
top: 12px !important;
|
|
right: 12px !important;
|
|
width: 24px !important;
|
|
height: 24px !important;
|
|
border-radius: 50% !important;
|
|
display: flex !important;
|
|
align-items: center !important;
|
|
justify-content: center !important;
|
|
cursor: pointer !important;
|
|
opacity: 0.6 !important;
|
|
transition: opacity 0.2s ease !important;
|
|
}
|
|
|
|
.driver-popover-close-btn:hover {
|
|
opacity: 1 !important;
|
|
}
|
|
|
|
.driver-popover-arrow {
|
|
border-width: 8px !important;
|
|
}
|
|
|
|
/* Progress indicator */
|
|
.driver-popover-progress-text {
|
|
font-size: 0.85rem !important;
|
|
margin-bottom: 8px !important;
|
|
}
|
|
|
|
/* Mobile responsive */
|
|
@media (max-width: 768px) {
|
|
.driver-popover {
|
|
max-width: calc(100vw - 32px) !important;
|
|
}
|
|
|
|
.driver-popover-title {
|
|
font-size: 1.1rem !important;
|
|
}
|
|
|
|
.driver-popover-description {
|
|
font-size: 0.9rem !important;
|
|
}
|
|
|
|
.driver-popover-footer button {
|
|
padding: 6px 12px !important;
|
|
font-size: 0.85rem !important;
|
|
}
|
|
}
|
|
|
|
/* Restart tour button in dashboard */
|
|
#restart-tour-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
#restart-tour-btn::before {
|
|
content: "🎓";
|
|
font-size: 1.1em;
|
|
}
|
|
|
|
|
|
/* DNS Template Selector Modal */
|
|
.dns-template-modal {
|
|
display: none;
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.8);
|
|
z-index: 10000;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 20px;
|
|
}
|
|
|
|
.dns-template-modal-content {
|
|
background: var(--card-base);
|
|
border-radius: 12px;
|
|
max-width: 900px;
|
|
width: 100%;
|
|
max-height: 90vh;
|
|
overflow-y: auto;
|
|
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.dns-template-header {
|
|
padding: 30px;
|
|
border-bottom: 1px solid var(--border);
|
|
position: relative;
|
|
}
|
|
|
|
.dns-template-header h2 {
|
|
margin: 0 0 10px 0;
|
|
color: var(--fg);
|
|
font-size: 28px;
|
|
}
|
|
|
|
.dns-template-header p {
|
|
margin: 0;
|
|
color: var(--fg-muted);
|
|
font-size: 14px;
|
|
}
|
|
|
|
.dns-template-close {
|
|
position: absolute;
|
|
top: 20px;
|
|
right: 20px;
|
|
background: none;
|
|
border: none;
|
|
font-size: 32px;
|
|
color: var(--fg-muted);
|
|
cursor: pointer;
|
|
padding: 0;
|
|
width: 40px;
|
|
height: 40px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.dns-template-close:hover {
|
|
background: var(--hover);
|
|
color: var(--fg);
|
|
}
|
|
|
|
.dns-template-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
|
gap: 20px;
|
|
padding: 30px;
|
|
}
|
|
|
|
.dns-template-card {
|
|
background: var(--card-hover);
|
|
border: 2px solid var(--border);
|
|
border-radius: 12px;
|
|
padding: 20px;
|
|
transition: all 0.3s;
|
|
position: relative;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.dns-template-card:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
|
|
border-color: var(--accent);
|
|
}
|
|
|
|
.dns-template-card.recommended {
|
|
border-color: var(--accent);
|
|
background: linear-gradient(135deg, var(--card-hover) 0%, var(--card-base) 100%);
|
|
}
|
|
|
|
.recommended-badge {
|
|
position: absolute;
|
|
top: -10px;
|
|
right: 20px;
|
|
background: var(--accent);
|
|
color: white;
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.dns-template-icon {
|
|
font-size: 48px;
|
|
margin-bottom: 15px;
|
|
text-align: center;
|
|
}
|
|
|
|
.dns-template-card h3 {
|
|
margin: 0 0 10px 0;
|
|
color: var(--fg);
|
|
font-size: 18px;
|
|
text-align: center;
|
|
}
|
|
|
|
.dns-template-description {
|
|
color: var(--fg-muted);
|
|
font-size: 13px;
|
|
margin: 0 0 15px 0;
|
|
text-align: center;
|
|
flex-grow: 1;
|
|
}
|
|
|
|
.dns-template-difficulty {
|
|
display: inline-block;
|
|
padding: 4px 12px;
|
|
border-radius: 12px;
|
|
font-size: 11px;
|
|
font-weight: bold;
|
|
text-align: center;
|
|
margin: 0 auto 15px auto;
|
|
}
|
|
|
|
.difficulty-easy {
|
|
background: #2ecc71;
|
|
color: white;
|
|
}
|
|
|
|
.difficulty-intermediate {
|
|
background: #f39c12;
|
|
color: white;
|
|
}
|
|
|
|
.difficulty-advanced {
|
|
background: #e74c3c;
|
|
color: white;
|
|
}
|
|
|
|
.dns-template-features {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0 0 20px 0;
|
|
font-size: 12px;
|
|
color: var(--fg-muted);
|
|
}
|
|
|
|
.dns-template-features li {
|
|
padding: 6px 0;
|
|
padding-left: 20px;
|
|
position: relative;
|
|
}
|
|
|
|
.dns-template-features li:before {
|
|
content: "✓";
|
|
position: absolute;
|
|
left: 0;
|
|
color: var(--accent);
|
|
font-weight: bold;
|
|
}
|
|
|
|
.dns-template-select-btn {
|
|
background: var(--accent);
|
|
color: white;
|
|
border: none;
|
|
padding: 12px 20px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
width: 100%;
|
|
}
|
|
|
|
.dns-template-select-btn:hover {
|
|
background: var(--accent-strong);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
.dns-template-footer {
|
|
padding: 20px 30px;
|
|
border-top: 1px solid var(--border);
|
|
text-align: center;
|
|
}
|
|
|
|
.dns-template-later-btn {
|
|
background: transparent;
|
|
color: var(--fg-muted);
|
|
border: 1px solid var(--border);
|
|
padding: 10px 24px;
|
|
border-radius: 8px;
|
|
font-size: 14px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.dns-template-later-btn:hover {
|
|
background: var(--hover);
|
|
color: var(--fg);
|
|
border-color: var(--fg-muted);
|
|
}
|
|
|
|
/* Responsive design */
|
|
@media (max-width: 768px) {
|
|
.dns-template-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.dns-template-modal-content {
|
|
max-height: 95vh;
|
|
}
|
|
}
|