now favicons and fontawsoem support

This commit is contained in:
Mark Gregory
2026-06-10 13:57:08 +01:00
parent 1489f9e747
commit b10ac13bb5
143 changed files with 9274 additions and 220 deletions
+415 -4
View File
@@ -1,4 +1,3 @@
@import '@fortawesome/fontawesome-free/css/all.min.css';
@import 'tailwindcss';
@import '../../vendor/livewire/flux/dist/flux.css';
@@ -66,10 +65,422 @@ select:focus[data-flux-control] {
@apply size-4;
} */
@layer components {
.wms-app-shell {
min-height: 100vh;
display: flex;
background: rgb(250 250 250);
}
.dark .wms-app-shell {
background: rgb(9 9 11);
}
.wms-sidebar {
position: sticky;
top: 0;
z-index: 40;
display: flex;
width: 20rem;
min-width: 20rem;
height: 100vh;
flex-direction: column;
border-right: 1px solid rgb(228 228 231);
background: rgb(250 250 250);
transition: width 180ms ease, min-width 180ms ease, transform 180ms ease;
}
.dark .wms-sidebar {
border-right-color: rgb(63 63 70);
background: rgb(24 24 27);
}
.wms-sidebar-header {
display: flex;
align-items: center;
gap: 0.75rem;
min-height: 4.5rem;
padding: 0.875rem;
border-bottom: 1px solid rgb(228 228 231);
}
.dark .wms-sidebar-header {
border-bottom-color: rgb(63 63 70);
}
.wms-brand {
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
flex: 1;
color: inherit;
text-decoration: none;
}
.wms-brand-mark {
background: linear-gradient(135deg, #08142a 0%, #0d2a4a 56%, #0f766e 100%);
box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 10px 24px rgb(8 20 42 / 22%);
display: grid;
width: 2.35rem;
height: 2.35rem;
flex: 0 0 auto;
place-items: center;
border-radius: 0.75rem;
background: linear-gradient(135deg, rgb(15 23 42), rgb(14 116 144));
color: white;
box-shadow: 0 12px 24px rgb(15 23 42 / 0.22);
}
.wms-brand-mark-inner {
font-size: 1rem;
font-weight: 800;
letter-spacing: -0.04em;
}
.wms-brand-copy {
min-width: 0;
display: grid;
line-height: 1.1;
}
.wms-brand-title {
max-width: 14rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size: 0.94rem;
font-weight: 750;
color: rgb(24 24 27);
}
.dark .wms-brand-title {
color: rgb(244 244 245);
}
.wms-brand-subtitle {
margin-top: 0.15rem;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.14em;
color: rgb(8 145 178);
}
.wms-sidebar-toggle,
.wms-mobile-close,
.wms-mobile-menu {
display: inline-grid;
place-items: center;
border-radius: 0.65rem;
border: 1px solid rgb(228 228 231);
background: white;
color: rgb(63 63 70);
transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}
.wms-sidebar-toggle {
width: 2rem;
height: 2rem;
font-size: 1.35rem;
font-weight: 800;
line-height: 1;
}
.wms-sidebar-toggle:hover,
.wms-mobile-close:hover,
.wms-mobile-menu:hover {
border-color: rgb(14 116 144);
color: rgb(14 116 144);
}
.dark .wms-sidebar-toggle,
.dark .wms-mobile-close,
.dark .wms-mobile-menu {
border-color: rgb(63 63 70);
background: rgb(39 39 42);
color: rgb(228 228 231);
}
.wms-toggle-collapsed {
display: none;
}
.wms-mobile-close {
display: none;
width: 2rem;
height: 2rem;
font-size: 1.4rem;
line-height: 1;
}
.wms-sidebar-nav {
flex: 1;
overflow-y: auto;
padding: 0.85rem;
}
.wms-sidebar-group + .wms-sidebar-group {
margin-top: 1.1rem;
}
.wms-sidebar-heading {
padding: 0 0.625rem 0.45rem;
font-size: 0.69rem;
font-weight: 800;
letter-spacing: 0.11em;
text-transform: uppercase;
color: rgb(113 113 122);
}
.wms-sidebar-link {
position: relative;
display: flex;
min-height: 2.55rem;
align-items: center;
gap: 0.75rem;
border-radius: 0.75rem;
padding: 0.625rem 0.7rem;
color: rgb(63 63 70);
font-size: 0.9rem;
font-weight: 650;
text-decoration: none;
transition: background 120ms ease, color 120ms ease;
}
.wms-sidebar-link:hover {
background: rgb(244 244 245);
color: rgb(14 116 144);
}
.wms-sidebar-link.is-active {
background: rgb(236 254 255);
color: rgb(14 116 144);
}
.dark .wms-sidebar-link {
color: rgb(212 212 216);
}
.dark .wms-sidebar-link:hover {
background: rgb(39 39 42);
color: rgb(103 232 249);
}
.dark .wms-sidebar-link.is-active {
background: rgb(8 47 73 / 0.55);
color: rgb(103 232 249);
}
.wms-sidebar-icon {
width: 1.2rem;
min-width: 1.2rem;
text-align: center;
font-size: 1rem;
}
.wms-sidebar-footer {
display: grid;
gap: 0.25rem;
border-top: 1px solid rgb(228 228 231);
padding: 0.85rem;
}
.dark .wms-sidebar-footer {
border-top-color: rgb(63 63 70);
}
.wms-user-card {
margin-top: 0.5rem;
display: flex;
min-width: 0;
align-items: center;
gap: 0.65rem;
border-radius: 0.85rem;
border: 1px solid rgb(228 228 231);
background: white;
padding: 0.65rem;
}
.dark .wms-user-card {
border-color: rgb(63 63 70);
background: rgb(39 39 42);
}
.wms-user-avatar {
display: grid;
width: 2rem;
height: 2rem;
flex: 0 0 auto;
place-items: center;
border-radius: 999px;
background: rgb(15 23 42);
color: white;
font-size: 0.75rem;
font-weight: 800;
}
.wms-user-copy {
min-width: 0;
}
.wms-user-name,
.wms-user-email {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.wms-user-name {
font-size: 0.82rem;
font-weight: 750;
}
.wms-user-email {
font-size: 0.72rem;
color: rgb(113 113 122);
}
.wms-main-column {
min-width: 0;
flex: 1;
}
.wms-mobile-header {
display: none;
}
.wms-mobile-overlay {
display: none;
}
html[data-wms-sidebar='collapsed'] .wms-sidebar {
width: 5.25rem;
min-width: 5.25rem;
}
html[data-wms-sidebar='collapsed'] [data-wms-sidebar-label] {
display: none !important;
}
html[data-wms-sidebar='collapsed'] .wms-sidebar-header,
html[data-wms-sidebar='collapsed'] .wms-sidebar-footer,
html[data-wms-sidebar='collapsed'] .wms-sidebar-nav {
align-items: center;
padding-left: 0.65rem;
padding-right: 0.65rem;
}
html[data-wms-sidebar='collapsed'] .wms-brand {
flex: 0 0 auto;
}
html[data-wms-sidebar='collapsed'] .wms-sidebar-header {
justify-content: center;
flex-wrap: wrap;
}
html[data-wms-sidebar='collapsed'] .wms-sidebar-link {
justify-content: center;
padding-left: 0.65rem;
padding-right: 0.65rem;
}
html[data-wms-sidebar='collapsed'] .wms-toggle-expanded {
display: none;
}
html[data-wms-sidebar='collapsed'] .wms-toggle-collapsed {
display: inline;
}
@media (max-width: 1023px) {
.wms-app-shell {
display: block;
}
.wms-sidebar {
position: fixed;
inset: 0 auto 0 0;
width: min(21rem, calc(100vw - 2.5rem));
min-width: min(21rem, calc(100vw - 2.5rem));
transform: translateX(-105%);
box-shadow: 22px 0 60px rgb(0 0 0 / 0.24);
}
html[data-wms-mobile-sidebar='open'] .wms-sidebar {
transform: translateX(0);
}
html[data-wms-mobile-sidebar='open'] .wms-mobile-overlay {
position: fixed;
inset: 0;
z-index: 35;
display: block;
background: rgb(0 0 0 / 0.48);
backdrop-filter: blur(2px);
}
html[data-wms-sidebar='collapsed'] .wms-sidebar {
width: min(21rem, calc(100vw - 2.5rem));
min-width: min(21rem, calc(100vw - 2.5rem));
}
html[data-wms-sidebar='collapsed'] [data-wms-sidebar-label] {
display: initial !important;
}
html[data-wms-sidebar='collapsed'] .wms-brand-copy,
html[data-wms-sidebar='collapsed'] .wms-sidebar-heading,
html[data-wms-sidebar='collapsed'] .wms-user-card span,
html[data-wms-sidebar='collapsed'] .wms-sidebar-link span {
display: block !important;
}
html[data-wms-sidebar='collapsed'] .wms-sidebar-link {
justify-content: flex-start;
}
.wms-sidebar-toggle {
display: none;
}
.wms-mobile-close {
display: inline-grid;
}
.wms-mobile-header {
position: sticky;
top: 0;
z-index: 30;
display: flex;
min-height: 4rem;
align-items: center;
gap: 0.75rem;
border-bottom: 1px solid rgb(228 228 231);
background: rgb(255 255 255 / 0.86);
padding: 0.75rem 1rem;
backdrop-filter: blur(14px);
}
.dark .wms-mobile-header {
border-bottom-color: rgb(63 63 70);
background: rgb(24 24 27 / 0.86);
}
.wms-mobile-menu {
width: 2.35rem;
height: 2.35rem;
flex: 0 0 auto;
}
.wms-mobile-title {
min-width: 0;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: inherit;
font-size: 0.96rem;
font-weight: 800;
text-decoration: none;
}
}
}