CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Aggregate civicrm.css with Drupal css
Pages: [1]

Author Topic: Aggregate civicrm.css with Drupal css  (Read 5375 times)

ljk

  • Guest
Aggregate civicrm.css with Drupal css
February 12, 2008, 03:39:28 pm
Is it possible to aggregate and compress civicrm.css with the aggregated and compressed css created by using that performance option in Drupal?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Aggregate civicrm.css with Drupal css
February 12, 2008, 05:47:56 pm

currently no. a patch to fix this for drupal would be great and much appreciated :)

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

ljk

  • Guest
Re: Aggregate civicrm.css with Drupal css
February 22, 2008, 10:09:16 pm
Haven't patched it, but here's a minified civicrm.css (ver 1.9) I'm using in the meantime (attached as .css.txt, since .css is not an allowed attachment file type).  Using it noticeably decreases the time to load my simple donation page.

civive

  • I post occasionally
  • **
  • Posts: 33
  • Karma: 2
Re: Aggregate civicrm.css with Drupal css
September 03, 2008, 12:27:26 am
I made civicrm.css empty and put all the styles in styles.css of the theme I use in Drupal.
It is not a real solution, but helps. Be sure your online guests cannot change themes, or put civicrm.css content in the .css of all your themes.

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aggregate civicrm.css with Drupal css
March 28, 2009, 05:15:21 pm
In civicrm.module, I changed the following in civicrm_html_head():

Code: [Select]
-        $head  = "<style type=\"text/css\">@import url({$config->resourceBase}css/civicrm.css);</style>\n";
+       drupal_add_css(drupal_get_path('module', 'civicrm') . '/../css/civicrm.css');

mathieu (bgm)
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

mathieu

  • Administrator
  • Ask me questions
  • *****
  • Posts: 620
  • Karma: 36
    • Work
  • CiviCRM version: 4.7
  • CMS version: Drupal
  • MySQL version: MariaDB 10
  • PHP version: 7
Re: Aggregate civicrm.css with Drupal css
March 31, 2009, 11:16:31 am
By request of lobo, I have opened an issue:
http://issues.civicrm.org/jira/browse/CRM-4314
CiviCamp Montréal, 29 septembre 2017 | Co-founder / consultant / turn-key CiviCRM hosting for Quebec/Canada @ SymbioTIC.coop

ljk

  • Guest
Re: Aggregate civicrm.css with Drupal css
March 31, 2009, 11:34:02 am
Mathieu, thanks for the patch!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Discussion (deprecated) »
  • Feature Requests and Suggestions (Moderator: Dave Greenberg) »
  • Aggregate civicrm.css with Drupal css

This forum was archived on 2017-11-26.