444 lines
8.0 KiB
CSS
444 lines
8.0 KiB
CSS
/* ===== TICKET PAGE SPECIFIC STYLES ===== */
|
|
|
|
/* Status colors for ticket page */
|
|
.status-Open,
|
|
[id="statusDisplay"].status-Open {
|
|
background-color: var(--status-open) !important;
|
|
color: white !important;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
font-size: 0.9em;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.status-In-Progress,
|
|
[id="statusDisplay"].status-In-Progress {
|
|
background-color: var(--status-in-progress) !important;
|
|
color: #212529 !important;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
font-size: 0.9em;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.status-Closed,
|
|
[id="statusDisplay"].status-Closed {
|
|
background-color: var(--status-closed) !important;
|
|
color: white !important;
|
|
padding: 8px 16px;
|
|
border-radius: 6px;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
font-size: 0.9em;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
/* Base Layout Components */
|
|
.ticket-container {
|
|
width: 90%;
|
|
height: auto !important;
|
|
min-height: 900px !important;
|
|
min-width: 800px;
|
|
max-width: 1800px;
|
|
margin: 40px auto;
|
|
padding: 20px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
border-left: 6px solid;
|
|
transition: border-color 0.3s ease;
|
|
}
|
|
|
|
/* Priority border colors */
|
|
[data-priority="1"] { border-color: var(--priority-1); }
|
|
[data-priority="2"] { border-color: var(--priority-2); }
|
|
[data-priority="3"] { border-color: var(--priority-3); }
|
|
[data-priority="4"] { border-color: var(--priority-4); }
|
|
[data-priority="5"] { border-color: var(--priority-5); }
|
|
|
|
/* Header Components */
|
|
.ticket-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 30px;
|
|
width: 100%;
|
|
overflow-wrap: break-word;
|
|
}
|
|
|
|
.ticket-subheader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.ticket-details {
|
|
margin-top: 30px;
|
|
padding: 20px;
|
|
background: var(--bg-primary);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.header-controls {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
}
|
|
|
|
.ticket-id {
|
|
font-family: 'Courier New', monospace;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
.status-priority-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.priority-indicator {
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Title Input Styles */
|
|
.title-input {
|
|
font-size: 1em;
|
|
font-weight: bold;
|
|
width: 100%;
|
|
border: 2px solid transparent;
|
|
border-radius: 4px;
|
|
padding: 12px;
|
|
margin: -4px;
|
|
word-break: break-word;
|
|
overflow-wrap: break-word;
|
|
white-space: pre-wrap;
|
|
display: block;
|
|
line-height: 1.4;
|
|
min-height: fit-content;
|
|
height: auto;
|
|
}
|
|
|
|
.title-input:not(:disabled) {
|
|
border-color: var(--border-color);
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.title-input:not(:disabled):hover {
|
|
border-color: #3b82f6;
|
|
}
|
|
|
|
.title-input:disabled {
|
|
color: var(--text-primary);
|
|
border: none;
|
|
background: transparent;
|
|
}
|
|
|
|
/* Form Elements */
|
|
.detail-group {
|
|
margin-bottom: 30px;
|
|
padding: 15px;
|
|
}
|
|
|
|
.detail-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.editable {
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
input.editable {
|
|
width: calc(100% - 20px);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
textarea.editable {
|
|
width: calc(100% - 20px);
|
|
min-height: 800px !important;
|
|
height: auto !important;
|
|
box-sizing: border-box;
|
|
white-space: pre;
|
|
font-family: monospace;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
#description-tab {
|
|
min-height: 850px !important;
|
|
height: auto !important;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
.editable:disabled {
|
|
background: var(--bg-secondary);
|
|
cursor: default;
|
|
border-color: transparent;
|
|
}
|
|
|
|
/* Button Styles */
|
|
.btn {
|
|
padding: 10px 20px;
|
|
border: none;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.btn.primary {
|
|
background: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
.btn.active {
|
|
background: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
.btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
/* Comments Section */
|
|
.comments-section {
|
|
margin-top: 40px;
|
|
padding: 25px;
|
|
background: var(--bg-secondary);
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.comment-form {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.comment-form textarea {
|
|
width: calc(100% - 20px);
|
|
min-height: 80px;
|
|
margin-bottom: 10px;
|
|
padding: 10px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.comment {
|
|
background: var(--bg-primary);
|
|
padding: 20px;
|
|
border-radius: 8px;
|
|
margin-bottom: 20px;
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.comment-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-bottom: 8px;
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.comment-user {
|
|
font-weight: bold;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.comment-date {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.comment-text {
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
word-wrap: break-word;
|
|
margin: 0;
|
|
padding: 0;
|
|
white-space: normal;
|
|
}
|
|
|
|
.comment-text p {
|
|
margin: 0.5em 0;
|
|
}
|
|
|
|
.comment-text p:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.comment-text p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.comment-controls {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin: 10px 0;
|
|
}
|
|
|
|
/* Comment Tabs */
|
|
.ticket-tabs {
|
|
display: flex;
|
|
gap: 10px;
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.tab-btn {
|
|
padding: 12px 24px;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
font-size: 1.1em;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.tab-btn:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
|
}
|
|
|
|
.tab-btn.active {
|
|
background: #3b82f6;
|
|
color: white;
|
|
border-color: #3b82f6;
|
|
}
|
|
|
|
.tab-content {
|
|
display: none;
|
|
}
|
|
|
|
.tab-content.active {
|
|
display: block;
|
|
}
|
|
|
|
/* Markdown Styles */
|
|
.markdown-preview {
|
|
min-height: 100px;
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.markdown-preview h1,
|
|
.markdown-preview h2,
|
|
.markdown-preview h3 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.markdown-preview code {
|
|
background: var(--bg-secondary);
|
|
padding: 2px 4px;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.markdown-preview pre {
|
|
background: var(--bg-secondary);
|
|
padding: 10px;
|
|
border-radius: 6px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.markdown-toggles {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
/* Toggle Switch */
|
|
.switch {
|
|
position: relative;
|
|
display: inline-block;
|
|
width: 50px;
|
|
height: 24px;
|
|
}
|
|
|
|
.switch input {
|
|
opacity: 0;
|
|
width: 0;
|
|
height: 0;
|
|
}
|
|
|
|
.slider {
|
|
position: absolute;
|
|
cursor: pointer;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background-color: var(--bg-secondary);
|
|
transition: .4s;
|
|
}
|
|
|
|
.slider:before {
|
|
position: absolute;
|
|
content: "";
|
|
height: 16px;
|
|
width: 16px;
|
|
left: 4px;
|
|
bottom: 4px;
|
|
background-color: white;
|
|
transition: .4s;
|
|
}
|
|
|
|
.slider.round {
|
|
border-radius: 24px;
|
|
}
|
|
|
|
.slider.round:before {
|
|
border-radius: 50%;
|
|
}
|
|
|
|
input:checked + .slider {
|
|
background-color: #3b82f6;
|
|
}
|
|
|
|
input:checked + .slider:before {
|
|
transform: translateX(26px);
|
|
}
|
|
|
|
.switch input:disabled + .slider {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Footer */
|
|
.ticket-footer {
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.back-btn {
|
|
background: var(--bg-secondary);
|
|
color: var(--text-primary);
|
|
padding: 10px 20px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--border-color);
|
|
cursor: pointer;
|
|
transition: background-color 0.3s ease;
|
|
}
|
|
|
|
.back-btn:hover {
|
|
background: var(--border-color);
|
|
} |