edwardtufte / tufte-css

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

fullwidth code #80

Closed meditans closed 8 years ago

meditans commented 8 years ago

Hi, I'd like sometimes to use all the horizontal space, like in the fullwidth class for images, when displaying code snippets. Is that possible?

Norgat commented 8 years ago

Yes. I modify css for it. Look at this commit in my fork:

https://github.com/Norgat/tufte-css/commit/7d32d2b68f15c8e6002045ec1c3a976ea3587024

Now I can add fullwidth class to pre.code. And I fix showing scrollbar in all cases in pre.code.

meditans commented 8 years ago

Hi @Norgat, that's exactly what I ended doing after my question, but then I returned at a lesser code width because I liked that version more. Now I'm thinking having a background gradient (when I'm using the full width), for added smoothness.

Thanks for your solution! :)