Glossary autolink text style

Glossary autolink text style

by Phil Coultier -
Number of replies: 4
Hi, I was wondering if anyone could advise me which file you can edit how an autolink is dispolayed?

I assume its in one of the theme style sheets but I don;t know which one.

Thanks!

Phil
Average of ratings: -
In reply to Phil Coultier

Re: Glossary autolink text style

by Phil Coultier -
ahh I think I've found the problem.

I've managed to find the instance in style_color.css in the standard theme. However, I'm using a custom theme without this style sheet.

I'll have to dig a little deeper...
In reply to Phil Coultier

Re: Glossary autolink text style

by Frank Ralf -
Hi Phil,

Chances are that the standard theme serves as a parent theme to your own theme and so the CSS is inherited.

CSS FAQ and Themes FAQ are good starting points for learning more about CSS and theming. And use Firebug to analyze and modify your CSS.

hth
Frank
Average of ratings: Useful (1)
In reply to Phil Coultier

Re: Glossary autolink text style

by Joseph Rézeau -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers Picture of Translators

Hi Phil,

It does not matter if your custom theme does not have the autolink CSS class. You must simply add it, at the end of any of your custom theme CSS file.

Here is an example:

a.autolink:link,
a.autolink:visited {
color: white;
background: gray!important;
}

Note that you may have to add the !important rule (to override e.g. some "a" rules in the standard or your own custom theme).

See attached result.

HTH

Joseph

Attachment image00.jpg
Average of ratings: Useful (1)
In reply to Joseph Rézeau

Re: Glossary autolink text style

by Phil Coultier -
Hi guys, sorry about my late reply, I don't seem to get notifications when people post to my threads (anyone know how to amend this? All I can see is getting suscriptions for the entire forum, rahter than just threads you post in??)

Thanks for your help with this, I've managed to get it sorted now.

If my memory serves me correctly, I believe I added very similar lines as your example Joseph.

(Example of outcome below)

Thanks again! smile
Attachment saw-scrn.jpg