removed style form teh forms

This commit is contained in:
Mark Gregory
2026-06-19 08:39:46 +01:00
parent 34ebea15b3
commit ab7c0a36ba
2 changed files with 0 additions and 430 deletions
@@ -1,140 +1,4 @@
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-ticket-index">
<style>
.hd-helpdesk-surface .hd-btn,
.hd-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: .5rem;
border-radius: .85rem;
padding: .62rem 1.05rem;
font-size: .875rem;
line-height: 1.25rem;
font-weight: 800;
color: #ffffff !important;
text-decoration: none !important;
border: 1px solid rgba(255,255,255,.14);
box-shadow: 0 12px 28px rgba(0,0,0,.22);
transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.hd-helpdesk-surface .hd-btn:hover,
.hd-btn:hover {
transform: translateY(-1px);
box-shadow: 0 16px 34px rgba(0,0,0,.30);
}
.hd-helpdesk-surface .hd-btn-sm,
.hd-btn-sm {
border-radius: .65rem;
padding: .42rem .78rem;
font-size: .8125rem;
}
.hd-helpdesk-surface .hd-btn-blue,
.hd-btn-blue { background: #2563eb !important; }
.hd-helpdesk-surface .hd-btn-blue:hover,
.hd-btn-blue:hover { background: #1d4ed8 !important; }
.hd-helpdesk-surface .hd-btn-green,
.hd-btn-green { background: #16a34a !important; }
.hd-helpdesk-surface .hd-btn-green:hover,
.hd-btn-green:hover { background: #15803d !important; }
.hd-helpdesk-surface .hd-btn-amber,
.hd-btn-amber { background: #f59e0b !important; }
.hd-helpdesk-surface .hd-btn-amber:hover,
.hd-btn-amber:hover { background: #d97706 !important; }
.hd-helpdesk-surface .hd-btn-red,
.hd-btn-red { background: #dc2626 !important; }
.hd-helpdesk-surface .hd-btn-red:hover,
.hd-btn-red:hover { background: #b91c1c !important; }
.hd-helpdesk-surface .hd-btn-violet,
.hd-btn-violet { background: #7c3aed !important; }
.hd-helpdesk-surface .hd-btn-violet:hover,
.hd-btn-violet:hover { background: #6d28d9 !important; }
.hd-helpdesk-surface button[type="submit"],
.hd-helpdesk-surface button[data-flux-button][type="submit"] {
background: #16a34a !important;
color: #ffffff !important;
border-color: rgba(255,255,255,.14) !important;
}
.hd-helpdesk-surface button[wire\:click^="reset"],
.hd-helpdesk-surface button[wire\:target^="reset"] {
background: #f59e0b !important;
color: #ffffff !important;
border-color: rgba(255,255,255,.14) !important;
}
.hd-helpdesk-surface button[wire\:click^="edit"],
.hd-helpdesk-surface button[wire\:target^="edit"] {
background: #2563eb !important;
color: #ffffff !important;
border-color: rgba(255,255,255,.14) !important;
}
.hd-helpdesk-surface button[wire\:click^="delete"],
.hd-helpdesk-surface button[wire\:target^="delete"] {
background: #dc2626 !important;
color: #ffffff !important;
border-color: rgba(255,255,255,.14) !important;
}
.hd-select {
width: 100%;
min-height: 3.35rem;
border-radius: 1rem;
border: 1px solid #3f3f46 !important;
background: #09090b !important;
color: #f4f4f5 !important;
padding: .78rem 3rem .78rem 1rem;
font-weight: 800;
outline: none;
box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 26px rgba(0,0,0,.24);
}
.hd-select:focus {
border-color: #60a5fa !important;
box-shadow: 0 0 0 3px rgba(96,165,250,.38), inset 0 1px 0 rgba(255,255,255,.05);
}
.helpdesk-ticket-form,
.helpdesk-ticket-form * {
-webkit-tap-highlight-color: transparent;
}
.helpdesk-ticket-form input,
.helpdesk-ticket-form textarea,
.helpdesk-ticket-form select,
.helpdesk-ticket-form .select2-container--default .select2-selection--single,
.helpdesk-ticket-form .select2-container--default .select2-selection--multiple,
.helpdesk-ticket-form .select2-container--default .select2-selection__rendered,
.helpdesk-ticket-form .select2-container--default .select2-selection__choice {
background: #09090b !important;
background-color: #09090b !important;
color: #f4f4f5 !important;
border-color: #3f3f46 !important;
caret-color: #f4f4f5 !important;
opacity: 1 !important;
}
.helpdesk-ticket-form input:disabled,
.helpdesk-ticket-form textarea:disabled,
.helpdesk-ticket-form select:disabled,
.helpdesk-ticket-form .select2-container--disabled .select2-selection--single,
.helpdesk-ticket-form .select2-container--disabled .select2-selection--multiple,
.helpdesk-ticket-form [disabled],
.helpdesk-ticket-form [aria-disabled="true"] {
background: #09090b !important;
background-color: #09090b !important;
color: #a1a1aa !important;
opacity: 1 !important;
}
.helpdesk-ticket-form input:-webkit-autofill,
.helpdesk-ticket-form input:-webkit-autofill:hover,
.helpdesk-ticket-form input:-webkit-autofill:focus,
.helpdesk-ticket-form textarea:-webkit-autofill,
.helpdesk-ticket-form textarea:-webkit-autofill:hover,
.helpdesk-ticket-form textarea:-webkit-autofill:focus,
.helpdesk-ticket-form select:-webkit-autofill,
.helpdesk-ticket-form select:-webkit-autofill:hover,
.helpdesk-ticket-form select:-webkit-autofill:focus {
-webkit-text-fill-color: #f4f4f5 !important;
box-shadow: 0 0 0 1000px #09090b inset !important;
transition: background-color 9999s ease-in-out 0s;
}
</style>
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">
@@ -7,300 +7,6 @@
$visibleCommentCount = $ticket->comments->count();
@endphp
<style>
.hd-helpdesk-surface {
--hd-panel: rgba(24, 24, 27, 0.96);
--hd-panel-soft: rgba(16, 23, 42, 0.92);
--hd-border: rgba(113, 113, 122, 0.50);
--hd-border-soft: rgba(59, 130, 246, 0.30);
--hd-text: #f8fafc;
--hd-muted: #cbd5e1;
--hd-blue: #2563eb;
--hd-green: #16a34a;
--hd-red: #dc2626;
}
.hd-helpdesk-surface,
.hd-helpdesk-surface * {
box-sizing: border-box;
}
.hd-helpdesk-surface article,
.hd-helpdesk-surface details,
.hd-helpdesk-surface form[data-helpdesk-comment-form] {
overflow: hidden;
border: 1px solid var(--hd-border) !important;
border-radius: 24px !important;
background: var(--hd-panel) !important;
box-shadow: 0 20px 55px rgba(0, 0, 0, 0.22) !important;
}
.hd-helpdesk-surface article > div:first-child,
.hd-helpdesk-surface details > summary,
.hd-helpdesk-surface form[data-helpdesk-comment-form] > div:first-child {
min-height: 116px;
padding: 24px 30px !important;
background: linear-gradient(135deg, #020617 0%, #0f1e3d 58%, #101827 100%) !important;
color: var(--hd-text) !important;
border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.hd-helpdesk-surface article > div:first-child > div,
.hd-helpdesk-surface form[data-helpdesk-comment-form] > div:first-child > div,
.hd-helpdesk-surface details > summary > div:first-child {
align-items: center !important;
gap: 16px !important;
}
.hd-helpdesk-surface article > div:first-child span.inline-flex,
.hd-helpdesk-surface details > summary span.inline-flex,
.hd-helpdesk-surface form[data-helpdesk-comment-form] > div:first-child span.inline-flex {
flex-shrink: 0;
}
.hd-helpdesk-surface article > div:first-child span.inline-flex[class*="h-14"],
.hd-helpdesk-surface details > summary span.inline-flex[class*="h-14"],
.hd-helpdesk-surface form[data-helpdesk-comment-form] > div:first-child span.inline-flex[class*="h-14"] {
width: 44px !important;
height: 44px !important;
border-radius: 14px !important;
}
.hd-helpdesk-surface article > div:first-child i,
.hd-helpdesk-surface details > summary i,
.hd-helpdesk-surface form[data-helpdesk-comment-form] > div:first-child i {
font-size: 16px !important;
line-height: 1 !important;
}
.hd-helpdesk-surface article h2,
.hd-helpdesk-surface details h2,
.hd-helpdesk-surface form[data-helpdesk-comment-form] h2 {
margin: 0 !important;
font-size: clamp(1.35rem, 1.1rem + 0.8vw, 2rem) !important;
line-height: 1.2 !important;
letter-spacing: -0.025em !important;
}
.hd-helpdesk-surface article p,
.hd-helpdesk-surface details p,
.hd-helpdesk-surface form[data-helpdesk-comment-form] p {
margin-top: 6px !important;
}
.hd-helpdesk-surface article > div:nth-child(2),
.hd-helpdesk-surface form[data-helpdesk-comment-form] > div:nth-child(2),
.hd-helpdesk-surface details > div {
padding: 28px 30px !important;
}
.hd-ticket-body-card {
min-height: 210px !important;
padding: 28px 32px !important;
border-radius: 20px !important;
border: 1px solid rgba(113, 113, 122, 0.55) !important;
background: rgba(3, 7, 18, 0.45) !important;
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}
.hd-ticket-body-card .prose,
.hd-ticket-body-card div {
font-size: 1.05rem !important;
line-height: 1.85 !important;
color: var(--hd-text) !important;
}
.hd-helpdesk-surface form[data-helpdesk-comment-form] .space-y-7 {
display: grid !important;
gap: 22px !important;
}
.hd-helpdesk-surface form[data-helpdesk-comment-form] label {
display: block !important;
margin-bottom: 8px !important;
font-size: 0.9rem !important;
font-weight: 800 !important;
color: var(--hd-muted) !important;
}
.hd-helpdesk-surface form[data-helpdesk-comment-form] input[type="text"],
.hd-helpdesk-surface form[data-helpdesk-comment-form] input[name="subject"],
.hd-helpdesk-surface form[data-helpdesk-comment-form] select,
.hd-helpdesk-surface form[data-helpdesk-comment-form] [contenteditable="true"] {
width: 100% !important;
border: 1px solid rgba(113, 113, 122, 0.70) !important;
border-radius: 16px !important;
background: rgba(3, 7, 18, 0.60) !important;
color: var(--hd-text) !important;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16) !important;
}
.hd-helpdesk-surface form[data-helpdesk-comment-form] input[name="subject"],
.hd-helpdesk-surface form[data-helpdesk-comment-form] select {
min-height: 52px !important;
padding: 12px 16px !important;
}
.hd-helpdesk-surface form[data-helpdesk-comment-form] [contenteditable="true"] {
min-height: 190px !important;
padding: 18px 20px !important;
line-height: 1.7 !important;
}
.hd-helpdesk-surface [data-helpdesk-html-toolbar] {
display: flex !important;
flex-wrap: wrap !important;
gap: 8px !important;
margin-bottom: 10px !important;
}
.hd-helpdesk-surface [data-helpdesk-html-toolbar] button {
min-height: 34px !important;
border-radius: 10px !important;
border: 1px solid rgba(203, 213, 225, 0.70) !important;
padding: 6px 10px !important;
background: rgba(15, 23, 42, 0.80) !important;
color: var(--hd-text) !important;
font-size: 0.8rem !important;
}
.hd-helpdesk-surface [data-helpdesk-attachment-shell] {
border-radius: 18px !important;
border: 1px solid rgba(59, 130, 246, 0.28) !important;
padding: 18px !important;
background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(24, 24, 27, 0.92)) !important;
}
.hd-helpdesk-surface [data-helpdesk-attachment-picker-row] {
display: flex !important;
min-height: 74px !important;
align-items: center !important;
justify-content: space-between !important;
gap: 18px !important;
}
.hd-helpdesk-surface [data-helpdesk-file-button] {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 10px !important;
min-width: 168px !important;
height: 48px !important;
padding: 0 22px !important;
border: 1px solid rgba(134, 239, 172, 0.70) !important;
border-radius: 14px !important;
background: linear-gradient(135deg, #15803d 0%, #16a34a 55%, #22c55e 100%) !important;
color: #ffffff !important;
box-shadow: 0 14px 28px rgba(22, 163, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
font-size: 0.92rem !important;
font-weight: 900 !important;
line-height: 1 !important;
text-align: center !important;
white-space: nowrap !important;
cursor: pointer !important;
transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease !important;
}
.hd-helpdesk-surface [data-helpdesk-file-button]:hover {
transform: translateY(-1px) !important;
background: linear-gradient(135deg, #166534 0%, #15803d 55%, #16a34a 100%) !important;
color: #ffffff !important;
box-shadow: 0 16px 32px rgba(22, 163, 74, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
.hd-helpdesk-surface [data-helpdesk-file-button] i,
.hd-helpdesk-surface [data-helpdesk-file-button] span {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
line-height: 1 !important;
margin: 0 !important;
padding: 0 !important;
vertical-align: middle !important;
}
.hd-helpdesk-surface [data-helpdesk-file-button] i {
width: 22px !important;
height: 22px !important;
border-radius: 8px !important;
background: rgba(255, 255, 255, 0.18) !important;
color: #ffffff !important;
font-size: 0.8rem !important;
}
.hd-helpdesk-surface .hd-attachment-action {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
gap: 12px !important;
width: 210px !important;
min-width: 210px !important;
height: 58px !important;
min-height: 58px !important;
padding: 0 22px !important;
border: 1px solid rgba(134, 239, 172, 0.65) !important;
border-radius: 18px !important;
background: linear-gradient(135deg, #15803d 0%, #16a34a 55%, #22c55e 100%) !important;
color: #ffffff !important;
box-shadow: 0 16px 34px rgba(22, 163, 74, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
font-size: 1rem !important;
font-weight: 900 !important;
line-height: 1 !important;
text-align: center !important;
white-space: nowrap !important;
cursor: pointer !important;
appearance: none !important;
-webkit-appearance: none !important;
}
.hd-helpdesk-surface .hd-attachment-action:hover {
transform: translateY(-1px) !important;
background: linear-gradient(135deg, #166534 0%, #15803d 55%, #16a34a 100%) !important;
color: #ffffff !important;
}
.hd-helpdesk-surface .hd-attachment-action-upload {
border-color: rgba(45, 212, 191, 0.60) !important;
background: linear-gradient(135deg, #047857 0%, #059669 55%, #0d9488 100%) !important;
box-shadow: 0 16px 34px rgba(5, 150, 105, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}
.hd-helpdesk-surface .hd-attachment-action-upload:hover {
background: linear-gradient(135deg, #065f46 0%, #047857 55%, #0f766e 100%) !important;
}
.hd-helpdesk-surface .hd-attachment-action i {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
width: 24px !important;
height: 24px !important;
border-radius: 9px !important;
background: rgba(255, 255, 255, 0.18) !important;
color: #ffffff !important;
font-size: 0.9rem !important;
}
.hd-helpdesk-surface .hd-select {
appearance: auto !important;
}
@media (max-width: 900px) {
.hd-helpdesk-surface article > div:first-child,
.hd-helpdesk-surface details > summary,
.hd-helpdesk-surface form[data-helpdesk-comment-form] > div:first-child,
.hd-helpdesk-surface article > div:nth-child(2),
.hd-helpdesk-surface form[data-helpdesk-comment-form] > div:nth-child(2),
.hd-helpdesk-surface details > div {
padding: 20px !important;
}
.hd-ticket-body-card {
min-height: 150px !important;
padding: 20px !important;
}
}
</style>
<div class="hd-helpdesk-surface space-y-6" dusk="helpdesk-ticket-show">
<div class="overflow-hidden rounded-3xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-700 dark:bg-zinc-900">
<div class="bg-gradient-to-br from-slate-950 via-slate-900 to-blue-950 px-6 py-7 text-white">