1.0.0 • Published 4 years ago

pommel-source v1.0.0

Weekly downloads
2
License
MIT
Repository
-
Last release
4 years ago

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>