feat: implement citrus-design stylesheet for refined admin dashboard UI styling
This commit is contained in:
@@ -3,227 +3,213 @@
|
|||||||
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
/* Global Reset and Font */
|
/* Global Reset and Font */
|
||||||
:root {
|
:root {
|
||||||
--citrus-primary: #3b82f6;
|
--citrus-primary: #3b82f6;
|
||||||
--citrus-dark: #0f172a;
|
--citrus-sidebar: #1a233a;
|
||||||
--citrus-sidebar: #1e293b;
|
--citrus-sidebar-hover: rgba(255, 255, 255, 0.05);
|
||||||
--citrus-body: #f1f5f9;
|
--citrus-body: #f4f7fe;
|
||||||
--citrus-border: #e2e8f0;
|
--citrus-border: #e2e8f0;
|
||||||
}
|
}
|
||||||
|
|
||||||
body, #page-container {
|
body,
|
||||||
background-color: var(--citrus-body) !important;
|
#page-container {
|
||||||
font-family: 'Inter', sans-serif !important;
|
background-color: var(--citrus-body) !important;
|
||||||
}
|
font-family: 'Inter', sans-serif !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* --- SIDEBAR REFACTOR --- */
|
/* --- SIDEBAR TIGHT REFACTOR --- */
|
||||||
#sidebar {
|
#sidebar {
|
||||||
background-color: var(--citrus-sidebar) !important;
|
background-color: var(--citrus-sidebar) !important;
|
||||||
box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05) !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-content {
|
.sidebar-content {
|
||||||
background-color: var(--citrus-sidebar) !important;
|
background-color: var(--citrus-sidebar) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* User Area & Logo */
|
/* User Area & Logo - Tighter */
|
||||||
.content-side-user {
|
.content-side-user {
|
||||||
padding: 15px !important;
|
padding: 15px !important;
|
||||||
border-bottom: 1px solid rgba(255,255,255,0.05) !important;
|
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar-mini-hidden-b .img-link img {
|
.sidebar-mini-hidden-b .img-link img {
|
||||||
width: 100px !important;
|
width: 100px !important;
|
||||||
height: auto !important;
|
filter: brightness(0) invert(1) !important;
|
||||||
filter: brightness(0) invert(1) !important;
|
}
|
||||||
margin-bottom: 10px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sidebar-mini-hidden-b .badge {
|
/* Search Module Tighter */
|
||||||
margin: 1px !important;
|
#search-module {
|
||||||
padding: 3px 6px !important;
|
margin: 8px 12px !important;
|
||||||
font-size: 9px !important;
|
background: rgba(255, 255, 255, 0.03) !important;
|
||||||
border-radius: 4px !important;
|
border: 1px solid rgba(255, 255, 255, 0.08) !important;
|
||||||
text-transform: uppercase;
|
border-radius: 6px !important;
|
||||||
}
|
color: #fff !important;
|
||||||
|
height: 32px !important;
|
||||||
|
width: calc(100% - 24px) !important;
|
||||||
|
font-size: 12px !important;
|
||||||
|
}
|
||||||
|
|
||||||
#search-module {
|
/* --- MENU NAVIGATION (TIGHT SPACING) --- */
|
||||||
margin: 10px 15px !important;
|
.nav-main {
|
||||||
background: rgba(255,255,255,0.03) !important;
|
padding: 5px 8px !important;
|
||||||
border: 1px solid rgba(255,255,255,0.1) !important;
|
}
|
||||||
color: #fff !important;
|
|
||||||
border-radius: 6px !important;
|
|
||||||
height: 32px !important;
|
|
||||||
font-size: 12px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Nav Main Items - TIGHTER LOOK */
|
.nav-main li {
|
||||||
.nav-main {
|
margin-bottom: 1px !important;
|
||||||
padding: 0 8px !important;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.nav-main li {
|
.nav-main li a {
|
||||||
margin: 0 !important;
|
display: flex !important;
|
||||||
}
|
align-items: center !important;
|
||||||
|
padding: 5px 12px !important;
|
||||||
|
/* Reduced from 10px */
|
||||||
|
border-radius: 8px !important;
|
||||||
|
color: rgba(255, 255, 255, 0.6) !important;
|
||||||
|
font-weight: 500 !important;
|
||||||
|
font-size: 13px !important;
|
||||||
|
transition: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-main li a {
|
.sub-menu-text {
|
||||||
padding: 6px 10px !important; /* Tight padding */
|
position: relative;
|
||||||
margin: 1px 0 !important;
|
left: 0px;
|
||||||
border-radius: 6px !important;
|
}
|
||||||
color: rgba(255,255,255,0.6) !important;
|
|
||||||
font-weight: 500 !important;
|
|
||||||
font-size: 13px !important;
|
|
||||||
display: flex !important;
|
|
||||||
align-items: center !important;
|
|
||||||
transition: none !important; /* Remove animation for faster feel */
|
|
||||||
}
|
|
||||||
|
|
||||||
.nav-main li a i {
|
.nav-main li a i {
|
||||||
width: 20px !important;
|
position: relative !important;
|
||||||
margin-right: 10px !important;
|
display: flex !important;
|
||||||
font-size: 14px !important;
|
align-items: center !important;
|
||||||
display: flex !important;
|
justify-content: center !important;
|
||||||
align-items: center !important;
|
width: 20px !important;
|
||||||
justify-content: center !important;
|
height: 20px !important;
|
||||||
}
|
margin-right: 10px !important;
|
||||||
|
/* Tightened gap */
|
||||||
|
font-size: 14px !important;
|
||||||
|
color: inherit !important;
|
||||||
|
flex-shrink: 0 !important;
|
||||||
|
top: 10px;
|
||||||
|
left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-main li a i img {
|
.nav-main li a i img {
|
||||||
width: 16px !important;
|
width: 16px !important;
|
||||||
height: auto !important;
|
height: 16px !important;
|
||||||
filter: brightness(0) invert(1) opacity(0.5) !important;
|
filter: brightness(0) invert(1) opacity(0.6) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-main li a:hover {
|
.nav-main li a:hover {
|
||||||
background-color: rgba(255,255,255,0.05) !important;
|
background-color: var(--citrus-sidebar-hover) !important;
|
||||||
color: #fff !important;
|
color: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.nav-main li a:hover i img {
|
.nav-main li a.active,
|
||||||
opacity: 1 !important;
|
.nav-main li.open>a.nav-submenu {
|
||||||
}
|
background-color: var(--citrus-primary) !important;
|
||||||
|
color: #fff !important;
|
||||||
|
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.nav-main li a.active,
|
.nav-main li a.active i img,
|
||||||
.nav-main li.open > a.nav-submenu {
|
.nav-main li a:hover i img {
|
||||||
background-color: var(--citrus-primary) !important;
|
opacity: 1 !important;
|
||||||
color: #fff !important;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.nav-main li a.active i img {
|
/* Submenu Spacing - MUCH TIGHTER */
|
||||||
opacity: 1 !important;
|
.nav-main li ul {
|
||||||
filter: brightness(0) invert(1) !important;
|
padding-left: 12px !important;
|
||||||
}
|
background: transparent !important;
|
||||||
|
margin: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Submenu Styling */
|
.nav-main li ul li a {
|
||||||
.nav-main li ul {
|
padding: 4px 10px !important;
|
||||||
padding-left: 30px !important;
|
font-size: 12.5px !important;
|
||||||
background: transparent !important;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.nav-main li ul li a {
|
/* Sidebar Heading Tighter */
|
||||||
font-size: 12.5px !important;
|
.nav-main-heading {
|
||||||
padding: 4px 10px !important;
|
padding: 15px 12px 5px !important;
|
||||||
}
|
color: rgba(255, 255, 255, 0.3) !important;
|
||||||
|
font-size: 10.5px !important;
|
||||||
|
font-weight: 700 !important;
|
||||||
|
text-transform: uppercase !important;
|
||||||
|
letter-spacing: 0.5px !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* --- HEADER REFACTOR --- */
|
/* --- HEADER TIGHTER --- */
|
||||||
#page-header {
|
#page-header {
|
||||||
background: #fff !important;
|
background: #fff !important;
|
||||||
height: 50px !important; /* Even tighter header */
|
height: 50px !important;
|
||||||
border-bottom: 1px solid var(--citrus-border) !important;
|
/* Reduced from 70px */
|
||||||
color: #334155 !important;
|
border-bottom: 1px solid var(--citrus-border) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#page-header.bg-primary,
|
#page-header.bg-primary,
|
||||||
#page-header.bg-primary-dark,
|
#page-header.bg-primary-dark,
|
||||||
#page-header.bg-dark {
|
#page-header.bg-dark {
|
||||||
background: #fff !important;
|
background: #fff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.content-header {
|
.content-header {
|
||||||
height: 50px !important;
|
height: 50px !important;
|
||||||
padding: 0 15px !important;
|
padding: 0 15px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#page-header .btn-dual-secondary {
|
#page-header .btn-dual-secondary {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
border: none !important;
|
border: none !important;
|
||||||
color: #64748b !important;
|
width: 32px !important;
|
||||||
width: 32px !important;
|
height: 32px !important;
|
||||||
height: 32px !important;
|
border-radius: 6px !important;
|
||||||
margin: 0 2px !important;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#page-header .btn-dual-secondary:hover {
|
#page-header .btn-dual-secondary:hover {
|
||||||
background: #f1f5f9 !important;
|
background: #f1f5f9 !important;
|
||||||
color: #0f172a !important;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#page-header #page-header-user-dropdown {
|
.mini-header {
|
||||||
width: auto !important;
|
display: none !important;
|
||||||
padding: 0 10px !important;
|
}
|
||||||
font-size: 13px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Hide the absolute mini-header */
|
/* --- MAIN CONTAINER TIGHTER --- */
|
||||||
.mini-header {
|
.main-container {
|
||||||
display: none !important;
|
padding-top: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* --- MAIN CONTAINER --- */
|
.content-ajax {
|
||||||
.main-container {
|
padding: 15px !important;
|
||||||
padding-top: 0 !important;
|
/* Reduced from 25px */
|
||||||
}
|
margin-top: 50px !important;
|
||||||
|
/* Match header height */
|
||||||
|
}
|
||||||
|
|
||||||
.content-ajax {
|
/* Block/Card Styling Tighter */
|
||||||
padding: 12px !important; /* Even tighter content padding */
|
.block {
|
||||||
margin-top: 50px !important; /* Override hardcoded 70px in master.blade.php */
|
background: #fff !important;
|
||||||
}
|
border-radius: 12px !important;
|
||||||
|
border: 1px solid var(--citrus-border) !important;
|
||||||
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
|
||||||
|
margin-bottom: 15px !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Fix for page-header-fixed layout */
|
.block-header {
|
||||||
#page-container.page-header-fixed .main-container {
|
padding: 10px 15px !important;
|
||||||
padding-top: 0 !important;
|
border-bottom: 1px solid #f8fafc !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.main-container {
|
.block-title {
|
||||||
background-color: var(--citrus-body) !important;
|
font-size: 14px !important;
|
||||||
}
|
font-weight: 600 !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Block (Card) Design */
|
.block-content {
|
||||||
.block {
|
padding: 15px !important;
|
||||||
background: #fff !important;
|
}
|
||||||
border-radius: 8px !important;
|
|
||||||
border: 1px solid var(--citrus-border) !important;
|
|
||||||
box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
|
|
||||||
margin-bottom: 15px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block-header {
|
|
||||||
padding: 10px 15px !important;
|
|
||||||
border-bottom: 1px solid var(--citrus-border) !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block-title {
|
|
||||||
font-size: 14px !important;
|
|
||||||
font-weight: 600 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.block-content {
|
|
||||||
padding: 15px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Table Design */
|
|
||||||
.table td, .table th {
|
|
||||||
padding: 10px 15px !important;
|
|
||||||
font-size: 13px !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Footer Tweak */
|
|
||||||
#page-footer {
|
|
||||||
padding: 10px !important;
|
|
||||||
font-size: 11px !important;
|
|
||||||
background: #fff !important;
|
|
||||||
border-top: 1px solid var(--citrus-border) !important;
|
|
||||||
color: #94a3b8 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/* Override hardcoded styles */
|
||||||
|
#page-container.page-header-fixed .main-container {
|
||||||
|
padding-top: 0 !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
Reference in New Issue
Block a user