Files
OTSSignsTheme/custom/otssignange/css/override.css
Matt Batchelder 287e03da42 feat: Enhance OTS Signage theme with improved sidebar, dropdowns, and UI interactions
- Updated sidebar functionality to include a close button and improved mobile responsiveness.
- Introduced dropdown menus for user actions and enhanced search functionality in the topbar.
- Refined page interactions for folder and media item selections.
- Modernized sidebar navigation with icons and improved layout for better user experience.
- Enhanced media and display pages with updated layouts and statistics display.
- Improved overall styling and responsiveness across various components.
2026-02-04 07:17:33 -05:00

1097 lines
20 KiB
CSS

/* ============================================================================
XIBO CMS MODERN THEME - OTS Signs
Dark Mode Override - Component Styling
============================================================================ */
/* Force dark mode */
:root {
--color-primary: #3b82f6;
--color-primary-dark: #1d4ed8;
--color-primary-light: #60a5fa;
--color-primary-lighter: #dbeafe;
--color-secondary: #7c3aed;
--color-success: #10b981;
--color-warning: #f59e0b;
--color-danger: #ef4444;
--color-info: #0ea5e9;
--color-background: #0f172a;
--color-surface: #1e293b;
--color-surface-elevated: #334155;
--color-border: #475569;
--color-border-light: #1e293b;
--color-text-primary: #f1f5f9;
--color-text-secondary: #cbd5e1;
--color-text-tertiary: #94a3b8;
--color-text-inverse: #0f172a;
color-scheme: dark;
}
html,
body {
background-color: var(--color-background);
color: var(--color-text-primary);
}
/* ============================================================================
SHELL LAYOUT - SIDEBAR + MAIN
============================================================================ */
.ots-shell {
display: flex;
min-height: 100vh;
}
.ots-sidebar {
position: fixed;
left: 0;
top: 0;
width: 250px;
height: 100vh;
background-color: var(--color-surface);
border-right: 1px solid var(--color-border);
display: flex;
flex-direction: column;
overflow-y: auto;
z-index: 1000;
}
.ots-main {
flex: 1;
margin-left: 250px;
display: flex;
flex-direction: column;
}
.ots-content {
flex: 1;
padding: 32px;
overflow-y: auto;
}
.ots-footer {
border-top: 1px solid var(--color-border);
padding: 16px 32px;
background-color: var(--color-surface-elevated);
text-align: center;
}
/* Responsive sidebar */
@media (max-width: 768px) {
.ots-sidebar {
transform: translateX(-100%);
transition: transform var(--transition-base);
width: 280px;
}
.ots-sidebar.active {
transform: translateX(0);
box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}
.ots-main {
margin-left: 0;
}
}
/* ============================================================================
SIDEBAR STYLES
============================================================================ */
.sidebar-header {
padding: 24px 16px;
border-bottom: 1px solid var(--color-border);
display: flex;
align-items: center;
gap: 12px;
}
.brand-link {
display: flex;
align-items: center;
gap: 12px;
color: var(--color-text-primary);
text-decoration: none;
font-weight: 600;
font-size: 18px;
}
.brand-icon {
font-size: 28px;
}
.sidebar-content {
flex: 1;
padding: 12px 0;
overflow-y: auto;
}
.sidebar-nav {
list-style: none;
margin: 0;
padding: 0;
}
.sidebar-nav li {
display: block;
}
.nav-section-divider {
padding: 12px 16px 8px;
margin-top: 8px;
border-top: 1px solid var(--color-border);
}
.nav-label {
display: block;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
color: var(--color-text-tertiary);
letter-spacing: 0.05em;
}
.nav-item {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
color: var(--color-text-secondary);
text-decoration: none;
transition: all var(--transition-fast);
position: relative;
}
.nav-item:hover {
color: var(--color-text-primary);
background-color: rgba(59, 130, 246, 0.1);
}
.nav-item.active {
color: var(--color-primary);
background-color: rgba(59, 130, 246, 0.15);
border-left: 3px solid var(--color-primary);
padding-left: 13px;
}
.nav-icon {
width: 20px;
height: 20px;
flex-shrink: 0;
}
.nav-text {
font-size: 14px;
font-weight: 500;
}
.sidebar-footer {
border-top: 1px solid var(--color-border);
padding: 16px;
background-color: rgba(59, 130, 246, 0.05);
}
.sidebar-user {
display: flex;
align-items: center;
gap: 12px;
}
.user-avatar-lg {
width: 40px;
height: 40px;
border-radius: 50%;
background: linear-gradient(135deg, #3b82f6, #7c3aed);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 16px;
flex-shrink: 0;
}
.user-details {
min-width: 0;
}
.user-name {
font-size: 14px;
font-weight: 600;
color: var(--color-text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.user-role {
color: var(--color-text-tertiary);
white-space: nowrap;
}
/* ============================================================================
TOPBAR STYLES
============================================================================ */
.ots-topbar {
background-color: var(--color-surface-elevated);
border-bottom: 1px solid var(--color-border);
padding: 12px 32px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 24px;
height: 70px;
}
.topbar-left {
display: flex;
align-items: center;
gap: 16px;
flex: 1;
}
.topbar-toggle {
display: none;
width: 40px;
height: 40px;
padding: 0;
border: none;
background-color: transparent;
color: var(--color-text-primary);
cursor: pointer;
border-radius: 6px;
transition: background-color var(--transition-fast);
}
.topbar-toggle:hover {
background-color: var(--color-surface);
}
.topbar-toggle .icon {
width: 24px;
height: 24px;
}
.topbar-title h1 {
margin: 0;
font-size: 24px;
font-weight: 600;
color: var(--color-text-primary);
}
.topbar-title p {
margin: 0;
font-size: 14px;
color: var(--color-text-secondary);
}
.topbar-right {
display: flex;
align-items: center;
gap: 24px;
}
.topbar-search {
position: relative;
width: 280px;
display: flex;
align-items: center;
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 6px;
padding: 8px 12px;
}
.topbar-search .search-icon {
color: var(--color-text-tertiary);
flex-shrink: 0;
margin-right: 8px;
}
.topbar-search .search-input {
flex: 1;
background: none;
border: none;
color: var(--color-text-primary);
font-size: 14px;
outline: none;
}
.topbar-search .search-input::placeholder {
color: var(--color-text-tertiary);
}
.topbar-actions {
display: flex;
align-items: center;
gap: 12px;
}
.topbar-btn {
width: 40px;
height: 40px;
padding: 0;
border: none;
background-color: transparent;
color: var(--color-text-secondary);
cursor: pointer;
border-radius: 6px;
display: flex;
align-items: center;
justify-content: center;
transition: all var(--transition-fast);
}
.topbar-btn:hover {
background-color: var(--color-surface);
color: var(--color-text-primary);
}
.topbar-btn .icon {
width: 20px;
height: 20px;
}
.user-btn {
padding: 2px;
}
.avatar {
width: 36px;
height: 36px;
border-radius: 50%;
background: linear-gradient(135deg, #3b82f6, #7c3aed);
color: white;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
font-size: 14px;
}
.avatar-sm {
width: 32px;
height: 32px;
font-size: 13px;
}
.dropdown {
position: relative;
}
.dropdown-menu,
.dropdown-right {
position: absolute;
top: 100%;
right: 0;
margin-top: 8px;
background-color: var(--color-surface-elevated);
border: 1px solid var(--color-border);
border-radius: 6px;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
list-style: none;
padding: 8px 0;
min-width: 160px;
display: none;
z-index: 1001;
}
.dropdown.active .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
display: block;
}
.dropdown-menu li {
display: block;
}
.dropdown-menu li a {
display: block;
padding: 10px 16px;
color: var(--color-text-primary);
text-decoration: none;
font-size: 14px;
transition: background-color var(--transition-fast);
}
.dropdown-menu li a:hover {
background-color: var(--color-surface);
}
/* ============================================================================
DASHBOARD PAGE
============================================================================ */
.dashboard-page {
display: flex;
flex-direction: column;
gap: 32px;
}
.page-header {
margin-bottom: 16px;
}
.page-header h1 {
margin: 0 0 8px;
font-size: 32px;
font-weight: 700;
}
.page-header .text-muted {
margin: 0;
font-size: 16px;
color: var(--color-text-secondary);
}
/* KPI Section */
.kpi-section {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.kpi-card {
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
padding: 20px;
transition: all var(--transition-base);
}
.kpi-card:hover {
border-color: var(--color-primary);
box-shadow: 0 0 0 1px var(--color-primary);
}
.kpi-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 16px;
}
.kpi-label {
margin: 0;
font-size: 14px;
font-weight: 600;
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.kpi-icon-box {
width: 40px;
height: 40px;
border-radius: 6px;
background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(124, 58, 237, 0.2));
display: flex;
align-items: center;
justify-content: center;
color: var(--color-primary);
}
.kpi-body {
margin-bottom: 12px;
}
.kpi-number {
font-size: 32px;
font-weight: 700;
color: var(--color-text-primary);
line-height: 1;
margin-bottom: 4px;
}
.kpi-meta {
font-size: 13px;
color: var(--color-text-secondary);
}
.kpi-footer {
display: flex;
align-items: center;
gap: 8px;
padding-top: 12px;
border-top: 1px solid var(--color-border);
}
/* Badges */
.badge {
display: inline-block;
padding: 4px 10px;
border-radius: 4px;
font-size: 12px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.badge-success {
background-color: rgba(16, 185, 129, 0.2);
color: #a7f3d0;
}
.badge-danger {
background-color: rgba(239, 68, 68, 0.2);
color: #fca5a5;
}
.badge-info {
background-color: rgba(14, 165, 233, 0.2);
color: #7dd3fc;
}
.badge-secondary {
background-color: rgba(124, 58, 237, 0.2);
color: #d8b4fe;
}
/* Dashboard Panels */
.dashboard-panels {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 24px;
}
.panel {
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
overflow: hidden;
}
.panel-full {
grid-column: 1 / -1;
}
.panel-header {
padding: 20px;
border-bottom: 1px solid var(--color-border);
display: flex;
justify-content: space-between;
align-items: center;
}
.panel-header h3 {
margin: 0;
font-size: 16px;
font-weight: 600;
color: var(--color-text-primary);
}
.link-secondary {
color: var(--color-primary);
text-decoration: none;
font-size: 13px;
font-weight: 500;
transition: color var(--transition-fast);
}
.link-secondary:hover {
color: var(--color-primary-light);
}
.panel-body {
padding: 20px;
}
.empty-state-compact {
text-align: center;
padding: 20px 0;
}
.empty-state-compact p {
margin: 0 0 16px;
color: var(--color-text-secondary);
}
/* Quick Actions */
.quick-actions-grid {
margin-top: 32px;
}
.section-title {
margin: 0 0 16px;
font-size: 18px;
font-weight: 600;
color: var(--color-text-primary);
}
.action-cards {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
}
.action-card {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 12px;
padding: 24px;
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
text-decoration: none;
color: var(--color-text-primary);
transition: all var(--transition-base);
cursor: pointer;
}
.action-card:hover {
border-color: var(--color-primary);
background-color: rgba(59, 130, 246, 0.05);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.action-icon {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
color: var(--color-primary);
}
.action-label {
font-size: 14px;
font-weight: 600;
text-align: center;
}
/* ============================================================================
TWO-COLUMN LAYOUT (Displays, Media)
============================================================================ */
.two-column-layout {
display: grid;
grid-template-columns: 280px 1fr;
gap: 24px;
height: calc(100vh - 130px);
}
.left-panel {
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
display: flex;
flex-direction: column;
overflow-y: auto;
}
.content-panel {
display: flex;
flex-direction: column;
gap: 16px;
}
.folder-tree {
padding: 8px 0;
}
.folder-item {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 16px;
color: var(--color-text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
}
.folder-item:hover {
background-color: var(--color-surface-elevated);
color: var(--color-text-primary);
}
.folder-item.active {
background-color: rgba(59, 130, 246, 0.15);
color: var(--color-primary);
}
.folder-icon {
width: 18px;
height: 18px;
flex-shrink: 0;
}
.folder-name {
font-size: 14px;
font-weight: 500;
}
.content-toolbar {
display: flex;
align-items: center;
gap: 16px;
padding: 16px;
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
}
.search-wrapper {
flex: 1;
position: relative;
display: flex;
align-items: center;
background-color: var(--color-surface-elevated);
border: 1px solid var(--color-border);
border-radius: 6px;
padding: 8px 12px;
}
.search-icon {
color: var(--color-text-tertiary);
margin-right: 8px;
flex-shrink: 0;
}
.search-field {
flex: 1;
background: none;
border: none;
color: var(--color-text-primary);
font-size: 14px;
outline: none;
padding: 0;
}
.search-field::placeholder {
color: var(--color-text-tertiary);
}
.toolbar-actions {
display: flex;
align-items: center;
gap: 12px;
}
.stat-row {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px;
}
.stat-box {
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 6px;
padding: 12px;
text-align: center;
}
.stat-label {
font-size: 12px;
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: 8px;
}
.stat-value {
font-size: 24px;
font-weight: 700;
color: var(--color-text-primary);
}
.text-success {
color: #10b981;
}
.text-danger {
color: #ef4444;
}
/* ============================================================================
TABLES
============================================================================ */
.table-wrapper {
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
overflow-x: auto;
}
.table {
width: 100%;
border-collapse: collapse;
margin: 0;
font-size: 14px;
}
.table thead {
background-color: var(--color-surface-elevated);
border-bottom: 1px solid var(--color-border);
}
.table thead th {
padding: 12px 16px;
text-align: left;
font-weight: 600;
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
font-size: 12px;
}
.table tbody tr {
border-bottom: 1px solid var(--color-border);
transition: background-color var(--transition-fast);
}
.table tbody tr:hover {
background-color: var(--color-surface-elevated);
}
.table tbody td {
padding: 12px 16px;
color: var(--color-text-primary);
}
.table-striped tbody tr:nth-child(even) {
background-color: rgba(59, 130, 246, 0.02);
}
/* ============================================================================
MEDIA LIBRARY
============================================================================ */
.media-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 16px;
padding: 16px;
background-color: var(--color-surface);
border: 1px solid var(--color-border);
border-radius: 8px;
}
.media-item {
background-color: var(--color-surface-elevated);
border: 1px solid var(--color-border);
border-radius: 6px;
overflow: hidden;
cursor: pointer;
transition: all var(--transition-base);
}
.media-item:hover {
border-color: var(--color-primary);
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
transform: translateY(-4px);
}
.media-thumbnail {
position: relative;
width: 100%;
padding-bottom: 75%;
overflow: hidden;
background-color: var(--color-border);
}
.media-thumbnail img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
}
.media-type-badge {
position: absolute;
top: 8px;
right: 8px;
background-color: rgba(0, 0, 0, 0.6);
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
}
.media-info {
padding: 12px;
}
.media-name {
margin: 0 0 4px;
font-size: 14px;
font-weight: 600;
color: var(--color-text-primary);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.media-size {
margin: 0;
color: var(--color-text-tertiary);
}
/* ============================================================================
BUTTONS
============================================================================ */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 16px;
border: none;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
text-decoration: none;
cursor: pointer;
transition: all var(--transition-fast);
white-space: nowrap;
}
.btn-primary {
background-color: var(--color-primary);
color: white;
}
.btn-primary:hover {
background-color: var(--color-primary-dark);
}
.btn-outline {
background-color: transparent;
border: 1px solid var(--color-border);
color: var(--color-text-primary);
}
.btn-outline:hover {
background-color: var(--color-surface);
border-color: var(--color-primary);
color: var(--color-primary);
}
.btn-sm {
padding: 6px 12px;
font-size: 13px;
}
.btn-ghost {
background-color: transparent;
color: var(--color-text-secondary);
padding: 0;
}
.btn-ghost:hover {
color: var(--color-text-primary);
}
/* ============================================================================
UTILITY CLASSES
============================================================================ */
.text-muted {
color: var(--color-text-secondary);
}
.text-tertiary {
color: var(--color-text-tertiary);
}
.text-xs {
font-size: 12px;
}
.text-sm {
font-size: 14px;
}
.form-control {
background-color: var(--color-surface);
border: 1px solid var(--color-border);
color: var(--color-text-primary);
padding: 8px 12px;
border-radius: 6px;
font-size: 14px;
}
.form-control::placeholder {
color: var(--color-text-tertiary);
}
.form-control:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* ============================================================================
RESPONSIVE
============================================================================ */
@media (max-width: 768px) {
.ots-topbar {
flex-direction: column;
align-items: flex-start;
gap: 12px;
height: auto;
padding: 12px 16px;
}
.topbar-right {
width: 100%;
flex-direction: column;
}
.topbar-search {
width: 100%;
}
.two-column-layout {
grid-template-columns: 1fr;
height: auto;
}
.left-panel {
max-height: 300px;
}
.dashboard-panels {
grid-template-columns: 1fr;
}
.kpi-section {
grid-template-columns: 1fr;
}
.action-cards {
grid-template-columns: 1fr;
}
.media-grid {
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.ots-content {
padding: 16px;
}
.ots-footer {
padding: 12px 16px;
}
}
/* Transition variable fallback */
:root {
--transition-fast: 150ms ease-in-out;
--transition-base: 200ms ease-in-out;
--transition-slow: 300ms ease-in-out;
}