chiark / gitweb /
css: enforce bottom padding on figures w/ components in description.
authorVladimír Vondruš <mosra@centrum.cz>
Sun, 14 Oct 2018 15:12:36 +0000 (17:12 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 14 Oct 2018 18:17:49 +0000 (20:17 +0200)
Otherwise stuff like `div.m-graph:last-child` that resets it back to 0
gets a priority.

css/m-components.css
css/m-dark+doxygen.compiled.css
css/m-dark.compiled.css
css/m-light+doxygen.compiled.css
css/m-light.compiled.css

index 1af4e97b7db52d8c801dd6e1d0672955db28a566..993cdd18102448f130bb5dd20b23523981ac5508 100644 (file)
@@ -728,7 +728,9 @@ figure.m-figure > *:first-child {
   display: inline;
 }
 figure.m-figure > *:last-child {
-  margin-bottom: 1rem;
+  /* Need !important so the :last-child margin reset doesn't have higher
+     priority than this */
+  margin-bottom: 1rem !important;
 }
 figure.m-figure img, figure.m-figure svg {
   position: relative; /* so it's above the border */
index 6cf310b6187e090a01fe0363868861c59dc3dbe7..ba1bb2a11d7b5be4f7e9f3e6d1af2d172e68d8e9 100644 (file)
@@ -1048,7 +1048,7 @@ figure.m-figure > *:first-child {
   display: inline;
 }
 figure.m-figure > *:last-child {
-  margin-bottom: 1rem;
+  margin-bottom: 1rem !important;
 }
 figure.m-figure img, figure.m-figure svg {
   position: relative;
index 47a98d46f40295bf6b76560d58bc6ba98e24c54f..27d5e75500714fcfc658d644c2d63164433bf916 100644 (file)
@@ -1048,7 +1048,7 @@ figure.m-figure > *:first-child {
   display: inline;
 }
 figure.m-figure > *:last-child {
-  margin-bottom: 1rem;
+  margin-bottom: 1rem !important;
 }
 figure.m-figure img, figure.m-figure svg {
   position: relative;
index 6229d5f78aae327599dae451500151ab594cbb67..4629aa159b5c56bf77e54237132ba260f64b4d12 100644 (file)
@@ -1048,7 +1048,7 @@ figure.m-figure > *:first-child {
   display: inline;
 }
 figure.m-figure > *:last-child {
-  margin-bottom: 1rem;
+  margin-bottom: 1rem !important;
 }
 figure.m-figure img, figure.m-figure svg {
   position: relative;
index cd2cd85b5a04adbb1e5b4143de329d7d91c22294..0c1c71d5c882fcf8362e2b67415b6107457de2f2 100644 (file)
@@ -1048,7 +1048,7 @@ figure.m-figure > *:first-child {
   display: inline;
 }
 figure.m-figure > *:last-child {
-  margin-bottom: 1rem;
+  margin-bottom: 1rem !important;
 }
 figure.m-figure img, figure.m-figure svg {
   position: relative;