Files
marcus-web/static/css/mastodon-comments.css

214 lines
3.5 KiB
CSS

/**
* Mastodon Comments Stylesheet
*
* Teletype / Fax Machine / I Saw the TV Glow aesthetic
* Works with various Hugo themes
*/
.mastodon-comments-section {
margin-top: 3rem;
padding-top: 2rem;
border-top: 2px dashed #888;
font-family: 'Courier New', Courier, monospace;
}
.comments-header {
margin: 0 0 1.5rem 0;
padding: 0;
font-size: 0.85rem;
color: #888;
background: none;
border: none;
white-space: pre;
overflow-x: auto;
}
.comments-intro {
font-size: 0.9rem;
margin-bottom: 1.5rem;
letter-spacing: 0.05em;
}
.comments-intro a {
text-decoration: underline;
}
.comments-note {
margin-top: 1rem;
color: #666;
font-size: 0.8rem;
}
#mastodon-comments-list {
min-height: 50px;
}
#load-comments-btn {
font-family: 'Courier New', Courier, monospace;
font-size: 1rem;
padding: 0.75rem 1.5rem;
background: transparent;
border: 2px solid currentColor;
cursor: pointer;
letter-spacing: 0.1em;
transition: all 0.2s ease;
}
#load-comments-btn:hover {
background: #333;
color: #fff;
}
.loading,
.no-comments,
.comments-received,
.comments-error {
padding: 1rem;
margin: 1rem 0;
background: #f5f5f5;
border-left: 4px solid #888;
font-size: 0.85rem;
white-space: pre-wrap;
}
.comments-error {
border-left-color: #c00;
color: #900;
}
.comments-received {
border-left-color: #080;
color: #060;
}
/* Individual comment styling */
.mastodon-comment {
margin: 1.5rem 0;
padding: 1rem;
background: #fafafa;
border: 1px solid #ddd;
}
.mastodon-comment .comment-header pre {
margin: 0 0 0.75rem 0;
padding: 0;
font-size: 0.75rem;
color: #666;
background: none;
border: none;
white-space: pre;
}
.mastodon-comment .comment-author {
display: flex;
align-items: center;
gap: 0.75rem;
margin-bottom: 0.75rem;
}
.mastodon-comment .avatar {
width: 48px;
height: 48px;
border-radius: 4px;
border: 1px solid #ccc;
}
.mastodon-comment .author-info {
display: flex;
flex-direction: column;
}
.mastodon-comment .display-name {
font-weight: bold;
text-decoration: none;
}
.mastodon-comment .display-name:hover {
text-decoration: underline;
}
.mastodon-comment .handle {
font-size: 0.8rem;
color: #666;
}
.mastodon-comment .emoji {
height: 18px;
width: 18px;
vertical-align: middle;
}
.mastodon-comment .comment-content {
margin: 1rem 0;
line-height: 1.5;
}
.mastodon-comment .comment-content p {
margin: 0.5rem 0;
}
.mastodon-comment .comment-content a {
word-break: break-all;
}
.mastodon-comment .comment-attachments {
margin: 1rem 0;
}
.mastodon-comment .comment-attachments img,
.mastodon-comment .comment-attachments video {
max-width: 100%;
max-height: 300px;
border: 1px solid #ccc;
}
.mastodon-comment .comment-meta {
font-size: 0.8rem;
color: #666;
margin-top: 0.75rem;
padding-top: 0.5rem;
border-top: 1px dashed #ccc;
}
.mastodon-comment .comment-meta a {
text-decoration: none;
color: #666;
}
.mastodon-comment .comment-meta a:hover {
text-decoration: underline;
}
.mastodon-comment .replies {
color: #888;
}
/* Dark mode support */
@media (prefers-color-scheme: dark) {
.mastodon-comment {
background: #1a1a1a;
border-color: #444;
}
.mastodon-comment .comment-header pre {
color: #888;
}
.mastodon-comment .handle,
.mastodon-comment .comment-meta,
.mastodon-comment .comment-meta a {
color: #999;
}
.loading,
.no-comments,
.comments-received {
background: #222;
}
#load-comments-btn:hover {
background: #eee;
color: #000;
}
}