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

[#14] Support fluid sizing with mfs function #40

Merged
merged 3 commits into from
Dec 11, 2024

Conversation

dmtrshat
Copy link
Member

Overview

This PR introduces the new mfs (Make Fluid Size) function, expanding Grimoire’s capabilities for generating adaptive styles without relying on media queries.

Key Features of mfs:

  • Fluid Size Generation: Automatically computes an expression based on minimum size, maximum size, and viewport widths.
  • Simplified Responsive Design: Eliminates the need for media queries in scenarios where fluid sizing suffices.
  • Flexible Usage: Compatible with the existing Grimoire configuration and can be applied to any CSS property.

Additional Improvements

  • Refactored handle_grimoire_functions to better support mfs and future Grimoire functions.
  • Enhanced modularity for easier extension and maintainability.

Closes #14

@dmtrshat dmtrshat self-assigned this Dec 11, 2024
@dmtrshat dmtrshat linked an issue Dec 11, 2024 that may be closed by this pull request
@dmtrshat dmtrshat added the enhancement New feature or request label Dec 11, 2024
@dmtrshat dmtrshat merged commit 378b8a4 into rc/1.2.0 Dec 11, 2024
1 check passed
@dmtrshat dmtrshat deleted the feature/#14_support_fluid_sizes_(mfs_function) branch December 11, 2024 14:30
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: Ready
Development

Successfully merging this pull request may close these issues.

Support Fluid Sizes (mfs Function)
1 participant