Преглед изворни кода

fix(css): hide any `.article-style` Y-overflow

Close #2051
George Cushen пре 4 година
родитељ
комит
ed047ad576
1 измењених фајлова са 4 додато и 2 уклоњено
  1. 4 2
      wowchemy/assets/scss/wowchemy/_content.scss

+ 4 - 2
wowchemy/assets/scss/wowchemy/_content.scss

@@ -151,8 +151,10 @@ article .article-metadata {
 }
 
 .article-style {
-  // Break unresponsive block content, such as unresponsive embeds, to prevent horizontal scrolling.
-  overflow-x: hidden;
+  // Any unresponsive embeds, e.g. Plotly, should be wrapped to handle on a case-by-case basis.
+  // If any unresponsive embeds still remain in the article, prevent article overflow and DIV scrolling.
+  // Note that lazy-loaded images, e.g. Gallery, may cause scrollable Y-overflow if only X-overflow is hidden pre-load.
+  overflow: hidden;
 
   // Word wrap text content.
   @include word-wrap();