Closed Bug 883192 Opened 12 years ago Closed 12 years ago

thimble "make details" living on the page instead of an iframe causes page CSS to override make detail styling

Categories

(Webmaker Graveyard :: Thimble, defect)

x86
macOS
defect
Not set
blocker

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: michiel, Assigned: mjschranz)

References

Details

Attachments

(2 files, 2 obsolete files)

The only real fix is to sandbox, and have the makedetails live as an iframe on the made page for Thimble. This is a big change, and I'll leave it up to scott to determine whether this is doable today. If not, it's a fast-fast-followup.
We already moved to this kind of deployment in Popcorn Maker. This is a patch I was working on for getting this to work in Thimble.
Attachment #762736 - Flags: review?(scott)
Attachment #762736 - Flags: review?(pomax)
Attachment #762736 - Flags: review?(kate)
Attached image error (obsolete) —
Hmm, not working for me.
Comment on attachment 762736 [details] [review] https://github.com/mozilla/thimble.webmaker.org/pull/120 I added a screenshot of what I got when I tried to use this. Also, the made with and remix buttons should probably be responsive and stick to the left and right sides. If I shrink my window, they should stay in view.
Attachment #762736 - Flags: review?(scott) → review-
Comment on attachment 762736 [details] [review] https://github.com/mozilla/thimble.webmaker.org/pull/120 This does not solve the problem that the ticket is for. There's two problems: - make detail CSS affecting the page - page CSS affecting the make detail HTML we already solved (1) by namespacing, so that part's good, but we can't solve (2) without isolating the make details in an iframe.
Attachment #762736 - Flags: review?(pomax) → review-
OK, I got the page to display. I still have issues with the css of the details bar. Also, the css in the actual details page looks off. Attaching a screen shot of what I get now.
Attachment #762772 - Attachment is obsolete: true
Assignee: scott → schranz.m
NEw PR. Most code is the same but I did add in one namespace fix.
Attachment #762736 - Attachment is obsolete: true
Attachment #762736 - Flags: review?(kate)
Attachment #762825 - Flags: review?(scott)
Attachment #762825 - Flags: review?(pomax)
Comment on attachment 762825 [details] [review] https://github.com/mozilla/thimble.webmaker.org/pull/128 this puts the details themselves in an iframe, which is a good start, but the make details bar is still "on page", so that still gets messed with quite spectacularly (i,e, http://s3.amazonaws.com/org.webmadecontent.staging.thimble/pomax/thimble/vidyo-conan-hack)
Attachment #762825 - Flags: review?(pomax) → review-
Just add: .wrapper { position: relative; - width: 1020px; + width: 100%; margin: 0 auto; } to the details.css file to clear up my final nit. (the maring 50px can be done in another ticket beause it is webmaker.org, correct?)
Also, ensure the /templates/tutorial path still disabled any css needed to disable the details bar.
Comment on attachment 762825 [details] [review] https://github.com/mozilla/thimble.webmaker.org/pull/128 R+ when you have a ticket to sort out the width of the bar, and the tutorial template does not show the details bar,
Attachment #762825 - Flags: review?(scott) → review-
Comment on attachment 762825 [details] [review] https://github.com/mozilla/thimble.webmaker.org/pull/128 I'm okay with this, as long as the "mobile" mystery element is either explained or removed =)
Attachment #762825 - Flags: review?(pomax) → review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Attachment #762825 - Flags: review- → review+
Attachment mime type: text/plain text/plain → text/x-github-pull-request text/x-github-pull-request
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: