Skip to content

Commit 73b5fc8

Browse files
committed
Update layout to use external CSS and improve styling
1 parent c36b104 commit 73b5fc8

File tree

1 file changed

+38
-49
lines changed

1 file changed

+38
-49
lines changed

_layouts/default.html

Lines changed: 38 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<head>
44
<meta charset="UTF-8">
55
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6-
<title>{{ page.title }} - {{ site.title }}</title>
6+
<title>{% if page.title %}{{ page.title }} - {% endif %}{{ site.title }}</title>
7+
<link rel="stylesheet" href="{{ '/assets/css/navigation.css' | relative_url }}">
78
<style>
89
body {
910
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
@@ -12,59 +13,47 @@
1213
margin: 0 auto;
1314
padding: 20px;
1415
color: #333;
15-
}
16-
.navigation {
17-
display: flex;
18-
justify-content: space-between;
19-
align-items: center;
20-
margin: 40px 0;
21-
padding: 20px;
22-
background: #f5f5f5;
23-
border-radius: 8px;
24-
flex-wrap: wrap;
25-
}
26-
.nav-item {
27-
flex: 1;
28-
min-width: 150px;
29-
}
30-
.nav-item.center {
31-
text-align: center;
32-
}
33-
.nav-item.right {
34-
text-align: right;
35-
}
36-
.nav-label {
37-
margin: 0;
38-
color: #666;
39-
font-size: 14px;
40-
}
41-
.nav-link {
42-
margin: 5px 0 0 0;
43-
}
44-
.nav-link a {
16+
background: #fff;
17+
}
18+
h1, h2, h3, h4, h5, h6 {
19+
margin-top: 24px;
20+
margin-bottom: 16px;
21+
font-weight: 600;
22+
line-height: 1.25;
23+
}
24+
code {
25+
background: #f6f8fa;
26+
padding: 2px 6px;
27+
border-radius: 3px;
28+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
29+
font-size: 85%;
30+
}
31+
pre {
32+
background: #f6f8fa;
33+
padding: 16px;
34+
border-radius: 6px;
35+
overflow: auto;
36+
}
37+
table {
38+
border-collapse: collapse;
39+
width: 100%;
40+
margin: 16px 0;
41+
}
42+
table th, table td {
43+
border: 1px solid #dfe2e5;
44+
padding: 6px 13px;
45+
}
46+
table th {
47+
background: #f6f8fa;
48+
font-weight: 600;
49+
}
50+
a {
4551
color: #0366d6;
4652
text-decoration: none;
4753
}
48-
.nav-link a:hover {
54+
a:hover {
4955
text-decoration: underline;
5056
}
51-
.nav-disabled {
52-
color: #999;
53-
margin: 5px 0 0 0;
54-
}
55-
.nav-link a {
56-
font-weight: 500;
57-
}
58-
@media (max-width: 768px) {
59-
.navigation {
60-
flex-direction: column;
61-
gap: 15px;
62-
}
63-
.nav-item {
64-
text-align: center !important;
65-
width: 100%;
66-
}
67-
}
6857
</style>
6958
</head>
7059
<body>

0 commit comments

Comments
 (0)