[ckan-dev] CKAN 2.2: Custom CSS in config no longer working (fully)

Aaron McGlinchy McGlinchyA at landcareresearch.co.nz
Fri Nov 7 01:24:34 UTC 2014


Hi Claire,
        Below is the config CSS code that I am now using, and which is working for us.
Cheers
Aaron

.hero { background: lightsteelblue; }
.hero { background-image: url("/base/images/LCR-ckan-homepage-background.jpg");}

/* Specificy link colours */
.hero a:link {color: #009F77; text-decoration: none; } .hero a:active {color: #009F77; text-decoration: none; } .hero a:visited {color: #055F7B; text-decoration: none; } .hero a:hover {color: #ff0000; text-decoration: underline; }

/* Remove the feature image */
div.hero section.featured.media-overlay {
display: none;
}
/* Style up front page */
div.hero header {
background-image: url(http://www.landcareresearch.co.nz/__data/assets/image/0015/15504/6-Measuring-Biodiversity.jpg);
background-size: cover;
background-repeat: no-repeat;
background-position: center;
height: 264px; /* 185 = works in both IE and Firefox, 250=good, 264=height of main background image */
padding-top: 15px; /* originally was 42, but 24 works better in IE at height 185 */
padding-bottom: 75px;
border-radius: 3px;
font-size: 1.8em;
font-weight: normal;
color: white;
text-shadow: 2px 2px 2px black;
text-align: center;
line-height:120%;
}

------------------------------

Message: 2
Date: Fri, 31 Oct 2014 14:26:01 +0000
From: Claire Reis <Claire.Reis at umanitoba.ca>
To: "ckan-dev at lists.okfn.org" <ckan-dev at lists.okfn.org>
Subject: Re: [ckan-dev] CKAN 2.2: Custom CSS in config no longer
        working (fully)
Message-ID:
        <FAB117EFE6276347A53B482CDB63FBF279EDAEE6 at UMCE3EXMD02.ad.umanitoba.ca>
Content-Type: text/plain; charset="us-ascii"

Did this ever get resolved? We also used the same code as Aaron's and are getting the same result with the featured section.  I changed the

div.hero-primary section.featured.media-overlay to div.hero section.featured.media-overla

and the

div.hero-primary header  to
div.hero section

but still get the featured section box.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20141031/e0bdb71c/attachment-0001.html>

------------------------------

Subject: Digest Footer

_______________________________________________
ckan-dev mailing list
ckan-dev at lists.okfn.org
https://lists.okfn.org/mailman/listinfo/ckan-dev
Unsubscribe: https://lists.okfn.org/mailman/optionss/ckan-dev


------------------------------

End of ckan-dev Digest, Vol 49, Issue 1
***************************************

________________________________

Please consider the environment before printing this email
Warning: This electronic message together with any attachments is confidential. If you receive it in error: (i) you must not read, use, disclose, copy or retain it; (ii) please contact the sender immediately by reply email and then delete the emails.
The views expressed in this email may not be those of Landcare Research New Zealand Limited. http://www.landcareresearch.co.nz



More information about the ckan-dev mailing list