mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 23:22:47 +08:00
chore: update signup page style
This commit is contained in:
parent
1b60180b79
commit
0945b14deb
2 changed files with 11 additions and 11 deletions
|
@ -1,8 +1,7 @@
|
|||
@import "./mixin.less";
|
||||
|
||||
.page-wrapper.signin {
|
||||
.flex(row, center, center);
|
||||
@apply w-full min-h-screen bg-white;
|
||||
@apply flex flex-row justify-center items-center w-full min-h-screen bg-white;
|
||||
|
||||
> .page-container {
|
||||
@apply w-80 max-w-full py-4 -mt-16;
|
||||
|
@ -24,12 +23,10 @@
|
|||
}
|
||||
|
||||
> .page-content-container {
|
||||
.flex(column, flex-start, flex-start);
|
||||
@apply w-full;
|
||||
@apply flex flex-col justify-start items-start w-full;
|
||||
|
||||
> .form-item-container {
|
||||
.flex(column, flex-start, flex-start);
|
||||
@apply relative w-full text-base mt-2;
|
||||
@apply flex flex-col justify-start items-start relative w-full text-base mt-2;
|
||||
|
||||
> .normal-text {
|
||||
@apply absolute top-3 left-3 px-1 leading-10 flex-shrink-0 text-base cursor-text text-gray-400 bg-transparent transition-all select-none;
|
||||
|
@ -54,8 +51,7 @@
|
|||
}
|
||||
|
||||
> .action-btns-container {
|
||||
.flex(row, flex-end, center);
|
||||
@apply w-full mt-2;
|
||||
@apply flex flex-row justify-end items-center w-full mt-2;
|
||||
|
||||
> .btn {
|
||||
@apply px-1 py-2 text-sm rounded hover:opacity-80;
|
||||
|
@ -71,7 +67,11 @@
|
|||
}
|
||||
|
||||
> .tip-text {
|
||||
@apply w-full text-sm mt-4 text-gray-500 text-right whitespace-pre-wrap;
|
||||
@apply w-auto inline-block float-right text-sm mt-4 text-gray-500 text-right whitespace-pre-wrap;
|
||||
|
||||
&.owner-tip {
|
||||
@apply bg-blue-500 text-white px-2 py-1 rounded;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -148,10 +148,10 @@ const Signin: React.FC<Props> = () => {
|
|||
</button>
|
||||
)}
|
||||
</div>
|
||||
<p className="tip-text">
|
||||
<p className={`tip-text ${siteOwner || pageLoadingState.isLoading ? "" : "owner-tip"}`}>
|
||||
{siteOwner || pageLoadingState.isLoading
|
||||
? "If you don't have an account, please\ncontact the site owner."
|
||||
: "You are registering as the site owner."}
|
||||
: "You are registering as the Site Owner."}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue