-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WARNING: and IMPORTANT: admonitions are barely noticeable in HTML rendering #673
Comments
Pretty sure I've done this with other flavours. Will investigate what I've done elsewhere, but will need approval from OGC leads of our colour choices, and whether we should introduce them. @Intelligent2013 we should have consistent choices too. |
I need the exactly RGB color for each admonition type, and I'll update the XSLT for PDF. |
@Intelligent2013 what are the colors we use right now for the OGC theme? I wonder if we can keep the HTML / PDF color definitions aligned. |
|
@Intelligent2013 can we change the |
@ronaldtse do you mean to use the document attribute |
@Intelligent2013 Correct. |
Please stick with the colors of the current OGC theme. You can use contrast to emphasise a block such as a warning, but please stick with the colors of the current OGC theme. |
@ghobona The problem is that right now:
So the OGC theme is missing colors... I like @ronaldtse 's suggestiong of keeping HTML / PDF colors aligned. Any new colors added should fit with the existing OGC color scheme. |
Inject colour palette into Presentation XML as metadata; OGC colour theme is being revised in brand guidelines. We are to suggest complementary palette. Base off PDF. |
So the following statements in the PDF XSLT:
and the inline instances:
are to be migrated into Presentation XML metadata. I will code them as
|
For the distinction between deprecated and admitted: I see that in Presentation XML, both are labelled "AdmittedLabel". I will change deprecated to be labelled "DeprecatedLabel", to simplify the test; I had not been differentiating them until now. |
We import _coverpage.scss into htmlstyle.scss as I'm going to work around that by importing the colours into the font-header of the SCSS as SCSS variables. |
i will circulate the current PDF, and four versions of the HTML:
I've done the second. |
@ghobona @gbuehler This is where I've got to. Please provide feedback. I do need to note that I don't do front end (as you already know), and the notion of picking colours throws me into panic. If you don't like any of the alternatives, I will need you to suggest colours. So, in the attached:
|
Debugged: class "Adminition.Warning" in CSS should have been "Admonition Warning" |
@ghobona @gbuehler Because this involves coordinating PDF and HTML, could we ask for some in principle feedback of which HTML you hate least? We can always tweak the colours later on. I am worried that the background colour is going to wash out the theme colour pastels (since they were designed for a PDF white background); but I didn't want to change the HTML background colour to white without you giving go-ahead. |
My suggestion is to have the different hues/tints as in a1.3.html, and to synchronize that with the PDF, but for the HTML to use a darker shade and the nice even darker thick top border as in a1.0.html. The all blue everything as in the current PDF and a1.1.html (and similar a1.2.html) is problematic, and while the pastels and boxes of a1.3.html might look nice in the PDF, I agree they are problematic for the HTML. So while the hues could be in sync between HTML & PDF, I think it's good if the HTML uses the darker color and the top-border as opposed to the pastels and the simple box for the PDF. This would not introduce any major change (no background color change), except where things currently feel broken (all admonition types blue in the PDF, and borders completely missing for most admonition types in the HTML). But I realize you're not asking me ;) Maybe @ghobona and @gbuehler will find time to chime in. |
@opoudjis Yellow on a white or grey background is difficult to see. So I very much prefer the colour scheme on the current HTML (a1.0.html). |
@ghobona I much prefer the darker shades and thick top border of a1.0.html as well, but the problem with a1.0.html is that the IMPORTANT and WARNING have nothing at all, and the Hello: Tip, Editor, and Todo have an orange "caution" color not appropriate for them. Would it be fine if those had the same tints as in a1.3.html, but a darker shade of them (like the Caution box in a1.0 corresponds to a darker shade of the pastel orange in a1.3), and the thick top border as in a1.0 rather than the simple thin blue box? Essentially, the ideal solution is a mix of a1.0 and a1.3. Thanks! |
Well, this is a problem. a1.0.html is NOT what you are getting in the PDF. a1.1.html is. So if you prefer a1.0.html to a1.1.html, and if we have to keep PDF and HTML colours aligned, then the colours in the PDF would have to change. I think @jerstlouis is right, that the PDF and HTML don't have to use identical colours: PDF can use lighter tones than HTML. I will try dropping the yellow, and doing something darker; we can discuss further on Monday. (Note that I am really not front-end, and would rather someone else be doing this, but oh well...) |
I am trying to make all parties happy with this, but I'm not going to keep iterating this. |
@opoudjis That looks great, but the orange could be exactly like it used to be (which is a bit of a darker shade), and the other tints could perhaps be similarly darker. But please wait for the docteam feedback. I'll have a go at updating this with proposed colors. I'm suggesting something like this for the HTML: And the PDF could be something like a1.3, perhaps with the exception of the Warning / Safety a bit less pink and more red, and the TODO yellow rather than red. |
Pending DocTeam meeting in Nov. 2024. |
As interim measure, will merge the Presentation XML changes to capture consistent colours between HTML and PDF; but I will ignore the colours in the HTML. |
OGC Staff discussed this Issue on 2024-09-09 and agreed that the colors used by the templates could not be changed because they are part of the OGC Brand which was launched a couple of years ago. This GitHub Issue can therefore be closed. |
Does this mean that the IMPORTANT admonition that was fixed to now have a box will be broken again? e.g. see the box right above https://docs.ogc.org/DRAFTS/21-038.html#rc_data-ubjson section 15.3 Before, this had no box at all and was barely noticeable. This fix is great. This issue was never about changing the OGC brand color themes. |
They don't get any kind of box or background color, or even bold on the WARNING / IMPORTANT.
CAUTION: gets a very nice box. It would be nice that each of these get a different color. WARNING: should probably be a bit more red-orange than CAUTION:? IMPORTANT: could be a nice pale green box?
In the PDF rendering, they all render with a blue box (and are therefore all quite visible), but different colors would be nice such as orange for warning / cautions, and perhaps again green for IMPORTANT?
The text was updated successfully, but these errors were encountered: