Skip to content

Commit c9c9c61

Browse files
committed
simpler footer with no social buttons, fewer links
1 parent 5c02844 commit c9c9c61

File tree

3 files changed

+21
-93
lines changed

3 files changed

+21
-93
lines changed

docs/_includes/footer.html

Lines changed: 7 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,18 @@
22
================================================== -->
33
<footer class="bs-docs-footer" role="contentinfo">
44
<div class="container">
5-
{% include social-buttons.html %}
65

7-
<p>Designed and built with all the love in the world by <a href="https://twitter.com/mdo" target="_blank">@mdo</a> and <a href="https://twitter.com/fat" target="_blank">@fat</a>.</p>
8-
<p>Maintained by the <a href="https://github.com/orgs/twbs/people">core team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>.</p>
9-
<p>Code licensed under <a rel="license" href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank">MIT</a>, documentation under <a rel="license" href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.</p>
10-
<ul class="bs-docs-footer-links text-muted">
11-
<li>Currently v{{ site.current_version }}</li>
12-
<li>&middot;</li>
6+
<ul class="bs-docs-footer-links">
137
<li><a href="{{ site.repo }}">GitHub</a></li>
14-
<li>&middot;</li>
8+
<li><a href="https://twitter.com/getbootstrap">Twitter</a></li>
159
<li><a href="../getting-started/#examples">Examples</a></li>
16-
<li>&middot;</li>
17-
<li><a href="../2.3.2/">v2.3.2 docs</a></li>
18-
<li>&middot;</li>
1910
<li><a href="../about/">About</a></li>
20-
<li>&middot;</li>
21-
<li><a href="{{ site.expo }}">Expo</a></li>
22-
<li>&middot;</li>
23-
<li><a href="{{ site.blog }}">Blog</a></li>
24-
<li>&middot;</li>
25-
<li><a href="{{ site.repo }}/issues">Issues</a></li>
26-
<li>&middot;</li>
27-
<li><a href="{{ site.repo }}/releases">Releases</a></li>
2811
</ul>
12+
13+
<p>Designed and built with all the love in the world by <a href="https://twitter.com/mdo" target="_blank">@mdo</a> and <a href="https://twitter.com/fat" target="_blank">@fat</a>. Maintained by the <a href="https://github.com/orgs/twbs/people">core team</a> with the help of <a href="https://github.com/twbs/bootstrap/graphs/contributors">our contributors</a>.</p>
14+
15+
<p>Code licensed <a rel="license" href="https://github.com/twbs/bootstrap/blob/master/LICENSE" target="_blank">MIT</a>, docs <a rel="license" href="https://creativecommons.org/licenses/by/3.0/" target="_blank">CC BY 3.0</a>.</p>
16+
2917
</div>
3018
</footer>
3119

@@ -63,21 +51,6 @@
6351
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
6452
<script src="../assets/js/ie10-viewport-bug-workaround.js"></script>
6553

66-
{% comment %}
67-
Inject Twitter widgets asynchronously. Snippet snipped from Twitter's
68-
JS interface site: https://dev.twitter.com/docs/tfw-javascript
69-
70-
* "js.async=1;" added to add async attribute to the generated script tag.
71-
{% endcomment %}
72-
<script>
73-
window.twttr = (function (d,s,id) {
74-
var t, js, fjs = d.getElementsByTagName(s)[0];
75-
if (d.getElementById(id)) return; js=d.createElement(s); js.id=id; js.async=1;
76-
js.src="https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs);
77-
return window.twttr || (t = { _e: [], ready: function(f){ t._e.push(f) } });
78-
}(document, "script", "twitter-wjs"));
79-
</script>
80-
8154
<!-- Analytics
8255
================================================== -->
8356
<script>

docs/_includes/social-buttons.html

Lines changed: 0 additions & 16 deletions
This file was deleted.

docs/assets/css/src/docs.css

Lines changed: 14 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -166,66 +166,37 @@ h4 code {
166166
*/
167167

168168
.bs-docs-footer {
169-
padding-top: 40px;
170-
padding-bottom: 40px;
169+
padding-top: 50px;
170+
padding-bottom: 50px;
171171
margin-top: 100px;
172-
color: #767676;
172+
color: #99979c;
173173
text-align: center;
174-
border-top: 1px solid #e5e5e5;
174+
background-color: #2a2730;
175+
}
176+
.bs-docs-footer a {
177+
color: #fff;
175178
}
176179
.bs-docs-footer-links {
177180
padding-left: 0;
178-
margin-top: 20px;
181+
margin-bottom: 20px;
179182
}
180183
.bs-docs-footer-links li {
181-
display: inline;
182-
padding: 0 2px;
184+
display: inline-block;
183185
}
184-
.bs-docs-footer-links li:first-child {
185-
padding-left: 0;
186+
.bs-docs-footer-links li + li {
187+
margin-left: 15px;
186188
}
187189

188190
@media (min-width: 768px) {
191+
.bs-docs-footer {
192+
text-align: left;
193+
}
189194
.bs-docs-footer p {
190195
margin-bottom: 0;
191196
}
192197
}
193198

194199

195-
/*
196-
* Social buttons
197-
*
198-
* Twitter and GitHub social action buttons (for homepage and footer).
199-
*/
200-
201-
.bs-docs-social {
202-
margin-bottom: 20px;
203-
text-align: center;
204-
}
205-
.bs-docs-social-buttons {
206-
display: inline-block;
207-
padding-left: 0;
208-
margin-bottom: 0;
209-
list-style: none;
210-
}
211-
.bs-docs-social-buttons li {
212-
display: inline-block;
213-
padding: 5px 8px;
214-
line-height: 1;
215-
}
216-
.bs-docs-social-buttons .twitter-follow-button {
217-
width: 225px !important;
218-
}
219-
.bs-docs-social-buttons .twitter-share-button {
220-
width: 98px !important;
221-
}
222-
/* Style the GitHub buttons via CSS instead of inline attributes */
223-
.github-btn {
224-
overflow: hidden;
225-
border: 0;
226-
}
227-
228-
229200
/*
230201
* Homepage
231202
*

0 commit comments

Comments
 (0)