소스 검색

modify hitarea size

Yuki Takei 4 년 전
부모
커밋
63e8073720
1개의 변경된 파일7개의 추가작업 그리고 3개의 파일을 삭제
  1. 7 3
      packages/app/src/styles/_sidebar.scss

+ 7 - 3
packages/app/src/styles/_sidebar.scss

@@ -43,9 +43,13 @@
     }
     }
     .hitarea {
     .hitarea {
       @extend .rounded-pill;
       @extend .rounded-pill;
-      width: $size;
-      height: $size;
-      background-color: red;
+
+      $size-hitarea: $size * 2.5;
+      position: absolute;
+      top: ($size - $size-hitarea) / 2;
+      left: ($size - $size-hitarea) / 2;
+      width: $size-hitarea;
+      height: $size-hitarea;
     }
     }
 
 
     // reverse and center icon at the time of collapsed
     // reverse and center icon at the time of collapsed