diff --git a/server/templates.go b/server/templates.go index ac921d55..5d7a3c77 100644 --- a/server/templates.go +++ b/server/templates.go @@ -80,7 +80,7 @@ func dirExists(dir string) error { // func loadWebConfig(c webConfig) (http.Handler, http.Handler, *templates, error) { if c.theme == "" { - c.theme = "coreos" + c.theme = "light" } if c.issuer == "" { c.issuer = "dex" diff --git a/web/static/img/coreos-icon.svg b/web/static/img/coreos-icon.svg deleted file mode 100644 index f9958a50..00000000 --- a/web/static/img/coreos-icon.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - diff --git a/web/static/main.css b/web/static/main.css index 8a431e47..c5b967be 100644 --- a/web/static/main.css +++ b/web/static/main.css @@ -53,22 +53,19 @@ body { background-image: url(../static/img/email-icon.svg); } -.dex-btn-icon--coreos { - /* B&W CoreOS SVG logo */ - background-image: url(../static/img/coreos-icon.svg); -} - .dex-btn-icon--github { background-color: #F5F5F5; background-image: url(../static/img/github-icon.svg); } .dex-btn-icon--gitlab { + background-color: #F5F5F5; background-image: url(../static/img/gitlab-icon.svg); background-size: contain; } .dex-btn-icon--oidc { + background-color: #EBEBEE; background-image: url(../static/img/oidc-icon.svg); background-size: contain; } diff --git a/web/themes/coreos/favicon.png b/web/themes/coreos/favicon.png deleted file mode 100644 index db13cf7f..00000000 Binary files a/web/themes/coreos/favicon.png and /dev/null differ diff --git a/web/themes/coreos/logo.png b/web/themes/coreos/logo.png deleted file mode 100644 index cf8caaae..00000000 Binary files a/web/themes/coreos/logo.png and /dev/null differ diff --git a/web/themes/dark/favicon.png b/web/themes/dark/favicon.png new file mode 100644 index 00000000..bcd5f21b Binary files /dev/null and b/web/themes/dark/favicon.png differ diff --git a/web/themes/dark/logo.png b/web/themes/dark/logo.png new file mode 100644 index 00000000..8f072508 Binary files /dev/null and b/web/themes/dark/logo.png differ diff --git a/web/themes/tectonic/styles.css b/web/themes/dark/styles.css similarity index 64% rename from web/themes/tectonic/styles.css rename to web/themes/dark/styles.css index 7930e073..5c435f0c 100644 --- a/web/themes/tectonic/styles.css +++ b/web/themes/dark/styles.css @@ -1,11 +1,18 @@ .theme-body { - background-color: #1C425B; - color: #333; + background-color: #1b282e; + color: #a6b7bf; font-family: 'Source Sans Pro', Helvetica, sans-serif; } .theme-navbar { - display: none; + background-color: #233239; + box-shadow: 0 2px 2px rgba(0, 0, 0, 0.2); + color: #333; + font-size: 13px; + font-weight: 100; + height: 46px; + overflow: hidden; + padding: 0 10px; } .theme-navbar__logo-wrap { @@ -24,47 +31,48 @@ .theme-heading { font-size: 20px; font-weight: 500; - padding-bottom: 10px; margin-top: 0; + color: #a6b7bf; } .theme-panel { - background-color: #fff; + background-color: #233239; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); padding: 30px; } .theme-btn-provider { - background-color: #fff; - color: #333; + background-color: #2a4349; + color: #a6b7bf; min-width: 250px; } .theme-btn-provider:hover { - color: #999; + background-color: #425f69; + color: #ffffff; } .theme-btn--primary { - background-color: #2fc98e; + background-color: #2a4549; border: none; - color: #fff; + color: #a6b7bf; min-width: 200px; padding: 6px 12px; } .theme-btn--primary:hover { - background-color: #25a071; - color: #fff; + background-color: #425f69; + color: #e9e9e9; } .theme-btn--success { - background-color: #2FC98E; - color: #fff; + background-color: #233239; + color: #e9e9e9; width: 250px; } .theme-btn--success:hover { - background-color: #49E3A8; + background-color: #46add0; } .theme-form-row { @@ -78,10 +86,9 @@ padding: 6px 12px; font-size: 14px; line-height: 1.42857143; - color: #666; border: 1px solid #CCC; border-radius: 4px; - box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); + box-shadow: inset 0 1px 1px rgb(27, 40, 46); width: 250px; margin: auto; } @@ -89,7 +96,7 @@ .theme-form-input:focus, .theme-form-input:active { outline: none; - border-color: #66AFE9; + border-color: #1b282e; } .theme-form-label { @@ -99,8 +106,13 @@ position: relative; font-size: 13px; font-weight: 600; + color: #a6b7bf; +} + +.theme-link-back { + margin-top: 4px; } .dex-container { - margin: 60px auto; + color: #a6b7bf; } diff --git a/web/themes/light/favicon.png b/web/themes/light/favicon.png new file mode 100644 index 00000000..bcd5f21b Binary files /dev/null and b/web/themes/light/favicon.png differ diff --git a/web/themes/light/logo.png b/web/themes/light/logo.png new file mode 100644 index 00000000..98a85a96 Binary files /dev/null and b/web/themes/light/logo.png differ diff --git a/web/themes/coreos/styles.css b/web/themes/light/styles.css similarity index 100% rename from web/themes/coreos/styles.css rename to web/themes/light/styles.css diff --git a/web/themes/tectonic/favicon.png b/web/themes/tectonic/favicon.png deleted file mode 100644 index 29643556..00000000 Binary files a/web/themes/tectonic/favicon.png and /dev/null differ diff --git a/web/themes/tectonic/logo.png b/web/themes/tectonic/logo.png deleted file mode 100644 index bf30f734..00000000 Binary files a/web/themes/tectonic/logo.png and /dev/null differ