pommel-source
v1.0.0
Published
A CSS file to better style a zero-dependency details/summary plugin to expand and show source code.
Downloads
3
Readme
pommel-source
A CSS file to better style a zero-dependency details/summary plugin to expand and show source code.
Usage
<link rel="stylesheet" href="pommel-source.css">
<details class="pommel-source" open>
<summary>Embed</summary>
<pre>* { box-sizing: border-box; }</pre>
</details>
Works with @11ty/eleventy-plugin-syntaxhighlight
<!-- include Prism theme -->
<link rel="stylesheet" href="prism-theme.css">
<link rel="stylesheet" href="pommel-source.css">
<details class="pommel-source" open>
<summary>Embed</summary>
{%- highlight css %}
* { box-sizing: border-box; }
{%- endhighlight %}
</pre>
</details>