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) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom CSS overridden
Pages: [1]

Author Topic: Custom CSS overridden  (Read 390 times)

Carolyn Shannon

  • I’m new here
  • *
  • Posts: 25
  • Karma: 3
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Custom CSS overridden
July 14, 2014, 09:45:44 am
I have created a custom css file and placed it into the custom css directory defined on the Resource URLS page.

The custom css file loads, but loads before packages/jquery/css/dashboard.css, which overrides it.

Is there a way to control the order in which these load?

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Custom CSS overridden
July 14, 2014, 10:10:48 am
That doesn't make sense to me. If you look at CRM_Core_Resources::addCoreStyles the custom css file gets a weight of 99 whereas everything else has a negative weight. It should therefore load last.
Are you using the latest version?
Try asking your question on the new CiviCRM help site.

Carolyn Shannon

  • I’m new here
  • *
  • Posts: 25
  • Karma: 3
  • CiviCRM version: 4.4.6
  • CMS version: Drupal 7
  • MySQL version: 5.1.54
  • PHP version: 5.3.5
Re: Custom CSS overridden
July 14, 2014, 10:12:28 am
Hi Coleman,
Using 4.4.6 on Drupal 7.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Custom CSS overridden
July 15, 2014, 12:09:20 pm
Quote from: Carolyn Shannon on July 14, 2014, 09:45:44 am
Is there a way to control the order in which these load?

I do not know, but certainly you can force your CSS to override dashboard.css by adding HTML or BODY etc.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Custom CSS overridden

This forum was archived on 2017-11-26.