Closed Bug 611057 Opened 14 years ago Closed 14 years ago

{note} and {warning} styling

Categories

(support.mozilla.org :: General, defect, P2)

defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: paulc, Assigned: rrosario)

Details

Attachments

(3 files)

Per scoobidiver's comment in bug 586487 comment 27, {note} is not styled at all currently.

We need to fix that. Chowse, can you help?

The syntax is:

{note}this is a note{/note}

=> (turns into)

<div class="note">this is a note</div>
Looks like {warning} is in the same bucket.
Summary: {note} styling → {note} and {warning} styling
Attached image nested lists grr
This would be a good opportunity to also fix the styling for nested lists.

---
* list item 1
** ul 1.1
** ul 1.2
Some text.
# list item 1
## ul 1.1
## ul 1.2
---

Check out the attachment.
Two samples. Let me know what you think of the diagonal bars, and I'll add the BG image if you like it.

Here's the accompanying CSS:

.note {
   background: #F5F5FF;
   color: #626266;
   padding: .5em 1em;
}

.warning {
   background: #FFF9DB url(warning-bg.png) repeat-x left top;
   color: #666458;
   padding: .5em 1em;
   padding-left: 2em;
}
(In reply to comment #3)
> Created attachment 489617 [details]
> nested lists grr
> 
> This would be a good opportunity to also fix the styling for nested lists.

Not seeing this on my box. Already been fixed?

https://master.support.mozilla.com/en-US/kb/chowse/revision/5713
(In reply to comment #5)
> Not seeing this on my box. Already been fixed?
> 
> https://master.support.mozilla.com/en-US/kb/chowse/revision/5713
Ah, scoobidiver points out... this might be just our parser:
https://master.support.mozilla.com/en-US/kb/Template:profileFolder

If you skip level 1:
---
Text
** list item 1
** list item 2
---
David, how do you feel about the the styles in comment 4?
David says he thinks they're good. Cc'ing Michael for additional feedback.
Looks good to me
Assignee: chowse → nobody
Assignee: nobody → rrosario
https://github.com/jsocol/kitsune/commit/c6ab2819522c0106f982a15b5e9f7006f0bc3bc4
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
I know I said they looked good but in practice I'm finding that the note background is often not visible (or barely visible) when I'm looking at it on my lcd monitor from even a slight angle.
Try it with these colors in Firebug:

#doc-content .note {
   background: #ecebff;
   color: #5e5e66;
}

I'd include a screenshot, but Firefox's color correction can give the wrong impression.
Verified notes and warnings display correctly, and did the firebug color change test. Verdi- you might want to double check the color. I see a light blue on the note on my kb article, but don't know if it's "too" light: https://support-stage.mozilla.com/en-US/kb/including
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: