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

Hanging punctuation? Where art thou? #80

Open
mrcasual opened this issue Mar 6, 2013 · 3 comments
Open

Hanging punctuation? Where art thou? #80

mrcasual opened this issue Mar 6, 2013 · 3 comments

Comments

@mrcasual
Copy link

mrcasual commented Mar 6, 2013

Is hanging punctuation in your future release plans?

P.S. You can look into mentioning and/or using https://github.com/Boldewyn/jQuery.exdent

@grayghostvisuals
Copy link
Contributor

hmm...interesting. Seems like another great candidate for unicode-range but might need an extra bit of markup to attach the styling too. It would be nice if we could position elements based on unicode-range FWIW.

\u201E

@font-face {
    font-family: '#{$extendt-fontface-name}';
    src: $extendt-fontface-source;
    unicode-range: U+201E;
}

@mixin extendt($extendt-val) {
    display: inline-block; // ? might be needed to manipulate positioning coordinates
    text-indent: $extendt-val; // this could also be a left margin instead of text-indent;
}

extendt

@caycefischer
Copy link
Member

Interesting! Hanging bullets/numbers/etc are easy, we'll definitely get that in there (I can't believe I forgot, actually!). Hanging quotes and the like, that's new to me. Very cool

@grayghostvisuals
Copy link
Contributor

So if anyone can give me a working example I'd love to see one. Currently for me I can only get it to indent the text. I think it will be very difficult to manipulate the unicode without using absolute positioning or reverting to pseudo element selectors. Also isn't a quote actually U+201C?

This is what I have been trying so far with no luck

<p>“Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p>

$extendt-fontface-name: HangingQuote;
$extendt-fontface-source: local('Georgia');

@font-face {
  font-family: '#{$extendt-fontface-name}';
  src: $extendt-fontface-source;
  unicode-range: U+201C;
}

@mixin extendt($extendt-val) {
  display: inline-block;
  text-indent: $extendt-val;
}

p {
  @include extendt(1.5em);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants