From 3e393e0adcdbc418326fd21bd522eb7cf1bcc81c Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 2 Jan 2021 11:38:09 +0100 Subject: [PATCH] Bootstrap styling for IDP pages --- frontend_src/_custom.scss | 62 +++++++++++++++++++++++- frontend_src/images/favicon.ico | Bin 0 -> 4286 bytes templates/idp/base.gohtml | 6 +-- templates/idp/client_certificate.gohtml | 20 ++++---- templates/idp/consent.gohtml | 35 +++++++------ templates/idp/login.gohtml | 14 +++--- 6 files changed, 102 insertions(+), 35 deletions(-) create mode 100644 frontend_src/images/favicon.ico diff --git a/frontend_src/_custom.scss b/frontend_src/_custom.scss index 93c4b1c..319f9f9 100644 --- a/frontend_src/_custom.scss +++ b/frontend_src/_custom.scss @@ -1 +1,61 @@ -@import "~bootstrap/scss/bootstrap"; \ No newline at end of file +@import "~bootstrap/scss/bootstrap"; + +$dimmed_white: #f5f5f5; + +html, +body { + height: 100%; + background-color: $dimmed_white; +} + +body.idp { + display: -ms-flexbox; + display: flex; + // -ms-flex-align: center; + // align-items: center; + padding-top: 40px; + padding-bottom: 40px; +} + +.form-signin { + max-width: 330px; +} + +.form-consent { + max-width: 550px; +} + +.form-signin, .form-consent { + width: 100%; + padding: 15px; + margin-left: auto; + margin-right: auto; + + .checkbox { + font-weight: 400; + } + + .form-control { + position: relative; + box-sizing: border-box; + height: auto; + padding: 10px; + font-size: 16px; + } + + .form-control:focus { + z-index: 2; + } + + .input[type="email"] { + margin-bottom: -1px; + border-bottom-right-radius: 0; + border-bottom-left-radius: 0; + } + + .input[type="password"] { + margin-bottom: 10px; + border-top-left-radius: 0; + border-top-right-radius: 0; + } +} diff --git a/frontend_src/images/favicon.ico b/frontend_src/images/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..dfccc66e5cce92c826c95a320ab137e499a5b8f3 GIT binary patch literal 4286 zcmeHJYitx%6h6~o`+&APv)iK9M^{Tg+N7kAwBZL(jRX>`f^}xMP*K`iL#PGhodPb1 zee7%>qV-iHfuLzfNhKJNq}`>&w19|6QXd4viUDJSQ5#HcXnXzcxObUdEI*Au_HNFe zd(Z1TbMC!ohDgHChs4e} zx!mt|?25A2)d4PNXi<>ABXovaWlz?pu!J6B%XUwW!8h|6;(o0j#RZ>n;RilEr+0e} zaK8X<2z&vz6T{HeZ!ET~SyNYY9eABp9-fbt>`A#S1!#Q9>nVMZ4O(nW{IKsSAvfF( zmj3I}?|^-k*ymXS*R=B}1;Q@ON9vcQIh#BgSy&Ip=&tzO_SvR?kXk7~KU0t<8M^Zc zoQH2=8^Jd;N2TzsXj;sG&C1>^z3kT==c351hJ+pGhOTs(dFjdys~q!DqfE_@&`-po4h! z6;ZO71?s%WTjerqzqoTXFqJc{rS?Yzp2Wp z#iRgLqaKSOzem`4y_E3Ust2#}y-m`GV~c+@=>)}b8)v&i}}|0+iGTh zPwaFgcl3lyT)(GWVZ|-UOgWlx9kJI(o-aUoSOE6rbWuxcptS{KVd?PnV{ z7L2uM&ilEo7<1oBtatC2g8O*;4j67_ozR>6AD~Zw&ClT)=$^(ip}!1lr;#Hb$TrY1 zO5*mo)3qBm&SuYi@Eq>q+f2D}^k(sqjcjXeo|zLcjz{8#C*j_E!MaD7k7HljnzW1= zhcuG!J51Tn?o84A=A?#r}aySq2gW9p~lg9ghyZ376_~YH{*}AQTq7GJm`)peh zLEK!#jXH;xeE9viWm)rh|MWlBUjXbEfxQavn0e^;g|h~HS1KD9Suw@@58k^huu)Uq zZ_&qojKLAUvHV7qvskc!j=3kc`{sYTg}q!iH^xWl5M~o`o*&5?obyOLyb+3^5&*xOIaq3jT7G&_`i7YOz@kMuCg literal 0 HcmV?d00001 diff --git a/templates/idp/base.gohtml b/templates/idp/base.gohtml index b3bd1af..5c547cf 100644 --- a/templates/idp/base.gohtml +++ b/templates/idp/base.gohtml @@ -12,6 +12,7 @@ + @@ -22,11 +23,10 @@ + {{ .Title }} - -

{{ .Title }}

- CAcert + {{ template "content" . }} diff --git a/templates/idp/client_certificate.gohtml b/templates/idp/client_certificate.gohtml index 22d85ae..9d4937b 100644 --- a/templates/idp/client_certificate.gohtml +++ b/templates/idp/client_certificate.gohtml @@ -1,14 +1,16 @@ {{ define "content" }} -

{{ .IntroText }}

-
    - {{ range .emails }} -
  • {{ . }}
  • {{ end }} -
-

{{ .RequestText }}

-
+ + CAcert +

{{ .Title }}

+

{{ .IntroText }}

+
    + {{ range .emails }} +
  • {{ . }}
  • {{ end }} +
+

{{ .RequestText }}

{{ .csrfField }} - - + +
{{ end }} \ No newline at end of file diff --git a/templates/idp/consent.gohtml b/templates/idp/consent.gohtml index 4c47ff1..285d975 100644 --- a/templates/idp/consent.gohtml +++ b/templates/idp/consent.gohtml @@ -1,24 +1,27 @@ {{ define "content" }} -

{{ .IntroConsentRequested }}

- {{ if .client.LogoURI }} -

- {{ .client.ClientName }} -

- {{ end }} -

{{ .IntroMoreInformation }}

-
- {{ .csrfField }} -
    + + CAcert +

    {{ .Title }}

    +

    {{ .IntroConsentRequested }}

    + {{ if .client.LogoURI }} +

    + {{ .client.ClientName }} +

    + {{ end }} +
      {{ range .requestedScope }} -
    • {{ .Label }}
    • +
    • {{ .Label }}
    • {{ end }}
    +

    {{ .IntroMoreInformation }}

    -

    - -

    + {{ .csrfField }} +
    + +
    - + {{ end }} \ No newline at end of file diff --git a/templates/idp/login.gohtml b/templates/idp/login.gohtml index 7196446..8c0440b 100644 --- a/templates/idp/login.gohtml +++ b/templates/idp/login.gohtml @@ -1,14 +1,16 @@ {{ define "content" }} -
    + + CAcert +

    {{ .Title }}

    {{ .csrfField }} {{ if .errors.Form}}

    {{ .errors.Form }}

    {{ end }} {{ if .errors.Email }}

    {{ .errors.Email }}

    {{ end }} - -
    + +
    {{ if .errors.Password }}

    {{ .errors.Password }}

    {{ end }} - -
    - + +
    +
    {{ end }} \ No newline at end of file