From 23c5627639620704b9768412ad13b30e5bc14409 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Thu, 28 Apr 2022 10:57:06 +0300 Subject: [PATCH] sort and optimize panel.scss --- src/panel.scss | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/panel.scss b/src/panel.scss index d9e2efb6cc..5737f54e24 100644 --- a/src/panel.scss +++ b/src/panel.scss @@ -25,11 +25,21 @@ } } -.panel-body:empty::before { - content: "¯\\_(ツ)_/¯"; // Could use words but it'd require translations - display: block; - margin: 1em; - text-align: center; +.panel-body { + padding: var(--panel-body-padding, 0); + + &:empty::before { + content: "¯\\_(ツ)_/¯"; // Could use words but it'd require translations + display: block; + margin: 1em; + text-align: center; + } + + > p { + line-height: 1.3; + padding: 1em; + margin: 0; + } } .panel-heading, @@ -186,13 +196,3 @@ border-style: solid; border-color: var(--border, $fallback--border); } - -.panel-body > p { - line-height: 1.3; - padding: 1em; - margin: 0; -} - -.panel-body { - padding: var(--panel-body-padding, 0); -}