Open pkra opened 12 months ago
I think the most interesting part here will be to determine the HTML. For example in #6 I started inlining proof labels in the first paragraph. We could do that and then set display:block for the web. Or we could do statement-label+p { display:inline}
to get a print-like look from the current html.
Ah, I was playing around with the HTML content and then https://github.com/scoskey/m522/blob/master/notes.tex in real luatex. I had started with article, made me reconsider styles - only to realize the TeX source is using amsbook - which is very different.
Or we could do statement-label+p { display:inline} to get a print-like look from the current html.
I'm leaning towards this. I'd prefer to think of print as secondary - and we could still do some pre-print processing (https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeprint_event) should we choose to
In particular, let's revert that part from #6.
I'm thinking that the web design version should be unnecessarily flashy -- full-width theorems, flashy backgrounds, scroll effects, the works.
And print css should go for some boring-looking CM layout.
I finally made some progress on the web-focused design. It isn't as flashy as I'd hoped but at least it's something.
I need to clean things up and then I can go back to more technical things. (Oh, so many things).
@scoskey I pushed a lot of changes, including what I showed you today - and further adjustments to that.
Ugh. I was looking into why the counter for section headings wasn't working. Turns out display: contents prevents counters from incremementing, too.
Easy fix: we increment on the heading.
I think both headings in vertical is overkill. Let's keep section headings horizontal.
Lots more little tweaks for the web design.
There's something funky going on in Ch 3. Something is preventing shrinkwrapping. I thought it was the codepen and table but removing those temporarily didn't change anything. Needs more investigating.
Incoming tweak: on <1100px switch to single columns design.
Without JS magic to detect 'stuck" position sticky, I'm opting to only make section heading sticky on small screens.
There's something funky going on in Ch 3. Something is preventing shrinkwrapping. I thought it was the codepen and table but removing those temporarily didn't change anything. Needs more investigating.
Oh, it's just lack of hyphenation.
I think I'd like to do a dual design - web and print - to see how far we can take a "single source" approach.