From b60136ff565ca0f12a49d730a43c0740073f1738 Mon Sep 17 00:00:00 2001 From: lens0021 Date: Fri, 11 Jun 2021 05:22:06 +0900 Subject: [PATCH] style: Make margins of ol same to margins of ul (cherry picked from commit 1f12ac2d8e5b32fe472ea9c01c6fb416b4c56c6d) --- CHANGELOG.md | 1 + resources/variables.less | 23 ++++++++--------------- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6f4e1f14..7b531012 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ Versions and bullets are arranged chronologically from latest to oldest. - Fixes unnecessary delimiter in the footer (https://github.com/femiwiki/FemiwikiSkin/issues/104) - Uses AutoloadNamespace (https://github.com/femiwiki/femiwiki/issues/121) - Replaces hard-coded hrefs in GNB (https://github.com/femiwiki/FemiwikiSkin/issues/241) +- Makes margins of ol same to margins of ul. ## v1.7.0 diff --git a/resources/variables.less b/resources/variables.less index c9ba8d95..0523e845 100644 --- a/resources/variables.less +++ b/resources/variables.less @@ -396,8 +396,12 @@ margin: 0.2em 0; } - // Listsol, + // Lists + ol, ul { + margin: 0.3em 0 0 1.6em; + padding: 0; + li { margin-bottom: 0.5rem; @@ -409,20 +413,9 @@ } } - ol { - margin: 0.3em 0 0 3.2em; - padding: 0; - list-style-image: none; - } - - ul { - margin: 0.3em 0 0 1.6em; - padding: 0; - - &.gallery { - margin: 1.6rem 0 1.6rem; - padding-left: 1.2rem; - } + ul.gallery { + margin: 1.6rem 0 1.6rem; + padding-left: 1.2rem; } dl {