Skip to content

Commit fa4f69a

Browse files
committed
style: 優化關閉按鈕位置對稱性
- 調整桌面版位置計算方式,使用 min() 函數確保更精確的定位 - 更新手機版位置為右上角 15px,符合 iOS 設計規範 - 統一視覺平衡,提升使用體驗
1 parent 3ee7bb8 commit fa4f69a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,8 @@
291291

292292
.markdown-close {
293293
position: fixed;
294-
top: 70px;
295-
right: calc((100% - 900px) / 2 + 30px);
294+
top: 60px;
295+
right: calc((100% - min(900px, 90%)) / 2 + 20px);
296296
width: 30px;
297297
height: 30px;
298298
cursor: pointer;
@@ -344,8 +344,8 @@
344344

345345
@media (max-width: 900px) {
346346
.markdown-close {
347-
right: 20px;
348-
top: 60px;
347+
right: 15px;
348+
top: 15px;
349349
}
350350
}
351351

0 commit comments

Comments
 (0)