소스 검색

Apply scroll-back-to-content's z-index only for mobile (#1086)

ref: https://github.com/excalidraw/excalidraw/pull/1002/files#diff-6a2256f44598ec970b4bd034962e011eR376
Sanghyeon Lee 5 년 전
부모
커밋
d8708cb14f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/styles.scss

+ 1 - 1
src/styles.scss

@@ -374,7 +374,6 @@ button,
   bottom: 30px;
   transform: translateX(-50%);
   padding: 10px 20px;
-  z-index: -1;
 }
 
 @media #{$media-query} {
@@ -384,5 +383,6 @@ button,
   .scroll-back-to-content {
     bottom: 80px;
     bottom: calc(80px + var(--sab));
+    z-index: -1;
   }
 }