Skip to content

Commit 159777f

Browse files
Fix the css
1 parent c5a4e69 commit 159777f

File tree

2 files changed

+10
-14
lines changed

2 files changed

+10
-14
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<div data-banner="data-banner">
22
<div class="actions">
3-
<a href="{{ page.edit_url }}" title="Edit on GitHub" class="edit-page-link">
3+
<a href="{{ page.edit_url }}" title="Edit this page on GitHub" class="edit-page-link">
44
<span class="edit-page-icon">
55
{% set icon = config.theme.icon.edit or "material/file-edit-outline" %}
66
{% include ".icons/" ~ icon ~ ".svg" %}
77
</span>
8-
<span class="edit-page-text">Edit on GitHub</span>
8+
<span class="edit-page-text">Edit this page on GitHub</span>
99
</a>
1010
</div>
1111
</div>

docs/css/extra.css

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,21 @@
1111
line-height: 1.6;
1212
}
1313

14-
/* Style the link */
1514
.edit-page-link {
15+
white-space: nowrap;
1616
display: inline-flex;
1717
align-items: center;
18-
gap: 0.8em;
19-
text-decoration: none;
18+
gap: 0.5em;
19+
font-size: 1.1rem;
20+
font-weight: normal;
2021
color: var(--md-typeset-a-color);
21-
font-size: 1.35rem;
22-
font-weight: 500;
23-
line-height: 1.4;
24-
transition: color 0.2s ease;
25-
cursor: pointer;
22+
text-decoration: underline;
2623
}
2724

28-
/* Bigger icon, aligned with text */
2925
.edit-page-icon svg {
30-
width: 1.4em;
31-
height: 1.4em;
32-
fill: currentColor;
26+
width: 1.35em; /* Increase from 1em to 1.25em or more */
27+
height: 1.35em;
28+
fill: currentColor; /* Make the icon match text color */
3329
vertical-align: middle;
3430
}
3531

0 commit comments

Comments
 (0)