glossary text highlighting

glossary text highlighting

ໂດຍ John Peacock -
ຈຳນວນການຕອບກັບ: 8

Moodle 2.3

Hi,

I would like to remove the default background highlighting for global glossary autolinked words. I still want to keep the hover over and click functionality I just want to remove the background colouring for autolinked words. Users are finding it visually disruptive. I did find a thread relating to this back in 2009 with a solution posted by Joseph Rézeau (hope you can help me this time Joseph) pointing to removal of the CSS rule code below.

This example is taken from the standard theme.
a.autolink:link,
a.autolink:visited {
color:#000000;
/* background: #DDDDDD;*/
}

I'm also using the Standard Theme and tracked the code down to the core.css file however I can only find a line autolink not autolink:visited. I still tried removing the offending ' background: #DDDDDD;' code snippet but it has no effect.

Any help much appreciated.
John

 

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ John Peacock

Re: glossary text highlighting

ໂດຍ Joseph Rézeau -
ຮູບພາບຂອງ Core developers ຮູບພາບຂອງ Particularly helpful Moodlers ຮູບພາບຂອງ Plugin developers ຮູບພາບຂອງ Testers ຮູບພາບຂອງ Translators

Hi John,

To remove the default "gray" background coloring (and retain the standard blue color for links and red when hovered) all you have to do is to remove this CSS rule from theme/standard/style/core.css:

a.autolink {color:#000000;background: #DDDDDD;}

(that's line 9, right at the beginning of the CSS file, in Moodle 2.4)

Joseph

ເອກະສານຊ້ອນທ້າຍ 05-02-2013 18-21-56.png
ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ Joseph Rézeau

Re: glossary text highlighting

ໂດຍ John Peacock -

Hi Joseph,

Thanks for the speedy reply. Tried it out. I removed line 9 in ..\moodle\theme\standard\style\core.css as below

/* a.autolink {color:#000000;background: #DDDDDD;} */

However it made no difference. I restarted the Apache server and even tried removing line 8 (a {text-decoration ....) and line 10 (a:hover.....) but neither the text colout or hover functionality changed.

I can't find any similar code in the standard folder so I'm scratching my head a bit. As further information, I'm running Topcoll course format (again I can't find any similar code lines in that plugin folder) and the target text sits in a lesson activity.

Again any help much appreciated.

John

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ John Peacock

Re: glossary text highlighting

ໂດຍ Joseph Rézeau -
ຮູບພາບຂອງ Core developers ຮູບພາບຂອງ Particularly helpful Moodlers ຮູບພາບຂອງ Plugin developers ຮູບພາບຂອງ Testers ຮູບພາບຂອງ Translators

John,

Did you remember to empty all your caches so that the changes can take effect?

Home ► Site administration ► Development  ► Purge all caches

Joseph

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ Joseph Rézeau

Re: glossary text highlighting

ໂດຍ Susan Oguchi -

I'm new to the world of moodle and am also trying to lose the grey highlight.  I can't find where to remove the css rules.  Is that because I'm using a standard theme?  Any help would be appreciated.

 

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ Susan Oguchi

Re: glossary text highlighting

ໂດຍ Joseph Rézeau -
ຮູບພາບຂອງ Core developers ຮູບພາບຂອງ Particularly helpful Moodlers ຮູບພາບຂອງ Plugin developers ຮູບພາບຂອງ Testers ຮູບພາບຂອງ Translators

Susan,

Which version of Moodle are you using? and which theme?

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ Joseph Rézeau

Re: glossary text highlighting

ໂດຍ Susan Oguchi -

Version 2.6.2 and Astral is the theme.

 

ການຈັດອັນດັບສະເລ່ຍ: -
ໃນການຕອບກັບຫາ Susan Oguchi

Re: glossary text highlighting

ໂດຍ Joseph Rézeau -
ຮູບພາບຂອງ Core developers ຮູບພາບຂອງ Particularly helpful Moodlers ຮູບພາບຂອງ Plugin developers ຮູບພາບຂອງ Testers ຮູບພາບຂອງ Translators

Susan, Astral is a paying theme, not part of the regular Moodle distribution. I suggest you contact the vendor of Astral for more help.

Joseph

ການຈັດອັນດັບສະເລ່ຍ: -