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?

Command icon 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

mightysooz created an issue. See original summary.

ivan berezhnov’s picture

Issue tags: +CSKyiv18
salvis’s picture

I wish adminimal_theme would at least follow symlinks for finding adminimal-custom.css, so that it could be shared among multiple sites.

salvis’s picture

Category: Support request » Feature request
piridium’s picture

Bump... 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.

loopy1492’s picture

Yeah, 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.

loopy1492’s picture

Version: 7.x-1.x-dev » 8.x-1.x-dev
loopy1492’s picture

I was forced to install https://www.drupal.org/project/asset_injector in order to get the css in there.

tonytheferg’s picture

+1 for this. It would be nice to be able to configure the path.

tonytheferg’s picture

Status: Active » Needs work
StatusFileSize
new1.52 KB

Here 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.

custom-styling:
  version: VERSION
  css:
    theme:
      public://adminimal-custom.css: {}

I think this could be accomplished with hook_library_info_alter()

jsricardo’s picture

Assigned: Unassigned » jsricardo

I Will Work On

jsricardo’s picture

Assigned: jsricardo » Unassigned

Sorry
I haven't made any progress on this issue
I'll leave it to someone with more experience.

baikho’s picture

baikho’s picture

Status: Needs work » Needs review
StatusFileSize
new2.99 KB

Adding a patch we have been using on Acquia Cloud

kroh’s picture

For 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.

tonytheferg’s picture

So 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.