Skip to content

Commit

Permalink
Improve docs site footer
Browse files Browse the repository at this point in the history
+ Add workiva W symbol
+ Tweak item spacing
+ Add link to license
  • Loading branch information
aaronlademann-wf committed Oct 18, 2016
1 parent ad994f8 commit 287a58c
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 8 deletions.
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ org_url: https://www.workiva.com
org_target: wk

org_repos_url: https://github.com/Workiva
repo_url: https://github.com/Workiva/over_react/
repo_url: https://github.com/Workiva/over_react
license_url: https://github.com/Workiva/over_react/blob/master/LICENSE
repo_target: github

api_docs_url: https://pub.dartlang.org/packages/over_react
Expand Down
26 changes: 20 additions & 6 deletions docs/_includes/site_footer.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
<hr class="feature-divider">
<hr class="footer-divider">

<div class="container">
<footer class="footer row">
<div class="col-sm pt-1">
{{ site.title }} is brought to you by the good folks at
<a href="{{ site.org_url }}" target="{{ site.org_target }}">Workiva</a>.
<div class="footer__col footer__col--left col-md">
<div class="d-flex flex-items-xs-middle">
{% include svg/workiva-symbol.svg class="footer__logo" %}
<span>
{{ site.title }} is brought to you by the good folks at
<a href="{{ site.org_url }}" target="{{ site.org_target }}">Workiva</a>
</span>
</div>
</div>
<div class="col-sm col-sm-shrink py-1">
<a class="footer-link" href="{{ site.repo_url }}" target="{{ site.repo_target }}">Github</a>
<div class="footer__col footer__col--right col-md col-sm-shrink d-flex flex-items-xs-middle">
<div class="d-flex flex-items-xs-middle">
<ul class="footer__items">
<li class="footer__item">
<a class="footer__link" href="{{ site.license_url }}" target="{{ site.repo_target }}">License</a>
</li>
<li class="footer__item">
<a class="footer__link" href="{{ site.repo_url }}" target="{{ site.repo_target }}">Github</a>
</li>
</ul>
</div>
</div>
</footer>
</div>
Expand Down
4 changes: 4 additions & 0 deletions docs/_includes/svg/workiva-symbol.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions docs/sass/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
color: white;
}

.d-flex {
display: flex;
display: -ms-flexbox;
}

// Can't believe the bootstrap grid doesn't have this!!?
@each $breakpoint in map-keys($grid-breakpoints) {
@include media-breakpoint-up($breakpoint, $grid-breakpoints) {
Expand Down
44 changes: 43 additions & 1 deletion docs/sass/_footer.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,45 @@
.footer-divider {
margin-top: $footer-vertical-padding;
margin-bottom: 0;
}

.footer {
color: $gray-light;
color: $footer-text-color;
}

.footer__col--left {
padding-top: $footer-vertical-padding;
}

.footer__col--right {
padding-top: $footer-vertical-padding;
padding-bottom: $footer-vertical-padding;
}

.footer__logo {
height: to-rem($line-height-base-px);
width: auto;
margin-right: $footer-item-spacing * 3;

path {
fill: $footer-logo-color;
}
}

.footer__items {
@include list-unstyled();
margin-bottom: 0;

@at-root .footer__item {
display: inline-block;

+ .footer__item {
// Add a separator between unrelated items / links in the footer.
&:before {
padding-left: $footer-item-spacing;
padding-right: $footer-item-spacing;
content: "·";
}
}
}
}
6 changes: 6 additions & 0 deletions docs/sass/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ $font-family-monospace: Menlo, Monaco, Consolas, "Liberation Mono", "Courier New

@import 'bootstrap/scss/bootstrap';

$line-height-base-px: $font-size-root * $line-height-base;

// OverReact site variables
$navbar-content-height: to-rem($font-size-root * $line-height-base);
Expand All @@ -61,3 +62,8 @@ $hero-title-breakpoints: (
size-lg: $display3-size,
weight-lg: $display3-weight
);

$footer-vertical-padding: to-rem($grid-gutter-width-base);
$footer-item-spacing: to-rem($list-inline-padding);
$footer-text-color: $gray-light;
$footer-logo-color: mix($footer-text-color, #fff, 35%);

0 comments on commit 287a58c

Please sign in to comment.