Skip to content

Commit dc1afd8

Browse files
committed
feat: Update header actions and styles for improved layout and accessibility
1 parent d63cb3c commit dc1afd8

File tree

2 files changed

+30
-10
lines changed

2 files changed

+30
-10
lines changed

docs/index.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@
3131
</div>
3232
</div>
3333
<div class="header-actions">
34-
<a href="/claude-code-templates/docu/" class="github-link">
35-
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
36-
<path d="M12 2A10 10 0 0 0 2 12a10 10 0 0 0 6.84 9.49c.5.08.66-.23.66-.5v-1.69c-2.77.6-3.36-1.34-3.36-1.34-.45-1.13-1.11-1.44-1.11-1.44-.91-.62.07-.6.07-.6 1-.07 1.53 1.03 1.53 1.03.87 1.52 2.34 1.07 2.91.83.09-.65.35-1.09.63-1.34-2.22-.25-4.55-1.11-4.55-4.92 0-1.11.38-2 1.03-2.71-.1-.25-.45-1.29.1-2.64 0 0 .84-.27 2.75 1.02.79-.22 1.65-.33 2.5-.33.85 0 1.71.11 2.5.33 1.91-1.29 2.75-1.02 2.75-1.02.55 1.35.2 2.39.1 2.64.65.71 1.03 1.6 1.03 2.71 0 3.82-2.34 4.66-4.57 4.91.36.31.69.92.69 1.85V21c0 .27.16.59.67.5A10 10 0 0 0 22 12A10 10 0 0 0 12 2Z"/>
34+
<a href="/claude-code-templates/docu/" class="header-btn">
35+
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
36+
<path d="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z"/>
3737
</svg>
38-
Documentation
38+
Docs
3939
</a>
40-
<a href="https://github.com/davila7/claude-code-templates" target="_blank" class="github-link">
41-
<svg width="20" height="20" viewBox="0 0 24 24" fill="currentColor">
40+
<a href="https://github.com/davila7/claude-code-templates" target="_blank" class="header-btn">
41+
<svg width="16" height="16" viewBox="0 0 24 24" fill="currentColor">
4242
<path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/>
4343
</svg>
4444
GitHub

docs/styles.css

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,22 +92,31 @@ body {
9292
margin-right: 0.5rem;
9393
}
9494

95-
.github-link {
95+
.header-actions {
9696
display: flex;
97+
gap: 1rem;
9798
align-items: center;
98-
gap: 0.5rem;
99+
}
100+
101+
.github-link, .header-btn {
102+
display: flex;
103+
align-items: center;
104+
gap: 0.4rem;
99105
color: var(--text-primary);
100106
text-decoration: none;
101-
padding: 0.5rem 1rem;
107+
padding: 0.4rem 0.8rem;
102108
border-radius: 6px;
103109
background: var(--bg-tertiary);
104110
border: 1px solid var(--border-primary);
105111
transition: all 0.2s ease;
112+
font-size: 0.85rem;
113+
font-weight: normal;
106114
}
107115

108-
.github-link:hover {
116+
.github-link:hover, .header-btn:hover {
109117
background: var(--bg-primary);
110118
border-color: var(--border-secondary);
119+
transform: translateY(-1px);
111120
}
112121

113122
/* Terminal main content */
@@ -797,6 +806,17 @@ body {
797806
align-items: flex-start;
798807
}
799808

809+
.header-actions {
810+
gap: 0.75rem;
811+
width: 100%;
812+
justify-content: flex-start;
813+
}
814+
815+
.github-link, .header-btn {
816+
padding: 0.35rem 0.7rem;
817+
font-size: 0.8rem;
818+
}
819+
800820
.header .ascii-art {
801821
font-size: 0.3rem;
802822
overflow: visible;

0 commit comments

Comments
 (0)