Mercurial > libervia-templates
view sat_templates/templates/bulma/static/forum.css @ 413:0190a0d32909 default tip
Forum: Major redesign of forums:
Forums have been redesigned. They follow the new general design with 2 or 3 panels,
allowing to have directly a forum if one is found/set up, and a panel on the left to
search/discover other ones.
Categories have been rewritten to be usable with pubsub relationships, a XEP-0277 type
node is used for topics, and each item has a comments node for the threads.
The thread view is set in `forum/show_messages.html` template. It has a header with a
search box and a button to (un)subscribe.
Items are displayed with the same macros as for the blog items.
Below a room is set for editor, tags and attachments.
rel 463
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 05 Sep 2025 21:54:09 +0200 |
parents | |
children |
line wrap: on
line source
#body { display: flex; flex-grow: 1; overflow: auto; } #forum_main_body { overflow-y: auto; } .topics-container { max-height: calc(100vh - 100px); overflow-y: auto; } .topic-item { border-radius: 8px; border: 1px solid #e8e8e8; transition: all 0.2s ease; box-shadow: 0 2px 4px rgba(10, 10, 10, 0.03); } .topic-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; transform: translateY(-1px); border-color: #3273dc; } .no-topics-message { border-radius: 12px; background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%); max-width: 500px; margin: 2rem auto 1rem !important; } .no-topics-message i.fa-comments { color: #3273dc; opacity: 0.7; } @media (max-width: 768px) { .topic-item { padding: 0.75rem !important; } .media-left { margin-right: 0.5rem !important; } .title.is-6 { font-size: 0.95rem !important; } .tags { flex-wrap: wrap; } } .transition-all { transition: all 0.25s ease; } .tags.has-addons .tag:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; background: rgba(235, 245, 255, 0.5); } [data-theme="dark"] .tags.has-addons .tag:first-child { background: rgba(0, 50, 100, 0.3); } .tags.has-addons .tag:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; } .new-message-section { border-top: 1px solid #dbdbdb; padding-top: 1.5rem; margin-top: 1.5rem; } [data-theme="dark"] .topic-item { background-color: #1a1a1a !important; border-color: #333333; } [data-theme="dark"] .no-topics-message { background: linear-gradient(135deg, #1a1d22 0%, #14171c 100%); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); } [data-theme="dark"] .no-topics-message i.fa-comments { color: #48c0ff; } [data-theme="dark"] .new-message-section { border-top: 1px solid #4a4a4a; } .extra-buttons { display: inline-block; vertical-align: middle; } /* Custom Quill toolbar buttons */ .extra-btn-tag, .extra-btn-attachment { background: none; border: none; cursor: pointer; padding: 4px 8px; border-radius: 3px; display: inline-block; } .extra-btn-tag:hover, .extra-btn-attachment:hover { background-color: #f0f0f0; } [data-theme="dark"] .extra-btn-tag:hover, [data-theme="dark"] .extra-btn-attachment:hover { background-color: #4a4a4a; } #message_editor.drag-over, #attachments-area.drag-over { border-color: #3273dc; background-color: rgba(50, 115, 220, 0.05); }