Skip to content

Commit 3a3cd30

Browse files
author
The-Infinitys
committed
FIXED
1 parent 3881659 commit 3a3cd30

File tree

5 files changed

+59
-33
lines changed

5 files changed

+59
-33
lines changed

public/article-2025/05/microsoft-edit/article-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Microsoft Official Editor, \"Edit\"
2+
title: Microsoft Official Editor, "Edit"
33
date: "2025-05-20"
44
description: "Super easy to use"
55
---

src/app/[article_year]/[month]/[aid]/page.css

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -277,25 +277,34 @@ html {
277277
}
278278

279279
.other-articles {
280+
position: relative; /* かぶり防止 */
281+
z-index: 1; /* 他要素より下に */
280282
align-items: center;
281283
justify-content: center;
282284
margin-top: 40px;
283-
top: 20px;
284-
max-width: 250px;
285-
margin-left: 0 auto;
286-
margin-right: 0 auto;
285+
margin-bottom: 40px; /* 下にも余白を追加 */
286+
top: auto; /* top指定を解除 */
287+
width: 100%; /* 幅を100%に */
288+
margin-left: 275px;
287289
background-color: transparent;
288-
/* スクロール時に追従 */
290+
padding: 16px 0; /* 上下に余白 */
291+
box-sizing: border-box; /* パディングを含める */
289292
}
290-
291-
.other-articles h2 {
293+
.other-articles>h2 {
292294
font-size: 1.5rem;
293295
margin-bottom: 16px;
296+
color: var(--foreground);
297+
text-overflow: wrap;
294298
}
295299

296300
.other-articles ul {
297301
list-style: none;
298302
padding: 0;
303+
display: grid;
304+
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
305+
gap: 16px;
306+
width: 100%;
307+
justify-items: center;
299308
}
300309

301310
.other-articles li {
@@ -318,33 +327,39 @@ html {
318327
.toc {
319328
position: relative;
320329
/* stickyを無効化 */
330+
max-width: none;
331+
width: 100%;
321332
max-height: none;
322333
order: -1;
323334
box-sizing: border-box;
324335
margin-bottom: 4em;
325336
/* 記事の上部に配置 */
326337
}
327-
338+
328339
.article-detail {
329340
position: relative;
330341
margin: 1rem;
331342
}
332343

333344
.other-articles {
334345
position: relative;
335-
/* stickyを無効化 */
346+
z-index: 1;
336347
display: flex;
337348
flex-direction: column;
338349
align-items: center;
339350
justify-content: center;
340351
max-width: 90vw;
352+
width: 100%;
341353
margin: 0 auto;
342-
top: auto;
343354
margin-top: 20px;
344-
/* 記事の下部に配置 */
355+
margin-bottom: 20px;
356+
top: auto;
357+
background-color: transparent;
358+
padding: 16px 0;
359+
box-sizing: border-box;
345360
}
346361

347-
.other-articles .article-link {
362+
.other-articles .article-link article {
348363
width: 90%;
349364
margin: 0 auto;
350365
}
@@ -363,6 +378,11 @@ html {
363378
font-size: 0.9rem;
364379
/* 必要に応じてフォントサイズを調整 */
365380
}
381+
382+
.other-articles ul {
383+
grid-template-columns: 1fr;
384+
gap: 8px;
385+
}
366386
}
367387

368388
/* 目次の見出しの右余白を調整 */

src/app/article/article.css

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ section.articles {
88
align-items: center;
99
}
1010

11-
.article-link {
11+
.article-link{
12+
background-color: color-mix(in srgb, transparent 50%, var(--primary));
1213
box-sizing: border-box;
1314
text-decoration: none;
1415
color: inherit;
1516
max-width: 300px;
1617
width: auto;
17-
aspect-ratio: 9/16;
18-
border: 1px solid var(--background);
18+
aspect-ratio: 2/3;
19+
border: 2px solid var(--secondary);
1920
border-radius: 8px;
2021
overflow: hidden;
2122
transition:
@@ -40,12 +41,12 @@ section.articles {
4041
}
4142

4243
.article-content h2 {
43-
font-size: 1.25rem;
44+
font-size: 1rem;
4445
margin: 0 0 8px;
4546
}
4647

4748
.article-content p {
4849
font-size: 0.875rem;
49-
color: color-mix(in srgb, var(--background), var(--foreground) 50%);
50+
color: var(--secondary);
5051
margin: 0;
5152
}

src/app/globals.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
:root {
44
--background: #ffffff;
55
--foreground: #171717;
6-
--primary: #eeeeee;
6+
--primary: color-mix(in srgb, var(--foreground), var(--background) 80%);
77
--link-color: #0000ff;
88
--body-color-value: 0deg;
99
--secondary: color-mix(in srgb, var(--foreground), var(--background) 50%);
@@ -23,7 +23,6 @@
2323
:root {
2424
--background: #0a0a0a;
2525
--foreground: #ededed;
26-
--primary: #222222;
2726
--link-color: #00ffff;
2827
}
2928
}
@@ -92,7 +91,7 @@ header {
9291
position: sticky;
9392
top: 0;
9493
z-index: 10;
95-
/* ボタン(z-30), メニュー(z-20) よりは下 */
94+
min-height: 48px; /* 高さを大きく */
9695
}
9796

9897
/*header 内のリンクスタイルは header.tsx の Tailwind クラスで制御するため、ここでは不要な場合が多い */
@@ -106,11 +105,6 @@ header a {
106105
text-decoration: none;
107106
}
108107

109-
header nav {
110-
background-color: color-mix(in srgb, var(--primary), transparent 50%);
111-
backdrop-filter: blur(4px);
112-
}
113-
114108
main {
115109
width: 100%;
116110
/* min-height: 100%; */

src/app/layout/header.tsx

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default function Header() {
4444

4545
return (
4646
// Added padding, flex layout for alignment
47-
<header className="p-4 flex justify-between items-center relative">
47+
<header className="p-4 py-6 flex justify-between items-center relative">
4848
{/* Title */}
4949
<div
5050
style={{
@@ -55,11 +55,11 @@ export default function Header() {
5555
>
5656
{/* <Image src={TheInfiniteImage} alt="" width={30} height={30} /> */}
5757
<h1
58-
className={`${chakraPetch.className} italic font-semibold text-3xl`} // Use Tailwind classes
58+
className={`${chakraPetch.className} italic font-semibold text-4xl`} // text-4xlに変更
5959
style={{
6060
fontStyle: "italic",
6161
fontWeight: "600",
62-
fontSize: "32px", // Use text-3xl or similar
62+
fontSize: "40px", // 32px→40pxに
6363
}}
6464
>
6565
<Link
@@ -85,22 +85,33 @@ export default function Header() {
8585
<Image
8686
src={isMenuOpen ? "/layout/close.svg" : "/layout/open.svg"}
8787
alt={isMenuOpen ? "メニューを閉じる" : "メニューを開く"}
88-
width={30} // Adjust size as needed
89-
height={30} // Adjust size as needed
88+
width={32} // Adjust size as needed
89+
height={32} // Adjust size as needed
9090
priority // Load icons quickly
9191
/>
9292
</button>
9393

9494
{/* Navigation Menu */}
9595
<nav
9696
id="navigation-menu"
97+
style={
98+
isMenuOpen
99+
? {
100+
backgroundColor:
101+
"color-mix(in srgb, var(--primary), transparent 50%)",
102+
backdropFilter: "blur(4px)",
103+
}
104+
: {}
105+
}
97106
className={`
98107
${
99-
isMenuOpen ? "opacity-100 max-h-screen" : "opacity-0 max-h-0"
108+
isMenuOpen
109+
? "opacity-100 max-h-screen"
110+
: "opacity-50 max-h-0 bg-[color-mix(in srgb, var(--primary),transparent 50%)]"
100111
} md:opacity-100 md:max-h-none
101112
transition-all duration-300 ease-in-out
113+
bg-transparent
102114
fixed md:relative top-0 left-0 w-full h-full md:w-auto md:h-100%
103-
md:bg-transparent
104115
z-20 overflow-hidden
105116
flex flex-col md:flex-row items-center justify-center md:justify-end
106117
`}

0 commit comments

Comments
 (0)