Skip to content

Commit

Permalink
Merge pull request #761 from airbnb/csharplus_refine_signin
Browse files Browse the repository at this point in the history
Refine the layout of sign-in page
  • Loading branch information
csharplus committed Mar 1, 2023
2 parents 493e219 + 889bf47 commit 34ebb85
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 27 deletions.
25 changes: 25 additions & 0 deletions knowledge_repo/app/static/css/pages/auth-switcher.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ ul.auth-providers>li>a {
transition: background 0.3s;
color: #000;
text-decoration: none;
font-size: 1.2em;
}

ul.auth-providers>li>a:hover {
Expand All @@ -51,4 +52,28 @@ span.auth-message {
font-size: 1.5em;
font-weight: bold;
text-align: center;
}

.login-form {
display: block;
list-style-type: none;
width: 400px;
margin: 50px auto;
padding: 1em;
background: #fdfcfccf;
border: 2px solid #1d1b1bcf;
border-radius: 21px;
box-sizing: border-box;
box-shadow: 0.5px 1px 2px 0px #00000029;
}

.login-option {
display: block;
list-style-type: none;
width: 300px;
margin: 5px auto;
padding: 1em;
background: white;
box-sizing: border-box;
box-shadow: 0.5px 1px 2px 0px #00000029;
}
Binary file modified knowledge_repo/app/static/images/auth/google.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 0 additions & 27 deletions knowledge_repo/app/templates/auth-switcher.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,6 @@

{% block content %}

<style>
.login-form {
display: block;
list-style-type: none;
width: 400px;
margin: 50px auto;
padding: 1em;
background: #fdfcfccf;
border: 1px solid #1d1b1bcf;
border-radius: 21px;
box-sizing: border-box;
box-shadow: 0.5px 1px 2px 0px #00000029;
}
.login-option {
display: block;
list-style-type: none;
width: 300px;
margin: 5px auto;
padding: 1em;
background: white;
border: 1px solid #000000;
border-radius: 11px;
box-sizing: border-box;
box-shadow: 0.5px 1px 2px 0px #00000029;
}
</style>

<div class='login-form'>
{% if providers %}
<span class='auth-message'>
Expand Down

0 comments on commit 34ebb85

Please sign in to comment.