Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Smooth CSS transition for FxA popup (bug 1074348) #689

Merged

Conversation

mstriemer
Copy link
Contributor

// Hide the regular UI for standalone pages.
[data-page-type=standalone-loading] {
> * {
display: none !important;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Y SO !IMPORTANT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's only going to apply for a few seconds and I really don't want to show that stuff. So it seemed !important.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't want to be specific in case the layout changes. So I think that pretty much means it needs to be !important.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you'd rather do this instead of remove with JS?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I did this in JavaScript I'd need to loop through all the children in body and remove the ones that aren't main taking care not to remove any scripts or stylesheets (or something else useful) that may be in there.

I really just want to hide the visual elements so I think this makes the most sense.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay, makes sense

@cvan
Copy link
Contributor

cvan commented Oct 1, 2014

r+wd¹: I did not test this locally

__
¹ r+wd = r+ with disclaimer

@mstriemer mstriemer force-pushed the wait-for-stylesheet-popup-1074348 branch from b301025 to ae447e9 Compare October 2, 2014 14:19
mstriemer added a commit that referenced this pull request Oct 2, 2014
Smooth CSS transition for FxA popup (bug 1074348)
@mstriemer mstriemer merged commit 3eb333d into mozilla:master Oct 2, 2014
@mstriemer mstriemer deleted the wait-for-stylesheet-popup-1074348 branch October 2, 2014 14:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants