?
avatar SharkyKZ
SharkyKZ
17 Jul 2020

There is a currently unused override of minicolors (administrator/templates/atum/scss/vendor/minicolors/minicolors.scss). The file should be called jquery.minicolors, not minicolors. But if we make it usable, the styling breaks because of missing image file used by imported vendor's CSS file.

The build script would need to either copy the images to override directory or update the path.

Or we manually make CSS rule overrides but that's not a good long term solution, considering other vendor files could have the same issue.

avatar SharkyKZ SharkyKZ - open - 17 Jul 2020
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jul 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 17 Jul 2020
avatar SharkyKZ SharkyKZ - change - 17 Jul 2020
The description was changed
avatar SharkyKZ SharkyKZ - edited - 17 Jul 2020
avatar brianteeman
brianteeman - comment - 17 Jul 2020

To make it work is much easier than that

  1. remove the import from the override
    @import "../../../../../../node_modules/@claviska/jquery-minicolors/jquery.minicolors";

  2. add the override to the template.scss
    @import "vendor/minicolors/minicolors";

avatar dgrammatiko
dgrammatiko - comment - 17 Jul 2020

remove the import from the override

This is wrong, it destroys any caching advantages, eg the code will be always invalidated per template scss updates even if it didn't change. That's not how assets should be treated.

The build script would need to either copy the images to override directory or update the path.

There are 2 options:

  • add a resolver for the path in the scss (you can copy it from Bootstrap, etc)
  • Inline as base64 the image, which is better for perf
avatar SharkyKZ SharkyKZ - change - 25 Mar 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-03-25 17:42:50
Closed_By SharkyKZ
avatar SharkyKZ SharkyKZ - close - 25 Mar 2021

Add a Comment

Login with GitHub to post a comment