mirror of
https://github.com/mztlive/dx-admin-template.git
synced 2025-12-22 21:59:59 +00:00
472 lines
9.0 KiB
CSS
472 lines
9.0 KiB
CSS
:root {
|
|
--sidebar-width: 280px;
|
|
--sidebar-collapsed-width: 72px;
|
|
--topbar-height: 40px;
|
|
}
|
|
|
|
.ui-shell {
|
|
min-height: 100vh;
|
|
margin: 0;
|
|
width: 100%;
|
|
max-width: none;
|
|
padding: 0;
|
|
/*background-color: hsl(var(--muted));*/
|
|
border-radius: 0;
|
|
}
|
|
|
|
.ui-sidebar-layout.admin-shell {
|
|
display: grid;
|
|
grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
|
|
min-height: 100vh;
|
|
height: 100vh;
|
|
overflow: hidden;
|
|
background-color: hsl(var(--background));
|
|
}
|
|
|
|
.ui-sidebar-layout.admin-shell .ui-sidebar-rail {
|
|
display: none;
|
|
}
|
|
|
|
.ui-sidebar {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
width: 100%;
|
|
background-color: hsl(var(--card));
|
|
border-right: 1px solid hsl(var(--border));
|
|
padding: 28px 24px;
|
|
position: sticky;
|
|
top: 0;
|
|
height: 100vh;
|
|
overflow-y: auto;
|
|
transition:
|
|
width 0.25s ease,
|
|
padding 0.25s ease;
|
|
}
|
|
|
|
.ui-sidebar[data-collapsed="true"] {
|
|
width: var(--sidebar-collapsed-width);
|
|
padding: 28px 14px;
|
|
}
|
|
|
|
.ui-sidebar-header,
|
|
.ui-sidebar-content,
|
|
.ui-sidebar-footer {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.sidebar-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
}
|
|
|
|
.sidebar-logo {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 10px;
|
|
background: linear-gradient(
|
|
135deg,
|
|
hsl(var(--primary)),
|
|
hsl(var(--secondary))
|
|
);
|
|
color: hsl(var(--primary-foreground));
|
|
font-size: 18px;
|
|
}
|
|
|
|
.sidebar-name {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.sidebar-subtitle {
|
|
font-size: 0.75rem;
|
|
color: hsl(var(--muted-foreground));
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.ui-sidebar-group {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
}
|
|
|
|
.ui-sidebar-group-label {
|
|
font-size: 0.7rem;
|
|
font-weight: 600;
|
|
color: hsl(var(--muted-foreground));
|
|
letter-spacing: 0.08em;
|
|
}
|
|
|
|
.ui-sidebar-menu {
|
|
width: 100%;
|
|
}
|
|
|
|
.ui-sidebar-menu-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
padding: 0;
|
|
margin: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.ui-sidebar-menu-button {
|
|
display: inline-flex;
|
|
align-items: flex-start;
|
|
width: 100%;
|
|
gap: 12px;
|
|
padding: 10px 12px;
|
|
border-radius: calc(var(--radius) - 2px);
|
|
border: 1px solid transparent;
|
|
background-color: transparent;
|
|
color: hsl(var(--foreground));
|
|
transition:
|
|
background-color 0.2s ease,
|
|
border-color 0.2s ease,
|
|
color 0.2s ease;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.ui-sidebar-menu-button:hover {
|
|
background-color: hsl(var(--muted));
|
|
}
|
|
|
|
.ui-sidebar-menu-button[data-active="true"] {
|
|
background-color: hsl(var(--accent));
|
|
border-color: hsl(var(--border));
|
|
}
|
|
|
|
.ui-sidebar-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
border-radius: 8px;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: hsl(var(--muted));
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.ui-sidebar-text {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 3px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.ui-sidebar-label {
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
white-space: normal;
|
|
}
|
|
|
|
.ui-sidebar-description {
|
|
font-size: 0.75rem;
|
|
color: hsl(var(--muted-foreground));
|
|
white-space: normal;
|
|
}
|
|
|
|
.ui-sidebar-badge {
|
|
margin-left: auto;
|
|
font-size: 0.75rem;
|
|
background-color: hsl(var(--secondary));
|
|
color: hsl(var(--secondary-foreground));
|
|
padding: 0.125rem 0.5rem;
|
|
border-radius: 999px;
|
|
}
|
|
|
|
.sidebar-profile {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 12px;
|
|
border: 1px solid hsl(var(--border));
|
|
border-radius: calc(var(--radius));
|
|
background-color: hsl(var(--muted));
|
|
}
|
|
|
|
.sidebar-profile-name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.orders-metrics {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
gap: 20px;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.orders-metric-card {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 8px;
|
|
padding: 18px 20px;
|
|
border-radius: calc(var(--radius));
|
|
border: 1px solid hsl(var(--border));
|
|
background-color: hsl(var(--card));
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.orders-metric-label {
|
|
font-size: 0.78rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
color: hsl(var(--muted-foreground));
|
|
}
|
|
|
|
.orders-metric-value {
|
|
font-size: 2rem;
|
|
font-weight: 600;
|
|
color: hsl(var(--foreground));
|
|
}
|
|
|
|
.orders-metric-sub {
|
|
font-size: 0.85rem;
|
|
color: hsl(var(--muted-foreground));
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.orders-filter-grid {
|
|
display: grid;
|
|
gap: 18px;
|
|
grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
|
|
align-items: start;
|
|
}
|
|
|
|
.orders-filter-wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.orders-tag-cloud {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.orders-date-trigger {
|
|
width: 100%;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
padding: 0.55rem 0.9rem;
|
|
border-radius: calc(var(--radius) - 1px);
|
|
border: 1px solid hsl(var(--border));
|
|
background-color: hsl(var(--background));
|
|
color: hsl(var(--foreground));
|
|
box-shadow: inset 0 1px 0 hsl(var(--background));
|
|
transition:
|
|
border-color 0.2s ease,
|
|
box-shadow 0.2s ease,
|
|
background-color 0.2s ease;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.orders-date-trigger:hover {
|
|
border-color: hsl(var(--ring));
|
|
background-color: hsl(var(--muted));
|
|
}
|
|
|
|
.orders-date-trigger-text {
|
|
flex: 1;
|
|
text-align: left;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.orders-date-trigger-icon {
|
|
font-size: 0.95rem;
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.orders-date-popover {
|
|
padding: 12px;
|
|
min-width: 320px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.orders-date-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.orders-empty {
|
|
padding: 60px 20px;
|
|
text-align: center;
|
|
border: 1px dashed hsl(var(--border));
|
|
border-radius: calc(var(--radius));
|
|
color: hsl(var(--muted-foreground));
|
|
background-color: hsl(var(--muted) / 0.25);
|
|
}
|
|
|
|
.sidebar-profile-role {
|
|
color: hsl(var(--muted-foreground));
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.admin-shell-inset {
|
|
position: relative;
|
|
display: grid;
|
|
grid-template-rows: auto 1fr;
|
|
background-color: hsl(var(--background));
|
|
height: 100vh;
|
|
min-height: 100vh;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
scrollbar-gutter: stable;
|
|
}
|
|
|
|
.admin-shell-topbar {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 5;
|
|
isolation: isolate;
|
|
box-shadow: 0 18px 30px -28px rgba(15, 23, 42, 0.45);
|
|
height: var(--topbar-height);
|
|
padding: 34px;
|
|
overflow: hidden;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
background-color: hsl(var(--background));
|
|
}
|
|
|
|
.admin-shell-command {
|
|
display: flex;
|
|
}
|
|
|
|
.admin-command-button {
|
|
font-weight: 600;
|
|
font-size: 0.95rem;
|
|
border: 1px solid hsl(var(--border));
|
|
background-color: hsl(var(--card));
|
|
color: hsl(var(--foreground));
|
|
border-radius: calc(var(--radius) - 2px);
|
|
padding: 0.45rem 0.9rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.admin-shell-meta {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 4px;
|
|
}
|
|
|
|
.admin-shell-title {
|
|
margin: 0;
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.admin-shell-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-shell-theme {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.admin-shell-content {
|
|
width: 100%;
|
|
min-width: 0;
|
|
min-height: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
padding: 24px 24px 32px;
|
|
}
|
|
|
|
.dashboard-root {
|
|
width: 100%;
|
|
margin: 0;
|
|
}
|
|
|
|
.dashboard-root,
|
|
.component-page {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 24px;
|
|
}
|
|
|
|
.page-heading {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.page-heading h1 {
|
|
margin: 0;
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.page-heading p {
|
|
margin: 0;
|
|
color: hsl(var(--muted-foreground));
|
|
font-size: 0.95rem;
|
|
max-width: 640px;
|
|
}
|
|
|
|
@media (max-width: 960px) {
|
|
.ui-sidebar-layout.admin-shell {
|
|
grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.ui-sidebar-layout.admin-shell {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.ui-sidebar {
|
|
position: fixed;
|
|
inset: 0 auto 0 0;
|
|
transform: translateX(-100%);
|
|
width: var(--sidebar-width);
|
|
max-width: 90vw;
|
|
box-shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.45);
|
|
z-index: 20;
|
|
}
|
|
|
|
.ui-sidebar[data-collapsed="true"] {
|
|
transform: translateX(-100%);
|
|
}
|
|
|
|
.ui-sidebar[data-collapsed="false"] {
|
|
transform: translateX(0);
|
|
}
|
|
|
|
.admin-shell-topbar {
|
|
gap: 12px;
|
|
}
|
|
|
|
.admin-shell-actions {
|
|
display: none;
|
|
}
|
|
|
|
.admin-shell-content {
|
|
padding: 20px 20px 28px;
|
|
}
|
|
|
|
.dashboard-root {
|
|
width: 100%;
|
|
}
|
|
}
|