-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update spacing to match 8-pt grid values shown in Figma #490
Comments
We don't know exactly how much there is on MobiMart to update over to 8-pt grid (it could be a lot). And MobiMart uses Sass, so it works differently from what we're used to in Benefits. A dev should go through and see how much there is to update. |
@allejo Any updates from your research? Do you have any proposed direction for a refactor, as well as level of effort? |
👆 RE: the SASS refactor |
Lots of Sass FilesThere are 23 Sass files in Sass VariablesMost of the Sass variables located in Heavy Use of NestingWe heavily use CSS nesting. It's not a deal breaker, but we will have to rewrite this as regular CSS. There's probably some automated way of flattening this without compiling it and not losing Sass syntax for other stuff that may need to be migrated differently. Media Query FunctionsWe heavily use Sass functions for handling breakpoints; 40 uses over 15 different files.
Unfortunately, there's no way for us to use CSS variables for media queries. We'd have to define the breakpoint widths repeatedly throughout the codebase. These functions extend beyond simple CSS rules that we'd be able to replace with Bootstrap's utility functions. Bootstrap doesn't have enough atomic CSS to do what we want. Tabulator Uses SassWe can only partially move away from Sass if we want to continue using Tabulator and customizing it. Tabulator does have version 6 released; however, their official styling customization API is via Sass variables. Unfortunately, it doesn't look like the project has any intentions of introducing support for CSS variables.
ProposalJekyll has Sass built-in, so there's no harm in continuing to use it solely for Tabulator; the rest of the Sass could be rewritten as CSS. |
This ticket is for updating the spacing in MobiMart so that it matches the 8-pt grid that design uses for their Figma screens.
Additional context
Originally posted by @segacy1 in #489 (comment)
The text was updated successfully, but these errors were encountered: