Fix `body` height and `.wrapper` box shadow. (#14)

Close #13
This commit is contained in:
Michael Rose 2017-03-28 21:34:04 -04:00 committed by GitHub
parent b148bc4389
commit 7127714e4b
9 changed files with 37 additions and 28 deletions

View File

@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Permalink structure of `/docs` demo site. - Permalink structure of `/docs` demo site.
### Fixed ### Fixed
- `body` height and `.wrapper` box shadow. [#13](https://github.com/mmistakes/jekyll-theme-basically-basic/issues/13)
- Unclickable main content links in Internet Explorer 10. [#9](https://github.com/mmistakes/jekyll-theme-basically-basic/issues/9) - Unclickable main content links in Internet Explorer 10. [#9](https://github.com/mmistakes/jekyll-theme-basically-basic/issues/9)
## [1.0.1] - 2017-03-23 ## [1.0.1] - 2017-03-23

View File

@ -1,8 +1,8 @@
<section> <nav class="skip-links">
<h2 class="screen-reader-text">{{ site.data.theme.t.skip_links | default: 'Skip links' }}</h2> <h2 class="screen-reader-text">{{ site.data.theme.t.skip_links | default: 'Skip links' }}</h2>
<ul class="skip-links"> <ul>
<li><a href="#primary-nav" class="screen-reader-shortcut">{{ site.data.theme.t.skip_primary_nav | default: 'Skip to primary navigation' }}</a></li> <li><a href="#primary-nav" class="screen-reader-shortcut">{{ site.data.theme.t.skip_primary_nav | default: 'Skip to primary navigation' }}</a></li>
<li><a href="#main" class="screen-reader-shortcut">{{ site.data.theme.t.skip_content | default: 'Skip to content' }}</a></li> <li><a href="#main" class="screen-reader-shortcut">{{ site.data.theme.t.skip_content | default: 'Skip to content' }}</a></li>
<li><a href="#footer" class="screen-reader-shortcut">{{ site.data.theme.t.skip_footer | default: 'Skip to footer' }}</a></li> <li><a href="#footer" class="screen-reader-shortcut">{{ site.data.theme.t.skip_footer | default: 'Skip to footer' }}</a></li>
</ul> </ul>
</section> </nav>

View File

@ -7,6 +7,8 @@ html {
} }
body { body {
display: -ms-flexbox;
display: flex;
background: $background-color; background: $background-color;
color: $text-color; color: $text-color;
} }

View File

@ -11,6 +11,19 @@
} }
} }
/*
Skip links
========================================================================== */
.skip-links {
position: absolute;
width: 100%;
ul {
@include list-unstyled;
}
}
/* /*
Paginator Paginator
========================================================================== */ ========================================================================== */

View File

@ -2,17 +2,6 @@
Accessibility Modules Accessibility Modules
========================================================================== */ ========================================================================== */
/* Skip links */
.skip-links {
margin: 0;
li {
width: 0;
height: 0;
list-style: none;
}
}
/* Text meant only for screen readers */ /* Text meant only for screen readers */
.screen-reader-text, .screen-reader-text,
.screen-reader-text span, .screen-reader-text span,

View File

@ -1,8 +1,8 @@
<section> <nav class="skip-links">
<h2 class="screen-reader-text">{{ site.data.theme.t.skip_links | default: 'Skip links' }}</h2> <h2 class="screen-reader-text">{{ site.data.theme.t.skip_links | default: 'Skip links' }}</h2>
<ul class="skip-links"> <ul>
<li><a href="#primary-nav" class="screen-reader-shortcut">{{ site.data.theme.t.skip_primary_nav | default: 'Skip to primary navigation' }}</a></li> <li><a href="#primary-nav" class="screen-reader-shortcut">{{ site.data.theme.t.skip_primary_nav | default: 'Skip to primary navigation' }}</a></li>
<li><a href="#main" class="screen-reader-shortcut">{{ site.data.theme.t.skip_content | default: 'Skip to content' }}</a></li> <li><a href="#main" class="screen-reader-shortcut">{{ site.data.theme.t.skip_content | default: 'Skip to content' }}</a></li>
<li><a href="#footer" class="screen-reader-shortcut">{{ site.data.theme.t.skip_footer | default: 'Skip to footer' }}</a></li> <li><a href="#footer" class="screen-reader-shortcut">{{ site.data.theme.t.skip_footer | default: 'Skip to footer' }}</a></li>
</ul> </ul>
</section> </nav>

View File

@ -7,6 +7,8 @@ html {
} }
body { body {
display: -ms-flexbox;
display: flex;
background: $background-color; background: $background-color;
color: $text-color; color: $text-color;
} }

View File

@ -11,6 +11,19 @@
} }
} }
/*
Skip links
========================================================================== */
.skip-links {
position: absolute;
width: 100%;
ul {
@include list-unstyled;
}
}
/* /*
Paginator Paginator
========================================================================== */ ========================================================================== */

View File

@ -2,17 +2,6 @@
Accessibility Modules Accessibility Modules
========================================================================== */ ========================================================================== */
/* Skip links */
.skip-links {
margin: 0;
li {
width: 0;
height: 0;
list-style: none;
}
}
/* Text meant only for screen readers */ /* Text meant only for screen readers */
.screen-reader-text, .screen-reader-text,
.screen-reader-text span, .screen-reader-text span,