From 32e1ce8df12043a09a49580108adecdf48929cf1 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 10 Jul 2020 14:12:56 +0200 Subject: [PATCH] Use the primary color and adjust the width when it's the only option Signed-off-by: Joas Schilling --- appinfo/app.php | 4 +++- css/register-button.css | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 css/register-button.css diff --git a/appinfo/app.php b/appinfo/app.php index bfc9dbe..8ed3342 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -9,7 +9,9 @@ * @copyright Pellaeon Lin 2014 */ +\OCP\Util::addStyle('registration', 'register-button'); \OC_App::registerLogIn([ 'name' => \OC::$server->getL10N('registration')->t('Register'), - 'href' => \OC::$server->getURLGenerator()->linkToRoute('registration.register.askEmail') + 'href' => \OC::$server->getURLGenerator()->linkToRoute('registration.register.askEmail'), + 'style' => 'register-button', ]); diff --git a/css/register-button.css b/css/register-button.css new file mode 100644 index 0000000..a732b81 --- /dev/null +++ b/css/register-button.css @@ -0,0 +1,8 @@ +#alternative-logins .button.register-button { + color: var(--color-primary-element); +} + +.register-button:only-child { + width: 220px; + margin-left: 70px !important; +}