Glossary autolink text style

Glossary autolink text style

von Phil Coultier -
Anzahl Antworten: 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
Als Antwort auf Phil Coultier

Re: Glossary autolink text style

von 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...
Als Antwort auf Phil Coultier

Re: Glossary autolink text style

von 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
Als Antwort auf Phil Coultier

Re: Glossary autolink text style

von Joseph Rézeau -
Nutzerbild von Core developers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Plugin developers Nutzerbild von Testers Nutzerbild von 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

Anhang image00.jpg
Als Antwort auf Joseph Rézeau

Re: Glossary autolink text style

von 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
Anhang saw-scrn.jpg