Browse Source

bt3/fa4 classes

Andrii Zadorozhnii 11 years ago
parent
commit
118bcefa28
3 changed files with 7 additions and 6 deletions
  1. 2 2
      src/facebook.erl
  2. 2 2
      src/google.erl
  3. 3 2
      src/twitter.erl

+ 2 - 2
src/facebook.erl

@@ -36,8 +36,8 @@ registration_data(Props, facebook, Ori)->
 email_prop(Props, _) -> binary_to_list(proplists:get_value(<<"email">>, Props)).
 email_prop(Props, _) -> binary_to_list(proplists:get_value(<<"email">>, Props)).
 
 
 login_button() -> #panel{class=["btn-group"], body=
 login_button() -> #panel{class=["btn-group"], body=
-    #link{id=loginfb, class=[btn, "btn-primary", "btn-large"], 
-        body=[#i{class=["icon-facebook", "icon-large"]}, <<"Facebook">>],
+    #link{id=loginfb, class=[btn, "btn-primary", "btn-large", "btn-lg"],
+        body=[#i{class=[fa,"fa-facebook","fa-lg","icon-facebook","icon-large"]}, <<"Facebook">>],
             actions= "$('#loginfb').on('click', fb_login);" }}.
             actions= "$('#loginfb').on('click', fb_login);" }}.
 
 
 sdk() ->
 sdk() ->

+ 2 - 2
src/google.erl

@@ -32,8 +32,8 @@ registration_data(Props, google, Ori)->
 email_prop(Props, _) -> binary_to_list(proplists:get_value(<<"email">>, Props)).
 email_prop(Props, _) -> binary_to_list(proplists:get_value(<<"email">>, Props)).
 
 
 login_button()-> #panel{id=plusloginbtn, class=["btn-group"], body=
 login_button()-> #panel{id=plusloginbtn, class=["btn-group"], body=
-    #link{class=[btn, "btn-google-plus", "btn-large"], 
-        body=[#i{class=["icon-google-plus", "icon-large"]}, <<"Google">>] }}.
+    #link{class=[btn, "btn-google-plus", "btn-large","btn-lg"],
+        body=[#i{class=[fa,"fa-google-plus","fa-lg","icon-google-plus", "icon-large"]}, <<"Google">>] }}.
 
 
 event(_) -> ok.
 event(_) -> ok.
 callback() -> ok.
 callback() -> ok.

+ 3 - 2
src/twitter.erl

@@ -39,8 +39,9 @@ callback() ->
          _ -> skip end.
          _ -> skip end.
 
 
 login_button() -> #panel{class=["btn-group"], body=
 login_button() -> #panel{class=["btn-group"], body=
-    #link{id=twlogin, class=[btn, "btn-info", "btn-large"], 
-        body=[#i{class=["icon-twitter", "icon-large"]}, <<"Twitter">>], postback={twitter,logintwitter}}}.
+    #link{id=twlogin, class=[btn, "btn-info", "btn-large", "btn-lg"],
+        body=[#i{class=[fa,"fa-twitter","fa-lg","icon-twitter", "icon-large"]}, <<"Twitter">>],
+        postback={twitter,logintwitter}}}.
 
 
 sdk() -> [].
 sdk() -> [].
 api_event(_,_,_) -> ok.
 api_event(_,_,_) -> ok.