Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emoji is always displayed in a new line #24

Closed
adithyaselv opened this issue Sep 23, 2015 · 10 comments
Closed

Emoji is always displayed in a new line #24

adithyaselv opened this issue Sep 23, 2015 · 10 comments

Comments

@adithyaselv
Copy link

Emoji is always getting displayed in a new line 😢 and also i am not able print two emoticons consecutively.

@parkr
Copy link
Member

parkr commented Sep 23, 2015

Can you give exact example of each, including your markdown renderer and the context (page? Post? Etc)

@adithyaselv
Copy link
Author

I am using gaya theme and whenever i try to use an emoticon (in post as well as page),its getting printed in a new line. This theme uses kramdown as default.

@parkr
Copy link
Member

parkr commented Sep 23, 2015

This is a problem with the theme. It's applied display: block to all the images.

@parkr parkr closed this as completed Sep 23, 2015
@adithyaselv
Copy link
Author

Oh Thanks will try to find a way to fix that

@LoLei
Copy link

LoLei commented Sep 25, 2015

If you find a workaround please let me know.

My theme applies

img {
        display: block;
        margin: auto;
        width: 90%;
    }

to all images, including emojis, which makes them streched out over the page.

Would be ideal if one could create an exception to not apply that CSS to emojis or small images.

@parkr
Copy link
Member

parkr commented Sep 25, 2015

Would be ideal if one could create an exception to not apply that CSS to emojis or small images.

@LoLei That's not possible when you have a CSS directive on the tag name (img). This is not something we can fix – you must correct your CSS.

@LoLei
Copy link

LoLei commented Sep 25, 2015

Yes sorry, I wasn't implying you should implement that, I'm just saying it would be nice for it to work like that.

@DanBennettUK
Copy link

img.emoji {
display: inline;
}

Just add that to the scss of the theme.

(Apologies for bringing up old issue - just helping if anyone comes here from googling like I did!)

@connorjan
Copy link

I added the following to my css to get the results I wanted:

img.emoji {
    display: inline;
    height: 1em;
    width: 1em;
    margin-bottom: 0.25em;
}

Hope this helps someone 😄

@marcin-chwedczuk
Copy link

This works with Jasper theme:

img.emoji {
    display: inline-block;
    left: 0;
    transform: none;
    width: 20px;
    height: 20px;
    vertical-align: text-top;
    padding: 0;
    margin: 0;
}

@jekyll jekyll locked and limited conversation to collaborators Apr 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants