You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a huge fan of the simple rmarkdown websites: no heavy dependencies, no JS weirdness, just plain bootstrap and html.
But I can't help admiring the advanced design of radix, especially the full-width plots and tables.
Radix is great, but it also comes with too much dependencies and too little bootstrappy-flexibility for my taste.
Would there be any interest from the rmarkdown developers to "backport"/"reverse-engineer" some of the radix features (full-width plots) using plain bootstrap?
If so, I'd look into this, but wanted to ask first what a useful angle to contribute might be.
The text was updated successfully, but these errors were encountered:
If you are only looking for full-width elements, they can actually be quite simple with CSS, e.g. (note that this example requires Pandoc 2.x, which has been bundled in RStudio Preview)
---
title: "Full-width plots"
output: html_document
---
```{css, echo=FALSE}
.full-width img {
width: 100vw;
max-width: 100vw;
margin-left: calc(50% - 50vw);
}
```
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
::: full-width
```{r, fig.width=15}
par(mar = c(4.2, 4.2, .2, .2))
plot(cars)
```
:::
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
I have started to believe the CSS world for Markdown is often seriously bloated, and popular CSS frameworks are often like an overkill in my eyes... Next year I'll spend some time thinking about the possibility of a lightweight CSS framework for Markdown only.
I'm a huge fan of the simple rmarkdown websites: no heavy dependencies, no JS weirdness, just plain bootstrap and html.
But I can't help admiring the advanced design of radix, especially the full-width plots and tables.
Radix is great, but it also comes with too much dependencies and too little bootstrappy-flexibility for my taste.
Would there be any interest from the rmarkdown developers to "backport"/"reverse-engineer" some of the radix features (full-width plots) using plain bootstrap?
If so, I'd look into this, but wanted to ask first what a useful angle to contribute might be.
The text was updated successfully, but these errors were encountered: