-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Minor change in widgets.less to fix alignment issue #6681
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
|
I am always a little worried of the |
|
Yep, the important should be avoided, if it's overwritten by something else, then we can probably be more selective on the css rule by using explicitly |
|
I am aligning with other items which have the |
Agreed, it should be removed everywhere. |
|
Indeed, if there are !important, they slipped through in others PR. Envoyé de mon iPhone
|
|
There are a bunch of those in And a lot in I can remove those in widgets, and test for side effects... |
|
Yeesh. If you want to just leave this one as-is for symmetry for now, that would be fine, then. If you want to figure out how to clean it up in widgets as a whole, that's good too, though I suspect the widget ones are because of the outputarea ones, so that is probably not doable without dealing with the whole thing. |
|
Ok, I will look at it. We overload a lot of styling and we would probably benefit from a cleanup. |
|
IIRC there were one or two instances in the widgets where !important was required, because specificity couldn't be used to beat the library defaults. Admittedly I used it in more places than I should have. |
|
Ready to merge? |
|
👍 from me |
|
If we are going to let the clean up for another PR, I am OK to merge... but let's open an issue (better a PR 😜) to track the clean up later... |
|
Done - #6695 |
Minor change in widgets.less to fix alignment issue
|
@damianavila @jdfreder I will open the PR to remove the !important stuff tonight or tomorrow. it will probably incorporate the flexbox correction. (align-stretch instead of align-start for the widget-subarea, a min_width in em units for the slider readout and flex-grow:1 by default in widget-hslider). |
Minor change in widgets.less to fix alignment issue
When aligning certain widget in an hbox, you would get this

With this change:

@jdfreder