File tree Expand file tree Collapse file tree 3 files changed +19
-36
lines changed Expand file tree Collapse file tree 3 files changed +19
-36
lines changed Original file line number Diff line number Diff line change 53
53
{% include "partials/toc.html" %}
54
54
</ div >
55
55
< div class ="md-sidebar__inner ">
56
- {% include "partials/edit .html" %}
56
+ {% include "partials/banner .html" %}
57
57
</ div >
58
58
< div class ="md-sidebar__inner ">
59
- {% include "partials/banner .html" %}
59
+ {% include "partials/edit .html" %}
60
60
</ div >
61
61
</ div >
62
62
</ div >
Original file line number Diff line number Diff line change 1
1
< div data-banner ="data-banner ">
2
2
< div class ="actions ">
3
- < a href ="{{ page.edit_url }} " title ="Improve the page on GitHub " class ="edit-page-link ">
4
- < span class ="edit-page-line1 ">
5
- < span class ="edit-page-icon ">
6
- {% set icon = config.theme.icon.edit or "material/file-edit-outline" %}
7
- {% include ".icons/" ~ icon ~ ".svg" %}
8
- </ span >
9
- < span class ="edit-page-text ">
10
- Improve the page
11
- </ span >
3
+ < a href ="{{ page.edit_url }} " title ="Improve this page on GitHub " class ="edit-page-link ">
4
+ < span class ="edit-page-icon ">
5
+ {% set icon = config.theme.icon.edit or "material/file-edit-outline" %}
6
+ {% include ".icons/" ~ icon ~ ".svg" %}
12
7
</ span >
13
- < span class ="edit-page-line2 ">
14
- on GitHub
15
- </ span >
16
- </ a >
8
+ < span class ="edit-page-text "> Improve this page on GitHub</ span >
9
+ </ a >
17
10
</ div >
18
11
</ div >
Original file line number Diff line number Diff line change 11
11
line-height : 1.6 ;
12
12
}
13
13
14
+ /* Style the link */
14
15
.edit-page-link {
15
- display : inline-block; /* shrink to content width */
16
+ display : inline-flex;
17
+ align-items : center;
18
+ gap : 0.8em ;
16
19
text-decoration : none;
17
20
color : var (--md-typeset-a-color );
18
- cursor : pointer;
19
- font-size : 1.25rem ;
21
+ font-size : 1.35rem ;
20
22
font-weight : 500 ;
21
23
line-height : 1.4 ;
22
- text-align : left; /* align left inside container */
23
- }
24
-
25
- /* First line: icon + text inline */
26
- .edit-page-line1 {
27
- padding-left : calc (0.5em );
28
- display : flex;
29
- align-items : center;
30
- gap : 0.4em ;
24
+ transition : color 0.2s ease;
25
+ cursor : pointer;
31
26
}
32
27
28
+ /* Bigger icon, aligned with text */
33
29
.edit-page-icon svg {
34
- width : 2 em ; /* Bigger width */
35
- height : 2 em ; /* Bigger height */
30
+ width : 1.4 em ;
31
+ height : 1.4 em ;
36
32
fill : currentColor;
37
- display : block;
38
- padding-left : calc (0.5em );
33
+ vertical-align : middle;
39
34
}
40
35
41
- .edit-page-line2 {
42
- padding-left : calc (4.5em );
43
- line-height : 1.2 ;
44
- white-space : nowrap;
45
- }
You can’t perform that action at this time.
0 commit comments