Skip to content

Commit

Permalink
style: login button
Browse files Browse the repository at this point in the history
  • Loading branch information
0x4007 committed Dec 1, 2023
1 parent cbb46b7 commit 449f10a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/home/github-login-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function gitHubLoginButton() {
export function renderGitHubLoginButton() {
const button = document.createElement("button");
button.id = "github-login-button";
button.textContent = "Login with GitHub";
button.textContent = "Login";
button.addEventListener("click", gitHubLoginButton);
const toolbar = document.getElementById("toolbar");
if (!toolbar) throw new Error("toolbar not found");
Expand Down
12 changes: 8 additions & 4 deletions static/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
#branding > span {
padding: 8px;
line-height: 1;
/* line-height: 1; */
}
html,
body {
Expand Down Expand Up @@ -264,14 +264,14 @@ button:active {
align-items: center;
display: inline-flex;
text-align: left;
padding: 8px 16px;
margin: 0 16px;
}
#toolbar > *:first-child {
/* #toolbar > *:first-child {
padding-left: 16px;
}
#toolbar > *:last-child {
padding-right: 16px;
}
} */
#authenticated > * {
display: inline-flex;
align-items: center;
Expand Down Expand Up @@ -322,3 +322,7 @@ button:active {
display: unset;
}
}

#toolbar > button {
text-align: center;
}

0 comments on commit 449f10a

Please sign in to comment.