-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Migration to v1 is tough #3867
Comments
It's a fair criticism. The new system is supposed to leverage the flexibility of the HSL color format to easily customize your components. I think some component like the Menu or the Pagination could do without this sytem. I'll see what I can do. |
I've had a similar experience migrating my projects – it was managable, but coupled with the paradigm shift SASS namespacing forced on the styles quite complicated and error-prone. Regarding simplifying some component's colors: at least for me, that unfortunately wouldn't solve the underlying problem. A minimal change that could help: if the hsla-calculations were stored in sass-variables (or even just separate css-vars) they could be overriden as regular colors. |
This is about Bulma v1 and the needed migration - not a bug.
Overview of the problem
This is about the Bulma CSS framework
I'm using Bulma 1.0.2
My browser is: latest Chrome
I am sure this issue is not a duplicate
Description
This is how I modified Bulma to project requirements in 0.9.4:
Essentially I was just able to go into the sass file, e.g.
menu.sass
, see what variables are available, e.g.and go from there.
Now when trying to migrate to v1:
Obviously it doesn't work, as most of the variables are not there anymore.
So I go into
menu.scss
:How would I go about setting
$menu-item-active-color: #fff; $menu-item-active-background-color: transparent
?The
:hover
and:active
styles only override the background luminance delta.Do I need to go back to override like this?
I mean, the upper way (variant 1) would be easy enough, but feels somehow wrong. And there's a big chance to miss something.
The lower way (variant 2) is just really verbose and it doesn't look like everything's overridable. And there's the same chance to miss something.
The text was updated successfully, but these errors were encountered: