Some terrible witchcraft for allowing editing with heroes

This commit is contained in:
dave onion 2025-12-18 18:18:11 -05:00
parent ca04eaf71a
commit f52fbc4575
3 changed files with 45 additions and 26 deletions

View file

@ -9608,20 +9608,26 @@ a#main-content {
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
a#main-content + article {
margin-top: 52px;
}
@media screen and (min-width: 1024px) {
a#main-content + article {
margin-top: 90px;
}
}
.gin--horizontal-toolbar .section:has(#block-agarica-local-tasks) { .gin--horizontal-toolbar .section:has(#block-agarica-local-tasks) {
padding-block: 0; padding-block: 0;
} }
.gin--horizontal-toolbar article[data-history-node-id] { .gin--horizontal-toolbar:has(.hero-project) #navbar {
margin-top: 0 !important; background-color: transparent;
}
.gin--horizontal-toolbar:has(.hero-project) .hero {
margin-top: -8rem;
}
.gin--horizontal-toolbar:has(.hero-project) section:has(#block-agarica-local-tasks) {
position: absolute;
z-index: 999;
padding-top: 1rem;
}
.gin--horizontal-toolbar:has(.hero-project) section:has(#block-agarica-local-tasks) ul li a {
color: white;
}
.gin--horizontal-toolbar:has([data-history-node-id]):has(.hero-main) article[data-history-node-id] {
margin-top: 4rem;
} }
.gin--horizontal-toolbar:has([data-history-node-id]):has(.hero-main) .section:has(#block-agarica-local-tasks) { .gin--horizontal-toolbar:has([data-history-node-id]):has(.hero-main) .section:has(#block-agarica-local-tasks) {
position: absolute; position: absolute;
@ -10860,9 +10866,11 @@ a.teaser:hover .subtitle {
background-color: #FFFFFF; background-color: #FFFFFF;
} }
.hero-project { .hero-project,
.hero-person {
margin-top: -6rem; margin-top: -6rem;
} }
.hero-project .container .hero-body .title { .hero-project .container .hero-body .title {
color: currentColor; color: currentColor;
font-size: 2.5rem; font-size: 2.5rem;

File diff suppressed because one or more lines are too long

View file

@ -148,12 +148,16 @@ iframe {
a#main-content { a#main-content {
margin: 0; margin: 0;
padding: 0; padding: 0;
// position node content in relation to fixed header minus a couple pixels for overlap
+ article {
margin-top: 52px;
@media screen and (min-width: 1024px) {
margin-top: 90px;
} }
// Positioning witchcraft to allow editing in the presence of heroes
@mixin localfloaters {
position: absolute;
z-index: 999;
padding-top: 1rem;
ul li a {
color: white;
} }
} }
@ -165,18 +169,25 @@ a#main-content {
padding-block: 0; padding-block: 0;
} }
article[data-history-node-id] { &:has(.hero-project) {
margin-top: 0 !important; #navbar {
background-color: transparent;
}
.hero {
margin-top: -8rem;
}
section:has(#block-agarica-local-tasks) {
@include localfloaters();
}
} }
&:has([data-history-node-id]):has(.hero-main){ &:has([data-history-node-id]):has(.hero-main){
article[data-history-node-id] {
margin-top: 4rem;
}
.section:has(#block-agarica-local-tasks) { .section:has(#block-agarica-local-tasks) {
position: absolute; @include localfloaters();
z-index: 999;
padding-top: 1rem;
ul li a {
color: white;
}
} }
} }
} }