[Opa] Bootstrap modification ?
Frederic Ye
frederic.ye at mlstate.com
Sun Mar 18 12:52:56 UTC 2012
Hello Mathieu,
Yes indeed we changed the import system for bootstrap themes.
Major versions of bootstrap are now included in stdlib.
So if i suppose you are using our latest nightly :
If you want to use bootstrap 1.4.0 (compatible with the bootstrap widgets), you must import stdlib.themes.bootstrap.v1.4.0
Then to use Opa icons, you have to import stdlib.themes.bootstrap.opa-icons
=> about that, i *will* probably change that, so that you don't have to import opa-icons explicitely
import stdlib.themes.bootstrap will import version 2.0.2 + bootstrap glyphicons
I f you want BS 2.0, with opa icons :
- stdlib.themes.bootstrap.css
- import stdlib.themes.bootstrap.opa-icons
I f you want BS 2.0, with BS font awesome icons :
- stdlib.themes.bootstrap.css
- import stdlib.themes.bootstrap.font-awesome
However, changes are coming for bootstrap widgets also, that will make them compatible with version 2 of bootstrap, stay tuned !
Cheers,
Frederic
On 18 mars 2012, at 13:07, Matthieu Guffroy wrote:
> Hello,
>
> I don't know in which revision the problem appeared but before when I was doing this =>
>
> import stdlib.themes.bootstrap
> import stdlib.widgets.bootstrap
> WB = WBootstrap
>
> and call this functions
>
>
>
>
> WB.Navigation.topbar(
>
>
> WB.Layout.fixed(
>
>
> WB.Navigation.brand(<>BDE-UTC :: Reservation de salle</>, some("/"), ignore) <+>
>
>
> (c() |> WB.pull_right(_))
>
>
> )
>
>
> )
>
> I was getting a black topbar really pretty, but now. it seams there is only the positionnement and this is not really pretty...
>
> With the function =>
> WB.Grid.row
>
> there is no more positionnement, each block is under the other...
>
>
> And with icons there is also problem, I'm calling colored icons and I'm know getting black/white icons...
>
> With this code there is also problem :
> status = match r.etat with
> | {en_attente} -> WBootstrap.Label.make("En attente", {default})
> | {refuse=_} -> WBootstrap.Label.make("Refusé", {important})
> | {accepte=_} -> WBootstrap.Label.make("Accepté", {success})
> end
>
> I'm always getting grey label, instead of green for success, and red for important...
>
>
> All of this was working before... But I can't say with wich revision of opa... (like on the website, the older version than 0.9.0 are no more available I can't test...)
>
>
> It seams before, bootstrap was loaded on github directly, and now it is integrated on the opa server, and some important part of css and icons had not been added...
>
>
> Thanks for help,
>
> --
> Matthieu
>
> _______________________________________________
> Opa mailing list
> Opa at lists.owasp.org
> https://lists.owasp.org/mailman/listinfo/opa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.owasp.org/pipermail/opa/attachments/20120318/31069d84/attachment.html>
More information about the Opa
mailing list