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,5 @@
{{--
Help Modal Trigger Component - TailAdmin styled
Help Modal Trigger Component - AdminLTE style
Question mark button that opens an info modal
Usage:
@@ -19,7 +19,7 @@
])
<div class="relative" x-data="{ open: false }" x-cloak {{ $attributes }}>
<button type="button" @click="open = true" class="text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300 transition-colors duration-150">
<button type="button" @click="open = true" style="color: #6c757d; background: transparent; border: none; cursor: pointer; padding: 0; transition: color .2s ease;" onmouseover="this.style.color='#495057'" onmouseout="this.style.color='#6c757d'">
<x-ri-question-line class="size-4" />
</button>
@@ -34,8 +34,8 @@
x-transition:leave-end="opacity-0"
@click="open = false"
@keydown.escape.window="open = false"
class="fixed inset-0 z-50 bg-gray-900/50 backdrop-blur-sm dark:bg-gray-950/70"
style="display: none;"
class="fixed inset-0"
style="z-index: 1050; background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(2px); display: none;"
></div>
<!-- Modal Content -->
@@ -48,31 +48,31 @@
x-transition:leave-start="opacity-100 scale-100"
x-transition:leave-end="opacity-0 scale-95"
@click.away="open = false"
class="fixed inset-0 z-50 flex items-center justify-center p-4"
style="display: none;"
class="fixed inset-0 flex items-center justify-center p-4"
style="z-index: 1050; display: none;"
>
<div class="relative w-full max-w-2xl 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 p-6">
<button @click="open = false" class="absolute top-4 right-4 rounded-lg p-1 text-gray-400 hover:text-gray-600 hover:bg-gray-100 dark:text-gray-500 dark:hover:text-gray-300 dark:hover:bg-gray-800 transition-colors duration-150">
<div class="modal-lte" style="position: relative; width: 100%; max-width: 42rem; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: .375rem; box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15); padding: 1.5rem;">
<button @click="open = false" style="position: absolute; top: 1rem; right: 1rem; padding: .25rem; border-radius: .25rem; color: #6c757d; background: transparent; border: none; cursor: pointer; transition: background .2s ease, color .2s ease;" onmouseover="this.style.background='#f8f9fa'; this.style.color='#495057'" onmouseout="this.style.background='transparent'; this.style.color='#6c757d'">
<x-ri-close-line class="size-4" />
</button>
<div class="flex items-center gap-3 mb-4 pr-8">
<div class="flex items-center justify-center size-9 rounded-xl bg-brand-500/10 dark:bg-brand-500/20">
<x-dynamic-component :component="$icon" class="size-4 text-brand-500" />
<div style="display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; padding-right: 2rem;">
<div style="display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: .5rem; background: rgba(13, 110, 253, 0.1);">
<x-dynamic-component :component="$icon" class="size-4" style="color: #0d6efd;" />
</div>
<h3 class="text-lg font-semibold leading-none tracking-tight text-gray-800 dark:text-white/90">
<h3 style="font-size: 1.125rem; font-weight: 600; line-height: 1; color: #212529; margin: 0;">
{{ $title }}
</h3>
</div>
@if(isset($description))
<div class="text-theme-sm text-gray-500 dark:text-gray-400 mb-4">
<div style="font-size: .875rem; color: #6c757d; margin-bottom: 1rem; line-height: 1.5;">
{{ $description }}
</div>
@endif
@if(isset($details))
<div class="pt-4 mt-4 border-t border-gray-200 dark:border-gray-800 space-y-2 text-theme-sm text-gray-500 dark:text-gray-400">
<div style="padding-top: 1rem; margin-top: 1rem; border-top: 1px solid #dee2e6; font-size: .875rem; color: #6c757d; line-height: 1.5;">
{{ $details }}
</div>
@endif