File tree Expand file tree Collapse file tree 2 files changed +51
-10
lines changed Expand file tree Collapse file tree 2 files changed +51
-10
lines changed Original file line number Diff line number Diff line change @@ -259,14 +259,40 @@ html, body {
259259}
260260
261261# social-login {
262- margin-top : 30 px ;
263- padding-top : 20 px ;
262+ margin-top : 40 px ;
263+ padding-top : 40 px ;
264264 border-top : 1px solid # ccc ;
265+ position : relative;
265266}
266267
267268# social-login .btn {
268269 float : none;
269- margin : auto;
270+ margin : auto 4px ;
271+ }
272+
273+ # social-login .btn .fa {
274+ margin-left : 0 ;
275+ margin-right : 4px ;
276+ }
277+
278+ # social-login .btn span {
279+ display : inline-block;
280+ vertical-align : top;
281+ font-size : 16px ;
282+ margin-top : 5px ;
283+ }
284+
285+ # social-login h4 {
286+ position : absolute;
287+ top : -20px ;
288+ width : 100% ;
289+ text-align : center;
290+ background-color : transparent;
291+ }
292+
293+ # social-login h4 span {
294+ background-color : # FFF ;
295+ padding : 0 12px ;
270296}
271297
272298/* gogs-user-profile */
@@ -323,7 +349,7 @@ html, body {
323349}
324350
325351# user-profile .profile-rel p {
326- margin-right : 0 ;
352+ margin-right : 0 ;
327353 color : # 888 ;
328354}
329355
Original file line number Diff line number Diff line change 44 <form action="/user/login" method="post" class="form-horizontal card" id="login-card">
55 {{.CsrfTokenHtml}}
66 <h3>Log in
7- {{if .OauthEnabled}}
7+ <!-- {{if .OauthEnabled}}
88 <small class="pull-right">social login:
99 {{if .OauthGitHubEnabled}}
1010 <a href="/user/login/github?next=/user/sign_up"><i class="fa fa-github-square fa-2x"></i></a>
1111 {{end}}
1212 </small>
13- {{end}}
13+ {{end}}-->
1414 </h3>
1515 {{template "base/alert" .}}
1616 <div class="form-group {{if .Err_UserName}}has-error has-feedback{{end}}">
5151 </div>
5252 </div>
5353
54- <!-- {{if .OauthEnabled}}
54+ {{if .OauthEnabled}}
5555 <div class="form-group text-center" id="social-login">
56- <h4>Log In with Social Accounts</h4>
57- {{if .OauthGitHubEnabled}}<a href="/user/login/github?next=/user/sign_up"><i class="fa fa-github-square fa-3x"></i></a>{{end}}
56+ <h4><span>or</span></h4>
57+ <!--<a href="/user/login/github?next=/user/sign_up" class="btn btn-default google">
58+ <i class="fa fa-google-plus-square fa-2x"></i>
59+ <span>Google</span>
60+ </a>
61+ <a href="/user/login/github?next=/user/sign_up" class="btn btn-default facebbok">
62+ <i class="fa fa-facebook-square fa-2x"></i>
63+ <span>Facebook</span>
64+ </a>
65+ <a href="/user/login/github?next=/user/sign_up" class="btn btn-default weibo">
66+ <i class="fa fa-weibo fa-2x"></i>
67+ <span>Weibo</span>
68+ </a>-->
69+ {{if .OauthGitHubEnabled}}<a href="/user/login/github?next=/user/sign_up" class="github btn btn-default">
70+ <i class="fa fa-github-square fa-2x"></i>
71+ <span>GitHub</span>
72+ </a>{{end}}
5873 </div>
59- {{end}} -->
74+ {{end}}
6075 </form>
6176</div>
6277{{template "base/footer" .}}
You can’t perform that action at this time.
0 commit comments