mirror of
https://github.com/Coldsmiles/infstarweb.git
synced 2026-04-23 02:30:41 +08:00
1125 lines
21 KiB
CSS
1125 lines
21 KiB
CSS
/* Page-Specific Styles for Announcements */
|
|
|
|
.announcements-hero-bg {
|
|
background-image: url('https://img.lunadeer.cn/i/2025/11/26/69267755e14e3.png');
|
|
}
|
|
|
|
/* Container */
|
|
.announcements-container {
|
|
max-width: 900px;
|
|
margin: 0 auto;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
/* Controls */
|
|
.controls-section {
|
|
background: var(--card-bg);
|
|
padding: 30px;
|
|
border-radius: var(--radius-large);
|
|
box-shadow: 0 4px 20px rgba(0,0,0,0.05);
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.controls-header-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 20px;
|
|
}
|
|
|
|
.title-with-action {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.section-title {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
margin: 0;
|
|
}
|
|
|
|
.btn-add-announcement {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 18px;
|
|
background: var(--accent-color);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 20px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-add-announcement:hover {
|
|
background: #005bb5;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.search-box {
|
|
position: relative;
|
|
max-width: 400px;
|
|
width: 100%;
|
|
}
|
|
|
|
.search-box i {
|
|
position: absolute;
|
|
left: 16px;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.search-box input {
|
|
width: 100%;
|
|
padding: 10px 16px 10px 44px;
|
|
border: 1px solid rgba(0,0,0,0.1);
|
|
border-radius: 12px;
|
|
font-size: 15px;
|
|
background: #f5f5f7;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.search-box input:focus {
|
|
outline: none;
|
|
background: #fff;
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
|
|
}
|
|
|
|
.filters-wrapper {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
border-top: 1px solid rgba(0,0,0,0.05);
|
|
padding-top: 20px;
|
|
margin-top: 24px;
|
|
}
|
|
|
|
.filter-group {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 12px;
|
|
}
|
|
|
|
.filter-label {
|
|
font-weight: 600;
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
min-width: 70px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.filter-tags {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 8px;
|
|
}
|
|
|
|
.filter-tag {
|
|
background: #fff;
|
|
border: 1px solid rgba(0,0,0,0.1);
|
|
padding: 6px 14px;
|
|
border-radius: 18px;
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.filter-tag:hover {
|
|
background: #f5f5f7;
|
|
color: var(--text-primary);
|
|
border-color: rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.filter-tag.active {
|
|
background: var(--text-primary);
|
|
color: white;
|
|
border-color: var(--text-primary);
|
|
}
|
|
|
|
/* ========== Timeline ========== */
|
|
.timeline {
|
|
position: relative;
|
|
padding-left: 32px;
|
|
}
|
|
|
|
.timeline::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 7px;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 2px;
|
|
background: linear-gradient(to bottom, var(--accent-color), rgba(0,113,227,0.1));
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.timeline-item {
|
|
position: relative;
|
|
margin-bottom: 24px;
|
|
}
|
|
|
|
.timeline-item::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -32px;
|
|
top: 28px;
|
|
width: 16px;
|
|
height: 16px;
|
|
border-radius: 50%;
|
|
background: #fff;
|
|
border: 3px solid var(--accent-color);
|
|
z-index: 1;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.timeline-item.category-activity::before {
|
|
border-color: var(--brand-green);
|
|
}
|
|
|
|
.timeline-item.category-maintenance::before {
|
|
border-color: #f59e0b;
|
|
}
|
|
|
|
.timeline-item.category-other::before {
|
|
border-color: #8b5cf6;
|
|
}
|
|
|
|
/* Card */
|
|
.announcement-card {
|
|
background: var(--card-bg);
|
|
border-radius: var(--radius-medium);
|
|
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
|
|
border: 1px solid rgba(0,0,0,0.03);
|
|
overflow: hidden;
|
|
transition: var(--transition);
|
|
cursor: pointer;
|
|
}
|
|
|
|
.announcement-card:hover {
|
|
box-shadow: 0 8px 28px rgba(0,0,0,0.08);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.announcement-card.expanded {
|
|
cursor: default;
|
|
transform: none;
|
|
box-shadow: 0 8px 32px rgba(0,0,0,0.1);
|
|
border-color: rgba(0,0,0,0.06);
|
|
}
|
|
|
|
.card-summary {
|
|
padding: 24px 28px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 16px;
|
|
}
|
|
|
|
.announcement-card.expanded .card-summary {
|
|
border-bottom: 1px solid rgba(0,0,0,0.05);
|
|
background: linear-gradient(to bottom, #fff, #fafafa);
|
|
}
|
|
|
|
.card-summary-main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.card-summary-top {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
margin-bottom: 6px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.category-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 5px;
|
|
font-size: 11px;
|
|
font-weight: 600;
|
|
padding: 3px 10px;
|
|
border-radius: 10px;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.category-badge.badge-activity {
|
|
background: #e8fceb;
|
|
color: #15803d;
|
|
}
|
|
|
|
.category-badge.badge-maintenance {
|
|
background: #fff8d6;
|
|
color: #b45309;
|
|
}
|
|
|
|
.category-badge.badge-other {
|
|
background: #f3f0ff;
|
|
color: #6d28d9;
|
|
}
|
|
|
|
.announcement-title {
|
|
font-size: 18px;
|
|
font-weight: 600;
|
|
color: var(--text-primary);
|
|
line-height: 1.4;
|
|
margin: 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.announcement-card.expanded .announcement-title {
|
|
white-space: normal;
|
|
overflow: visible;
|
|
}
|
|
|
|
.announcement-intro {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
line-height: 1.5;
|
|
margin: 4px 0 0;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.announcement-card.expanded .announcement-intro {
|
|
white-space: normal;
|
|
overflow: visible;
|
|
}
|
|
|
|
.card-summary-time {
|
|
font-size: 13px;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.expand-icon {
|
|
color: var(--text-secondary);
|
|
font-size: 14px;
|
|
transition: transform 0.3s ease;
|
|
flex-shrink: 0;
|
|
opacity: 0.4;
|
|
}
|
|
|
|
.announcement-card.expanded .expand-icon {
|
|
transform: rotate(180deg);
|
|
opacity: 0.6;
|
|
}
|
|
|
|
/* Expanded Detail */
|
|
.card-detail {
|
|
max-height: 0;
|
|
overflow: hidden;
|
|
transition: max-height 0.45s cubic-bezier(0.25, 1, 0.5, 1), padding 0.35s ease;
|
|
padding: 0 28px;
|
|
}
|
|
|
|
.announcement-card.expanded .card-detail {
|
|
max-height: 2000px;
|
|
padding: 28px 28px 32px;
|
|
}
|
|
|
|
.detail-content {
|
|
line-height: 1.8;
|
|
font-size: 15px;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.detail-content p {
|
|
margin-bottom: 14px;
|
|
}
|
|
|
|
.detail-content p:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.detail-content img {
|
|
max-width: 100%;
|
|
border-radius: 12px;
|
|
margin: 12px 0 16px;
|
|
border: 1px solid rgba(0,0,0,0.05);
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.detail-content .video-embed-wrapper {
|
|
position: relative;
|
|
width: 100%;
|
|
padding-bottom: 56.25%;
|
|
margin: 12px 0 16px;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: #000;
|
|
box-shadow: 0 4px 12px rgba(0,0,0,0.08);
|
|
}
|
|
|
|
.detail-content .video-embed-wrapper iframe {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
border: none;
|
|
}
|
|
|
|
.detail-action-btn-row {
|
|
margin-top: 20px;
|
|
padding-top: 16px;
|
|
border-top: 1px solid rgba(0,0,0,0.05);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-share-announcement {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 16px;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
border: 1.5px solid rgba(0,0,0,0.12);
|
|
border-radius: 18px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-share-announcement:hover {
|
|
color: var(--accent-color);
|
|
border-color: var(--accent-color);
|
|
background: rgba(0,113,227,0.04);
|
|
}
|
|
|
|
.btn-share-announcement.shared {
|
|
color: #15803d;
|
|
border-color: #34c759;
|
|
background: #e8fceb;
|
|
}
|
|
|
|
.btn-edit-announcement {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 16px;
|
|
background: transparent;
|
|
color: var(--accent-color);
|
|
border: 1.5px solid var(--accent-color);
|
|
border-radius: 18px;
|
|
font-size: 13px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.btn-edit-announcement:hover {
|
|
background: var(--accent-color);
|
|
color: #fff;
|
|
}
|
|
|
|
/* No results */
|
|
.no-results-message {
|
|
text-align: center;
|
|
padding: 60px;
|
|
color: var(--text-secondary);
|
|
font-size: 16px;
|
|
background: var(--card-bg);
|
|
border-radius: var(--radius-medium);
|
|
}
|
|
|
|
.is-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Edit mode hidden class */
|
|
.edit-hidden {
|
|
display: none !important;
|
|
}
|
|
|
|
/* ========== Editor Modal ========== */
|
|
.modal {
|
|
display: none;
|
|
position: fixed;
|
|
z-index: 2000;
|
|
left: 0;
|
|
top: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-color: rgba(0, 0, 0, 0.4);
|
|
backdrop-filter: blur(10px);
|
|
-webkit-backdrop-filter: blur(10px);
|
|
}
|
|
|
|
.editor-modal-content {
|
|
background-color: #fff;
|
|
margin: 20px auto;
|
|
border-radius: var(--radius-large);
|
|
max-width: 1100px;
|
|
width: 95%;
|
|
padding: 0;
|
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
position: relative;
|
|
max-height: calc(100vh - 40px);
|
|
overflow: hidden;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.close-editor-modal,
|
|
.close-json-modal {
|
|
position: absolute;
|
|
top: 16px;
|
|
right: 20px;
|
|
font-size: 24px;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: 0.2s;
|
|
z-index: 10;
|
|
background: rgba(255,255,255,0.9);
|
|
width: 36px;
|
|
height: 36px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
border-radius: 50%;
|
|
}
|
|
|
|
.close-editor-modal:hover,
|
|
.close-json-modal:hover {
|
|
background: #f0f0f0;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.editor-modal-header {
|
|
padding: 20px 28px;
|
|
border-bottom: 1px solid rgba(0,0,0,0.08);
|
|
background: linear-gradient(to bottom, #fff, #fafafa);
|
|
border-radius: var(--radius-large) var(--radius-large) 0 0;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.editor-modal-header h3 {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.editor-layout {
|
|
display: flex;
|
|
flex: 1;
|
|
overflow: hidden;
|
|
min-height: 0;
|
|
}
|
|
|
|
.editor-preview {
|
|
flex: 0 0 45%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
border-right: 1px solid rgba(0,0,0,0.08);
|
|
background: #f5f5f7;
|
|
}
|
|
|
|
.editor-panel-title {
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
padding: 14px 24px;
|
|
border-bottom: 1px solid rgba(0,0,0,0.05);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.6px;
|
|
flex-shrink: 0;
|
|
background: rgba(255,255,255,0.6);
|
|
}
|
|
|
|
.editor-preview-content {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 20px;
|
|
}
|
|
|
|
.editor-preview-content::-webkit-scrollbar,
|
|
.editor-form-scroll::-webkit-scrollbar {
|
|
width: 5px;
|
|
}
|
|
|
|
.editor-preview-content::-webkit-scrollbar-track,
|
|
.editor-form-scroll::-webkit-scrollbar-track {
|
|
background: transparent;
|
|
}
|
|
|
|
.editor-preview-content::-webkit-scrollbar-thumb,
|
|
.editor-form-scroll::-webkit-scrollbar-thumb {
|
|
background: rgba(0,0,0,0.12);
|
|
border-radius: 10px;
|
|
}
|
|
|
|
/* Preview Card in Editor */
|
|
.preview-announcement {
|
|
background: #fff;
|
|
border-radius: 16px;
|
|
box-shadow: 0 2px 12px rgba(0,0,0,0.06);
|
|
overflow: hidden;
|
|
}
|
|
|
|
.preview-header {
|
|
padding: 24px 24px 16px;
|
|
background: linear-gradient(to bottom, #fff, #fafafa);
|
|
border-bottom: 1px solid rgba(0,0,0,0.05);
|
|
}
|
|
|
|
.preview-title {
|
|
font-size: 22px;
|
|
font-weight: 700;
|
|
margin-bottom: 12px;
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.preview-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.preview-body {
|
|
padding: 20px 24px 24px;
|
|
}
|
|
|
|
.preview-body .detail-content p {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.preview-intro-text {
|
|
font-size: 15px;
|
|
line-height: 1.6;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 16px;
|
|
font-style: italic;
|
|
}
|
|
|
|
/* Editor Form */
|
|
.editor-form {
|
|
flex: 0 0 55%;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
.editor-form-scroll {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 24px 28px 40px;
|
|
}
|
|
|
|
.form-group {
|
|
margin-bottom: 22px;
|
|
}
|
|
|
|
.form-group > label {
|
|
display: block;
|
|
font-size: 12px;
|
|
font-weight: 700;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 8px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.4px;
|
|
}
|
|
|
|
.form-group input[type="text"],
|
|
.form-group input[type="date"],
|
|
.form-group textarea {
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border: 1.5px solid rgba(0,0,0,0.1);
|
|
border-radius: 12px;
|
|
font-size: 14px;
|
|
font-family: inherit;
|
|
background-color: #f9f9fa;
|
|
transition: all 0.2s ease;
|
|
color: var(--text-primary);
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.form-group input:focus,
|
|
.form-group textarea:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
background-color: #fff;
|
|
box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
|
|
}
|
|
|
|
.form-group textarea {
|
|
resize: vertical;
|
|
min-height: 60px;
|
|
}
|
|
|
|
.form-row {
|
|
display: flex;
|
|
gap: 14px;
|
|
}
|
|
|
|
.form-row .form-group {
|
|
flex: 1;
|
|
}
|
|
|
|
/* Custom Select */
|
|
.custom-select {
|
|
position: relative;
|
|
width: 100%;
|
|
user-select: none;
|
|
font-size: 14px;
|
|
}
|
|
|
|
.custom-select-trigger {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
padding: 12px 16px;
|
|
border: 1.5px solid rgba(0,0,0,0.1);
|
|
border-radius: 12px;
|
|
background-color: #f9f9fa;
|
|
color: var(--text-primary);
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.custom-select-trigger i {
|
|
color: var(--text-secondary);
|
|
font-size: 12px;
|
|
transition: transform 0.3s ease;
|
|
}
|
|
|
|
.custom-select:hover .custom-select-trigger {
|
|
background-color: #fff;
|
|
border-color: rgba(0,0,0,0.2);
|
|
}
|
|
|
|
.custom-select.open .custom-select-trigger {
|
|
border-color: var(--accent-color);
|
|
background-color: #fff;
|
|
box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
|
|
}
|
|
|
|
.custom-select.open .custom-select-trigger i {
|
|
transform: rotate(180deg);
|
|
}
|
|
|
|
.custom-select-options {
|
|
position: absolute;
|
|
top: calc(100% + 8px);
|
|
left: 0;
|
|
right: 0;
|
|
background: #fff;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 40px rgba(0,0,0,0.15);
|
|
border: 1px solid rgba(0,0,0,0.08);
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transform: translateY(-10px);
|
|
transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
|
|
z-index: 100;
|
|
padding: 8px;
|
|
}
|
|
|
|
.custom-select.open .custom-select-options {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.custom-option {
|
|
padding: 10px 14px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: background 0.2s, color 0.2s;
|
|
color: var(--text-primary);
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.custom-option:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.custom-option:hover {
|
|
background: #f5f5f7;
|
|
}
|
|
|
|
.custom-option.selected {
|
|
background: #e0f2fe;
|
|
color: #0369a1;
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Sortable Items */
|
|
.sortable-list {
|
|
min-height: 8px;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.sortable-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
gap: 10px;
|
|
padding: 10px 12px;
|
|
margin-bottom: 8px;
|
|
background: #fff;
|
|
border: 1.5px solid rgba(0,0,0,0.08);
|
|
border-radius: 12px;
|
|
transition: box-shadow 0.2s, border-color 0.2s, opacity 0.2s;
|
|
}
|
|
|
|
.sortable-item:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.sortable-item:hover {
|
|
border-color: rgba(0,0,0,0.15);
|
|
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
|
|
}
|
|
|
|
.sortable-item.dragging {
|
|
opacity: 0.4;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.sortable-item.drag-over {
|
|
border-color: var(--accent-color);
|
|
box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.15);
|
|
}
|
|
|
|
.drag-handle {
|
|
cursor: grab;
|
|
color: var(--text-secondary);
|
|
padding: 6px 2px;
|
|
font-size: 14px;
|
|
opacity: 0.35;
|
|
transition: 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.drag-handle:active {
|
|
cursor: grabbing;
|
|
}
|
|
|
|
.sortable-item:hover .drag-handle {
|
|
opacity: 0.7;
|
|
}
|
|
|
|
.item-type-badge {
|
|
font-size: 10px;
|
|
font-weight: 700;
|
|
padding: 3px 8px;
|
|
border-radius: 6px;
|
|
white-space: nowrap;
|
|
flex-shrink: 0;
|
|
margin-top: 6px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.badge-text {
|
|
background: #e8f5e9;
|
|
color: #2e7d32;
|
|
}
|
|
|
|
.badge-image {
|
|
background: #e3f2fd;
|
|
color: #1565c0;
|
|
}
|
|
|
|
.badge-video {
|
|
background: #fce4ec;
|
|
color: #c62828;
|
|
}
|
|
|
|
.sortable-item .item-content {
|
|
flex: 1;
|
|
border: 1px solid rgba(0,0,0,0.06) !important;
|
|
border-radius: 8px !important;
|
|
padding: 8px 10px !important;
|
|
font-size: 13px !important;
|
|
background: #fafafa !important;
|
|
min-height: unset;
|
|
font-family: inherit;
|
|
resize: vertical;
|
|
}
|
|
|
|
.sortable-item .item-content:focus {
|
|
border-color: var(--accent-color) !important;
|
|
background: #fff !important;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.remove-item-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #ccc;
|
|
cursor: pointer;
|
|
padding: 6px;
|
|
border-radius: 8px;
|
|
transition: 0.2s;
|
|
flex-shrink: 0;
|
|
margin-top: 3px;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.remove-item-btn:hover {
|
|
color: #ef4444;
|
|
background: #fef2f2;
|
|
}
|
|
|
|
.add-item-row {
|
|
display: flex;
|
|
gap: 8px;
|
|
}
|
|
|
|
.add-item-btn {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 8px 14px;
|
|
background: #f5f5f7;
|
|
border: 1.5px dashed rgba(0,0,0,0.12);
|
|
border-radius: 10px;
|
|
font-size: 12px;
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.add-item-btn:hover {
|
|
border-color: var(--accent-color);
|
|
color: var(--accent-color);
|
|
background: #f0f7ff;
|
|
}
|
|
|
|
/* Editor Actions */
|
|
.editor-actions {
|
|
margin-top: 28px;
|
|
padding-top: 20px;
|
|
border-top: 1px solid rgba(0,0,0,0.08);
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.btn-save-announcement {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 12px 28px;
|
|
background: var(--brand-green);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 14px;
|
|
font-size: 15px;
|
|
font-weight: 700;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
}
|
|
|
|
.btn-save-announcement:hover {
|
|
background: #2db84d;
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
|
|
}
|
|
|
|
/* JSON Output Modal */
|
|
.json-output-content {
|
|
background-color: #fff;
|
|
margin: 60px auto;
|
|
border-radius: var(--radius-large);
|
|
max-width: 640px;
|
|
width: 90%;
|
|
padding: 36px;
|
|
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
|
|
position: relative;
|
|
}
|
|
|
|
.json-output-content h3 {
|
|
font-size: 20px;
|
|
font-weight: 700;
|
|
margin-bottom: 8px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
}
|
|
|
|
.json-output-hint {
|
|
font-size: 14px;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 20px;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
#json-output {
|
|
width: 100%;
|
|
height: 300px;
|
|
padding: 16px;
|
|
border: 1.5px solid rgba(0,0,0,0.1);
|
|
border-radius: 12px;
|
|
font-family: 'Courier New', Courier, monospace;
|
|
font-size: 12px;
|
|
background: #f5f5f7;
|
|
color: var(--text-primary);
|
|
resize: vertical;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
#json-output:focus {
|
|
outline: none;
|
|
border-color: var(--accent-color);
|
|
}
|
|
|
|
.btn-copy-json {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 10px 24px;
|
|
background: var(--accent-color);
|
|
color: #fff;
|
|
border: none;
|
|
border-radius: 12px;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: var(--transition);
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.btn-copy-json:hover {
|
|
background: #005bb5;
|
|
}
|
|
|
|
/* ========== Responsive ========== */
|
|
@media (max-width: 900px) {
|
|
.editor-modal-content {
|
|
margin: 0;
|
|
width: 100%;
|
|
max-width: 100%;
|
|
max-height: 100%;
|
|
height: 100%;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.editor-layout {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.editor-preview {
|
|
flex: none;
|
|
max-height: 35vh;
|
|
border-right: none;
|
|
border-bottom: 1px solid rgba(0,0,0,0.08);
|
|
}
|
|
|
|
.editor-form {
|
|
flex: 1;
|
|
min-height: 0;
|
|
}
|
|
|
|
.form-row {
|
|
flex-direction: column;
|
|
gap: 0;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.announcements-container {
|
|
padding: 24px 16px;
|
|
}
|
|
|
|
.controls-header-row {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.search-box {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.title-with-action {
|
|
flex-wrap: wrap;
|
|
gap: 10px;
|
|
}
|
|
|
|
.timeline {
|
|
padding-left: 24px;
|
|
}
|
|
|
|
.timeline-item::before {
|
|
left: -24px;
|
|
width: 12px;
|
|
height: 12px;
|
|
top: 26px;
|
|
}
|
|
|
|
.card-summary {
|
|
padding: 18px 20px;
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: 8px;
|
|
}
|
|
|
|
.card-summary-time {
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.announcement-card.expanded .card-detail {
|
|
padding: 20px;
|
|
}
|
|
|
|
.json-output-content {
|
|
margin: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
max-height: 100%;
|
|
border-radius: 0;
|
|
}
|
|
|
|
.editor-modal-header {
|
|
padding: 16px 20px;
|
|
}
|
|
|
|
.editor-form-scroll {
|
|
padding: 20px;
|
|
}
|
|
|
|
.filter-label {
|
|
min-width: auto;
|
|
margin-bottom: 4px;
|
|
}
|
|
}
|