feat(styles): add webmention styling

- introduce webmention.css for styling web mention elements
- create minified version webmention.min.css for optimized load times
This commit is contained in:
Jeremiah Russell 2025-02-11 06:47:10 +00:00
parent b930658f86
commit 426a50fa7f
No known key found for this signature in database
GPG key ID: E576B835ACE207E5
2 changed files with 87 additions and 0 deletions

86
static/webmention.css Normal file
View file

@ -0,0 +1,86 @@
#webmentions {
margin: 0;
position: relative;
z-index: 100;
line-height: 1.2em;
}
#webmentions .comments {
max-height: 20em;
overflow-x: hidden;
overflow-y: scroll;
font-size: 80%;
}
#webmentions h2 {
font-size: medium;
margin: 0;
padding: 2px;
/* background: #ccc; */
}
#webmentions .reacts img {
margin: 3px -1ex 1px 0;
display: inline;
}
#webmentions img.missing {
background: white;
border: dashed black 1px;
}
#webmentions ul {
list-style-type: none;
margin: 0;
padding: 4px;
}
#webmentions li {
text-indent: -1em;
padding-left: 1em;
}
#webmentions a.reaction {
position: relative;
text-decoration: none;
text-shadow: 0px 0px 3px white;
margin-right: 0;
letter-spacing: -1ex;
margin-right: 1ex;
}
#webmentions a.reaction img {
max-height: 1.3em;
display: inline;
/* padding-right: .5em; */
width: auto;
margin-right: -1ex;
border-radius: 25%;
}
#webmentions a.reaction sub {
font-size: 50%;
}
#webmentions .comments li {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
#webmentions .comments li .text {
color: #555;
font-style: italic;
text-decoration: none;
text-wrap: wrap;
padding-left: 0.5em;
}
#webmentions .comments li .name {
color: #111;
padding-left: 0.5em;
}
#webmentions .comments li .emoji {
display: none;
}

1
static/webmention.min.css vendored Normal file
View file

@ -0,0 +1 @@
#webmentions{margin:0;position:relative;z-index:100;line-height:1.2em}#webmentions .comments{max-height:20em;overflow-x:hidden;overflow-y:scroll;font-size:80%}#webmentions h2{font-size:medium;margin:0;padding:2px}#webmentions .reacts img{margin:3px -1ex 1px 0;display:inline}#webmentions img.missing{background:#fff;border:dashed #000 1px}#webmentions ul{list-style-type:none;margin:0;padding:4px}#webmentions li{text-indent:-1em;padding-left:1em}#webmentions a.reaction{position:relative;text-decoration:none;text-shadow:0 0 3px #fff;margin-right:0;letter-spacing:-1ex;margin-right:1ex}#webmentions a.reaction img{max-height:1.3em;display:inline;width:auto;margin-right:-1ex;border-radius:25%}#webmentions a.reaction sub{font-size:50%}#webmentions .comments li{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}#webmentions .comments li .text{color:#555;font-style:italic;text-decoration:none;text-wrap:wrap;padding-left:.5em}#webmentions .comments li .name{color:#111;padding-left:.5em}#webmentions .comments li .emoji{display:none}