380 lines
7.3 KiB
CSS
380 lines
7.3 KiB
CSS
:root {
|
|
--color-bg: #2e2e2e;
|
|
--color-surface: #3c3c3c;
|
|
--color-primary: #4caf50;
|
|
--color-primary-hover: #45a049;
|
|
--color-accent: #2196f3;
|
|
--color-text: #f5f5f5;
|
|
--color-muted: #b0b0b0;
|
|
--color-border: #4f4f4f;
|
|
--color-danger: #e53935;
|
|
--color-admin-highlight: #424242;
|
|
--radius: 8px;
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background-color: var(--color-bg);
|
|
color: var(--color-text);
|
|
line-height: 1.6;
|
|
padding: 20px;
|
|
}
|
|
|
|
a {
|
|
color: var(--color-accent);
|
|
text-decoration: none;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.container {
|
|
max-width: 1200px;
|
|
margin: 0 auto;
|
|
background-color: var(--color-surface);
|
|
border-radius: var(--radius);
|
|
overflow: hidden;
|
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 20px;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
.header h1 {
|
|
font-size: 1.8rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
.back-link {
|
|
font-size: 1rem;
|
|
}
|
|
.back-link i {
|
|
margin-right: 5px;
|
|
}
|
|
|
|
.main-content {
|
|
padding: 20px;
|
|
}
|
|
.ticket-details-layout {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
@media (min-width: 900px) {
|
|
.ticket-details-layout {
|
|
flex-direction: row;
|
|
}
|
|
}
|
|
.ticket-details,
|
|
.ticket-activity {
|
|
background-color: var(--color-bg);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius);
|
|
padding: 20px;
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.ticket-activity {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 600px;
|
|
}
|
|
.tab-content {
|
|
display: none;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
overflow: hidden;
|
|
height: 100%;
|
|
}
|
|
.tab-content.active {
|
|
display: flex;
|
|
}
|
|
#comments-container,
|
|
#history-container {
|
|
flex-grow: 1;
|
|
overflow-y: auto;
|
|
max-height: 100%;
|
|
padding-right: 8px;
|
|
scrollbar-width: thin;
|
|
scrollbar-color: var(--color-primary) transparent;
|
|
}
|
|
#comments-container::-webkit-scrollbar,
|
|
#history-container::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
#comments-container::-webkit-scrollbar-thumb,
|
|
#history-container::-webkit-scrollbar-thumb {
|
|
background-color: var(--color-primary);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.ticket-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
margin-bottom: 20px;
|
|
}
|
|
.ticket-header-left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
max-width: 100%;
|
|
}
|
|
.ticket-header-right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
}
|
|
.ticket-header h2 {
|
|
font-size: 1.4rem;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ticket-status-priority-requester {
|
|
display: flex;
|
|
gap: 15px;
|
|
align-items: center;
|
|
margin-top: 5px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.ticket-status,
|
|
.ticket-priority,
|
|
.ticket-requester,
|
|
.ticket-category {
|
|
padding: 6px 14px;
|
|
border-radius: 20px;
|
|
font-weight: bold;
|
|
font-size: 0.9rem;
|
|
white-space: nowrap;
|
|
display: inline-block;
|
|
overflow: visible;
|
|
max-width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
.ticket-status {
|
|
background-color: var(--color-primary);
|
|
color: white;
|
|
}
|
|
.ticket-priority {
|
|
background-color: var(--color-accent);
|
|
color: white;
|
|
}
|
|
.ticket-requester,
|
|
.ticket-category {
|
|
background-color: var(--color-muted);
|
|
color: var(--color-bg);
|
|
}
|
|
|
|
.ticket-meta {
|
|
margin-top: 10px;
|
|
font-size: 0.9rem;
|
|
color: var(--color-muted);
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
}
|
|
|
|
.ticket-body h3 {
|
|
margin: 20px 0 10px;
|
|
font-size: 1.1rem;
|
|
}
|
|
#ticket-description-text {
|
|
white-space: pre-wrap;
|
|
word-wrap: break-word;
|
|
overflow-wrap: break-word;
|
|
max-width: 100%;
|
|
max-height: 200px;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
padding-right: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
@media (min-width: 600px) {
|
|
.ticket-info-grid {
|
|
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
|
}
|
|
}
|
|
.info-item h4 {
|
|
margin-bottom: 4px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.form-control {
|
|
padding: 10px 12px;
|
|
border-radius: 6px;
|
|
border: 1px solid var(--color-border);
|
|
background-color: var(--color-surface);
|
|
color: var(--color-text);
|
|
}
|
|
.form-control:focus {
|
|
outline: none;
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
.ticket-info-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr 1fr; /* 3 columns */
|
|
gap: 15px;
|
|
grid-auto-rows: auto;
|
|
}
|
|
.ticket-info-grid .info-item {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
}
|
|
.info-item .form-control {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.tabs {
|
|
display: flex;
|
|
margin-bottom: 15px;
|
|
gap: 10px;
|
|
}
|
|
.tab-btn {
|
|
flex: 1;
|
|
padding: 10px;
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
background-color: var(--color-surface);
|
|
color: var(--color-text);
|
|
cursor: pointer;
|
|
transition: background 0.2s ease;
|
|
}
|
|
.tab-btn:hover {
|
|
background-color: var(--color-border);
|
|
}
|
|
.tab-btn.active {
|
|
background-color: var(--color-primary);
|
|
}
|
|
|
|
.comment {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 16px;
|
|
margin-bottom: 20px;
|
|
max-width: 800px;
|
|
}
|
|
.comment-avatar {
|
|
width: 50px;
|
|
height: 50px;
|
|
border-radius: 50%;
|
|
object-fit: cover;
|
|
flex-shrink: 0;
|
|
border: 2px solid var(--color-border);
|
|
}
|
|
.comment-content {
|
|
background-color: var(--color-surface);
|
|
padding: 12px 16px;
|
|
border-radius: var(--radius);
|
|
width: 100%;
|
|
}
|
|
.comment-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 5px;
|
|
font-size: 0.85rem;
|
|
}
|
|
.comment-author {
|
|
font-weight: bold;
|
|
}
|
|
.comment-date {
|
|
color: var(--color-muted);
|
|
font-size: 0.8rem;
|
|
}
|
|
.comment-text {
|
|
font-size: 0.95rem;
|
|
line-height: 1.5;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
.comment-form {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
margin-bottom: 20px;
|
|
}
|
|
.comment-form input,
|
|
.comment-form textarea {
|
|
background-color: var(--color-surface);
|
|
color: var(--color-text);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius);
|
|
padding: 10px;
|
|
font-size: 1rem;
|
|
}
|
|
.comment-form input:focus,
|
|
.comment-form textarea:focus {
|
|
outline: none;
|
|
border-color: var(--color-primary);
|
|
}
|
|
|
|
.history-item {
|
|
display: flex;
|
|
gap: 12px;
|
|
margin-bottom: 15px;
|
|
}
|
|
.history-icon {
|
|
font-size: 1.2rem;
|
|
color: var(--color-primary);
|
|
}
|
|
.history-content {
|
|
background-color: var(--color-surface);
|
|
padding: 10px 15px;
|
|
border-radius: var(--radius);
|
|
width: 100%;
|
|
}
|
|
.history-action {
|
|
font-weight: bold;
|
|
margin-bottom: 4px;
|
|
}
|
|
.history-meta {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.8rem;
|
|
color: var(--color-muted);
|
|
}
|
|
|
|
/* Post Comment Button Styling */
|
|
.btn-primary {
|
|
padding: 10px 16px;
|
|
background-color: var(--color-primary);
|
|
color: white;
|
|
border: none;
|
|
border-radius: var(--radius);
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: background 0.2s ease;
|
|
align-self: flex-start; /* damit er nicht breit wird */
|
|
}
|
|
|
|
.btn-primaryt-btn:hover {
|
|
background-color: var(--color-primary-hover);
|
|
}
|
|
|
|
.footer {
|
|
padding: 15px;
|
|
text-align: center;
|
|
font-size: 0.85rem;
|
|
color: var(--color-muted);
|
|
border-top: 1px solid var(--color-border);
|
|
} |