Hi.
I'm thinking about this topic for weeks, and it is difficult to me to make
a choice, simply because I always focus on drawbacks, which all proposals
have. There is no perfect choice here. But there is probably a most
realistic one.
My proposal is the following:
- We still propose some standards like the Vertical Align Form (
http://platform.xwiki.org/xwiki/bin/view/DevGuide/VerticalForms ). Because
we like it.
- We still propose some of our own CSS classes because we need them.
- People are allowed to use any Bootstrap feature they want. They are
packaged with Flamingo.
- When we upgrade to a new version of Bootstrap, it's the responsibility of
the developers to fix their applications if they are broken.
- We need to update
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FrontendResources
- The theme Application will be skin-dependent (because of the preview),
and because some Theme variables have sense only on the CSS framework we
use in the skin. Moreover, some color themes are good looking on some skins
and ugly on some others.
Example: here a color theme
http://extensions.xwiki.org/xwiki/bin/view/Extension/FlamingoColorTheme
- screenshot on Flamingo:
http://extensions.xwiki.org/xwiki/bin/download/Extension/FlamingoColorThemeā¦
-> good looking
- screenshot on Colibri:
http://tof.canardpc.com/view/903b37a6-64c8-4ccd-9a02-d34fc1027266.jpg
-> ugly
It does not make sense to propose that same color theme for both skins.
I do NOT propose:
- to add a namespace to the Bootstrap classes, because it implies to modify
the bootstrap sources (JavaScript + LESS code), which must be maintained
each time we upgrade to a new minor version of Bootstrap.
- to create our standards, simply because it is the business of Bootstrap,
and we do not have the manpower to do the same thing as well.
The drawback of this solution is that it might be broken if Bootstrap
breaks the retro-compatibility in the next versions.
That is my thoughts. I think it is important to all agree on this, because
we would like to have the Flamingo Theme Application for 6.2.
Thanks,
Guillaume
2014-07-02 15:19 GMT+02:00 Guillaume "Louis-Marie" Delhumeau <
gdelhumeau(a)xwiki.com>gt;:
Hi guys.
I am starting this thread to talk about UI conventions that we should
recommend to every developer who want to write an application in XWiki.
Currently, we have some standards (see
http://platform.xwiki.org/xwiki/bin/view/DevGuide/FrontendResources) and
we need to update this documentation since it is still speaking about
PrototypeJS and Bootstrap is not even mentioned. I think it is the time to
think about what these conventions should be now.
With Vincent and Caty, we have thought about it and our ideas are written
there:
http://design.xwiki.org/xwiki/bin/view/Proposal/UIStandards
I let you read this design page and express your ideas. I need your
opinion to know how I should implement the (color) theme application for
Flamingo.
Thanks,
Guillaume