mirror of
https://0xacab.org/anarsec/anarsec.guide.git
synced 2025-06-08 14:52:54 -04:00
remove inline css
This commit is contained in:
parent
6835d16b44
commit
89dd57f725
3 changed files with 6 additions and 4 deletions
|
@ -525,13 +525,16 @@ body[theme="dark"]
|
|||
section
|
||||
flex: 1
|
||||
|
||||
|
||||
img[theme="dark"],
|
||||
picture[theme="dark"],
|
||||
video[theme="dark"],
|
||||
pre[theme="dark"]
|
||||
filter: invert(1) hue-rotate(180deg)
|
||||
|
||||
.menu
|
||||
position: sticky
|
||||
top: 48px
|
||||
|
||||
#image-gay
|
||||
width: auto
|
||||
height: auto
|
||||
|
|
|
@ -11,8 +11,7 @@
|
|||
|
||||
function isVisible(tocIndex) {
|
||||
const current = navSections[tocIndex];
|
||||
const next = tocIndex < tocItems.length - 1 ? navSections[tocIndex + 1]
|
||||
: document.querySelectorAll("section.section").item(1);
|
||||
const next = tocIndex < tocItems.length - 1 ? navSections[tocIndex + 1] : document.querySelector("section.section").nextElementSibling;
|
||||
|
||||
const c = current.getBoundingClientRect();
|
||||
const n = next.getBoundingClientRect();
|
||||
|
|
|
@ -45,7 +45,7 @@
|
|||
</div>
|
||||
{% if page.extra.toc %}
|
||||
<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>
|
||||
<ul class="menu-list">
|
||||
{% for h1 in page.toc %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue