Skip to content

Commit 80d27df

Browse files
committed
fix: 優化關閉按鈕位置,更貼近右上角
1 parent 6648831 commit 80d27df

3 files changed

Lines changed: 9 additions & 11 deletions

File tree

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
{ "file": "./.github/instructions/javascript.instructions.md" },
1313
{ "file": "./.github/instructions/testing.instructions.md" },
1414
{ "file": "./.github/instructions/agent-mode.instructions.md" }
15-
]
15+
],
16+
"liveServer.settings.port": 5501
1617
}

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<meta http-equiv="Expires" content="0">
99
<meta name="theme-color" content="#000000">
1010
<title>GitHub Copilot 教學專案</title>
11-
<link rel="stylesheet" href="style.css?v=20250603007">
11+
<link rel="stylesheet" href="style.css?v=20250603009">
1212
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
1313
<script src="https://cdn.jsdelivr.net/npm/qrcodejs@1.0.0/qrcode.min.js"></script>
1414
</head>
@@ -352,6 +352,6 @@ <h3 style="font-size: 1.25rem; font-weight: 600; color: #1d1d1f; margin-bottom:
352352
</div>
353353
</div>
354354

355-
<script src="script.js?v=20250603007"></script>
355+
<script src="script.js?v=20250603009"></script>
356356
</body>
357357
</html>

style.css

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -661,12 +661,10 @@ body {
661661

662662
.markdown-close {
663663
position: sticky;
664-
top: 15px;
665-
float: right;
666-
margin-left: 20px;
664+
top: -30px;
665+
margin-left: auto;
666+
margin-right: -30px;
667667
margin-bottom: 20px;
668-
margin-top: -20px;
669-
margin-right: -20px;
670668
width: 36px;
671669
height: 36px;
672670
cursor: pointer;
@@ -720,9 +718,8 @@ body {
720718

721719
@media (max-width: 768px) {
722720
.markdown-close {
723-
top: 10px;
724-
margin-right: -10px;
725-
margin-top: -10px;
721+
top: -20px;
722+
margin-right: -20px;
726723
width: 32px;
727724
height: 32px;
728725
border-radius: 16px;

0 commit comments

Comments
 (0)