Skip to content

Commit eedcd1d

Browse files
authored
Combine three super footer elements into one section (github#16724)
* Combine three super footer elements into one section * Update support-section.html * Update heading font sizes
1 parent fca736b commit eedcd1d

6 files changed

+32
-23
lines changed

includes/article.html

-2
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ <h2 id="in-this-article" class="f5 mb-2"><a class="link-gray-dark" href="#in-thi
6969
{% if currentLearningTrack and currentLearningTrack.trackName %}
7070
{% include learning-track-nav %}
7171
{% endif %}
72-
{% include helpfulness %}
73-
{% unless page.hidden %}{% include contribution %}{% endunless %}
7472
</div>
7573
</article>
7674
</div>

includes/contribution.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% unless enterpriseServerReleases.isOldestReleaseDeprecated and currentVersion contains enterpriseServerReleases.oldestSupported %}
2-
<div class="mt-3 f5 contribution">
3-
<h2 class="f5">{% data ui.contribution_cta.title %}</h2>
2+
<div class="f5 contribution">
3+
<h2 class="f4">{% data ui.contribution_cta.title %}</h2>
44
<p class="text-gray f6">{% data ui.contribution_cta.body %}</p>
55
<a class="btn btn-outline" href={{ "https://github.com/github/docs/edit/main/content/" | append: page.relativePath }}>
66
{% octicon "git-pull-request" height="16" %}

includes/helpfulness.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% unless enterpriseServerReleases.isOldestReleaseDeprecated and currentVersion contains enterpriseServerReleases.oldestSupported %}
2-
<form class="js-helpfulness mt-4 f5">
2+
<form class="js-helpfulness f5">
33
<h2
44
data-help-start
55
data-help-yes
66
data-help-no
7-
class="mb-1 f5"
7+
class="mb-1 f4"
88
>
99
{% data ui.helpfulness.able_to_find %}
1010
</h2>

includes/support-section.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<section class="mt-lg-9 py-7 px-3 px-md-6 no-print" style="background:#fafbfc">
2+
<div class="container-xl gutter-lg-spacious clearfix">
3+
<div class="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left">
4+
{% include helpfulness %}
5+
</div>
6+
<div class="col-12 col-lg-6 col-xl-4 mb-6 mb-xl-0 float-left">
7+
{% include contribution %}
8+
</div>
9+
<div class="col-12 col-lg-12 col-xl-4 float-left">
10+
{% include support %}
11+
</div>
12+
</div>
13+
</section>

includes/support.html

+14-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
<!-- Contact support banner -->
2-
<section class="mt-lg-9 py-7 no-print js-support-banner" style="background-color: #fafbfc;">
3-
<div class="container-xl px-3 px-md-6 ">
4-
<h3 class="mb-2 f4">
5-
{% data ui.support.still_need_help %}
6-
</h3>
7-
{% if currentVersion contains 'enterprise' %}{% assign isEnterprise = true %}{% else %}{% assign isEnterprise = false %}{% endif %}
8-
<a id="ask-community" href="https://github.community" class="btn btn-outline mr-4 mt-2">
9-
{% octicon "people" width="16" %}
10-
{% data ui.support.ask_community %}
11-
</a>
12-
<a id="contact-us" href="{% unless isEnterprise %}https://support.github.com/contact{% else %}https://enterprise.github.com/support{% endunless %}" class="btn btn-outline mt-2">
13-
{% octicon "comment-discussion" width="16" %}
14-
{% data ui.support.contact_support %}
15-
</a>
16-
</div>
17-
</section>
2+
<div>
3+
<h3 class="mb-2 f4">
4+
{% data ui.support.still_need_help %}
5+
</h3>
6+
{% if currentVersion contains 'enterprise' %}{% assign isEnterprise = true %}{% else %}{% assign isEnterprise = false %}{% endif %}
7+
<a id="ask-community" href="https://github.community" class="btn btn-outline mr-4 mt-2">
8+
{% octicon "people" width="16" %}
9+
{% data ui.support.ask_community %}
10+
</a>
11+
<a id="contact-us" href="{% unless isEnterprise %}https://support.github.com/contact{% else %}https://enterprise.github.com/support{% endunless %}" class="btn btn-outline mt-2">
12+
{% octicon "comment-discussion" width="16" %}
13+
{% data ui.support.contact_support %}
14+
</a>
15+
</div>

layouts/default.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
{% else %}
1414
{% include article %}
1515
{% endif %}
16-
{% include support %}
16+
{% include support-section %}
1717
{% include small-footer %}
1818
</main>
1919
</body>

0 commit comments

Comments
 (0)