Emoji position

main
Bob Mottram 2022-04-18 23:46:20 +01:00
parent 99bad0d733
commit 259c9cb364
2 changed files with 12 additions and 5 deletions

View File

@ -201,6 +201,10 @@ input[type=text] {
width: 15%; width: 15%;
} }
.container {
width: 100%;
}
@media screen and (min-width: 400px) { @media screen and (min-width: 400px) {
.hashtagswarm { .hashtagswarm {
font-size: var(--hashtag-size1); font-size: var(--hashtag-size1);
@ -246,8 +250,9 @@ input[type=text] {
padding: 10px; padding: 10px;
margin: 20px 30px; margin: 20px 30px;
} }
figure img.common_emoji { .container img {
width: 5%; width: 5%;
min-width: 5%;
} }
figcaption { figcaption {
font-size: var(--font-size); font-size: var(--font-size);
@ -299,8 +304,9 @@ input[type=text] {
padding: 20px; padding: 20px;
margin: 30px 40px; margin: 30px 40px;
} }
figure img.common_emoji { .container img {
width: 5%; width: 5%;
min-width: 5%;
} }
figcaption { figcaption {
font-size: var(--font-size); font-size: var(--font-size);
@ -355,8 +361,9 @@ input[type=text] {
padding: 20px; padding: 20px;
margin: 30px 40px; margin: 30px 40px;
} }
figure img.common_emoji { .container img {
width: 5%; width: 5%;
min-width: 5%;
} }
figcaption { figcaption {
font-size: var(--font-size); font-size: var(--font-size);

View File

@ -363,7 +363,7 @@ def _html_common_emoji(base_dir: str, no_of_emoji: int) -> str:
line_ctr += 1 line_ctr += 1
if html_str: if html_str:
html_str = \ html_str = \
'<div class="container">' + html_str + '</div>\n' '<center><div class="container">' + html_str + '</div></center>\n'
return html_str return html_str
@ -404,10 +404,10 @@ def html_search_emoji_text_entry(css_cache: {}, translate: {},
' <button type="submit" class="button" name="submitSearch">' + \ ' <button type="submit" class="button" name="submitSearch">' + \
translate['Submit'] + '</button>\n' translate['Submit'] + '</button>\n'
emoji_str += ' </form>\n' emoji_str += ' </form>\n'
emoji_str += _html_common_emoji(base_dir, 8)
emoji_str += ' </center>\n' emoji_str += ' </center>\n'
emoji_str += ' </div>\n' emoji_str += ' </div>\n'
emoji_str += '</div>\n' emoji_str += '</div>\n'
emoji_str += _html_common_emoji(base_dir, 8)
emoji_str += html_footer() emoji_str += html_footer()
return emoji_str return emoji_str