On Wed, 14 May 2025 at 19:28, Jeremy Nicoll <[email protected]>
wrote:
> On Wed, 14 May 2025, at 22:04, Robert Prins wrote:
>
> > If anyone has any ideas as to what colours, other than the usual(?)
> > white/yellow/red/reverse-red for info, warning, error and severe error
> > messages, to use ...
>
> If the generated HTML uses CSS surely colours need not be hardcoded
> (except maybe once if you have inline CSS at the top of each generated
> HTML file). But would it not be better to use a standalone CSS file, and
> generate that at the same time, perhaps optionally, so that people can
> set colours & other attributes in their own copy of that file?
Of course, but you still need to add the various classes to all elements,
and given that the <style> section is so small
<style type="text/css" media="screen"> em { font-style: normal;
} em.b { color: #7890f0; } em.f { color: pink; } em.l {
color: lime; } em.r { color: red; } em.t { color: aqua;
} em.w { color: white; } em.y { color: yellow; } body {
background-color: #000000; color: #00FF00; padding: 0 0 0
1em; white-space: pre; font-family: "Source Code Pro",
monospace; font-optical-sizing: auto; font-weight: 400;
font-style: normal; } </style>
that making the pages self-contained seems to be a not too bad solution.
Robert
--
Robert AH Prins
robert(a)prino(d)org
The hitchhiking grandfather <https://prino.neocities.org/index.html>
Some REXX code for use on z/OS
<https://prino.neocities.org/zOS/zOS-Tools.html>
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN