Private
Public Access
1
0

Add AdminLTE-style CSS framework to app.css

- Introduced AdminLTE CSS variables for color palette, body colors, card styles, and button styles.
- Implemented card components with variants for primary, success, warning, danger, and info.
- Added button styles including sizes and outline variants.
- Created form controls, select inputs, and input groups with consistent styling.
- Included utility classes for text and background colors, gradients, and shadows.
- Developed components for badges, alerts, callouts, progress bars, tables, small boxes, and info boxes.
- Integrated modal, dropdown, spinner, tooltip, and direct chat styles.
- Established timeline and close button styles, with dark mode support for specific components.
This commit is contained in:
2025-12-17 13:45:56 -05:00
parent 3219d4d7f3
commit 760cf84451
52 changed files with 4525 additions and 1537 deletions

View File

@@ -1,5 +1,6 @@
{{--
Modal Component - TailAdmin Dialog
Modal Component - AdminLTE Theme
Based on AdminLTE v4 Modal styling patterns
Usage:
<x-proxmox::ui.modal name="my-modal" title="Modal Title">Content</x-proxmox::ui.modal>
@@ -13,7 +14,7 @@
'title' => null,
'subtitle' => null,
'icon' => null,
'iconColor' => 'text-brand-500',
'iconColor' => 'lte-text-primary',
'maxWidth' => 'md',
'closeable' => true,
'footer' => null,
@@ -54,7 +55,7 @@
x-transition:leave-start="opacity-100"
x-transition:leave-end="opacity-0"
@if($closeable) @click="show = false" @endif
class="fixed inset-0 bg-gray-900/50 backdrop-blur-sm dark:bg-gray-900/80"
class="lte-modal-backdrop"
></div>
{{-- Modal Panel --}}
@@ -68,46 +69,44 @@
x-transition:leave-start="opacity-100 scale-100"
x-transition:leave-end="opacity-0 scale-95"
@click.stop
class="relative w-full {{ $maxWidthClass }} max-h-[90vh] overflow-y-auto rounded-2xl border border-gray-200 bg-white shadow-theme-lg dark:border-gray-800 dark:bg-gray-900"
class="lte-modal-content lte-slide-in-up w-full {{ $maxWidthClass }} max-h-[90vh] overflow-y-auto"
>
{{-- Header --}}
@if($title || $closeable)
<div class="flex items-start justify-between gap-4 border-b border-gray-200 px-6 py-5 dark:border-gray-800">
<div class="flex items-center gap-3.5">
<div class="lte-modal-header">
<div class="flex items-center gap-3">
@if($icon)
<div class="flex size-11 flex-shrink-0 items-center justify-center rounded-xl bg-brand-50 dark:bg-brand-500/10">
<x-dynamic-component :component="$icon" class="size-5 {{ $iconColor }} dark:text-brand-400" />
</div>
<span class="lte-info-box-icon lte-bg-light rounded" style="width: 40px; height: 40px; font-size: 1rem;">
<x-dynamic-component :component="$icon" class="size-5 {{ $iconColor }}" />
</span>
@endif
<div class="space-y-1">
<div>
@if($title)
<h3 class="text-lg font-semibold text-gray-800 dark:text-white/90">{{ $title }}</h3>
<h5 class="lte-modal-title">{{ $title }}</h5>
@endif
@if($subtitle)
<p class="text-theme-sm text-gray-500 dark:text-gray-400">{{ $subtitle }}</p>
<p class="lte-text-muted" style="font-size: 0.875rem; margin: 0;">{{ $subtitle }}</p>
@endif
</div>
</div>
@if($closeable)
<button
@click="show = false"
class="flex size-9 items-center justify-center rounded-lg text-gray-500 transition-colors duration-150 hover:bg-gray-100 hover:text-gray-700 focus:outline-none focus:ring-2 focus:ring-brand-500/20 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-gray-300"
>
<x-ri-close-line class="size-5" />
<span class="sr-only">Close</span>
</button>
class="lte-btn-close"
aria-label="Close"
></button>
@endif
</div>
@endif
{{-- Content --}}
<div class="px-6 py-5">
<div class="lte-modal-body">
{{ $slot }}
</div>
{{-- Footer --}}
@if($footer)
<div class="flex items-center justify-end gap-3 border-t border-gray-200 px-6 py-4 dark:border-gray-800">
<div class="lte-modal-footer">
{{ $footer }}
</div>
@endif