소스 검색

fix(style): fix case where widget background overlays content

Issue was primarily noticed when setting a background image on the Hero or Portfolio widgets.

Also, fix background not showing in Firefox due to unsupported `fill-available`.

Fixes b647d7e81a5ac59326fe8e5a1424df6a8bff7146
George Cushen 4 년 전
부모
커밋
6ff8f5c3ee
1개의 변경된 파일4개의 추가작업 그리고 12개의 파일을 삭제
  1. 4 12
      wowchemy/assets/scss/wowchemy/_widgets.scss

+ 4 - 12
wowchemy/assets/scss/wowchemy/_widgets.scss

@@ -74,10 +74,9 @@
   position: absolute;
   top: 0;
   left: 0;
-  height: fill-available;
-  height: -webkit-fill-available;
-  width: fill-available;
-  width: -webkit-fill-available;
+  height: 100%; // Or fill-available when supported.
+  width: 100%; // Or fill-available when supported.
+  z-index: -1; // Place bg div behind content.
 }
 
 /* Default background image properties for home sections. */
@@ -149,14 +148,7 @@
  **************************************************/
 
 .wg-hero {
-  padding: 3em 0;
-  clear: both;
-  background-size: cover;
-  background-repeat: no-repeat;
-  background-position: center;
-  animation: intro 0.3s both;
-  animation-delay: 0s;
-  animation-delay: 0.25s;
+  padding: 3em 0; // More compact top and bottom padding for Hero.
 }
 
 .hero-title {