Editing CSS

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
baps11's picture

Hi folks,

Apologies in advance for the daft queries, just delving into Drupal/Open Atrium for the first time.

I've been attempting to make some edits to the oa home page, and while editing the content is no problem, it appears the source CSS runs through some build process? Is there a way to commit changes I make in the source CSS? For reference, the CSS I'm editing is here;

/profiles/openatrium/modules/apps/oa_home/oa_home_default.css

This may of course not be a recommended approach to making edits of this kind. After some digging it seems creating your own page to replace this may be best. I've been reading other suggestions about creating a sub-theme, but this appears massively complex just to add a couple of lines of css. Still, any suggestions would be appreciated.

Many thanks,

Baps.

Comments

You might have to check to

mcreighton's picture

You might have to check to make sure Drupal isn't combining the CSS files to see immediate results. Go to Administration » Configuration » Development » Performance and uncheck the "Aggregate and compress CSS" option.

You will also want to make sure that file is actually being served up as I don't see "oa_home_default.css" being loaded when I go to my homepage. This is where Chrome's Inspect element helps tell you which file the styles are coming from.

The "primary" CSS file is generated from compass and is in /oa_radix/assets/stylesheets/screen.css

BTW, most devs will tell you to setup compass and use the SASS files, but I design in the browser, so straight CSS is easier for that in my opinion. You will just have to be careful though that compass doesn't watch and overwrite your changes. Though, I admit I am just getting into this compass/SASS stuff myself, so take all of this with a grain of salt.

Thanks, mcreighton! That was

baps11's picture

Thanks, mcreighton! That was just what I wanted.

I've had real performance issues with ruby on my host, so I think compass is out unfortunately. Will have a read about it anyway.

Much appreciated!

Baps.

Hi baps11. You'd be better

JKingsnorth's picture

Hi baps11. You'd be better off overriding CSS in a custom theme for your Open Atrium site. There is some information about how to create a sub-theme in Drupal here: https://www.drupal.org/node/225125

Otherwise when you update Open Atrium in the future, the CSS you are editing will be overwritten and all of your changes will be lost =]

Open Atrium

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: