We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72dc4db commit 3c9dbedCopy full SHA for 3c9dbed
1 file changed
docs/assets/topbar.js
@@ -200,6 +200,15 @@
200
controls.appendChild(themeBtn);
201
bar.appendChild(controls);
202
203
+ /* Inject back-to-top button offset so it clears the topbar + header.
204
+ topbar.css covers the org site; this covers sub-sites that only load the JS. */
205
+ if (!document.getElementById('utplsql-topbar-style')) {
206
+ var style = document.createElement('style');
207
+ style.id = 'utplsql-topbar-style';
208
+ style.textContent = '.md-top { top: 4.4rem !important; }';
209
+ document.head.appendChild(style);
210
+ }
211
+
212
savedBar = bar;
213
document.body.insertBefore(bar, document.body.firstChild);
214
updateActiveLink();
0 commit comments