major update
This commit is contained in:
+51
-7
@@ -81,8 +81,8 @@ select:focus[data-flux-control] {
|
||||
top: 0;
|
||||
z-index: 40;
|
||||
display: flex;
|
||||
width: 21.5rem;
|
||||
min-width: 21.5rem;
|
||||
width: 24rem;
|
||||
min-width: 24rem;
|
||||
height: 100vh;
|
||||
flex-direction: column;
|
||||
border-right: 1px solid rgb(228 228 231);
|
||||
@@ -143,7 +143,7 @@ select:focus[data-flux-control] {
|
||||
}
|
||||
|
||||
.wms-brand-title {
|
||||
max-width: 16rem;
|
||||
max-width: 18.5rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -164,6 +164,34 @@ select:focus[data-flux-control] {
|
||||
color: rgb(8 145 178);
|
||||
}
|
||||
|
||||
.wms-health-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.35rem;
|
||||
border-radius: 999px;
|
||||
border: 1px solid rgb(187 247 208);
|
||||
background: rgb(220 252 231);
|
||||
color: rgb(21 128 61);
|
||||
padding: 0.38rem 0.58rem;
|
||||
font-size: 0.72rem;
|
||||
font-weight: 800;
|
||||
text-decoration: none;
|
||||
box-shadow: 0 10px 24px rgb(21 128 61 / 0.12);
|
||||
transition: transform 120ms ease, background 120ms ease, border-color 120ms ease;
|
||||
}
|
||||
|
||||
.wms-health-badge:hover {
|
||||
transform: translateY(-1px);
|
||||
background: rgb(187 247 208);
|
||||
border-color: rgb(134 239 172);
|
||||
}
|
||||
|
||||
.dark .wms-health-badge {
|
||||
border-color: rgb(20 83 45);
|
||||
background: rgb(20 83 45 / 0.55);
|
||||
color: rgb(187 247 208);
|
||||
}
|
||||
|
||||
.wms-sidebar-toggle,
|
||||
.wms-mobile-close,
|
||||
.wms-mobile-menu {
|
||||
@@ -277,6 +305,18 @@ select:focus[data-flux-control] {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.wms-platform-admin-link {
|
||||
min-height: 3rem;
|
||||
border: 1px solid rgb(14 116 144 / 0.28);
|
||||
background: linear-gradient(135deg, rgb(8 47 73 / 0.12), rgb(14 116 144 / 0.08));
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.dark .wms-platform-admin-link {
|
||||
border-color: rgb(103 232 249 / 0.22);
|
||||
background: linear-gradient(135deg, rgb(8 47 73 / 0.75), rgb(20 83 45 / 0.25));
|
||||
}
|
||||
|
||||
.wms-sidebar-footer {
|
||||
display: grid;
|
||||
gap: 0.25rem;
|
||||
@@ -372,6 +412,10 @@ select:focus[data-flux-control] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
html[data-wms-sidebar='collapsed'] .wms-health-badge {
|
||||
display: none;
|
||||
}
|
||||
|
||||
html[data-wms-sidebar='collapsed'] .wms-sidebar-header,
|
||||
html[data-wms-sidebar='collapsed'] .wms-sidebar-footer,
|
||||
html[data-wms-sidebar='collapsed'] .wms-sidebar-nav {
|
||||
@@ -411,8 +455,8 @@ select:focus[data-flux-control] {
|
||||
.wms-sidebar {
|
||||
position: fixed;
|
||||
inset: 0 auto 0 0;
|
||||
width: min(21.5rem, calc(100vw - 2.5rem));
|
||||
min-width: min(21.5rem, calc(100vw - 2.5rem));
|
||||
width: min(24rem, calc(100vw - 2.5rem));
|
||||
min-width: min(24rem, calc(100vw - 2.5rem));
|
||||
transform: translateX(-105%);
|
||||
box-shadow: 22px 0 60px rgb(0 0 0 / 0.24);
|
||||
}
|
||||
@@ -431,8 +475,8 @@ select:focus[data-flux-control] {
|
||||
}
|
||||
|
||||
html[data-wms-sidebar='collapsed'] .wms-sidebar {
|
||||
width: min(21.5rem, calc(100vw - 2.5rem));
|
||||
min-width: min(21.5rem, calc(100vw - 2.5rem));
|
||||
width: min(24rem, calc(100vw - 2.5rem));
|
||||
min-width: min(24rem, calc(100vw - 2.5rem));
|
||||
}
|
||||
|
||||
html[data-wms-sidebar='collapsed'] [data-wms-sidebar-label] {
|
||||
|
||||
@@ -21,6 +21,11 @@
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<a href="/up" class="wms-health-badge" title="{{ __('Health Check') }}" aria-label="{{ __('Health Check') }}">
|
||||
<i class="fa-solid fa-heart-pulse" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('OK') }}</span>
|
||||
</a>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="wms-sidebar-toggle"
|
||||
@@ -46,14 +51,9 @@
|
||||
<div class="wms-sidebar-group">
|
||||
<div class="wms-sidebar-heading" data-wms-sidebar-label>{{ __('Operations') }}</div>
|
||||
|
||||
<a href="{{ route('dashboard') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('dashboard')) is-active @endif" title="{{ __('Dashboard') }}">
|
||||
<i class="fa-solid fa-gauge-high wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('Dashboard') }}</span>
|
||||
</a>
|
||||
|
||||
<a href="{{ route('warehouses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouses.*')) is-active @endif" title="{{ __('Warehouses') }}">
|
||||
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
||||
<a href="{{ route('dashboard') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('dashboard')) is-active @endif" title="{{ __('Platform') }}">
|
||||
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('Platform') }}</span>
|
||||
</a>
|
||||
|
||||
<a href="{{ route('warehouse-rules.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouse-rules.*')) is-active @endif" title="{{ __('Validation Rules') }}">
|
||||
@@ -66,9 +66,9 @@
|
||||
<div class="wms-sidebar-group">
|
||||
<div class="wms-sidebar-heading" data-wms-sidebar-label>{{ __('Administration') }}</div>
|
||||
|
||||
<a href="{{ route('platform.dashboard') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.dashboard')) is-active @endif" title="{{ __('Admin Dashboard') }}">
|
||||
<i class="fa-solid fa-table-columns wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('Admin Dashboard') }}</span>
|
||||
<a href="{{ route('warehouses.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('warehouses.*')) is-active @endif" title="{{ __('Warehouses') }}">
|
||||
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('Warehouses') }}</span>
|
||||
</a>
|
||||
|
||||
<a href="{{ route('platform.companies.index') }}" wire:navigate class="wms-sidebar-link @if(request()->routeIs('platform.companies.*')) is-active @endif" title="{{ __('Companies') }}">
|
||||
@@ -90,12 +90,7 @@
|
||||
</nav>
|
||||
|
||||
<div class="wms-sidebar-footer">
|
||||
<a href="/up" class="wms-sidebar-link" title="{{ __('Health Check') }}">
|
||||
<i class="fa-solid fa-heart-pulse wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('Health Check') }}</span>
|
||||
</a>
|
||||
|
||||
<a href="/admin" class="wms-sidebar-link" title="{{ __('Platform Admin') }}">
|
||||
<a href="/admin" class="wms-sidebar-link wms-platform-admin-link" title="{{ __('Platform Admin') }}">
|
||||
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label>{{ __('Platform Admin') }}</span>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user