BCLibCoop / nnels-a11y-publishing

GNU Lesser General Public License v3.0
5 stars 0 forks source link

Clean up the CSS dramatically #3

Open zwettemaan opened 5 years ago

zwettemaan commented 5 years ago

This entry will have to be split up dramatically ;-) into bite-size action points...

LauraB7 commented 5 years ago

How about this: I will post two CSS file -- one raw from InDesign, and one cleaned-up from that raw file so that you can see the types of changes that would be great.

zwettemaan commented 5 years ago

That works for me! If you could also add some rough description (e.g.

) so I have a rough idea of the manual changes you've performed, that'd be great!

LauraB7 commented 5 years ago

InDesign exports a full set of values for every style -- paragraph, character, cell, table, object, etc. There needs to be a way to design the base body text values and then define everything else against that set of values. So, body is 12/15 pt Minion Pro with a text indent of 15pt and no margins. The italic character style would only define font-style: italic;. At present it renders four or five lines (style, weight, size, colour). And then a header would something like:

h1.ahead {
    font-family:"Century Old Style Std", serif;
    font-size:1.2em;
    line-height:1.2;
    margin:2em 0 1em 0;
    text-align:center;
    text-indent:0;
}
LauraB7 commented 5 years ago

Here are two CSS files from a fairly simple book. One is straight out of ID, the other has my fingerprints on it. CSS.zip

LauraB7 commented 5 years ago

Do you need anything else for this issue, @zwettemaan?