From 0574af29498e75861c8039a831e88a8fa99dba48 Mon Sep 17 00:00:00 2001 From: Patrick G Date: Fri, 17 Mar 2017 08:45:21 -0400 Subject: [PATCH 1/8] Improve oauth2 button --- templates/user/auth/signin_inner.tmpl | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/templates/user/auth/signin_inner.tmpl b/templates/user/auth/signin_inner.tmpl index 91feb7c527440..2bcf3ce85fd0e 100644 --- a/templates/user/auth/signin_inner.tmpl +++ b/templates/user/auth/signin_inner.tmpl @@ -42,13 +42,14 @@ {{end}} {{if .OAuth2Providers}} -
-
-
-

{{.i18n.Tr "sign_in_with"}}

{{range $key, $value := .OAuth2Providers}}{{$value.DisplayName}}{{end}} -
-
-
+
+ {{range $key, $value := .OAuth2Providers}} + + + {{$value.DisplayName}} + {{.i18n.Tr "sign_in_with"}} {{$value.DisplayName}} + + {{end}} {{end}} From 4ee0da49b8c097f4aaceffdfa66bd08cd0064ce5 Mon Sep 17 00:00:00 2001 From: Patrick G Date: Fri, 17 Mar 2017 08:54:14 -0400 Subject: [PATCH 2/8] Add oauth2 button styles and make horizontal menu scroll on overflow --- public/less/_base.less | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/public/less/_base.less b/public/less/_base.less index 7008b5c918c82..11d2e14ef8149 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -420,3 +420,22 @@ footer { background-color: #FAFAFA !important; border-width: 1px !important; } + +@media only screen and (max-width: 1000px) { + .ui.menu.new-menu{ + overflow-x: auto !important; + justify-content: left !important; + padding-bottom: 5px; + } +} + +.oauth.ui.icon.button { + display: block; + max-width: 250px; + margin: auto; +} + +.oauth.ui.icon.button .icon .ui.logo.image { + style="padding: 5px; + opacity: .8; +} From b8b9ab12b2854f8c9c8d8a6342b9229955c2f9b3 Mon Sep 17 00:00:00 2001 From: Patrick G Date: Fri, 17 Mar 2017 08:55:49 -0400 Subject: [PATCH 3/8] Update index.css --- public/css/index.css | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/public/css/index.css b/public/css/index.css index d4404e32b0c3d..3db5d79f64f64 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -428,6 +428,22 @@ footer .ui.language .menu { background-color: #FAFAFA !important; border-width: 1px !important; } +@media only screen and (max-width: 1000px) { + .ui.menu.new-menu{ + overflow-x: auto !important; + justify-content: left !important; + padding-bottom: 5px; + } +} +.oauth.ui.icon.button { + display: block; + max-width: 250px; + margin: auto; +} +.oauth.ui.icon.button .icon .ui.logo.image { + style="padding: 5px; + opacity: .8; +} .markdown:not(code) { overflow: hidden; font-family: "Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif; From 0375fa282d0a49ab166343e3b8351250d7a3379f Mon Sep 17 00:00:00 2001 From: Patrick G Date: Fri, 17 Mar 2017 09:14:02 -0400 Subject: [PATCH 4/8] Bugfix --- templates/user/auth/signin_inner.tmpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/user/auth/signin_inner.tmpl b/templates/user/auth/signin_inner.tmpl index 2bcf3ce85fd0e..7dc630de0589b 100644 --- a/templates/user/auth/signin_inner.tmpl +++ b/templates/user/auth/signin_inner.tmpl @@ -47,7 +47,7 @@ {{$value.DisplayName}} - {{.i18n.Tr "sign_in_with"}} {{$value.DisplayName}} + {{$.i18n.Tr "sign_in_with"}} {{$value.DisplayName}} {{end}} {{end}} From 0bfe26137d520907a779d772aaaaf2dab1aa620b Mon Sep 17 00:00:00 2001 From: Patrick G Date: Fri, 17 Mar 2017 09:20:33 -0400 Subject: [PATCH 5/8] bugfix --- public/css/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/css/index.css b/public/css/index.css index 3db5d79f64f64..8c145af23dadf 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -428,7 +428,7 @@ footer .ui.language .menu { background-color: #FAFAFA !important; border-width: 1px !important; } -@media only screen and (max-width: 1000px) { +@media only screen and (max-width: 1300px) { .ui.menu.new-menu{ overflow-x: auto !important; justify-content: left !important; From 6b924c38fe884a359f0d948128845e52c0f5b2f5 Mon Sep 17 00:00:00 2001 From: Patrick G Date: Fri, 17 Mar 2017 09:20:57 -0400 Subject: [PATCH 6/8] Update _base.less --- public/less/_base.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/less/_base.less b/public/less/_base.less index 11d2e14ef8149..065dfd18ec024 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -421,7 +421,7 @@ footer { border-width: 1px !important; } -@media only screen and (max-width: 1000px) { +@media only screen and (max-width: 1300px) { .ui.menu.new-menu{ overflow-x: auto !important; justify-content: left !important; From acd490376802145248c26a3492702a93728f3835 Mon Sep 17 00:00:00 2001 From: Patrick G Date: Fri, 17 Mar 2017 09:24:01 -0400 Subject: [PATCH 7/8] Update _base.less --- public/less/_base.less | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/less/_base.less b/public/less/_base.less index 065dfd18ec024..33db3a1528207 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -421,7 +421,7 @@ footer { border-width: 1px !important; } -@media only screen and (max-width: 1300px) { +@media only screen and (max-width: 1200px) { .ui.menu.new-menu{ overflow-x: auto !important; justify-content: left !important; From a4ec04c6caa21ec3a1153a5b39f6e5d35f9ec8b8 Mon Sep 17 00:00:00 2001 From: Patrick G Date: Fri, 17 Mar 2017 09:24:17 -0400 Subject: [PATCH 8/8] Update index.css --- public/css/index.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/css/index.css b/public/css/index.css index 8c145af23dadf..cd3759c20e687 100644 --- a/public/css/index.css +++ b/public/css/index.css @@ -428,7 +428,7 @@ footer .ui.language .menu { background-color: #FAFAFA !important; border-width: 1px !important; } -@media only screen and (max-width: 1300px) { +@media only screen and (max-width: 1200px) { .ui.menu.new-menu{ overflow-x: auto !important; justify-content: left !important;