Conversation
see screenshots for changes Beeds an expert to check this as its not really my area
|
Will test tomorrow. For the moment just a general remark. |
This reverts commit 400d79e.
|
@dgrammatiko |
| @@ -64,10 +64,6 @@ html[dir=rtl] .js-stools .chosen-container { | |||
| display: inline-block; | |||
| margin: 0 5px 5px 0; | |||
There was a problem hiding this comment.
This ltr margin one should also be deleted. Keep display: inline-block;
|
@infograf768 what exactly is broken? |
|
@dgrammatiko
It happens, as stated above, that in rtl, parts of the media/system/css/ searchtools.css is loaded after the template searchtools classes for some cases, creating the issue RTL The css in the template is created by the scss Which should override the searchtools.css as it has not specific direction In the searchtools.css in system we have and further The only solution I found was again to add a css in the system one using |
|
@infograf768 on my mobile, so not much I can do right now but I just saw that there is a |
|
@dgrammatiko The path I added is Also remains in joomla.asset.json this weird line The whole thing is too confusing for me. I also still don't understand the presence of 2 different css files for searchtools, i.e. as I guess |
|
hmm Also remains to solve the issue in rtl, i.e. decide what should exactly contain |
You don't have to do that! What I proposed should just override the default loaded css, which is the correct way. What you are doing right now is loading the module css and then overriding it in the monolithic template.css. That's not how you suppose to write css in 2020. Happy new year...
Just leave it as a separate file in the scss folder, remove the import from the template, and maybe add the override in the assets.JSON, you'll have to check how this new system works |
|
I am lost... |
Please do the PR. I am failing miserably, and it is not because I try to code in a pre-2020 way. It is because I mistake following your suggestions, or that I don't understand the details of them, or because something is wrong in your suggestions. |
|
@infograf768 well, it's a bit more complicated and I should have mentioned that #25775 and #27268 are prerequisites here as the asset manager in its current form is a bit broken for these kind of operations. Ask someone with merging rights to push those 2. Then my comments will suddenly make much more sense |
|
I do have merging rights but I don’t usually merge something I don’t understand. It is the case for these. |
|
if you need to drop/overide of use {
"name": "searchtools",
"dependencies": [
"core"
],
"js": [
"media/system/js/searchtools.min.js"
],
"css": []
},note |
I think this needs to point to the |
|
for path it equal for JHtml::_("stylesheet", "searchtools.min.css" .... ); |
All in |
|
At this time, we load for Atum both the blocks/searchtools.scss which goes into the template.css and therefore into template-rtl.css, AND media/system/css/searchtools.css I still have no idea what should be loaded and what should be or not overriden. We obviously can’t go on trying solving various display issues in rtl as well as ltr in the present situation. Please make a PR and tell us where we should add/delete/modify. |
so all styling for searchtools already done in the Atum template(-rtl).css ? upd:
I will try, a bit later |
Sorry, but this is WRONG! The template SHOULDN'T be bloated. Each part of the Joomla (form element, search tools, etc) has it's own css. We have to keep this modularity, packing a 1/2 MB css file is not good, but the worst part is that people copy what the core is doing and they blindly reproduce it in their sites. So, with that in mind, please keep things modular... |
|
yeah I know, |
It is easy to add rtl the way below in the blocks/scss/ files and not creating fully new cascading series which would make the template.css enormous. or template-rtl.css contains 257 lines of classes that would have to be overriden or just created in the various scss, mostly in _global.scss But this is not the main point here... and my question receives no answer.
|
I'm not the one designed or coded that thing so I cannot answer that. I think you should ping other people for that answer... |
|
yeah, the solution: or move all from searchtools.css to atum/css/searchtools.css or vice versa I tried here 4.0-dev...Fedik:searchtools-move-to-tmpl But it really better to do by someone who know the template. |
|
@Fedik that's a good starting point |
|
Will test tomorrow and try to modify the blind copy to something that makes sense by combining classes for ltr and rtl. |
|
@Fedik Note1: @brianteeman Note2: There will still be changes to do in toolbar, both for ltr and ltr, specially for mobile. Note3: It looks that some classes may not be of use anymore in the new scss, but hard to find out as they are also defined in the js. |
|
@infograf768 there it is #27416
they may be from j3, that almost not possible to find, |
|
See #27416 @brianteeman |
|
done as requested |
Co-Authored-By: Quy <quy@fluxbb.org>
|
Since #27416 was merged I guess also this one should follow the same path, eg place the scss in the right folder, remove the PS the file that this code is overriding is: |
|
@dgrammatiko |
|
Tks |
|
thanks |
* [4.0] Fix RTL toolbar and searchtools css see screenshots for changes Beeds an expert to check this as its not really my area * namespace * [4.0] Select dropdown RTL * Revert "[4.0] Select dropdown RTL" This reverts commit 400d79e. * revert * Update administrator/templates/atum/scss/blocks/_toolbar.scss Co-Authored-By: Quy <quy@fluxbb.org> * cs Co-authored-by: Quy <quy@fluxbb.org> Co-authored-by: infograf768 <infografjms@gmail.com>


see screenshots for changes
If we wait for an expert to fix it then it will never happen
Before
After