Portal (luci-app-secubox-portal): - Fix service status showing 0/9 by checking if init scripts exist - Only count installed services in status display - Use pgrep fallback when init script status fails nDPId Dashboard (luci-app-ndpid): - Add default /etc/config/ndpid configuration - Add /etc/init.d/ndpid-compat init script - Enable compat service in postinst for app detection - Fix Makefile to install init script and config CrowdSec Dashboard: - Add CLAUDE.md with OpenWrt-specific guidelines (pgrep without -x) - CSS fixes for hiding LuCI left menu in all views - LAPI repair improvements with retry logic New Packages: - secubox-app-crowdsec: OpenWrt-native CrowdSec package - secubox-app-netifyd: Netifyd DPI integration - luci-app-secubox: Core SecuBox hub - luci-theme-secubox: Custom theme Removed: - luci-app-secubox-crowdsec (replaced by crowdsec-dashboard) - secubox-crowdsec-setup (functionality moved to dashboard) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
243 lines
4.0 KiB
CSS
243 lines
4.0 KiB
CSS
/* ===== BASE DASHBOARD LAYOUT ===== */
|
|
|
|
.cyber-dashboard {
|
|
display: grid;
|
|
grid-template-columns: 320px 1fr;
|
|
gap: 1.5rem;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.cyber-dashboard-sidebar {
|
|
position: sticky;
|
|
top: 1rem;
|
|
align-self: start;
|
|
max-height: calc(100vh - 2rem);
|
|
overflow-y: auto;
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
.cyber-dashboard-sidebar::-webkit-scrollbar {
|
|
width: 6px;
|
|
}
|
|
|
|
.cyber-dashboard-sidebar::-webkit-scrollbar-track {
|
|
background: rgba(255, 255, 255, 0.05);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.cyber-dashboard-sidebar::-webkit-scrollbar-thumb {
|
|
background: rgba(6, 182, 212, 0.4);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.cyber-dashboard-content {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
/* ===== DASHBOARD HEADER ===== */
|
|
|
|
.cyber-dashboard-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
|
|
}
|
|
|
|
.cyber-dashboard-title {
|
|
font-size: 1.75rem;
|
|
font-weight: 700;
|
|
color: var(--cyber-text-primary);
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.cyber-dashboard-actions {
|
|
display: flex;
|
|
gap: 0.75rem;
|
|
align-items: center;
|
|
}
|
|
|
|
/* ===== DASHBOARD STATS GRID ===== */
|
|
|
|
.cyber-dashboard-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
gap: 1rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.cyber-stat-card {
|
|
background: rgba(12, 17, 43, 0.75);
|
|
border: var(--cyber-border);
|
|
border-radius: var(--cyber-radius-md);
|
|
padding: 1.25rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
transition: all var(--cyber-transition);
|
|
}
|
|
|
|
.cyber-stat-card:hover {
|
|
transform: translateY(-2px);
|
|
border-color: var(--cyber-accent-primary);
|
|
box-shadow: var(--cyber-shadow);
|
|
}
|
|
|
|
.cyber-stat-label {
|
|
font-size: 0.85rem;
|
|
color: var(--cyber-text-secondary);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.cyber-stat-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--cyber-text-primary);
|
|
line-height: 1;
|
|
}
|
|
|
|
.cyber-stat-trend {
|
|
font-size: 0.8rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.cyber-stat-trend--up {
|
|
color: var(--cyber-success);
|
|
}
|
|
|
|
.cyber-stat-trend--down {
|
|
color: var(--cyber-danger);
|
|
}
|
|
|
|
/* ===== RESPONSIVE - LARGE SCREENS ===== */
|
|
|
|
@media (max-width: 1200px) {
|
|
.cyber-dashboard {
|
|
grid-template-columns: 280px 1fr;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.cyber-dashboard-title {
|
|
font-size: 1.5rem;
|
|
}
|
|
}
|
|
|
|
/* ===== RESPONSIVE - TABLET ===== */
|
|
|
|
@media (max-width: 768px) {
|
|
.cyber-dashboard {
|
|
grid-template-columns: 1fr;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.cyber-dashboard-sidebar {
|
|
position: static;
|
|
max-height: none;
|
|
order: 2; /* Move sidebar below content */
|
|
}
|
|
|
|
.cyber-dashboard-content {
|
|
order: 1;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.cyber-dashboard-header {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.cyber-dashboard-title {
|
|
font-size: 1.35rem;
|
|
}
|
|
|
|
.cyber-dashboard-actions {
|
|
width: 100%;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.cyber-dashboard-stats {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 0.85rem;
|
|
margin-bottom: 1.25rem;
|
|
}
|
|
|
|
.cyber-stat-card {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.cyber-stat-value {
|
|
font-size: 1.75rem;
|
|
}
|
|
}
|
|
|
|
/* ===== RESPONSIVE - MOBILE ===== */
|
|
|
|
@media (max-width: 480px) {
|
|
.cyber-dashboard {
|
|
gap: 0.85rem;
|
|
}
|
|
|
|
.cyber-dashboard-header {
|
|
margin-bottom: 1rem;
|
|
padding-bottom: 0.85rem;
|
|
}
|
|
|
|
.cyber-dashboard-title {
|
|
font-size: 1.25rem;
|
|
}
|
|
|
|
.cyber-dashboard-actions {
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.cyber-dashboard-actions .cyber-btn {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.cyber-dashboard-stats {
|
|
grid-template-columns: 1fr;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.cyber-stat-card {
|
|
padding: 0.85rem;
|
|
}
|
|
|
|
.cyber-stat-label {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.cyber-stat-value {
|
|
font-size: 1.5rem;
|
|
}
|
|
|
|
.cyber-stat-trend {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Disable hover effects on mobile */
|
|
.cyber-stat-card:hover {
|
|
transform: none;
|
|
border-color: var(--cyber-border);
|
|
box-shadow: var(--cyber-shadow-soft);
|
|
}
|
|
|
|
/* Add tap feedback */
|
|
.cyber-stat-card:active {
|
|
opacity: 0.95;
|
|
transform: scale(0.99);
|
|
transition-duration: 100ms;
|
|
}
|
|
}
|