417 lines
7.5 KiB
CSS
417 lines
7.5 KiB
CSS
/* Base Layout Components */
|
|
.ticket-container {
|
|
width: 90%;
|
|
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;
|
|
}
|
|
|
|
.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
/* Header Components */
|
|
.ticket-header {
|
|
display: flex;
|
|
flex-direction: column;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
.ticket-subheader {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 10px;
|
|
}
|
|
|
|
.header-controls {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
}
|
|
|
|
.ticket-id {
|
|
font-family: 'Courier New', monospace;
|
|
margin-right: 20px;
|
|
}
|
|
|
|
h1 {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
display: block;
|
|
}
|
|
|
|
/* Title Input Styles */
|
|
.title-input {
|
|
font-size: 1.5emem;
|
|
font-weight: bold;
|
|
width: 100%;
|
|
border: 2px solid transparent;
|
|
border-radius: 4px;
|
|
padding: 8px;
|
|
margin: -4px;
|
|
word-break: break-word;
|
|
overflow-wrap: break-word;
|
|
white-space: normal;
|
|
display: block;
|
|
line-height: 1.4;
|
|
}.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: 20px;
|
|
}
|
|
|
|
.detail-group label {
|
|
display: block;
|
|
margin-bottom: 8px;
|
|
color: var(--text-secondary);
|
|
font-weight: 500;
|
|
}
|
|
|
|
.editable {
|
|
padding: 10px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
input.editable {
|
|
width: calc(100% - 20px);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
textarea.editable {
|
|
width: calc(100% - 20px);
|
|
min-height: 150px;
|
|
resize: vertical;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.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);
|
|
}
|
|
|
|
.btn.primary {
|
|
background: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
.btn.active {
|
|
background: #3b82f6;
|
|
color: white;
|
|
}
|
|
|
|
/* Status and Priority Styles */
|
|
.status-priority-row {
|
|
display: flex;
|
|
gap: 20px;
|
|
}
|
|
|
|
.detail-half {
|
|
flex: 1;
|
|
}
|
|
|
|
.status-priority-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
align-items: center;
|
|
margin-right: 15px;
|
|
}
|
|
|
|
.priority-indicator {
|
|
padding: 4px 8px;
|
|
border-radius: 4px;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* Priority Select Styles */
|
|
select[data-field="priority"] {
|
|
border-left: 4px solid;
|
|
}
|
|
|
|
select[data-field="priority"] option {
|
|
padding: 10px;
|
|
}
|
|
|
|
select[data-field="priority"] option[value="1"] {
|
|
background-color: var(--priority-1);
|
|
}
|
|
select[data-field="priority"] option[value="2"] {
|
|
background-color: var(--priority-2);
|
|
}
|
|
select[data-field="priority"] option[value="3"] {
|
|
background-color: var(--priority-3);
|
|
}
|
|
select[data-field="priority"] option[value="4"] {
|
|
background-color: var(--priority-4);
|
|
}
|
|
|
|
select[data-field="priority"][value="1"] {
|
|
border-left-color: var(--priority-1);
|
|
}
|
|
select[data-field="priority"][value="2"] {
|
|
border-left-color: var(--priority-2);
|
|
}
|
|
select[data-field="priority"][value="3"] {
|
|
border-left-color: var(--priority-3);
|
|
}
|
|
select[data-field="priority"][value="4"] {
|
|
border-left-color: var(--priority-4);
|
|
}
|
|
|
|
select[data-field="priority"] option[value="1"]:hover {
|
|
background-color: #ffc9c9;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
select[data-field="priority"] option[value="2"]:hover {
|
|
background-color: #ffe0b2;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
select[data-field="priority"] option[value="3"]:hover {
|
|
background-color: #bbdefb;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
select[data-field="priority"] option[value="4"]:hover {
|
|
background-color: #c8e6c9;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
[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); }
|
|
|
|
/* Comments Section */
|
|
.comments-section {
|
|
margin-top: 30px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
.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: 15px;
|
|
border-radius: 6px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.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.4;
|
|
}
|
|
|
|
.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: 10px 20px;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--bg-secondary);
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.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);
|
|
} |