in reply to Re: Color for Error Messages
in thread Color for Error Messages

> So someone should submit a patch to Common Theme CSS to do that.

Done.

+ 171: + 172: .warning { + 173: background-color: #ffffff; + 174: color: #cc0000; + 175: font-weight: bold; + 176: }

choroba's patches were adjusted to <span class='warning'> too.

see:

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

Replies are listed 'Best First'.
Re^3: Color for Error Messages
by cavac (Prior) on Mar 22, 2022 at 10:39 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";'
Re^3: Color for Error Messages
by LanX (Saint) on Mar 22, 2022 at 22:38 UTC
    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