-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Rewrote displays type variables to use them as a map #28453
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
Conversation
XhmikosR
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix the test failures.
Could you check now? I tried to just push the fixes to my own branch but the pull request would never get updated (I don't know if its a github bug or what)... so I pushed to my own fork master... according to github message "Add more commits by pushing to the master branch on afanjul/bootstrap." It's a bit complicated to just update a pull request... :( |
|
GitHub could have a slowness issue right now, but usually you just push to your branch. |
|
Hi @afanjul, I'm a bit afraid it's not clear what bootstrap/scss/_variables.scss Lines 306 to 309 in 3182990
I did a similar PR once, but closed it since I was a bit worried we're mixing up too many different "styles" of configuration: #26533. |
Another alternative (a worse one from my point of view) is simply split it in two maps: In _variables.scss The only "issue" is that you have to use the $index in for loop (and maintain a coherence in the maps): But the worst method, for me, is the actual one, with separate values/variables for size and weights. It's ugly and not extendible. |
|
Anyway, if you are using Sass as a "web developer", I'm assuming that you can read and interpret code, docs, comments in code, functions, etc. Either way, you will be using compiling bootstrap.css and just using de CSS |
|
For example, what if I want to add another "display-5" in the actual bootstrap version? |
Reading that thread again @MartijnCuppens, it looks like I punted on it for redoing bigger things in v5. I can't recall exactly what though, but perhaps it was related to your RFS work? |
Changed new map variable $displays to $display-types since $displays is already using for displays utility.
|
Now I think that the source code is complete and prettier... Using a map for $display-types, with key value explicit names. So now is pretty easy to modify or extend by the people... Just be aware of the new variable called $display-types for docs, and so... |
Conflicts: dist/css/bootstrap-grid.css.map dist/css/bootstrap-reboot.css.map dist/css/bootstrap-reboot.min.css.map dist/css/bootstrap.css.map dist/css/bootstrap.min.css.map site/docs/4.3/assets/css/docs.min.css.map
|
This needs a rebase + squash |
|
Replaced by #30568. |
Rewrited displays type variables to use them as a map so it would be easier to extend and modify.
Fixes #26515.