cccs-web / core

CCCS' customized django web application
4 stars 11 forks source link

proper way to override mezzanine? #154

Closed cccs-ip closed 9 years ago

cccs-ip commented 9 years ago

I would like to change the footer color, as follows:

.footer {
    border-top: 1px solid #E7E7E7;
    margin-top: 15px;
    padding: 15px 0px 30px;
    background-color: #1A1D28;
}

Footer color is currently defined by mezzanine.css. How should I override it? Adding this bit of code into bootstrap.css didn't do it (although I could have made a mistake). We don't need to create a parallel application, do we?

cccs-ip commented 9 years ago

Hi Paul. Please help me to understand how to do this.

cccs-ip commented 9 years ago

I think I figured it out... Mezzanine was later in the theme's base.html call to a CSS file. I added a call to custom.css and am using that to add in my settings. Is this the right approach?

pwhipp commented 9 years ago

Yes it is. From memory, I was already loading in the custom.css though but as long as it is not getting loaded twice, its all good.

cccs-ip commented 9 years ago

Thanks. There remain a few things I can't figure out with regard to the interaction between Mezzanine and our custom HTML. It appears that there remain some sections of various page templates that are being called in from Mezzanine.

In the attached screenshot, for instance, there is blank space that I am not seeing in the corresponding HTML files, and thus cannot modify. Is this coming from Mezzanine too?

extra-section

pwhipp commented 9 years ago

Some extra time went on this issue because I had to revert the old Cristi stuff in Mezzanine so I could see the page properly locally.

The code is coming from the editable mezzanine template tag.

The editable-link div you have higlighted should be hidden according to the CSS so I don't know why it appears to be taking up space. I'm also not sure why the element is hidden anyway since you are logged in and I'm not seeing the js error mentioned in #84

cccs-ip commented 9 years ago

Closing this for the moment; the FlatLabs template doesn't seem to show these spaces.