Closed Bug 533348 Opened 15 years ago Closed 15 years ago

Correct changeset 0174b636d5ee (fix broken Modern rules in alert.css/accountCentral.css/pageInfo.css) (new mail notification/download complete/update "toaster" tray area popup text and Page Info Feeds Tab items missing margin/padding)

Categories

(SeaMonkey :: Themes, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
seamonkey2.1a1

People

(Reporter: InvisibleSmiley, Assigned: InvisibleSmiley)

Details

(Keywords: fixed-seamonkey2.0.3)

Attachments

(6 files, 1 obsolete file)

The file global/alerts/alert.css is responsible for the styling of new mail notifications/download complete/update "toaster" tray area popups. Classic and Modern are mostly the same regarding this file but there is one notable difference:

Modern has:

.alertTextBox {
  margin-top: 4px;
  margin: 0 6px;
}

Classic has:

.alertBox[orient="horizontal"] > .alertTextBox {
  -moz-padding-end: 10px;
  padding-top: 5px;
}

.alertBox[orient="vertical"] > .alertTextBox {
  -moz-padding-start: 5px;
  -moz-padding-end: 5px;
  margin-bottom: 8px;
  -moz-box-align: center; /* also hard-coded in alert.js, see bug 311557 */
}

Don't ask me why but the margin-top doesn't work (anymore?). I'll attach screen shots, a little script to trigger the alerts, and a patch that replaces Modern's rule by Classic's (currently applies cleanly to both trunk and branch).
Attached patch apply Classic rules to Modern (obsolete) — Splinter Review
Patch applies to both trunk and branch.
Assignee: nobody → jh
Status: NEW → ASSIGNED
Attachment #416463 - Flags: superreview?(neil)
Attachment #416463 - Flags: review?(neil)
Attachment #416463 - Flags: approval-seamonkey2.0.2?
Attached image faked Modern mail alert
Attachment #416468 - Attachment mime type: application/octet-stream → text/plain
(In reply to comment #0)
> .alertTextBox {
>   margin-top: 4px;
>   margin: 0 6px;
> }

> Don't ask me why but the margin-top doesn't work (anymore?).
Oops. It used to have separate top, right and left margins. They weren't properly combined in bug 474807 :-(
FWIW if possible I'd like to have at least the rather striking visual glitch described here corrected on the 2.0 branch. On trunk we might have to fix all rules that were combined incorrectly through the checkin for bug 474807 but that should probably be done in a new bug then, for all affected parties.
This simply fixes the "definite issues" from bug 474807 comment 21 without changing the actual approach (i.e. I left out the .alertTextBox -> alertBox[orient="horizontal|vertical"] > .alertTextBox change).

Notes:
* alert.css: introduces margin-bottom:0 compared to before changeset 0174b636d5ee but that's OK since no other rule sets margin-bottom here (I checked)
* accountCentral.css: the re-introduced padding-left:10px has no visual effect since the .acctCentralRow rule already indents the whole area using -moz-margin-start:10px. If there's a desire to drop the padding-left due to that, IMHO the rule should at least be adapted to read padding: 10px 0;
Attachment #416463 - Attachment is obsolete: true
Attachment #417506 - Flags: review?(neil)
Attachment #416463 - Flags: superreview?(neil)
Attachment #416463 - Flags: review?(neil)
Attachment #416463 - Flags: approval-seamonkey2.0.2?
Summary: Modern misses changes to global/alerts/alert.css (new mail notification/download complete/update "toaster" tray area popup text is missing top and right margins) → Correct changeset 0174b636d5ee (fix broken Modern rules in alert.css/accountCentral.css/pageInfo.css) (new mail notification/download complete/update "toaster" tray area popup text and Page Info Feeds Tab items missing margin/padding)
Comment on attachment 417506 [details] [diff] [review]
correct changeset 0174b636d5ee [Checkin: comment 11]

I don't see why this can't go in 2.0.2, given that it's a medium-reward low-risk regression fix.
Attachment #417506 - Flags: review?(neil)
Attachment #417506 - Flags: review+
Attachment #417506 - Flags: approval-seamonkey2.0.2+
Comment on attachment 417506 [details] [diff] [review]
correct changeset 0174b636d5ee [Checkin: comment 11]

http://hg.mozilla.org/comm-central/rev/111318ebf2da
http://hg.mozilla.org/releases/comm-1.9.1/rev/27bc34d4c18a
Attachment #417506 - Attachment description: correct changeset 0174b636d5ee → correct changeset 0174b636d5ee [Checkin: comment 11]
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Target Milestone: --- → seamonkey2.1a1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: