Closed Bug 1054032 Opened 12 years ago Closed 11 years ago

.syntaxbox missing bottom margin

Categories

(developer.mozilla.org Graveyard :: Design, defect)

All
Other
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: contact, Unassigned)

Details

(Keywords: css1, Whiteboard: [specification][type:bug])

Attachments

(1 file)

What did you do? ================ Visit a JavaScript reference page on MDN (https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NaN and https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array are two affected pages). What happened? ============== The element of class syntaxbox under the heading "Syntax" should has no bottom margin. This causes it to run together with the element below it. This behavior is inconsistent with similar boxes on the page and appears erroneous. What should have happened? ========================== The element should have a 24px bottom margin. Is there anything else we should know? ======================================
Attached image screenshot.png —
Severity: normal → trivial
Component: General → Design / user experience
Keywords: css1
Pending confirmation that this can/should be fixed, I'd be happy to contribute a patch. I'm having trouble locating the appropriate area of the source directory structure, but I'll keep looking around. Meanwhile, if someone provides a tip as to the right direction, that would be greatly appreciated. (I've never contributed before.) Thanks!
Never mind, I seem to have located the contribution information (https://github.com/mozilla/kuma/blob/master/CONTRIBUTING.md). I should have a chance to sit down and approach this later tonight.
I think this is where a change is needed: https://github.com/mozilla/kuma/blob/master/media/redesign/stylus/wiki-syntax.styl#L44 Thank you for your willingness to dive in and help!
Status: UNCONFIRMED → NEW
Ever confirmed: true
Thanks, David. It looks like changing the line you linked to 24px will resolve the issue most directly, so this is what I'll go for. (I considered the possibility of removing it, but that takes the margin down to 14px, which is out of sync with related boxes in the wiki. Somewhere, pre.syntaxbox is getting its margin set to 1em, which is taking priority over other rules.) After looking more deeply at a couple pages, it appears .cssprop also has some spacing issues: it's missing 14px top and bottom padding (see https://developer.mozilla.org/en-US/docs/Web/CSS/animation). I'm putting together a patch for both issues.
Have things discussed here been fixed in bug 1069432?
Flags: needinfo?(shobson)
The syntax box issue was fixed but not the .cssprop one.
Flags: needinfo?(shobson)
For cssprop ====== Variable or Fixed Value ====== ok, I found the .cssprop location. I we create a variable $ inside vars.styl, or jsut make a change directly in the wiki-customcss.styl with a direct value ? ====== ? ======
Merged Fix ---- 1:23 PM <github> [kuma] zeusintuivo opened pull request #2817: fix bug 1054032 - commit message (master...new-issue-1054032) https://github.com/mozilla/kuma/pull/2817 ====== All is well — The Travis CI build passed · Details This pull request can be automatically merged by project collaborators. Only those with write access to this repository can merge pull requests.
I filed another amend
Canceled the other pull request and made a new one https://github.com/mozilla/kuma/pull/2836
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/f015d43baa2f6c7fe2c114f769f1d5acd48e7c43 fix bug 1054032 - Add left padding to 40px https://github.com/mozilla/kuma/commit/a0b38977305506029ba47c64c485fa27c7bfef7f Merge pull request #2872 from openjck/bug-1054032-cssprop fix bug 1054032 - Add left padding to 40px
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: