mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:40:00 +08:00
UX: cleaning up some invite page styles (#25247)
This commit is contained in:
parent
92197b9c64
commit
7639591552
|
@ -1,3 +1,4 @@
|
||||||
|
{{body-class "account-activation-page"}}
|
||||||
<div class="container invites-show">
|
<div class="container invites-show">
|
||||||
<div class="login-welcome-header">
|
<div class="login-welcome-header">
|
||||||
<h1 class="login-title">{{this.welcomeTitle}}</h1>
|
<h1 class="login-title">{{this.welcomeTitle}}</h1>
|
||||||
|
|
|
@ -1,28 +1,45 @@
|
||||||
// Styles used before the user is logged into discourse. For example, activating their
|
// Styles used before the user is logged into discourse. For example, activating their
|
||||||
// account or changing their email.
|
// account or changing their email.
|
||||||
|
|
||||||
#simple-container {
|
.account-activation-page {
|
||||||
|
.desktop-view & {
|
||||||
|
background: var(--primary-very-low);
|
||||||
|
}
|
||||||
|
#main-outlet-wrapper {
|
||||||
|
display: block;
|
||||||
|
.sidebar-wrapper {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#main-outlet {
|
||||||
|
padding: 0;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
#simple-container {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
box-sizing: border-box;
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
background-color: var(--secondary);
|
width: 100%;
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
width: 550px;
|
justify-content: center;
|
||||||
margin: 0 auto;
|
margin-top: var(--header-offset);
|
||||||
|
|
||||||
.account-created {
|
.account-created {
|
||||||
.ac-message {
|
.ac-message {
|
||||||
font-size: var(--font-up-1);
|
font-size: var(--font-up-1);
|
||||||
line-height: var(--line-height-large);
|
line-height: var(--line-height-large);
|
||||||
}
|
}
|
||||||
.activation-controls {
|
.activation-controls {
|
||||||
button {
|
display: flex;
|
||||||
margin-right: 0.5em;
|
flex-wrap: wrap;
|
||||||
}
|
gap: 0.5em;
|
||||||
}
|
}
|
||||||
.ac-page {
|
.ac-page {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
margin-top: 25px;
|
margin-top: 25px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.activate-account {
|
.activate-account {
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
body.invite-page {
|
body.invite-page {
|
||||||
background-color: var(--primary-50);
|
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
||||||
Oxygen-Sans, Ubuntu, Cantarell, Arial, sans-serif;
|
Oxygen-Sans, Ubuntu, Cantarell, Arial, sans-serif;
|
||||||
|
#main-outlet-wrapper {
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.invites-show,
|
.invites-show,
|
||||||
|
|
|
@ -1,16 +1,3 @@
|
||||||
#main-outlet-wrapper:has(.invites-show) {
|
|
||||||
display: block;
|
|
||||||
height: 100vh;
|
|
||||||
|
|
||||||
.sidebar-wrapper {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#main-outlet {
|
|
||||||
padding: 0;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.invites-show {
|
.invites-show {
|
||||||
padding: 2rem 3rem;
|
padding: 2rem 3rem;
|
||||||
background: var(--secondary);
|
background: var(--secondary);
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
|
.invite-page {
|
||||||
|
background: var(--primary-50);
|
||||||
|
}
|
||||||
|
|
||||||
.invites-show {
|
.invites-show {
|
||||||
position: absolute;
|
|
||||||
top: 50%;
|
|
||||||
left: 50%;
|
|
||||||
transform: translateX(-50%) translateY(-50%);
|
|
||||||
max-width: 500px;
|
max-width: 500px;
|
||||||
padding: 2rem 3rem;
|
padding: 2rem 3rem;
|
||||||
background: var(--secondary);
|
background: var(--secondary);
|
||||||
box-shadow: var(--shadow-menu-panel);
|
box-shadow: var(--shadow-menu-panel);
|
||||||
|
margin: 10vh auto 1em auto;
|
||||||
|
@media screen and (max-height: 700px) {
|
||||||
|
margin: 1em auto 1em auto;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,7 @@
|
||||||
#main-outlet-wrapper:has(.invites-show) {
|
|
||||||
padding: 0;
|
|
||||||
}
|
|
||||||
.invites-show {
|
.invites-show {
|
||||||
height: 100vh;
|
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
padding: 0 1em 1em;
|
||||||
|
|
||||||
.invitation-cta {
|
.invitation-cta {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user