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

Get default width from css media queries #260

Open
RangerMauve opened this issue Feb 26, 2024 · 0 comments
Open

Get default width from css media queries #260

RangerMauve opened this issue Feb 26, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@RangerMauve
Copy link
Member

  • inside windows.js before we invoke .show
  • invoke js in the page that does the following:
  • list through all the stylesheets
    • find css rules for media query breakpoints
    • find css rules for max-width on the body or html
  • find the smallest referenced width that's less than whatever the default window width is
  • set the window width to that
  • then show
  • if no widths are found use the default
  • This shouldn't be done if the width is know from the constructor options
@RangerMauve RangerMauve added enhancement New feature or request good first issue Good for newcomers labels Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant