Files
KGV-Verein-Manager/assets/css/admin.css
2026-04-13 21:01:07 +02:00

303 lines
4.4 KiB
CSS

.kgvvm-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 16px;
margin: 18px 0 24px;
}
.kgvvm-card {
background: #fff;
border: 1px solid #dcdcde;
border-radius: 8px;
padding: 16px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.kgvvm-card h2,
.kgvvm-card h3 {
margin-top: 0;
}
.kgvvm-toolbar {
display: flex;
flex-wrap: wrap;
gap: 12px;
align-items: center;
justify-content: space-between;
margin: 16px 0;
}
.kgvvm-filters {
display: flex;
flex-wrap: wrap;
gap: 8px;
align-items: center;
}
.kgvvm-form-table th {
width: 220px;
}
.kgvvm-help {
color: #50575e;
font-size: 12px;
}
.kgvvm-status {
display: inline-block;
padding: 3px 8px;
border-radius: 999px;
font-size: 12px;
font-weight: 600;
}
.kgvvm-status--green {
background: #edf7ed;
color: #0a5c1a;
}
.kgvvm-status--orange {
background: #fff4e5;
color: #8a4b00;
}
.kgvvm-status--gray {
background: #f1f1f1;
color: #444;
}
.kgvvm-status--blue {
background: #eef5ff;
color: #1d4f91;
}
.kgvvm-multiselect {
min-width: 320px;
min-height: 140px;
}
.kgvvm-open-swap-modal {
padding: 0;
border: 0;
background: transparent;
cursor: pointer;
}
.kgvvm-modal[hidden] {
display: none !important;
}
.kgvvm-modal {
position: fixed;
inset: 0;
z-index: 100000;
}
.kgvvm-modal__backdrop {
position: absolute;
inset: 0;
background: rgba(0, 0, 0, 0.45);
}
.kgvvm-modal__dialog {
position: relative;
z-index: 1;
width: min(760px, calc(100vw - 32px));
max-height: calc(100vh - 48px);
overflow: auto;
margin: 24px auto;
background: #fff;
border-radius: 10px;
box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
padding: 20px;
}
.kgvvm-modal__close {
position: absolute;
top: 12px;
right: 12px;
border: 0;
background: transparent;
font-size: 24px;
line-height: 1;
cursor: pointer;
color: #50575e;
}
.kgvvm-modal__summary {
margin: 16px 0;
}
.kgvvm-modal__summary p {
margin: 0 0 6px;
}
.kgvvm-modal__actions {
display: flex;
gap: 8px;
align-items: center;
}
.kgvvm-print-page {
max-width: 1100px;
}
.kgvvm-print-actions {
display: flex;
gap: 8px;
margin: 12px 0 18px;
}
.kgvvm-print-page ul {
margin: 0;
}
.kgvvm-print-page li {
margin-bottom: 6px;
}
.kgvvm-chat-app {
display: grid;
grid-template-columns: minmax(180px, 220px) 1fr;
gap: 16px;
margin-top: 16px;
}
.kgvvm-chat-room-list {
display: flex;
flex-direction: column;
gap: 8px;
}
.kgvvm-chat-room {
width: 100%;
justify-content: flex-start;
}
.kgvvm-chat-room.is-active {
background: #2271b1;
border-color: #2271b1;
color: #fff;
}
.kgvvm-chat-panel__header {
display: flex;
justify-content: space-between;
gap: 12px;
align-items: flex-start;
margin-bottom: 12px;
}
.kgvvm-chat-messages {
background: #f6f7f7;
border: 1px solid #dcdcde;
border-radius: 8px;
min-height: 320px;
max-height: 520px;
overflow-y: auto;
padding: 12px;
}
.kgvvm-chat-empty {
margin: 0;
color: #50575e;
}
.kgvvm-chat-message {
background: #fff;
border: 1px solid #dcdcde;
border-radius: 10px;
padding: 10px 12px;
margin-bottom: 10px;
}
.kgvvm-chat-message--own {
border-color: #72aee6;
background: #eef6ff;
}
.kgvvm-chat-message__meta {
color: #50575e;
font-size: 12px;
margin-bottom: 6px;
}
.kgvvm-chat-message__body {
white-space: normal;
word-break: break-word;
}
.kgvvm-chat-form {
margin-top: 12px;
}
.kgvvm-chat-form textarea {
width: 100%;
resize: vertical;
}
.kgvvm-chat-form__actions {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
margin-top: 8px;
}
.kgvvm-chat-form__actions .is-error {
color: #b32d2e;
}
@media (max-width: 782px) {
.kgvvm-chat-app {
grid-template-columns: 1fr;
}
.kgvvm-chat-panel__header,
.kgvvm-chat-form__actions {
flex-direction: column;
align-items: stretch;
}
}
@media print {
#wpadminbar,
#adminmenumain,
#screen-meta,
#screen-meta-links,
.notice,
.update-nag,
.kgvvm-print-actions,
.page-title-action {
display: none !important;
}
#wpcontent,
#wpfooter {
margin-left: 0 !important;
}
.wrap,
.kgvvm-print-page {
margin: 0 !important;
padding: 0 !important;
max-width: 100% !important;
}
.kgvvm-card {
box-shadow: none;
border-color: #d0d0d0;
break-inside: avoid;
}
table {
break-inside: auto;
}
tr,
td,
th {
break-inside: avoid;
}
}