From 5f3a6a9d7424a4ba1c0e63f6c3ddfbde6f3598d8 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Sat, 12 Apr 2014 13:50:27 +0800 Subject: [PATCH] social login button ui --- public/css/gogs.css | 34 ++++++++++++++++++++++++++++++---- templates/user/signin.tmpl | 27 +++++++++++++++++++++------ 2 files changed, 51 insertions(+), 10 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index 8be2bc4e..b9c7b6ae 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -259,14 +259,40 @@ html, body { } #social-login { - margin-top: 30px; - padding-top: 20px; + margin-top: 40px; + padding-top: 40px; border-top: 1px solid #ccc; + position: relative; } #social-login .btn { float: none; - margin: auto; + margin: auto 4px; +} + +#social-login .btn .fa { + margin-left: 0; + margin-right: 4px; +} + +#social-login .btn span { + display: inline-block; + vertical-align: top; + font-size: 16px; + margin-top: 5px; +} + +#social-login h4 { + position: absolute; + top: -20px; + width: 100%; + text-align: center; + background-color: transparent; +} + +#social-login h4 span { + background-color: #FFF; + padding: 0 12px; } /* gogs-user-profile */ @@ -323,7 +349,7 @@ html, body { } #user-profile .profile-rel p { - margin-right: 0; + margin-right: 0; color: #888; } diff --git a/templates/user/signin.tmpl b/templates/user/signin.tmpl index 6ccad79e..4ea41738 100644 --- a/templates/user/signin.tmpl +++ b/templates/user/signin.tmpl @@ -4,13 +4,13 @@
{{.CsrfTokenHtml}}

Log in - {{if .OauthEnabled}} +

{{template "base/alert" .}}
@@ -51,12 +51,27 @@
- + {{if .OauthGitHubEnabled}} + + GitHub + {{end}} - {{end}} --> + {{end}}
{{template "base/footer" .}}