From bde5407178ce36ec1a4001202a76474f04464344 Mon Sep 17 00:00:00 2001 From: Kev Quirk Date: Sat, 7 May 2022 09:27:07 +0100 Subject: [PATCH] Added aside, article and section per #76 --- package.json | 2 +- simple.css | 28 ++++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 25dce27..f05d5ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "simpledotcss", - "version": "2.0.7", + "version": "2.1.0", "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 1da9a0f..a316fea 100644 --- a/simple.css +++ b/simple.css @@ -271,6 +271,34 @@ header > nav a:last-child { } } +aside { + width: 30%; + padding: 0 15px; + margin-left: 15px; + float: right; + background: var(--accent-bg); + border: 1px solid var(--border); + border-radius: 5px; +} + +article { + border: 1px solid var(--border); + padding: 1rem; + border-radius: 5px; +} + +article h2:first-child, +section h2:first-child { + margin-top: 1rem; +} + +section { + border-top: 1px solid var(--border); + border-bottom: 1px solid var(--border); + padding: 2rem 1rem; + margin: 3rem 0; +} + /* Format the expanding box */ details { background: var(--accent-bg);