Merge pull request #219 from nextcloud/bugfix/68/use-primary-color-for-button-and-adjust-width-when-only-option

Use the primary color and adjust the width when it's the only option
This commit is contained in:
Joas Schilling 2020-07-14 10:45:27 +02:00 committed by GitHub
commit 39f298c43e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}