seankross / postcards

💌 Create simple, beautiful personal websites and landing pages using only R Markdown.
Other
534 stars 78 forks source link

Make left column sticky in trestles #24

Closed jtleek closed 3 years ago

jtleek commented 3 years ago

https://github.com/seankross/postcards/blob/4510004424d8610d7d45c74fc2cc3fc8d4338348/inst/pandoc_templates/trestles.html#L37

If you change the above line to:

<div class="d-flex flex-col col-5 align-self-baseline sticky-top min-vh-100 border-right text-center"> It looks like you get a sticky left column - which is nice if you have more extensive text on the right.

Untitled_ Dec 28, 2020 9_41 AM

I'm probably going to use this on my site, not sure if you want to include it in the trestles template. I can send a PR if you want to.

seankross commented 3 years ago

Do you like this split page or would you prefer just one column?

On Mon, Dec 28, 2020 at 6:45 AM Jeff L. notifications@github.com wrote:

https://github.com/seankross/postcards/blob/4510004424d8610d7d45c74fc2cc3fc8d4338348/inst/pandoc_templates/trestles.html#L37

If you change the above line to:

It looks like you get a sticky left column - which is nice if you have more extensive text on the right.

[image: Untitled_ Dec 28, 2020 9_41 AM] https://user-images.githubusercontent.com/1571674/103221649-1e716c00-48f1-11eb-90f4-7ced21e2331c.gif

I'm probably going to use this on my site, not sure if you want to include it in the trestles template. I can send a PR if you want to.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/seankross/postcards/issues/24, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4JJKVITHFL3GEGEOYGZLSXCKXJANCNFSM4VMDN2XA .

jtleek commented 3 years ago

I like it how it is actually. I have it set up on my site: http://jtleek.com/

seankross commented 3 years ago

Jeff how did you make this gif?

seankross commented 3 years ago

Hey @jtleek try installing remotes::install_github("seankross/postcards#27") and let me know if that works better for you. (See #27)