Code Monkey home page Code Monkey logo

Comments (3)

jjallaire avatar jjallaire commented on August 19, 2024

To do this you need to use CSS grid (you can provide a custom stylesheet via the css YAML option). Here is where we establish the layout for 1000 pixels and higher (actually, there is another layout for > 1280 pixels which you'd potentially also need to tweak):

https://github.com/radixpub/radix-r/blob/master/inst/rmarkdown/templates/radix_article/resources/distill.html#L149-L176

There are 2 reasons that the center column is narrow:

  1. Ergonomics of reading are much better with a narrow column (one of the reasons that newspapers use narrow columns). See also medium.com layout upon which Radix was to some extent based: https://medium.freecodecamp.org/how-to-write-bulletproof-code-in-go-a-workflow-for-servers-that-cant-fail-10a14a765f22

  2. To leave some room in the margin for asides and figures.

from distill.

saptarshiguha avatar saptarshiguha commented on August 19, 2024

I agree a narrow column is more readable than a wide one, but i would like mine to fit in a few extra (maybe 3-4) words at convenient font size.

thanks much for the pointers

from distill.

jjallaire avatar jjallaire commented on August 19, 2024

It's certainly possible that our default width isn't ideal. Let me know what you come up with and we can either evaluate changing our default or providing a top-level option for another layout variation. As I said there is another layout that comes into play at >= 1180px but this CSS wasn't currently visible. I've added it explicitly so that you can play with that as well:

https://github.com/radixpub/radix-r/blob/master/inst/rmarkdown/templates/radix_article/resources/distill.html#L178-L198

from distill.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.