mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
PERF: Replace slow :has
selectors with body classes (#29581)
This commit is contained in:
parent
b124736a1c
commit
1b5a7be3d4
|
@ -6,7 +6,7 @@
|
|||
}}
|
||||
{{hide-application-header-buttons "search" "login" "signup" "menu"}}
|
||||
{{hide-application-sidebar}}
|
||||
|
||||
{{body-class "login-page"}}
|
||||
<div class="login-fullpage">
|
||||
<FlashMessage @flash={{this.flash}} @type={{this.flashType}} />
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{{! template-lint-disable no-duplicate-id }}
|
||||
{{hide-application-header-buttons "search" "login" "signup" "menu"}}
|
||||
{{hide-application-sidebar}}
|
||||
|
||||
{{body-class "signup-page"}}
|
||||
<div class="signup-fullpage">
|
||||
<FlashMessage @flash={{this.flash}} @type={{this.flashType}} />
|
||||
|
||||
|
|
|
@ -9,14 +9,17 @@
|
|||
flex-direction: column;
|
||||
}
|
||||
|
||||
#main-outlet:has(.login-fullpage, .signup-fullpage, .invites-show) {
|
||||
body.login-page,
|
||||
body.signup-page,
|
||||
body.invite-page {
|
||||
& ~ .powered-by-discourse,
|
||||
.above-main-container-outlet {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
body:has(.login-fullpage, .signup-fullpage) {
|
||||
body.login-page,
|
||||
body.signup-page {
|
||||
background-color: var(--secondary);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user