From 6428c17b0e16497b826c295b5a09dbb853d07b46 Mon Sep 17 00:00:00 2001 From: jo Date: Sun, 21 May 2017 15:32:43 +0200 Subject: [PATCH 1/3] Clean indentation --- .../src/main/webapp/WEB-INF/jsp/login.jsp | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp b/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp index 8bb6b63f..e4dd89a3 100644 --- a/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp +++ b/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp @@ -20,33 +20,33 @@
- - - - - - - + + + + + + + - - - - + + + + - - - - + + + + - + From 192d3083206c47a6582130e0d702d82483be689e Mon Sep 17 00:00:00 2001 From: jo Date: Sun, 21 May 2017 23:50:58 +0200 Subject: [PATCH 2/3] Rework login page Signed-off-by: jooola --- .../src/main/webapp/WEB-INF/jsp/login.jsp | 34 ++++++++++--------- .../src/main/webapp/style/default.css | 14 +++++++- 2 files changed, 31 insertions(+), 17 deletions(-) diff --git a/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp b/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp index e4dd89a3..d4f83470 100644 --- a/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp +++ b/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp @@ -10,48 +10,50 @@ - +
" method="POST">
-
+
- " alt=""> -
+ " alt=""> +
" tabindex="4"> - - -
" tabindex="4"> + + +
- + - - + - - + - - + + - - + - + + - +
+ " alt="">
">
">
" tabindex="4"> - - - " tabindex="4">
+
+ + + +
+
diff --git a/libresonic-main/src/main/webapp/style/default.css b/libresonic-main/src/main/webapp/style/default.css index c0046f2a..bb5131b1 100644 --- a/libresonic-main/src/main/webapp/style/default.css +++ b/libresonic-main/src/main/webapp/style/default.css @@ -106,6 +106,18 @@ h2, h2 a, .topHeader a { font-weight: normal; } +#loginButton { + background: #2f7bd9; + color: #f2f2f2; + cursor: pointer; + transition: color 0.2s ease, background 0.2s ease; +} + +#loginButton:hover { + background: #f2f2f2; + color: #2d2d2d; +} + /*************************************************************************************** * The rest of the CSS is typically not changed in other themes (but not necessarily so). ***************************************************************************************/ @@ -383,4 +395,4 @@ img { .context-menu-item { color: black; -} \ No newline at end of file +} From fefc34790a10b726d94fc9117f28ae68d0f2685e Mon Sep 17 00:00:00 2001 From: jooola Date: Fri, 26 May 2017 18:48:57 +0200 Subject: [PATCH 3/3] Many improvement and moved CSS to default.css - Changed to html5 (remove align="center" > style="text-align=center" - Removed table clean up - Moved the login message under the logo, and centered it --- .../src/main/webapp/WEB-INF/jsp/login.jsp | 67 +++++++++---------- .../src/main/webapp/style/default.css | 45 ++++++++++++- 2 files changed, 72 insertions(+), 40 deletions(-) diff --git a/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp b/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp index d4f83470..08b4d80e 100644 --- a/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp +++ b/libresonic-main/src/main/webapp/WEB-INF/jsp/login.jsp @@ -1,5 +1,5 @@ <%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1"%> - + <%@ include file="head.jsp" %> @@ -12,57 +12,50 @@ -" method="POST"> + " method="POST"> + - -
+
-
+ " alt=""> - - - - +
- - - + "> - - - + "> - - - + " tabindex="4"> - - - +
+
+ + +
+ + +
- +
+ +
- +
+ +
-
- " alt=""> -
">
">
" tabindex="4">
-
- - - -
-
+ +
+

+
+
- -

-
+
+ -
- diff --git a/libresonic-main/src/main/webapp/style/default.css b/libresonic-main/src/main/webapp/style/default.css index bb5131b1..0564a919 100644 --- a/libresonic-main/src/main/webapp/style/default.css +++ b/libresonic-main/src/main/webapp/style/default.css @@ -106,18 +106,57 @@ h2, h2 a, .topHeader a { font-weight: normal; } -#loginButton { +/* Login page */ + +#loginframe { + padding: 20px 50px; + margin: 100px 50px; + display: list-item; + list-style: none; + text-align: center; +} + +#loginframe > * { + margin: 0 auto; + display: block; +} + +#loginframe .loginmessagetop { + margin-bottom: 1em; + max-width: 30rem; +} + +#loginframe input[type=text], +#loginframe input[type=submit], +#loginframe input[type=password] { + width: 20rem; + margin-bottom: 0.5em; +} + +#loginframe input[type=submit] { + margin: 1rem auto; + padding: 0.3rem; background: #2f7bd9; color: #f2f2f2; - cursor: pointer; transition: color 0.2s ease, background 0.2s ease; } -#loginButton:hover { +#loginframe input[type=submit]:hover { background: #f2f2f2; color: #2d2d2d; } +#loginremember { + display: inline-flex; + align-items: center; + margin-right: 10px; +} + +#loginframe .loginmessagebottom { + margin-top: 1em; + max-width: 50em; +} + /*************************************************************************************** * The rest of the CSS is typically not changed in other themes (but not necessarily so). ***************************************************************************************/