edwardtufte / tufte-css

Style your webpage like Edward Tufte’s handouts.
https://edwardtufte.github.io/tufte-css/
MIT License
5.98k stars 458 forks source link

Add unused classes to documentation #158

Closed fulldecent closed 4 years ago

fulldecent commented 4 years ago

I understand that https://edwardtufte.github.io/tufte-css/# is to be a self-explanatory documentation/expose of the CSS classes.

Please add documentation for these classes:

.numeral

.danger

daveliepmann commented 4 years ago

This issue would be better as a PR.

fulldecent commented 4 years ago

Are you saying a PR that fixes this might be accepted?

daveliepmann commented 4 years ago

Are you saying a PR that fixes this might be accepted?

Precisely. I think it belongs in the "Text" section. We'll have to agree on wording.

The reason they're not documented is that they're not ideally implemented: danger should probably be deprecated, and numeral is a valid tool but was named poorly.

fulldecent commented 4 years ago

I am reviewing how numeral works. All I see is that numbers are lower. It's not clear in which circumstance those numbers should be used.

Screen Shot 2020-07-29 at 22 33 05

I have also look at the glyphs for hints. I know that some fonts use the same widths for all digits, so that they can be aligned in tables. But the from et-book-roman-old-style from numeral does not have that feature.


egrep 'unicode="[0-9]"' **/*.svg | sed -e 's/ d="[^"]*"//'
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="0" />
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="1" />
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="2" />
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="3" />
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="4" />
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="5" />
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="6" />
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="7" />
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="8" horiz-adv-x="999" />
et-book/et-book-bold-line-figures/et-book-bold-line-figures.svg:<glyph unicode="9" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="0" horiz-adv-x="884" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="1" horiz-adv-x="778" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="2" horiz-adv-x="847" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="3" horiz-adv-x="874" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="4" horiz-adv-x="917" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="5" horiz-adv-x="884" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="6" horiz-adv-x="948" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="7" horiz-adv-x="837" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="8" horiz-adv-x="948" />
et-book/et-book-display-italic-old-style-figures/et-book-display-italic-old-style-figures.svg:<glyph unicode="9" horiz-adv-x="1011" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="0" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="1" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="2" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="3" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="4" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="5" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="6" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="7" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="8" horiz-adv-x="950" />
et-book/et-book-roman-line-figures/et-book-roman-line-figures.svg:<glyph unicode="9" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="0" horiz-adv-x="1001" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="1" horiz-adv-x="790" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="2" horiz-adv-x="1001" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="3" horiz-adv-x="892" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="4" horiz-adv-x="1001" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="5" horiz-adv-x="919" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="6" horiz-adv-x="1028" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="7" horiz-adv-x="1001" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="8" horiz-adv-x="950" />
et-book/et-book-roman-old-style-figures/et-book-roman-old-style-figures.svg:<glyph unicode="9" horiz-adv-x="1044" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="0" horiz-adv-x="1001" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="1" horiz-adv-x="794" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="2" horiz-adv-x="985" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="3" horiz-adv-x="833" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="4" horiz-adv-x="1001" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="5" horiz-adv-x="894" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="6" horiz-adv-x="1030" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="7" horiz-adv-x="1001" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="8" horiz-adv-x="950" />
et-book/et-book-semi-bold-old-style-figures/et-book-semi-bold-old-style-figures.svg:<glyph unicode="9" horiz-adv-x="1001" />