Files
gitlab-instance-0a899031_no…/app/community/components/community.module.css
2026-03-15 04:25:45 -05:00

602 lines
9.8 KiB
CSS

.memoForm,
.memoCard,
.commentPanel {
border: 1px solid color-mix(in srgb, var(--border) 72%, #f59e0b 28%);
border-radius: 24px;
background: color-mix(in srgb, var(--card) 88%, #fff7e6 12%);
box-shadow: 0 18px 42px rgba(15, 23, 42, 0.06);
}
.memoForm,
.commentPanel {
padding: 1.25rem;
}
.memoFormHeader {
display: flex;
flex-direction: column;
gap: 1rem;
margin-bottom: 1rem;
}
.memoFormEyebrow,
.commentEyebrow {
display: inline-flex;
padding: 0.28rem 0.6rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.72);
border: 1px solid rgba(180, 83, 9, 0.14);
color: #b45309;
font-size: 0.72rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.memoFormTitle,
.commentTitle {
margin: 0.8rem 0 0;
font-size: 1.3rem;
color: #231815;
}
.memoFormHint,
.commentHint,
.commentEmpty {
margin: 0.45rem 0 0;
color: var(--muted-foreground);
line-height: 1.65;
}
.memoQuickTopics {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.quickTopicBtn,
.tagBtn,
.tagChip,
.tagActive,
.pinBtn,
.pinBtnActive,
.deleteBtn,
.uploadBtn,
.submitBtn,
.emojiTrigger,
.loadMoreBtn,
.footerActionBtn,
.footerActionBtnActive,
.commentSubmit,
.commentDeleteBtn,
.detailLink {
border: none;
cursor: pointer;
transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.quickTopicBtn {
padding: 0.45rem 0.75rem;
border-radius: 999px;
background: rgba(255, 255, 255, 0.7);
color: #92400e;
font-size: 0.82rem;
}
.quickTopicBtn:hover,
.tagBtn:hover,
.tagChip:hover,
.emojiTrigger:hover,
.uploadBtn:hover,
.loadMoreBtn:hover,
.footerActionBtn:hover,
.detailLink:hover,
.commentSubmit:hover {
transform: translateY(-1px);
}
.textareaWrapper {
position: relative;
}
.textareaDropActive::after {
content: "";
position: absolute;
inset: 0;
border-radius: 18px;
border: 2px dashed rgba(245, 158, 11, 0.45);
pointer-events: none;
}
.memoTextarea,
.commentTextarea {
width: 100%;
border-radius: 18px;
border: 1px solid rgba(148, 163, 184, 0.18);
background: rgba(255, 255, 255, 0.88);
color: var(--foreground);
font-size: 0.97rem;
line-height: 1.75;
resize: vertical;
}
.memoTextarea {
min-height: 12rem;
padding: 1rem 1rem 1.1rem;
}
.commentTextarea {
min-height: 7rem;
padding: 0.9rem 0.95rem;
}
.memoTextarea:focus,
.commentTextarea:focus {
outline: none;
border-color: rgba(245, 158, 11, 0.52);
box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}
.dropOverlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
border-radius: 18px;
background: rgba(245, 158, 11, 0.1);
color: #b45309;
font-weight: 700;
}
.memoFormFooter,
.commentForm {
display: flex;
flex-direction: column;
gap: 0.9rem;
margin-top: 0.9rem;
}
.footerTop,
.commentFormFooter,
.memoFooter,
.memoFooterActions,
.memoFooterStats,
.commentHeader,
.commentMeta,
.commentActions {
display: flex;
align-items: center;
gap: 0.7rem;
}
.footerTop,
.memoFooter,
.commentFormFooter,
.commentHeader {
justify-content: space-between;
}
.charCountRow,
.formActions,
.memoActions,
.charCountActions {
display: flex;
align-items: center;
gap: 0.55rem;
}
.charCount,
.commentCount,
.commentTime,
.memoFooterMeta {
color: var(--muted-foreground);
font-size: 0.82rem;
}
.charCountActions {
position: relative;
}
.emojiPicker {
position: absolute;
right: 0;
bottom: calc(100% + 0.4rem);
z-index: 20;
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 0.25rem;
width: 15rem;
max-height: 12rem;
overflow-y: auto;
padding: 0.55rem;
border-radius: 16px;
border: 1px solid rgba(148, 163, 184, 0.18);
background: rgba(255, 255, 255, 0.92);
box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}
.emojiBtn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 2rem;
border: none;
border-radius: 10px;
background: transparent;
cursor: pointer;
}
.emojiBtn:hover {
background: rgba(245, 158, 11, 0.1);
}
.emojiTrigger,
.uploadBtn,
.detailLink,
.footerActionBtn,
.commentDeleteBtn {
padding: 0.52rem 0.85rem;
border-radius: 12px;
background: rgba(255, 255, 255, 0.76);
color: #5b4636;
text-decoration: none;
}
.submitBtn,
.loadMoreBtn,
.commentSubmit,
.footerActionBtnActive {
min-height: 2.8rem;
padding: 0.75rem 1.1rem;
border-radius: 14px;
background: linear-gradient(135deg, #f59e0b, #fb923c);
color: #fffaf2;
font-weight: 700;
box-shadow: 0 12px 28px rgba(245, 158, 11, 0.26);
}
.submitBtn:disabled,
.uploadBtn:disabled,
.emojiTrigger:disabled,
.loadMoreBtn:disabled,
.pinBtn:disabled,
.deleteBtn:disabled,
.footerActionBtn:disabled,
.footerActionBtnActive:disabled,
.commentSubmit:disabled,
.commentDeleteBtn:disabled {
opacity: 0.45;
cursor: not-allowed;
transform: none;
}
.hiddenInput {
position: absolute;
width: 0;
height: 0;
opacity: 0;
pointer-events: none;
}
.draftPreview,
.publishTip {
padding: 0.95rem 1rem;
border-radius: 18px;
background: rgba(255, 255, 255, 0.76);
border: 1px solid rgba(148, 163, 184, 0.14);
}
.draftLabel {
display: inline-flex;
margin-bottom: 0.6rem;
color: var(--muted-foreground);
font-size: 0.78rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.draftContent,
.memoContent,
.commentContent {
color: var(--foreground);
font-size: 0.95rem;
line-height: 1.75;
}
.memoContent img,
.draftContent img,
.commentContent img {
max-width: 100%;
border-radius: 18px;
margin: 0.7rem 0;
}
.memoContent p,
.draftContent p,
.commentContent p {
margin: 0 0 0.7rem;
}
.memoContent pre,
.memoContent code,
.draftContent pre,
.draftContent code,
.commentContent pre,
.commentContent code {
font-family: ui-monospace, monospace;
background: rgba(15, 23, 42, 0.06);
border-radius: 12px;
}
.memoContent pre,
.draftContent pre,
.commentContent pre {
padding: 0.9rem;
overflow-x: auto;
}
.memoContent code,
.draftContent code,
.commentContent code {
padding: 0.15rem 0.35rem;
}
.memoContent a,
.draftContent a,
.commentContent a {
color: #b45309;
text-decoration: none;
}
.memoContent a:hover,
.draftContent a:hover,
.commentContent a:hover {
text-decoration: underline;
}
.publishTip {
display: flex;
gap: 0.5rem;
color: var(--muted-foreground);
font-size: 0.88rem;
}
.memoCard {
display: flex;
flex-direction: column;
gap: 0.85rem;
padding: 1.1rem 1.15rem;
}
.memoHeader {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
}
.memoIdentity {
display: flex;
align-items: center;
gap: 0.75rem;
min-width: 0;
}
.memoAvatar {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 999px;
background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(251, 191, 36, 0.3));
color: #92400e;
font-weight: 700;
}
.memoIdentityText {
display: flex;
flex-direction: column;
gap: 0.18rem;
}
.commentMeta {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 0.18rem;
}
.memoAuthor,
.commentAuthor {
color: #231815;
font-weight: 700;
}
.memoHeaderSide {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.pinnedBadge,
.archivedBadge {
display: inline-flex;
align-items: center;
padding: 0.32rem 0.55rem;
border-radius: 999px;
font-size: 0.76rem;
font-weight: 700;
}
.pinnedBadge {
background: rgba(245, 158, 11, 0.14);
color: #b45309;
}
.archivedBadge {
background: rgba(148, 163, 184, 0.15);
color: #475569;
}
.memoActions {
flex-wrap: wrap;
}
.pinBtn,
.pinBtnActive,
.deleteBtn {
padding: 0.42rem 0.68rem;
border-radius: 12px;
background: rgba(255, 255, 255, 0.7);
color: #5b4636;
font-size: 0.82rem;
}
.pinBtnActive {
background: rgba(245, 158, 11, 0.14);
color: #b45309;
}
.deleteBtn,
.commentDeleteBtn {
color: #b91c1c;
}
.memoTags,
.tagFilter {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
}
.memoTags {
margin-top: -0.15rem;
}
.tagBtn,
.tagChip {
padding: 0.38rem 0.72rem;
border-radius: 999px;
background: rgba(245, 158, 11, 0.1);
color: #b45309;
font-size: 0.82rem;
}
.tagActive {
padding: 0.38rem 0.72rem;
border-radius: 999px;
background: linear-gradient(135deg, #f59e0b, #fb923c);
color: #fffaf2;
font-size: 0.82rem;
font-weight: 700;
}
.memoFooter {
margin-top: 0.2rem;
flex-wrap: wrap;
}
.memoFooterStats,
.memoFooterActions {
flex-wrap: wrap;
}
.timeline {
display: flex;
flex-direction: column;
gap: 0.95rem;
}
.timelineLoading,
.timelineError,
.timelineEmpty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
min-height: 10rem;
padding: 2rem 1rem;
text-align: center;
color: var(--muted-foreground);
}
.spinner {
width: 2rem;
height: 2rem;
border-radius: 999px;
border: 3px solid rgba(148, 163, 184, 0.3);
border-top-color: #f59e0b;
animation: communitySpin 0.9s linear infinite;
margin-bottom: 0.8rem;
}
.commentList {
display: flex;
flex-direction: column;
gap: 0.9rem;
margin-top: 1rem;
}
.commentItem {
padding: 0.95rem 1rem;
border-radius: 18px;
background: rgba(255, 255, 255, 0.76);
border: 1px solid rgba(148, 163, 184, 0.14);
}
.commentHeader {
margin-bottom: 0.55rem;
}
.commentMeta {
min-width: 0;
}
.commentActions {
justify-content: flex-end;
}
.commentStatus {
color: var(--muted-foreground);
font-size: 0.84rem;
}
@keyframes communitySpin {
to {
transform: rotate(360deg);
}
}
@media (max-width: 640px) {
.memoForm,
.memoCard,
.commentPanel {
border-radius: 20px;
}
.memoTextarea {
min-height: 10rem;
}
.memoHeader,
.memoFooter,
.footerTop,
.commentHeader,
.commentFormFooter {
flex-direction: column;
align-items: stretch;
}
.publishTip {
flex-direction: column;
}
.memoFooterActions {
width: 100%;
}
}