From bcdbf225cd98f46f3fec6271a11601cc4fa2adf2 Mon Sep 17 00:00:00 2001 From: mb-wali <44528277+mb-wali@users.noreply.github.com> Date: Mon, 21 Sep 2020 10:43:25 +0200 Subject: [PATCH] Accounts (WIP) # Login template * added the SSO login for TUGRAZ. * corresponding styles to login.less. * added a couple of semantic UI classes in order to adjust the form to the center. * buttons/hyperlink using the standard tugraz theme with hover background color black. # signup template * added the SSO signup for TUGRAZ. * added two columns, left some texts and right the signup form using semantic-UI classes. *buttons/hyperlink using the standard tugraz theme with hover background color black. --- .../less/invenio_theme_tugraz/login.less | 30 +++++- .../accounts/login_user.html | 99 ++++++++++--------- .../accounts/register_user.html | 88 ++++++++++++----- 3 files changed, 142 insertions(+), 75 deletions(-) diff --git a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/login.less b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/login.less index e66326d..8edf8f2 100644 --- a/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/login.less +++ b/invenio_theme_tugraz/assets/semantic-ui/less/invenio_theme_tugraz/login.less @@ -1,3 +1,31 @@ .ui.inverted.header{ color:#000; -} \ No newline at end of file +} + +.login-page-button { + margin: 5%; + text-align: center !important; + & a { + padding: 5px; + cursor: pointer; + } + & a:hover { + background-color: #000; + color: #fff !important; + text-decoration: none; + } + } + +.text-color{ + color: #000; +} + +@media (max-width: 767px) { + #switch_left { + order: 2; + } + #switch_right { + order: 1; + } +} + diff --git a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html index f67d276..59d0ca5 100644 --- a/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html +++ b/invenio_theme_tugraz/templates/invenio_theme_tugraz/accounts/login_user.html @@ -1,6 +1,7 @@ {# Copyright (C) 2020 TUGRAZ - Copyright (C) 2020 mojib wali. + Copyright (C) 2020 mojib wali + Copyright (C) 2020 Nikita Lvov invenio-theme-tugraz is free software; you can redistribute it and/or modify it under the terms of the MIT License; see LICENSE file for more @@ -14,57 +15,61 @@ {% block page_body %}