From 52507d0b41a3dfdb9131f8ebdd444c455acad541 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 24 Jun 2023 10:17:54 +0200 Subject: [PATCH 1/2] style: code block --- src/components/Post.astro | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/Post.astro b/src/components/Post.astro index 4b73ea1..6726ddb 100644 --- a/src/components/Post.astro +++ b/src/components/Post.astro @@ -52,8 +52,6 @@ const datePublished = } } - - content { p, table, ul, img { margin: 1em 0 !important; @@ -72,5 +70,10 @@ const datePublished = pre { white-space: pre-wrap; } + pre:has(code) { + padding: 1em; + background: #f6f8fa; + border-radius: 5px; + } } \ No newline at end of file From fe3e054fdacd9abe3d041c05b1430e4889287fc0 Mon Sep 17 00:00:00 2001 From: Ayo Date: Sat, 24 Jun 2023 10:18:19 +0200 Subject: [PATCH 2/2] 0.1.27 --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5fb79d6..666462f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@ayco/cozy", - "version": "0.1.26", + "version": "0.1.27", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@ayco/cozy", - "version": "0.1.26", + "version": "0.1.27", "dependencies": { "@astrojs/netlify": "^2.2.2", "@extractus/article-extractor": "^7.2.15", diff --git a/package.json b/package.json index d95459b..57b0f16 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@ayco/cozy", - "version": "0.1.26", + "version": "0.1.27", "scripts": { "start": "astro dev", "build": "astro build"