Re: Color for Error Messages
by choroba (Cardinal) on Mar 18, 2022 at 14:03 UTC
|
> Of course it might be better to add an error_msg class to the CSS, but I learned to humbly make small steps. :)
I submitted patches to both places where the message is created.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
| [reply] [d/l] |
|
| [reply] |
|
I'm not sure it's a warning. It blocks publishing the node, it's an error.
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
| [reply] [d/l] |
|
|
|
|
Re: Color for Error Messages
by jdporter (Paladin) on Mar 18, 2022 at 14:03 UTC
|
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.
| [reply] |
|
> 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:
| [reply] [d/l] [select] |
|
.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";'
| [reply] [d/l] [select] |
|
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:
NB: do a hard reload like Shift-Ctrl-R ° to ensure the old CSS isn't taken from the cache.
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
| [reply] [d/l] [select] |
Re: Color for Error Messages
by etj (Deacon) on Mar 23, 2022 at 13:41 UTC
|
Speaking of single-word node titles, I note that PDL is currently a relatively random note from 2001 recommending PDL be used for a particular thing.
Is there any scope for that node to be renamed, and for the current PDL maintainer (which would be me at this moment) to have that node as a sort of mini-forum node where I would "comment"/reply to for release announcements, and people could comment/reply on with questions, etc? This is partly motivated by Google Chrome now having a "search PerlMonks" feature which does a naive nodename search, which if one enters "PDL" one gets that random-ish node, which isn't super helpful. | [reply] |
|
I have created a new root node for you: PDL
Please populate it as you see fit.
FYI, I renamed the old one out of the way.
Thanks!
| [reply] |
|
I only wish this site had the capability for me to upvote this dozens of times. Thank you!
| [reply] |
|
| [reply] [d/l] |