From 35f2a89299f96db572abce117ecbdebf1cf5c076 Mon Sep 17 00:00:00 2001 From: Kev Quirk Date: Sun, 6 Feb 2022 10:07:04 +0000 Subject: [PATCH] Fixing header top-margin in details #62 --- package.json | 2 +- simple.css | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index b04d178..fe11cd2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simpledotcss", - "version": "2.0.1", + "version": "2.0.2", "description": "Simple.css is a classless CSS template that allows you to make a good looking website really quickly.", "main": "simple.css", "files": [ diff --git a/simple.css b/simple.css index dcee29d..0df1812 100644 --- a/simple.css +++ b/simple.css @@ -267,6 +267,10 @@ details[open] { padding: 0.6rem 1rem 0.75rem 1rem; } +details[open] summary + * { + margin-top: 0; +} + details[open] summary { margin-bottom: 0.5rem; padding: 0;