mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
Next.js 13.4 [is out](https://nextjs.org/blog/next-13-4). For discussing project-related issues, please use https://github.com/nextauthjs/next-auth/discussions/8487 The new version of NextAuth.js is based on `@auth/core`. If you want to test it out, you can do so already, installing `next-auth@experimental`: - **Documentation**: https://authjs.dev/reference/nextjs - **Migration guide**: https://authjs.dev/guides/upgrade-to-v5 BREAKING CHANGE: Follow the [migration guide](https://authjs.dev/guides/upgrade-to-v5)
93 lines
1.5 KiB
CSS
93 lines
1.5 KiB
CSS
/* Set min-height to avoid page reflow while session loading */
|
|
.signedInStatus {
|
|
display: flex;
|
|
align-items: center;
|
|
min-height: 4rem;
|
|
width: 100%;
|
|
}
|
|
|
|
.loading,
|
|
.loaded {
|
|
position: relative;
|
|
top: 0;
|
|
opacity: 1;
|
|
overflow: hidden;
|
|
border-radius: 0 0 0.6rem 0.6rem;
|
|
padding: 0.6rem 1rem;
|
|
margin: 0;
|
|
background-color: rgba(0, 0, 0, 0.05);
|
|
transition: all 0.2s ease-in;
|
|
}
|
|
|
|
.loading {
|
|
top: -2rem;
|
|
opacity: 0;
|
|
}
|
|
|
|
.signedInText,
|
|
.notSignedInText {
|
|
padding-top: 0.8rem;
|
|
white-space: nowrap;
|
|
text-overflow: ellipsis;
|
|
overflow: hidden;
|
|
z-index: 1;
|
|
line-height: 1.3rem;
|
|
flex: 1;
|
|
}
|
|
|
|
.signedInText {
|
|
padding-top: 0rem;
|
|
left: 4.6rem;
|
|
}
|
|
|
|
.avatar {
|
|
border-radius: 2rem;
|
|
float: left;
|
|
height: 2.8rem;
|
|
width: 2.8rem;
|
|
margin-right: 1rem;
|
|
background-color: white;
|
|
background-size: cover;
|
|
background-repeat: no-repeat;
|
|
}
|
|
|
|
.button,
|
|
.buttonPrimary {
|
|
justify-self: end;
|
|
font-weight: 500;
|
|
border-radius: 0.3rem;
|
|
border: none;
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
font-size: 1rem;
|
|
line-height: 1.4rem;
|
|
padding: 0.7rem 0.8rem;
|
|
position: relative;
|
|
z-index: 10;
|
|
background-color: transparent;
|
|
color: #555;
|
|
}
|
|
|
|
.buttonPrimary {
|
|
background-color: #346df1;
|
|
border-color: #346df1;
|
|
color: #fff;
|
|
text-decoration: none;
|
|
padding: 0.7rem 1.4rem;
|
|
}
|
|
|
|
.buttonPrimary:hover {
|
|
box-shadow: inset 0 0 5rem rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.navItems {
|
|
margin-bottom: 2rem;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.navItem {
|
|
display: inline-block;
|
|
margin-right: 1rem;
|
|
}
|