Emoji label

main
Bob Mottram 2022-04-19 10:23:49 +01:00
parent b89997bc45
commit 075e2b3b30
2 changed files with 16 additions and 24 deletions

View File

@ -216,6 +216,10 @@ input[type=text] {
margin: var(--hashtag-margin);
line-height: var(--hashtag-vertical-spacing1);
}
.hashtagswarm img {
width: 5%;
min-width: 5%;
}
.followText {
font-size: var(--follow-text-size1);
font-family: Arial, Helvetica, sans-serif;
@ -254,13 +258,6 @@ input[type=text] {
padding: 10px;
margin: 20px 30px;
}
.container img {
width: 5%;
min-width: 5%;
}
figcaption {
font-size: var(--font-size);
}
}
@media screen and (max-width: 1000px) {
@ -270,6 +267,10 @@ input[type=text] {
margin: var(--hashtag-margin);
line-height: var(--hashtag-vertical-spacing3);
}
.hashtagswarm img {
width: 5%;
min-width: 5%;
}
.followText {
font-size: var(--follow-text-size2);
font-family: Arial, Helvetica, sans-serif;
@ -308,13 +309,6 @@ input[type=text] {
padding: 20px;
margin: 30px 40px;
}
.container img {
width: 5%;
min-width: 5%;
}
figcaption {
font-size: var(--font-size);
}
}
@media screen and (max-width: 480px) {
@ -327,6 +321,10 @@ input[type=text] {
margin: var(--hashtag-margin);
line-height: var(--hashtag-vertical-spacing3);
}
.hashtagswarm img {
width: 5%;
min-width: 5%;
}
.followText {
font-size: var(--font-size2);
font-family: Arial, Helvetica, sans-serif;
@ -365,11 +363,4 @@ input[type=text] {
padding: 20px;
margin: 30px 40px;
}
.container img {
width: 5%;
min-width: 5%;
}
figcaption {
font-size: var(--font-size);
}
}

View File

@ -355,15 +355,16 @@ def _html_common_emoji(base_dir: str, no_of_emoji: int) -> str:
# NOTE: deliberately no alt text, so that without graphics only
# the emoji name shows
html_str += \
'<figure><img class="common_emoji" ' + \
'<label class="hashtagswarm"><img ' + \
'src="/emoji/' + emoji_name + '.png" ' + \
'alt="" title="">' + \
'<figcaption>:' + emoji_name + ':</figcaption></figure>\n'
':' + emoji_name + ':</label>\n'
ctr += 1
line_ctr += 1
if html_str:
html_str = \
'<center><div class="container">' + html_str + '</div></center>\n'
'<center><div class="container"><p>' + html_str + \
'</p></div></center>\n'
return html_str