diff --git a/_sass/custom/custom.scss b/_sass/custom/custom.scss
index 487544da661b2c018ca5175560dcdd3b3e1bdb74..aeef181112b0a07b6acd7b941c01c12d534f94b5 100644
--- a/_sass/custom/custom.scss
+++ b/_sass/custom/custom.scss
@@ -38,8 +38,7 @@ div.highlighter-rouge[overlay] {
 }
 
 details {
-  margin-left: 40px;
-  margin-right: 40px;
+  margin: 0 40px 1em;
 }
 
 h1, h2, h3, h4, h5, h6 {