From 6bdd7ebcee3130047072f6992ab5f76a0f844329 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 13 Oct 2018 17:36:15 +0200 Subject: [PATCH] scss: make last paragraph have no bottom padding --- css/clear-typography.css | 2 ++ scss/clear-typography.scss | 3 +++ 2 files changed, 5 insertions(+) diff --git a/css/clear-typography.css b/css/clear-typography.css index 46bc0a2..e23ede2 100644 --- a/css/clear-typography.css +++ b/css/clear-typography.css @@ -60,6 +60,8 @@ p { padding: 0; padding-bottom: 1.5em; margin: 0; } + p:last-child { + padding-bottom: 0; } ul { padding: 0; diff --git a/scss/clear-typography.scss b/scss/clear-typography.scss index 2486626..c0bce02 100644 --- a/scss/clear-typography.scss +++ b/scss/clear-typography.scss @@ -81,6 +81,9 @@ a { p { @include paragraph(); + &:last-child { + padding-bottom:0; + } } ul {