diff --git a/css/common.css b/css/common.css index 6760986..032f4a8 100644 --- a/css/common.css +++ b/css/common.css @@ -63,8 +63,7 @@ body { border-radius: 153px; position: sticky; bottom: 15px; - left: 50%; - transform: translateX(-50%); + left: calc((100vw - 640px) / 2); z-index: 100; } .base .left { diff --git a/css/common.less b/css/common.less index fe0440e..9395ed3 100644 --- a/css/common.less +++ b/css/common.less @@ -78,8 +78,9 @@ body { border-radius: 153px; position: sticky; bottom: 15px; - left: 50%; - transform: translateX(-50%); + // left: 50%; + // transform: translateX(-50%); + left: calc((100vw - 640px) / 2); z-index: 100; .left { width: 450px; diff --git a/html/details.html b/html/details.html index c8f6af4..88c7721 100644 --- a/html/details.html +++ b/html/details.html @@ -15,6 +15,9 @@