From 00f1486a04596a43387e62068f7c5a1f202c0762 Mon Sep 17 00:00:00 2001 From: Lucas Larroche Date: Sat, 1 Apr 2023 13:09:35 +0700 Subject: [PATCH] style: lists --- scss/content/_typography.scss | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/scss/content/_typography.scss b/scss/content/_typography.scss index 84e9c8d9..90f78558 100644 --- a/scss/content/_typography.scss +++ b/scss/content/_typography.scss @@ -115,12 +115,7 @@ } // Lists - :where(dl, ol, ul) { - padding-right: 0; - padding-left: var(#{$✨}spacing); - padding-inline-start: var(#{$✨}spacing); - padding-inline-end: 0; - + :where(ol, ul) { li { margin-bottom: calc(var(#{$✨}typography-spacing-vertical) * 0.25); } @@ -128,11 +123,9 @@ // Margin-top for nested lists // 1. Remove the margin on nested lists in Chrome, Edge, IE, and Safari - :where(dl, ol, ul) { - :is(dl, ol, ul) { + :where(dl, ol, ul) :where(dl, ol, ul) { margin: 0; // 1 margin-top: calc(var(#{$✨}typography-spacing-vertical) * 0.25); - } } ul li {