When using adminimal-custom.css, the location where the css file is generated is "sites/default/files/adminimal-custom.css". For hosting provider like pantheon, cannot commit to default/files directory. Is there any workaround for this if I would like to use pantheon?
| Comment | File | Size | Author |
|---|---|---|---|
| #14 | adminimal_theme-location_custom_css-2918010-14.patch | 2.99 KB | baikho |
| #10 | 2918010-13.patch | 1.52 KB | tonytheferg |
Issue fork adminimal_theme-2918010
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ivan berezhnov commentedComment #3
salvisI wish adminimal_theme would at least follow symlinks for finding adminimal-custom.css, so that it could be shared among multiple sites.
Comment #4
salvisComment #5
piridium commentedBump... I support this request for the 8.x branch, too. It would be best if you could specify your own path. But the solution proposed by salvis with a symlink would also be a great help.
Comment #6
loopy1492 commentedYeah, the same thing happens on Acquia Cloud. The file writes to the folder on build, but the file is totally empty. I wish there was a way to set a different file location for this custom css.
Comment #7
loopy1492 commentedComment #8
loopy1492 commentedI was forced to install https://www.drupal.org/project/asset_injector in order to get the css in there.
Comment #9
tonytheferg commented+1 for this. It would be nice to be able to configure the path.
Comment #10
tonytheferg commentedHere is a start. This patch won't work yet, as it just adds the form config.
Would still need to alter the path conditionally that's hardcoded in
adminimal_theme.libraries.yml.I think this could be accomplished with hook_library_info_alter()
Comment #11
jsricardo commentedI Will Work On
Comment #12
jsricardo commentedSorry
I haven't made any progress on this issue
I'll leave it to someone with more experience.
Comment #13
baikho commentedComment #14
baikho commentedAdding a patch we have been using on Acquia Cloud
Comment #15
kroh commentedFor what it's worth, I've placed the following in /sites/default/files/adminimal-custom.css:
@import "/themes/custom/my_theme/css/adminimal-custom.css";This allows me to commit my changes to source control, without having to muss about in the files directory.
Comment #16
tonytheferg commentedSo does the patch require you rebuild the file every time you make changes to the file? It seems it does.
If so it seems better to simply point to the directory and not require rebuilding the file.