Use the primary color and adjust the width when it's the only option

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2020-07-10 14:12:56 +02:00
parent 1759d2176e
commit 32e1ce8df1
No known key found for this signature in database
GPG Key ID: 7076EA9751AACDDA
2 changed files with 11 additions and 1 deletions

View File

@ -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',
]);

8
css/register-button.css Normal file
View File

@ -0,0 +1,8 @@
#alternative-logins .button.register-button {
color: var(--color-primary-element);
}
.register-button:only-child {
width: 220px;
margin-left: 70px !important;
}