From bfd85dff6b086abae1c16014e318c89cba929b66 Mon Sep 17 00:00:00 2001 From: Anike Arni Date: Fri, 17 Feb 2017 09:57:19 -0200 Subject: [#907] Makes login page responsive --- web-ui/src/login/app.scss | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 web-ui/src/login/app.scss (limited to 'web-ui/src/login/app.scss') diff --git a/web-ui/src/login/app.scss b/web-ui/src/login/app.scss new file mode 100644 index 00000000..76390cb7 --- /dev/null +++ b/web-ui/src/login/app.scss @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2017 ThoughtWorks, Inc. + * + * Pixelated is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Pixelated is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with Pixelated. If not, see . + */ + +#login_form { + padding: 20px 0; + + .input-field-group { + width: 100%; + } +} + +@media only screen and (min-width : 500px) { + #login_form .input-field-group { + margin-top: 1em; + } +} -- cgit v1.2.3 From fa21608801f8d2ef710d4c28abbb558883afeaf7 Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Mon, 20 Feb 2017 14:37:37 -0300 Subject: [#907] Translate auth error message on login with @anikarni --- web-ui/src/login/app.scss | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'web-ui/src/login/app.scss') diff --git a/web-ui/src/login/app.scss b/web-ui/src/login/app.scss index 76390cb7..f971750f 100644 --- a/web-ui/src/login/app.scss +++ b/web-ui/src/login/app.scss @@ -15,16 +15,55 @@ * along with Pixelated. If not, see . */ + +.error { + color: #D72A25; + margin: 10px 0 0 0; +} + +.login { + display: block; + width: 90%; + margin: auto; + max-width: 400px; + padding: 2em 0; + margin-top: 3%; + margin-bottom: 3%; + background-color: #FFF; + display: flex; + flex-direction: column; + align-items: center; +} + #login_form { padding: 20px 0; + width: 70%; .input-field-group { width: 100%; } + + .submit-button { + width: 100%; + } +} + +.logo { + width: 70%; } @media only screen and (min-width : 500px) { #login_form .input-field-group { margin-top: 1em; } + + .login { + width: 60%; + } +} + +@media only screen and (min-width : 960px) { + .login { + width: 40%; + } } -- cgit v1.2.3 From db1db55b806953ff93950b724fc96c8db388bbcf Mon Sep 17 00:00:00 2001 From: Tulio Casagrande Date: Tue, 21 Feb 2017 10:50:40 -0300 Subject: [#907] Use variables for css colors with @anikarni --- web-ui/src/login/app.scss | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'web-ui/src/login/app.scss') diff --git a/web-ui/src/login/app.scss b/web-ui/src/login/app.scss index f971750f..f6e6bc11 100644 --- a/web-ui/src/login/app.scss +++ b/web-ui/src/login/app.scss @@ -15,9 +15,10 @@ * along with Pixelated. If not, see . */ +@import "~scss/base/colors"; .error { - color: #D72A25; + color: $error; margin: 10px 0 0 0; } @@ -29,7 +30,7 @@ padding: 2em 0; margin-top: 3%; margin-bottom: 3%; - background-color: #FFF; + background-color: $white; display: flex; flex-direction: column; align-items: center; -- cgit v1.2.3