From a87c87eb104cce48ab74e4b2773467ab0d7c0653 Mon Sep 17 00:00:00 2001 From: Antonio De Lucreziis Date: Sat, 3 Aug 2024 03:31:31 +0200 Subject: [PATCH] chore: minor stylistic changes --- src/content/meta/whats-phc.md | 2 +- src/pages/guide/[id].astro | 2 -- src/styles/pages.scss | 4 ++-- src/styles/typography.scss | 30 +++++++++++++++++++----------- 4 files changed, 22 insertions(+), 16 deletions(-) diff --git a/src/content/meta/whats-phc.md b/src/content/meta/whats-phc.md index 1f70198..be4e868 100644 --- a/src/content/meta/whats-phc.md +++ b/src/content/meta/whats-phc.md @@ -6,6 +6,6 @@ Il **PHC** è un laboratorio informati La sede del PHC è la [stanza 106](https://www.dm.unipi.it/mappa/?sel=638cd24b50cf34e03924a00c) del Dipartimento, dove si trovano i **macchinisti** per discutere e realizzare progetti [hardware](http://steffe.cs.dm.unipi.it/) e [software](https://lab.phc.dm.unipi.it/orario), e occuparsi di server autogestiti. -Le macchine del PHC girano principalmente Linux/Unix come sistemi operativi e i macchinisti sono grandi sostenitori di software **FOSS** (che loro stessi sviluppano sull'[istanza Gitea del PHC](https://git.phc.dm.unipi.it/phc)). +Le macchine del PHC girano principalmente Linux/Unix come sistemi operativi e i macchinisti sono grandi sostenitori di software [FOSS](https://it.wikipedia.org/wiki/Free_and_Open_Source_Software) (che loro stessi sviluppano sull'[istanza Gitea del PHC](https://git.phc.dm.unipi.it/phc)). La lista dei vari macchinisti nel corso del tempo e di vari eventi notevoli si trova nella [pagina della storia](/storia) del PHC. diff --git a/src/pages/guide/[id].astro b/src/pages/guide/[id].astro index 31ebf9b..eceb93f 100644 --- a/src/pages/guide/[id].astro +++ b/src/pages/guide/[id].astro @@ -6,8 +6,6 @@ import ArticleLayout from '../../layouts/ArticleLayout.astro' export async function getStaticPaths() { const guides = await getCollection('guides') - console.log(guides) - return guides.map(entry => ({ params: { id: entry.slug }, props: { entry }, diff --git a/src/styles/pages.scss b/src/styles/pages.scss index ee03a85..5fa2a83 100644 --- a/src/styles/pages.scss +++ b/src/styles/pages.scss @@ -313,7 +313,7 @@ .notizie, .notizia { --card-base: color-mix(in lab, var(--news-base), #fff 25%); - --zone-color: color-mix(in lab, var(--news-base), #000 50%); + --zone-color: color-mix(in lab, var(--news-base), #000 75%); background: color-mix(in lab, var(--news-base), #fff 90%); } @@ -359,7 +359,7 @@ .guide, .guida { --card-base: color-mix(in lab, var(--guide-base), #fff 25%); - --zone-color: color-mix(in lab, var(--guide-base), #000 50%); + --zone-color: color-mix(in lab, var(--guide-base), #000 75%); background: color-mix(in lab, var(--guide-base), #fff 90%); } diff --git a/src/styles/typography.scss b/src/styles/typography.scss index 6e91da1..032c07c 100644 --- a/src/styles/typography.scss +++ b/src/styles/typography.scss @@ -84,22 +84,30 @@ p { line-height: 1.75; - margin: 0 auto; + margin: 1rem auto; } - p + p { - margin-top: 1rem; - } + // p + p { + // margin-top: 1rem; + // } + + // h1 + p, + // h2 + p, + // h3 + p, + // h4 + p { + // margin-top: 1rem; + // } + + // p:has(+ h1, + h2, + h3, + h4) { + // margin-bottom: 1rem; + // } - h1 + p, - h2 + p, - h3 + p, - h4 + p { - margin-top: 1rem; + p:first-child { + margin-top: 0; } - p:has(+ h1, + h2, + h3, + h4) { - margin-bottom: 1rem; + p:last-child { + margin-bottom: 0; } strong {