Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offer per-slide layout and deck-level defaults #21

Open
bollwyvl opened this issue Oct 22, 2022 · 0 comments
Open

Offer per-slide layout and deck-level defaults #21

bollwyvl opened this issue Oct 22, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@bollwyvl
Copy link
Contributor

bollwyvl commented Oct 22, 2022

Elevator Pitch

A notebook-based deck should be able to be customized and then overridden on a per-cell basis.

Motivation

  • CSS grid offers a lot of options for in-plane layout
  • even wilder things are possible without actually changing the ordering/nesting of the DOM elements
  • CSS variables can be overridden in style, including jupyterlab defaults like fine-grained font size choices, and would have very high specificity

Design Ideas

  • Allow a notebook to have juptyerlab-deck.slideStyle.
  • Allow slide and subslide cells to set jupyterlab-deck.slideStyle, overriding the style.
    • These would be applied to the .jp-Notebook's style, rather than the cell's.
    • These would be "sticky" until the next (sub)slide changes them, such as signaling a reversion to the default flexbox model.
  • Offer a number of pre-built patterns with wee icons, which can then be updated by e.g. settings, other (theme) extensions, or copy/pasted from metadata.
    • Specifically for grid, individual cells could override the template behavior with additional metadata in jupyterlab-deck.style, though this might create illogical navigation patterns and exciting failure modes when adding too many cells for a layout, but caveat emptor once you start messing with style directly.
  • Presumably Add foreground, background layers #15's position: fixed elements would not affect custom layouts.
@bollwyvl bollwyvl added the enhancement New feature or request label Oct 22, 2022
@bollwyvl bollwyvl changed the title Offer CSS grid layout Offer per-slide layout Oct 22, 2022
@bollwyvl bollwyvl changed the title Offer per-slide layout Offer per-slide layout and deck-level defaults Oct 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Blockers
Development

No branches or pull requests

1 participant