oops
This commit is contained in:
parent
0fe08826ac
commit
fa6a7eee07
|
@ -1054,18 +1054,12 @@ body:not(.find-open) [data-match-highlight-count="1"] .CodeMirror-selection-high
|
||||||
#header.sticky .buttons > button,
|
#header.sticky .buttons > button,
|
||||||
#header.sticky .split-btn-pedal,
|
#header.sticky .split-btn-pedal,
|
||||||
#heading,
|
#heading,
|
||||||
#header-sticker {
|
h2 {
|
||||||
top: 0;
|
display: none;
|
||||||
height: 1px;
|
|
||||||
position: absolute;
|
|
||||||
visibility: hidden;
|
|
||||||
}
|
}
|
||||||
.popup-window #details-wrapper {
|
.popup-window #details-wrapper {
|
||||||
margin-right: var(--popup-button-width);
|
margin-right: var(--popup-button-width);
|
||||||
}
|
}
|
||||||
h2 {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
#basic-info {
|
#basic-info {
|
||||||
margin: 0 var(--popup-button-width) var(--pad05) 0;
|
margin: 0 var(--popup-button-width) var(--pad05) 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
|
@ -60,7 +60,14 @@ baseInit.ready.then(async () => {
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
// Set up mini-header on scroll
|
// Set up mini-header on scroll
|
||||||
const {isUsercss} = editor;
|
const {isUsercss} = editor;
|
||||||
const el = $create('#header-sticker');
|
const el = $create({
|
||||||
|
style: `
|
||||||
|
top: 0;
|
||||||
|
height: 1px;
|
||||||
|
position: absolute;
|
||||||
|
visibility: hidden;
|
||||||
|
`.replace(/;/g, '!important;'),
|
||||||
|
});
|
||||||
const scroller = isUsercss ? $('.CodeMirror-scroll') : document.body;
|
const scroller = isUsercss ? $('.CodeMirror-scroll') : document.body;
|
||||||
const xoRoot = isUsercss ? scroller : undefined;
|
const xoRoot = isUsercss ? scroller : undefined;
|
||||||
const xo = new IntersectionObserver(onScrolled, {root: xoRoot});
|
const xo = new IntersectionObserver(onScrolled, {root: xoRoot});
|
||||||
|
|
Loading…
Reference in New Issue
Block a user