[ckan-dev] Link colour in introductory text box
Nigel Babu
nigel.babu at okfn.org
Tue Jun 24 03:45:12 UTC 2014
Have you tried adding the .hero class to it so it only modifies the .hero
block?
.hero a:link {color: #000000; text-decoration: underline; }
.hero a:active {color: #0000ff; text-decoration: underline; }
.hero a:visited {color: #008000; text-decoration: underline; }
.hero a:hover {color: #ff0000; text-decoration: none; }
I've tried it on my local instance and it seems to work.
Nigel Babu
Developer, Open Knowledge
On 19 June 2014 10:18, Aaron McGlinchy <McGlinchyA at landcareresearch.co.nz>
wrote:
> Is it possible to specify the link color in the introductory text box?
>
> I have edited the (sysadmin) config options and tried using this code in
> the custom css box (in addition to some other code that modifies image and
> sets text size, color...):
>
> a:link {color: #000000; text-decoration: underline; }
> a:active {color: #0000ff; text-decoration: underline; }
> a:visited {color: #008000; text-decoration: underline; }
> a:hover {color: #ff0000; text-decoration: none; }
>
> But depending on where in the exisiting CSS code I add it, it either does
> nothing, or stuffs the whole site up.
>
> Existing CSS :
> .hero { background: lightsteelblue; }
> .hero { background-image:
> url("/base/images/LCR-ckan-homepage-background.jpg");}
>
> /* 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%
> }
>
> ________________________________
>
> 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
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140624/25b5a817/attachment-0003.html>
More information about the ckan-dev
mailing list