浏览代码

fix color toggle position on mobile

Aneurin Barker Snook 11 月之前
父节点
当前提交
53e67bf4bf
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7 2
      src/style.scss

+ 7 - 2
src/style.scss

@@ -239,8 +239,13 @@ main {
 
 
 #color {
 #color {
   position: absolute;
   position: absolute;
-  right: 2rem;
-  top: 2rem;
+  right: 1rem;
+  top: 1rem;
+
+  @media (min-width: $bp-tablet) {
+    right: 2rem;
+    top: 2rem;
+  }
 
 
   button {
   button {
     background: none;
     background: none;