-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up the CSS #151
base: development
Are you sure you want to change the base?
Clean up the CSS #151
Conversation
I would go even further. The page should be almost completely under the control of the application author. In addition to your points:
|
And along those lines, what do you think about putting the overlay content directly in the body, as opposed to putting an ID on the overlay div? The application content will then be at the top and can do whatever it needs. Here's a possible implementation: 66c93c4. I also think the |
@davideaster I like the way you're thinking!
Heck yes. I think we're most of the way there already with the recent changes, right? I think this will clean things up quite a bit.
That would be amazing. Drivers could be responsible for injecting things into the DOM as necessary. It would be cool if the "feature detection" feature of each drivers could insert the appropriate error messages into the browser in a standardized way and place (that could also be disabled) whenever their feature wasn't detected. I.e., three.js needs WebGL, etc.
Yes. With this PR, we're getting close to this, only styling the editor and such. We'll still have some css included, but it will all be
Yes. I have no idea how to do this cleanly. I'm thinking the config file. |
Excellent idea. I think that
Interesting. Again, that could be a config option. I'm thinking something like this in drivers:
threejs:
renderTo: #threeJSFrame And then in <div id="myApplication">
<div id="threeJSFrame"></div>
<div id="otherContent">
<p>Some stuff</p>
</div>
</div> If threejs doesn't find that config option, it could the insert the #vwfRoot div into the body and render into that. |
fd0aa1a
to
9f9d443
Compare
This should allow application authors to style their application's containing <div> in whatever way is convenient for them.
c69cbd1
to
a2519ea
Compare
There are already some good changes on this branch. I suggest that we go ahead an merge what's here so we don't hold those changes hostage while we are waiting on the rest. To that end, I just added the remaining tasks as Redmine story #4332. @scottnc27603 @davideaster what do you think? Would you mind reviewing? |
👍 in principle. But since it's a little old, are you comfortable that nothing new depends on the styles are being removed? |
80% confident. I rebased on development about a month ago and did some testing, and found no problems. It wasn't exhaustive testing, but I'm relatively sure that they're not needed. I would say that we should go ahead and merge it, and any apps that don't like the results can add the styles back to their individual app (which is what we would like to see in the future). |
We shouldn't force styling on application authors. And we should make it easy for them to style their applications however they please.
This isn't done yet. Here are a few other thoughts:
vwf-
to avoid potential name conflicts.