Skip to content

Commit

Permalink
update style for "code block" (pre inside code)
Browse files Browse the repository at this point in the history
also update license with current year
  • Loading branch information
npup committed Apr 14, 2023
1 parent e3918fe commit c462def
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright 2021 P. Envall
Copyright 2021 - 2023 P. Envall

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "css-to-go",
"type": "module",
"version": "1.5.8",
"version": "1.6.0",
"description": "A bit of global CSS to help shape up the looks of a plain HTML document. Has a dark mode and a light mode.",
"author": "P.Envall <[email protected]>",
"homepage": "https://npup.github.io/css-to-go",
Expand Down
6 changes: 2 additions & 4 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,7 @@ import { siteUrl } from "@/util";
</p>

<code>
<pre>
&lt;DOCTYPE html&gt;
<pre>&lt;DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title>Example&lt;/title&gt;
Expand All @@ -96,8 +95,7 @@ import { siteUrl } from "@/util";
... your content

&lt;/body&gt;
&lt;html&gt;
</pre>
&lt;html&gt;</pre>
</code>

<p>
Expand Down
3 changes: 3 additions & 0 deletions src/styles/_basic-elements.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
& code > pre {
border: 2px solid var(--color-codepre-border);
border-radius: var(--border-radius);
margin: 1rem 0;
padding: 0.5rem;
white-space: break-spaces;
}

/** quote section */
Expand Down

0 comments on commit c462def

Please sign in to comment.