{if $__wcf->getSession()->getVar('__githubToken')}
<label><input type="checkbox" name="githubConnect" value="1"{if $githubConnect} checked{/if}> {lang}wcf.user.3rdparty.github.connect{/lang}</label>
{else}
- <a href="{link controller='GithubAuth'}{/link}" class="thirdPartyLoginButton githubLoginButton"><span class="icon icon16 fa-github"></span> <span>{lang}wcf.user.3rdparty.github.connect{/lang}</span></a>
+ <a href="{link controller='GithubAuth'}{/link}" class="thirdPartyLoginButton githubLoginButton button"><span class="icon icon24 fa-github"></span> <span>{lang}wcf.user.3rdparty.github.connect{/lang}</span></a>
{/if}
</dd>
</dl>
{if $__wcf->getSession()->getVar('__twitterData')}
<label><input type="checkbox" name="twitterConnect" value="1"{if $twitterConnect} checked{/if}> {lang}wcf.user.3rdparty.twitter.connect{/lang}</label>
{else}
- <a href="{link controller='TwitterAuth'}{/link}" class="thirdPartyLoginButton twitterLoginButton"><span class="icon icon16 fa-twitter"></span> <span>{lang}wcf.user.3rdparty.twitter.connect{/lang}</span></a>
+ <a href="{link controller='TwitterAuth'}{/link}" class="thirdPartyLoginButton twitterLoginButton button"><span class="icon icon24 fa-twitter"></span> <span>{lang}wcf.user.3rdparty.twitter.connect{/lang}</span></a>
{/if}
</dd>
</dl>
{if $__wcf->getSession()->getVar('__facebookData')}
<label><input type="checkbox" name="facebookConnect" value="1"{if $facebookConnect} checked{/if}> {lang}wcf.user.3rdparty.facebook.connect{/lang}</label>
{else}
- <a href="{link controller='FacebookAuth'}{/link}" class="thirdPartyLoginButton facebookLoginButton"><span class="icon icon16 fa-facebook"></span> <span>{lang}wcf.user.3rdparty.facebook.connect{/lang}</span></a>
+ <a href="{link controller='FacebookAuth'}{/link}" class="thirdPartyLoginButton facebookLoginButton button"><span class="icon icon24 fa-facebook"></span> <span>{lang}wcf.user.3rdparty.facebook.connect{/lang}</span></a>
{/if}
</dd>
</dl>
{if $__wcf->getSession()->getVar('__googleData')}
<label><input type="checkbox" name="googleConnect" value="1"{if $googleConnect} checked{/if}> {lang}wcf.user.3rdparty.google.connect{/lang}</label>
{else}
- <a href="{link controller='GoogleAuth'}{/link}" class="thirdPartyLoginButton googleLoginButton"><span class="icon icon16 fa-google"></span> <span>{lang}wcf.user.3rdparty.google.connect{/lang}</span></a>
+ <a href="{link controller='GoogleAuth'}{/link}" class="thirdPartyLoginButton googleLoginButton button"><span class="icon icon24 fa-google"></span> <span>{lang}wcf.user.3rdparty.google.connect{/lang}</span></a>
{/if}
</dd>
</dl>
+@mixin thirdPartyLoginButtons {
+ border-width: 0;
+ color: rgba(255, 255, 255, 1);
+
+ > .icon {
+ flex: 0 0 24px;
+ }
+
+ > span:not(.icon) {
+ flex: 1 1 auto;
+ margin-left: 5px;
+ }
+
+ /* branding */
+ &.googleLoginButton {
+ background-color: rgb(221, 75, 57);
+
+ &:hover {
+ background-color: rgb(202, 53, 35);
+ }
+ }
+
+ &.facebookLoginButton {
+ background-color: rgb(59, 89, 152);
+
+ &:hover {
+ background-color: rgb(48, 72, 123);
+ }
+ }
+
+ &.twitterLoginButton {
+ background-color: rgb(85, 172, 238);
+
+ &:hover {
+ background-color: rgb(48, 154, 234);
+ }
+ }
+
+ &.githubLoginButton {
+ background-color: rgb(68, 68, 68);
+
+ &:hover {
+ background-color: rgb(48, 48, 48);
+ }
+ }
+}
+
.loginForm > form {
.userLoginButtons {
margin-top: 20px;
.thirdPartyLoginButton {
align-items: center;
display: flex;
- border-width: 0;
- color: rgba(255, 255, 255, 1);
- > .icon {
- flex: 0 0 24px;
- }
-
- > span:not(.icon) {
- flex: 1 1 auto;
- margin-left: 5px;
- }
-
- /* branding */
- &.googleLoginButton {
- background-color: rgb(221, 75, 57);
-
- &:hover {
- background-color: rgb(202, 53, 35);
- }
- }
-
- &.facebookLoginButton {
- background-color: rgb(59, 89, 152);
-
- &:hover {
- background-color: rgb(48, 72, 123);
- }
- }
-
- &.twitterLoginButton {
- background-color: rgb(85, 172, 238);
-
- &:hover {
- background-color: rgb(48, 154, 234);
- }
- }
-
- &.githubLoginButton {
- background-color: rgb(68, 68, 68);
-
- &:hover {
- background-color: rgb(48, 48, 48);
- }
- }
+ @include thirdPartyLoginButtons;
}
}
}
.loginFormLogin > .section {
margin-top: 30px !important;
}
+
+/* CSS does not allow selectors starting with a number.
+ Therefore we are using the unicode character to identify
+ the correct selector. In a nutshell: the selector is #3rdParty.section */
+#\33 rdParty.section .thirdPartyLoginButton {
+ @include thirdPartyLoginButtons;
+}