-
Notifications
You must be signed in to change notification settings - Fork 111
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
Add support for subscript/superscript #122
Comments
What exactly is it you want to do with the |
Yeah I'm clueless myself. Can you explain a bit further @rdsubhas? |
Looks like I'm using some other Reset other than Normalize. Let me try using Normalize to see if the sub/sup tags are rendered properly... |
Just checked it out, works fine with Normalize.css, but doesn't well with other CSS. Guess TypePlate works best when paired with Normalize... |
|
Sure - in fact here are the actual links: With Normalize: http://rdsubhas.github.io/railsgirls/chennai We are using Eric Meyer's Reset And well, I'm not really an expert in Typography, but I'd like TypePlate to consistently style the sub/superscripts irrespective of browser/reset being used, with the right offsets and smaller font size. I saw normalize does specific styling for sub/sup which looks good. |
Yes, the issue there is that the Reset resets everything, see:
That said, picking up the Normalize code for |
@rdsubhas @Melindrea If it does get included it needs a way to be turned on/off. |
@grayghostvisuals Yeah, the only real time it's necessary is if people are using some kind of full-on reset rather than leaving things be, or using Normalize. |
Thanks @grayghostvisuals guess I did get something good by raising this issue ;) So without Normalize the sub/sup tags don't work well, and the Table TD/TH stylings (in the Schedule section) are a bit odd. I can fix this on my side. If you think TypePlate doesn't play well with a full-on reset (e.g. sub/sup/th/td) - probably might be worth mentioning it somewhere in the site or wiki... |
Btw - I'd still like sub/sup tags in TypePlate, let's keep this issue open unless you plan otherwise... |
@Melindrea // Custom Vars
$superscript-boolean: false;
$subscript-boolean: false;
// Only set to true if you're using
// a reset that wipes out everything.
// If you use normalize leave as is.
$superscript-boolean: false !default;
$subscript-boolean: false !default;
@if $superscript-boolean == true {
sup {
font-size: 75%;
line-height: 0;
position: relative;
top: -0.5em
vertical-align: baseline;
}
}
@if $subscript-boolean == true {
sub {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
bottom: -0.25em;
}
} |
Yeah, that looks good to me. |
Add support for HTML
<sub>
and<sup>
tags, for subscript and superscript text. For example,September 30<sup>th</sup>
etc.
The text was updated successfully, but these errors were encountered: