Skip to content

Instantly share code, notes, and snippets.

@JoostvDoorn
Last active April 16, 2024 06:52
Show Gist options
  • Save JoostvDoorn/32d7b63c69a2522d4b19c43ac01081bd to your computer and use it in GitHub Desktop.
Save JoostvDoorn/32d7b63c69a2522d4b19c43ac01081bd to your computer and use it in GitHub Desktop.
Google signin buttons
<link rel=stylesheet type=text/css href="style.css">
<a class="google-signin"></a>
.google-signin {
background-image: url('btn_google_signin_dark_normal_web.png');
display: inline-block;
width: 191px;
height: 46px;
border: 0px;
}
.google-signin:hover {
background-image: url('btn_google_signin_dark_focus_web.png');
cursor: pointer;
}
.google-signin:active {
background-image: url('btn_google_signin_dark_pressed_web.png');
}
.google-signin:disabled {
background-image: url('btn_google_signin_dark_disabled_web.png');
}
@tweaking-pranav
Copy link

Where we get this button in other languages.

@JoostvDoorn
Copy link
Author

@tweaking-pranav maybe use this instead https://developers.google.com/identity/gsi/web/guides/display-button? This will automatically adjust the display language for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment