Emoji width

main
Bob Mottram 2022-04-18 23:34:43 +01:00
parent 35b8ba9ff2
commit 99bad0d733
2 changed files with 20 additions and 1 deletions

View File

@ -246,6 +246,12 @@ input[type=text] {
padding: 10px;
margin: 20px 30px;
}
figure img.common_emoji {
width: 5%;
}
figcaption {
font-size: var(--font-size);
}
}
@media screen and (max-width: 1000px) {
@ -293,6 +299,12 @@ input[type=text] {
padding: 20px;
margin: 30px 40px;
}
figure img.common_emoji {
width: 5%;
}
figcaption {
font-size: var(--font-size);
}
}
@media screen and (max-width: 480px) {
@ -343,4 +355,10 @@ input[type=text] {
padding: 20px;
margin: 30px 40px;
}
figure img.common_emoji {
width: 5%;
}
figcaption {
font-size: var(--font-size);
}
}

View File

@ -355,7 +355,8 @@ 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 src="/emoji/' + emoji_name + '.png" ' + \
'<figure><img class="common_emoji" ' + \
'src="/emoji/' + emoji_name + '.png" ' + \
'alt="" title="">' + \
'<figcaption>:' + emoji_name + ':</figcaption></figure>\n'
ctr += 1