Skip to content

Commit 3d7d104

Browse files
Merge pull request #1101 from percona/DOCS-211-8.0
DOCS-211 Add info about how to contribute to documentation (8.0)
2 parents 28c53c7 + 62debf6 commit 3d7d104

2 files changed

Lines changed: 70 additions & 26 deletions

File tree

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,24 @@
1-
<div data-banner="data-banner">
2-
<div class="actions">
3-
<a href="{{ page.edit_url }}" title="Edit 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" %}
7-
</span>
8-
<span class="edit-page-text">Edit this page on GitHub</span>
9-
</a>
1+
<div data-banner="data-banner" class="edit-contrib-banner">
2+
<div class="banner-content">
3+
<!-- Edit link centered -->
4+
<a href="{{ page.edit_url }}" title="Edit this page on GitHub" class="edit-page-link">
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">Edit this page on GitHub</span>
10+
</a>
11+
12+
<!-- Divider line -->
13+
<div class="banner-divider"></div>
14+
15+
<!-- Contributing Guide below, smaller -->
16+
<a href="https://github.com/percona/psmdb-docs/blob/8.0/CONTRIBUTING.md"
17+
title="Contributing guide"
18+
class="contrib-link"
19+
target="_blank"
20+
rel="noopener">
21+
Contributing guide
22+
</a>
1023
</div>
11-
</div>
24+
</div>

docs/css/extra.css

Lines changed: 47 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,51 @@
1111
line-height: 1.6;
1212
}
1313

14-
.edit-page-link {
15-
white-space: nowrap;
16-
display: inline-flex;
17-
align-items: center;
18-
gap: 0.5em;
19-
font-size: 1.2rem;
20-
font-weight: normal;
21-
color: var(--md-typeset-a-color);
22-
text-decoration: underline;
23-
}
14+
/* Banner container */
15+
.edit-contrib-banner {
16+
display: flex;
17+
justify-content: center; /* center horizontally */
18+
padding: 0.7rem 0; /* top and bottom spacing of the banner */
19+
background-color: transparent;
20+
}
21+
22+
/* Inner content stacked vertically */
23+
.edit-contrib-banner .banner-content {
24+
display: flex;
25+
flex-direction: column; /* stack vertically */
26+
align-items: center; /* center horizontally */
27+
gap: 0.3rem; /* small vertical gap between elements */
28+
}
29+
30+
/* Edit link styling */
31+
.edit-contrib-banner .edit-page-link {
32+
white-space: nowrap;
33+
display: inline-flex;
34+
align-items: center;
35+
gap: 0.5em;
36+
font-size: 1.2rem;
37+
font-weight: normal;
38+
color: var(--md-typeset-a-color);
39+
}
2440

25-
.edit-page-icon svg {
26-
width: 1.40em;
27-
height: 1.40em;
28-
fill: currentColor;
29-
vertical-align: middle;
30-
}
41+
/* Icon inside edit link */
42+
.edit-contrib-banner .edit-page-icon svg {
43+
width: 1.4em;
44+
height: 1.4em;
45+
fill: currentColor;
46+
vertical-align: middle;
47+
}
48+
49+
/* Divider line with small spacing */
50+
.edit-contrib-banner .banner-divider {
51+
width: 40%; /* width of the line */
52+
border-top: 1px solid var(--md-typeset-a-color);
53+
opacity: 0.3; /* subtle line */
54+
margin: 0.2rem 0; /* smaller space above and below the line */
55+
}
56+
57+
/* Contributing Guide smaller and below */
58+
.edit-contrib-banner .contrib-link {
59+
font-size: 0.6rem !important; /* smaller font */
60+
color: var(--md-typeset-a-color);
61+
}

0 commit comments

Comments
 (0)