Skip to content
This repository has been archived by the owner on May 16, 2021. It is now read-only.

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
benbrehaut committed Jun 4, 2017
2 parents 6e5683b + cd5ffe6 commit a9a9fba
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 4 deletions.
2 changes: 1 addition & 1 deletion assets/css/style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/scss/abstracts/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ $spacing-tertiary: rem-calc(5);

// Z Index index
// - - - - -
$z-stack: site, mobileMenu, siteOverlay, modal;
$z-stack: site, skipToContent, mobileMenu, siteOverlay, modal;

// Layout & Grid
// - - - - -
Expand Down
2 changes: 2 additions & 0 deletions assets/scss/base/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ body {

.site {
height: 100%;
position: relative;
z-index: index($z-stack, site);
}

img {
Expand Down
2 changes: 0 additions & 2 deletions assets/scss/partials/_header.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

.site-header {
@include clearfix;
width: 100%;
float: left;

&__top,
&__bottom {
Expand Down
18 changes: 18 additions & 0 deletions assets/scss/partials/_skip-to-content.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// - - - - - - - - - - - - - - - - - - - - - - - - -
// Skip to content link
// - - - - - - - - - - - - - - - - - - - - - - - - -

.skip-link:focus {
clip: auto !important;
display: block;
width: auto;
height: auto;
left: 5px;
line-height: normal;
padding: 15px 23px 14px;
text-decoration: none;
top: 5px;
z-index: index($z-stack, skipToContent);
background-color: $palette-primary;
color: $palette-secondary;
}
1 change: 1 addition & 0 deletions assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ License URI: http://www.opensource.org/licenses/mit-license.php

// Paritals
@import 'partials/header',
'partials/skip-to-content',
'partials/footer',
'partials/breadcrumbs';

Expand Down
4 changes: 4 additions & 0 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
<![endif]-->
<!-- /IE 9 < warning -->

<!-- skip-to-content -->
<a href="#content" class="_sr-hidden skip-to-content">Skip to content</a>
<!-- /skip-to-content -->

<!-- site-header -->
<?php get_template_part('template-parts/site-header'); ?>
<!-- /site-header -->
Expand Down

0 comments on commit a9a9fba

Please sign in to comment.