Skip to content

Commit

Permalink
Add duplicated p styling
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxwellBo committed Jan 12, 2025
1 parent 44115fe commit ace5a5a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bibhtml/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
href="https://esm.sh/jsr/@celine/[email protected]/cell.css" />
<link
rel="stylesheet"
href="https://esm.sh/jsr/@celine/libertine@13.2.0/libertine.css" /> -->
href="https://esm.sh/jsr/@celine/libertine@13.3.0/libertine.css" /> -->

<meta property="og:image" content="https://maxbo.me/celine/bibhtml/static/og.png">
<meta name="twitter:image" content="https://maxbo.me/celine/bibhtml/static/og.png">
Expand Down
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
href="https://esm.sh/jsr/@celine/[email protected]/cell.css" />
<link
rel="stylesheet"
href="https://esm.sh/jsr/@celine/libertine@13.2.0/libertine.css" /> -->
href="https://esm.sh/jsr/@celine/libertine@13.3.0/libertine.css" /> -->

<meta name="theme-color" content="#ffffff">

Expand Down Expand Up @@ -255,7 +255,7 @@ <h2><a href="#installation" id="installation"></a>Installation</h2>
<pre class="echo" style="margin-bottom: 1ch;">
&lt;link
rel=&quot;stylesheet&quot;
href=&quot;https://esm.sh/jsr/@celine/libertine@13.2.0/libertine.css&quot; /&gt;
href=&quot;https://esm.sh/jsr/@celine/libertine@13.3.0/libertine.css&quot; /&gt;
</pre>

<h2><a href="#demo" id="demo"></a>Demo: Observable Plot + SQLite</h2>
Expand Down
2 changes: 1 addition & 1 deletion libertine/deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@celine/libertine",
"version": "13.2.0",
"version": "13.3.0",
"license": "MIT",
"exports": "./mod.ts"
}
6 changes: 3 additions & 3 deletions libertine/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
href="https://esm.sh/jsr/@celine/[email protected]/cell.css" />
<link
rel="stylesheet" -->
<!-- href="https://esm.sh/jsr/@celine/libertine@13.2.0/libertine.css" /> -->
<!-- href="https://esm.sh/jsr/@celine/libertine@13.3.0/libertine.css" /> -->

<script type="module">
import { CelineModule, registerScriptReevaluationOnBlur } from 'https://esm.sh/jsr/@celine/[email protected]';
Expand Down Expand Up @@ -91,7 +91,7 @@ <h1>@celine/libertine</h1>
<th>JSR</th>
<td class="width-auto"><a href="https://jsr.io/@celine/libertine">jsr.io/<wbr>@celine/<wbr>libertine</a> + <a href="https://jsr.io/@celine/libertine/doc">/docs</a></td>
<th>Version</th>
<td class="width-min"><a href="https://jsr.io/@celine/libertine/versions" id="version">13.2.0</a>, <time id="updated">Nov 29 2024</time></td>
<td class="width-min"><a href="https://jsr.io/@celine/libertine/versions" id="version">13.3.0</a>, <time id="updated">Nov 29 2024</time></td>
</tr>
<script type="module">
fetch("https://npm.jsr.io/@jsr/celine__libertine")
Expand All @@ -113,7 +113,7 @@ <h2><a href="#installation" id="installation"></a>Installation</h2>
<pre class="echo" style="margin-bottom: 1ch;" id="import">
&lt;link
rel=&quot;stylesheet&quot;
href=&quot;https://esm.sh/jsr/@celine/libertine@13.2.0/libertine.css&quot; /&gt;
href=&quot;https://esm.sh/jsr/@celine/libertine@13.3.0/libertine.css&quot; /&gt;
</pre>

<h2><a href="#fonts" id="fonts"></a>Fonts</h2>
Expand Down
9 changes: 6 additions & 3 deletions libertine/libertine.css
Original file line number Diff line number Diff line change
Expand Up @@ -191,18 +191,21 @@ th {
background-color: #f3f3f3;
}

p {
p,
.p {
padding-top: 0.25ch;
padding-bottom: 0.25ch;
}

/* if p is followed by an script.echo or style.echo, add a little space above the script */
p + script.echo, p + style.echo {
p + script.echo, p + style.echo,
.p + script.echo, .p + style.echo {
margin-top: 0.5ch;
}

/* if p is followed by an div.observablehq, add a little space above the inspector */
p:has(+ div.observablehq) {
p:has(+ div.observablehq),
.p:has(+ div.observablehq) {
margin-bottom: 1ch;
}

Expand Down

0 comments on commit ace5a5a

Please sign in to comment.