Skip to content

Commit

Permalink
[css-nesting] Fix broken talk (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySharabin authored Dec 3, 2024
1 parent d77a4d2 commit 3a68e61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion css-nesting/css/talk.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@import url("https://inspirejs.org/inspire.css") layer(base-theme);
@import url("https://inspirejs.org/theme.css") layer(base-theme);
@import url("https://inspirejs.org/style/theme.css") layer(base-theme);
@import url("theme.css") layer(theme);
@import url("components.css");

Expand Down
3 changes: 3 additions & 0 deletions css-nesting/talk.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import "./js/prism-tokenizedcss.js";
import "./js/prism-cssgrammar.js";
import Inspire from "https://inspirejs.org/inspire.mjs";

let { $$ } = Inspire.util;

let path = new URL(".", import.meta.url);
Inspire.plugins.register({
Expand Down
2 changes: 2 additions & 0 deletions css-nesting/tree/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export const hasCSS = true;

await Inspire.importsLoaded;

let { $$ } = Inspire.util;

function renderTrees(element = document) {
// Create trees from nested <ul>s
let trees = element.querySelectorAll("ul:is(.tree, .tree-children > *):not(.initialized)");
Expand Down

0 comments on commit 3a68e61

Please sign in to comment.