Skip to content
Snippets Groups Projects
Verified Commit 89dd57f7 authored by anarsec's avatar anarsec
Browse files

remove inline css

parent 6835d16b
No related branches found
No related tags found
No related merge requests found
...@@ -525,13 +525,16 @@ body[theme="dark"] ...@@ -525,13 +525,16 @@ body[theme="dark"]
section section
flex: 1 flex: 1
img[theme="dark"], img[theme="dark"],
picture[theme="dark"], picture[theme="dark"],
video[theme="dark"], video[theme="dark"],
pre[theme="dark"] pre[theme="dark"]
filter: invert(1) hue-rotate(180deg) filter: invert(1) hue-rotate(180deg)
.menu
position: sticky
top: 48px
#image-gay #image-gay
width: auto width: auto
height: auto height: auto
......
...@@ -11,8 +11,7 @@ ...@@ -11,8 +11,7 @@
function isVisible(tocIndex) { function isVisible(tocIndex) {
const current = navSections[tocIndex]; const current = navSections[tocIndex];
const next = tocIndex < tocItems.length - 1 ? navSections[tocIndex + 1] const next = tocIndex < tocItems.length - 1 ? navSections[tocIndex + 1] : document.querySelector("section.section").nextElementSibling;
: document.querySelectorAll("section.section").item(1);
const c = current.getBoundingClientRect(); const c = current.getBoundingClientRect();
const n = next.getBoundingClientRect(); const n = next.getBoundingClientRect();
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</div> </div>
{% if page.extra.toc %} {% if page.extra.toc %}
<div class="column is-2 is-hidden-mobile"> <div class="column is-2 is-hidden-mobile">
<aside class="menu" style="position: sticky; top: 48px"> <aside class="menu">
<p class="heading has-text-weight-bold">Contents</p> <p class="heading has-text-weight-bold">Contents</p>
<ul class="menu-list"> <ul class="menu-list">
{% for h1 in page.toc %} {% for h1 in page.toc %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment