From e70d2f88b30280302e2c777655dcb30383680411 Mon Sep 17 00:00:00 2001 From: pdelboca Date: Sat, 10 Feb 2024 10:12:46 -0300 Subject: [PATCH] Bump sustainable.css to v0.0.9 --- css/sustainable.css | 9 ++++++--- demo.html | 12 ++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/css/sustainable.css b/css/sustainable.css index 8971cbc..1287ef3 100644 --- a/css/sustainable.css +++ b/css/sustainable.css @@ -1,5 +1,5 @@ /*! - * Sustainable CSS v0.0.7 (https://github.com/pdelboca/sustainable-css/) + * Sustainable CSS v0.0.9 (https://github.com/pdelboca/sustainable-css/) * Copyright 2023 by Patricio Del Boca - Licensed under MIT * * Sustainable CSS reuses system colors: @@ -18,7 +18,6 @@ } body { - line-height: 1.65; font-size: 1.15rem; margin-top: 0; } @@ -42,7 +41,11 @@ p { margin:0; } -p ~ p { +p, a, small, ol, ul, summary { + font-weight: 300; +} + +p { margin-bottom: 0.75rem; } diff --git a/demo.html b/demo.html index d5e1b06..09de1f1 100644 --- a/demo.html +++ b/demo.html @@ -20,10 +20,8 @@

Sustainable.css

Header and paragraphs

-

Header and paragraphs do not have margins. Avoiding margin collapse makes styling way easier.

- -

Top Navigation links

-

I only make the font-size: larger and text-decoration: none. You can then layout it as you want.

+

Header do not have margins by default to avoid margin collapse but paragraphs have a small bottom margin.

+

Margins are too opinionated and depends heavily in the layout. So I let users play with it.

Details

@@ -99,8 +97,10 @@

Mark

This is a highlighted text.

Articles

-

I add a border and align to the right the footer.

-

Usages notes in MDN Web Docs

+

+ I add a border and align to the right the footer. + Usages notes in MDN Web Docs +

Main Article Title

Lorem ipsum dolor sit amet consectetur adipisicing elit. Dolorum veritatis doloremque eum omnis corporis mollitia