Hello,
I see every css libraries declared in the zircon.theme file are displayed like :
@import url("http://..../themes/zircon/css/responsive.css?...");
But actually on the Maintenance page, maintenance-page.css does'nt appear.
I tried to add it for the whole site by adding :
css/maintenance-page.css
in the zircon.theme file, cleared the cache but there was no effet.
I also tried to use a preprocess php file but it seems it does'nt work too.
Can you tell me how can i add the maitenance-page.css to the actual maintenance page ?
Thx.
Comment | File | Size | Author |
---|---|---|---|
#7 | 2651070-7.patch | 775 bytes | SandeepMahlawat |
#6 | Screenshot_16.png | 13.39 KB | Bmuskan |
#6 | Screenshot_15.png | 16.21 KB | Bmuskan |
#3 | maintenance_page_css_doesnt_appear-2651070-3.patch | 871 bytes | elakiyasamuel |
Issue fork zircon-2651070
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
khinxman CreditAttribution: khinxman as a volunteer commentedI was able to update the maintenance page css in html.css using the following example:
Comment #3
elakiyasamuel CreditAttribution: elakiyasamuel at Zyxware Technologies commented1. Create a library for maintenance css in libraries.yml
2. Use preprocess_maintenance_page hook to set library to the maintenance page.
Clear cache and run the site, maintenance css will be added only in maintenance page.
Comment #4
elakiyasamuel CreditAttribution: elakiyasamuel at Zyxware Technologies commentedComment #6
Bmuskan CreditAttribution: Bmuskan at Grazitti Interactive commentedAt the end of zircon.libraries.yml file, add the below code:
And now also add the following code at the end of .theme file:
I have also attached the screenshots of the above code here.
Comment #7
SandeepMahlawat CreditAttribution: SandeepMahlawat at OpenSense Labs commentedI have created the patch for the same please review
Comment #8
Shyam_Bhatt CreditAttribution: Shyam_Bhatt at QED42 commentedThe patch "2651070-7.patch" is working fine.
A new library was added for the maintenance page style.
Comment #9
constantsearcher CreditAttribution: constantsearcher commentedCould you please let me know how can I install this patch? I am facing this problem with the Zircon theme.
Thanks!
Comment #11
Gauravvvv CreditAttribution: Gauravvvv at Axelerant for Drupal India Association commentedThank you for working on this. Pushed and commited to 10.1.x