in reply to Color for Error Messages

add an error_msg class to the CSS

search for class="warning" in code

Unfortunately, it appears that there is no standard CSS to set the appearance of such content. So someone should submit a patch to Common Theme CSS to do that.

Thanks!

I reckon we are the only monastery ever to have a dungeon staffed with 16,000 zombies.

Replies are listed 'Best First'.
Re^2: Color for Error Messages
by LanX (Saint) on Mar 18, 2022 at 20:12 UTC

      If you really want people to pay attention, try this in your display settings:

      .warning:before { content: url('https://cavac.at/pics/hackman2.gif'); } strong:before { content: url('https://cavac.at/pics/hackman2.gif'); }

      SCNR

      perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
      Some changes have been applied now - thank gods ;)

      We have now identical classes .error and .warning with white font on red background.

      When interested try to reply here, while leaving exactly one word in the title.

      Preview should show this warning then:

      • What you get

        Title must be more than one word!

        (span with new class)

      • What to expect (almost):

        Title must be more than one word!

        (simulation without CSS but table and font)

      NB: do a hard reload like Shift-Ctrl-R ° to ensure the old CSS isn't taken from the cache.

      Cheers Rolf
      (addicted to the Perl Programming Language :)
      Wikisyntax for the Monastery

      update

      this might collide with the color-theme you've configured in your settings.

      °) or

      • Ctrl-F5 Firefox
      • Shift-F5 Chrome
      • For completeness: there are more tricks with Key-modifiers and clicking Reload-symbol or typing Return inside the adressbar