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

Column Layout #11

Open
2 tasks
bennyboer opened this issue May 24, 2023 · 0 comments
Open
2 tasks

Column Layout #11

bennyboer opened this issue May 24, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request planned style

Comments

@bennyboer
Copy link
Owner

bennyboer commented May 24, 2023

New stylesheet property that is probably applied to section elements:

section.column-layout {
  layout: columns(2); // For 2 columns
}

The default value for layout is default - which means laying out blocks vertically one after another.

grafik

To-Do

  • New style property layout with possible values default or columns(2) where the argument is the number of columns
  • Implement LayoutRule that will be asked within LayoutContext.choose_next_bounds about what bounds to use next. The rule will keep track of the current column we're in. The LayoutRules are saved to a stack and applied from top to bottom. At the very bottom we find the default rule that will just push a new page - as is the current behavior.
@bennyboer bennyboer added enhancement New feature or request style planned labels May 24, 2023
@bennyboer bennyboer self-assigned this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request planned style
Projects
None yet
Development

No branches or pull requests

1 participant