Browse Source

Merge pull request #292 from twbs/docs-footer-links

add docs footer links
pull/342/head
Connor Sears 11 years ago
parent
commit
fd7dbb5757
  1. 12
      docs/_includes/footer.html
  2. 37
      docs/assets/css/docs.css
  3. 36
      sass/docs.scss

12
docs/_includes/footer.html

@ -14,5 +14,15 @@
</li>
</ul>
<p class="docs-footer-content">Code licensed under the <a href="https://github.com/twbs/ratchet/blob/master/LICENSE" data-ignore="push">MIT License</a> and the docs are licensed under <a href="https://github.com/twbs/ratchet/blob/master/docs/LICENSE" data-ignore="push">CC BY 3.0</a>. Ratchet version 2.0.0 was lovingly crafted by <a href="https://twitter.com/connors" data-ignore="push">Connor Sears</a>.</p>
<p class="docs-footer-text">Code licensed under the <a href="https://github.com/twbs/ratchet/blob/master/LICENSE" data-ignore="push">MIT License</a> and the docs are licensed under <a href="https://github.com/twbs/ratchet/blob/master/docs/LICENSE" data-ignore="push">CC BY 3.0</a>. Ratchet version 2.0.0 was lovingly crafted by <a href="https://twitter.com/connors" data-ignore="push">Connor Sears</a>.</p>
<ul class="docs-footer-links">
<li>Currently v2.0.0</li>
<li>&middot;</li>
<li><a href="https://github.com/twbs/ratchet/issues" data-ignore="push">Issues</a></li>
<li>&middot;</li>
<li><a href="https://github.com/twbs/ratchet/releases" data-ignore="push">Releases</a></li>
<li>&middot;</li>
<li><a href="http://goratchet.com/1.0.2/" data-ignore="push">Legacy v1.0.2 Docs</a></li>
</ul>
</div>

37
docs/assets/css/docs.css

@ -305,6 +305,8 @@ body {
margin-top: 50px;
padding-top: 30px;
padding-bottom: 30px;
color: #777;
font-size: 14px;
text-align: center;
}
.docs-footer .social {
@ -321,10 +323,24 @@ body {
margin-top: 5px;
}
.docs-footer-content {
margin: 0;
color: #777;
font-size: 12px;
.docs-footer-text {
margin-top: 0;
margin-bottom: 0;
}
@media screen and (min-width: 768px) {
.docs-footer-text {
width: 550px;
margin: 0 auto;
}
}
.docs-footer-links {
padding-left: 0;
}
.docs-footer-links li {
display: inline;
padding-left: 3px;
padding-right: 3px;
}
.docs-header .docs-footer {
@ -335,11 +351,12 @@ body {
margin-top: 0;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.docs-header .docs-footer .docs-footer-content {
.docs-header .docs-footer .docs-footer-text,
.docs-header .docs-footer .docs-footer-links {
color: rgba(255, 255, 255, 0.5);
}
.docs-header .docs-footer .docs-footer-content a {
font-weight: bold;
.docs-header .docs-footer .docs-footer-text a,
.docs-header .docs-footer .docs-footer-links a {
color: rgba(255, 255, 255, 0.8);
}
@ -643,10 +660,10 @@ hr {
@media screen and (min-width: 768px) {
.docs-header {
min-height: 830px;
min-height: 870px;
}
.docs-header .carbonad {
bottom: 180px !important;
bottom: 259px !important;
left: 50% !important;
margin-left: -165px !important;
}
@ -675,7 +692,7 @@ hr {
}
.docs-header-content {
top: 32%;
top: 30%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);

36
sass/docs.scss

@ -296,6 +296,8 @@ body {
margin-top: 50px;
padding-top: 30px;
padding-bottom: 30px;
color: #777;
font-size: 14px;
text-align: center;
.social {
@ -313,11 +315,27 @@ body {
}
}
}
.docs-footer-content {
margin: 0;
color: #777;
font-size: 12px;
.docs-footer-text {
margin-top: 0;
margin-bottom: 0;
}
@media screen and (min-width: 768px) {
.docs-footer-text {
width: 550px;
margin: 0 auto;
}
}
.docs-footer-links {
padding-left: 0;
li {
display: inline;
padding-left: 3px;
padding-right: 3px;
}
}
// Overrides for the homepage's footer
.docs-header .docs-footer {
position: absolute;
bottom: 0;
@ -326,11 +344,11 @@ body {
margin-top: 0;
border-top: 1px solid rgba(255,255,255,.1);
.docs-footer-content {
.docs-footer-text,
.docs-footer-links {
color: rgba(255,255,255,.5);
a {
font-weight: bold;
color: rgba(255,255,255,.8);
}
}
@ -656,11 +674,11 @@ hr {
// Tablet to desktop
@media screen and (min-width: 768px) {
.docs-header {
min-height: 830px;
min-height: 870px;
// Ads on the homepage
.carbonad {
bottom: 180px !important;
bottom: 259px !important;
left: 50% !important;
margin-left: -165px !important;
}
@ -682,7 +700,7 @@ hr {
@include transform(translateX(0));
}
.docs-header-content {
top: 32%;
top: 30%;
@include transform(translateY(-50%));
.btn {

Loading…
Cancel
Save