Make Resource Link color different from Lesson link color

Make Resource Link color different from Lesson link color

by Asana Draper -
Number of replies: 4
Can anyone tell me what to add to my colors.css file to make the link for a RESOURCE different from the color of a Lesson link?  Right now all activity links are the same color and I would like distinguish the difference between resources and lessons quickly.  My solution was to make resource links (in the Class Overview) a different color but no matter what I try I can't seem to get the correct class specified in the stylesheet.
Average of ratings: -
In reply to Asana Draper

Re: Make Resource Link color different from Lesson link color

by Dan Humpherson -
I have'nt tested but I think this should work:

.activity a:link {
color: #000
}

.activity a:hover, .activity a:visited {
color: #000
text-decoration: underline;
}


In reply to Dan Humpherson

Re: Make Resource Link color different from Lesson link color

by Asana Draper -

Thanks for your response!

Actually, that did work, but it changed all activities to the same color.  I am trying to keep Lessons one color and Resources another, so I tried;

.activity resource a:link {
color:#000
}

and

.activity a.resource:link {
color:#000
}

and a couple of other things that didn't work. 

None worked so I am still trying.  Not an expert with CSS by any means...it's all trial and error for me, but thanks to EVERYONE'S help in these forums - much appreciated!

In reply to Asana Draper

Re: Make Resource Link color different from Lesson link color

by Dan Humpherson -
Ok,

So to set the Lesson Activity link style:

.lesson a:link {
color: #000;
}
.lesson a:hover {
color: #000;
}
.lesson a:visited {
color: #000;
}

To set the Resources style, and by resources i presume you mean anything in the 'Add a resources..' drop down?

.resource a:link {
color: #ccc;
}
.resource a:hover {
color: #ccc;
}
.resource a:visited {
color: #ccc;
}
Average of ratings: Useful (1)
In reply to Dan Humpherson

Re: Make Resource Link color different from Lesson link color

by Asana Draper -

Excellent...IT WORKED!  Thank you so much!

Your answer seemed so logical yet I couldn't figure that out on my own - I soooo appreciate your help!