Sfoglia il codice sorgente

sort and optimize panel.scss

Henry Jameson 2 anni fa
parent
commit
23c5627639
1 ha cambiato i file con 15 aggiunte e 15 eliminazioni
  1. 15 15
      src/panel.scss

+ 15 - 15
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);
-}