Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • A a11yproject.com
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 40
    • Issues 40
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • The A11Y Project
  • a11yproject.com
  • Merge requests
  • !524

Address layout changes in #455

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/joe-watkins/joe-watkins/455 into gh-pages 7 years ago
  • Overview 4
  • Commits 2
  • Pipelines 0
  • Changes 6

Created by: joe-watkins

Addresses layout changes in #455 (closed)

  • Ensure all 2 column layouts the same.
  • Make home page 2 column layout the same as inner pages.
  • Move home page TOC to the right (for consistency).
  • Add a 2 column layout with TOC to Checklist page.

I've also removed the font sizing on active right column TOC elements as it was making text jump on longer items to two lines. I've instead added text underline for visual active state.

Compare
  • gh-pages (base)

and
  • latest version
    6ee9c0e1
    2 commits, 2 years ago

6 files
+ 37
- 19

    Preferences

    File browser
    Compare changes
_lay‎outs‎
archiv‎es.html‎ +3 -1
_s‎ass‎
_heade‎r.scss‎ +1 -1
_layou‎t.scss‎ +2 -3
j‎s‎
scrip‎ts.js‎ +1 -1
checkli‎st.html‎ +28 -11
index‎.html‎ +2 -2
_layouts/archives.html
+ 3
- 1
  • View file @ 6ee9c0e1

  • Edit in single-file editor

  • Open in Web IDE


@@ -25,5 +25,7 @@ layout: default
</div>
<article class="post">
{{ content }}
<div class="post-content">
{{ content }}
</div>
</article>
_layouts/archives.html
+ 3
- 1
  • View file @ 6ee9c0e1

  • Edit in single-file editor

  • Open in Web IDE


@@ -25,5 +25,7 @@ layout: default
</div>
<article class="post">
{{ content }}
<div class="post-content">
{{ content }}
</div>
</article>
_sass/_header.scss
+ 1
- 1
  • View file @ 6ee9c0e1

  • Edit in single-file editor

  • Open in Web IDE


@@ -79,7 +79,7 @@
@media (min-width: $tablet ) {
padding-bottom: 5em;
margin-bottom: 5em;
margin-bottom: 3em;
}
.icon-logo-hero {
_sass/_layout.scss
+ 2
- 3
  • View file @ 6ee9c0e1

  • Edit in single-file editor

  • Open in Web IDE


@@ -55,7 +55,7 @@ $mobile: 24em;
}
.toc-wrap {
width: 8em;
width: 10em;
position: relative;
float: left;
top: 1em;
@@ -98,9 +98,9 @@ $mobile: 24em;
right: 0;
&.active {
font-size: 1.33em;
color: darken($link, 15%);
right: -.3rem;
text-decoration: underline;
}
}
}
@@ -129,7 +129,6 @@ $mobile: 24em;
}
a.active {
font-size: 1.1em;
right: 0;
}
js/scripts.js
+ 1
- 1
  • View file @ 6ee9c0e1

  • Edit in single-file editor

  • Open in Web IDE


@@ -69,6 +69,7 @@ $(document).ready(function(){
} else {
offset = '20%'; // this offset feels right for short TOC lists
}
// add waypoints and waypoint classes
setupWaypoints(element, offset);
@@ -106,7 +107,6 @@ $(document).ready(function(){
// add the accordion / waypoints semantics
tocPageSemantics();
if($('.post-content').length) {
var tocWrapElem = $('.post-content');
var tocOffset = '-10px';
checklist.html
+ 28
- 11
  • View file @ 6ee9c0e1

  • Edit in single-file editor

  • Open in Web IDE


@@ -5,10 +5,27 @@ description: A beginner's guide to web accessibility
permalink: checklist.html
---
<nav class="toc-wrap toc-long" aria-labelledby="toc_title">
<h2 id="toc_title" class="toc-title">Categories</h2>
<ul class="toc">
<li><a class="aria-roles" href="#aria-roles">Landmarks</a></li>
<li><a class="language" href="#language">Language Attribute</a></li>
<li><a class="outline" href="#outline">Document Outline</a></li>
<li><a class="links" href="#links">Links</a></li>
<li><a class="images" href="#images">Images</a></li>
<li><a class="js" href="#js">Javascript</a></li>
<li><a class="forms" href="#forms">Forms</a></li>
<li><a class="audio" href="#audio">Media (Audio and Video)</a></li>
<li><a class="color-contrast" href="#color-contrast">Color and Contrast</a></li>
<li><a class="color-blind" href="#color-blind">Test for Color Blindness</a></li>
<li><a class="testing" href="#testing">Testing</a></li>
</ul>
</nav>
<form action="/" data-persist="garlic" method="POST" class="checklist" id="simple-a11y-checklist">
<!-- Aria Roles -->
<fieldset id="aria-roles">
<fieldset class="article-section resources-section" id="aria-roles" tabindex="-1">
<legend>Landmarks</legend>
<p>ARIA Landmark Roles are helpful landmarks that can be used by <abbr title="Assistive Technology">AT</abbr> to navigate a website.</p>
<p>Note: When you <a href="https://validator.w3.org/">validate html</a> using landmark roles, you'll receive a warning stating these roles are redundant. In HTML5, several of the landmark roles are implicit via the native structural element which is supported by most modern <a href="http://stevefaulkner.github.io/html-mapping-tests/">desktop browsers</a> with the exception of IE and <a href="https://dequeuniversity.com/assets/html/jquery-summit/html5/slides/landmarks-example.html">iOS Safari</a>. So, if you support IE and iOS browsers, you'll want to use the landmark roles. For more information, read <a href="/posts/aria-landmark-roles/">Quick Tip: Aria Landmark Roles and HTML5 Implicit Mapping</a>.</p>
@@ -63,7 +80,7 @@ permalink: checklist.html
</fieldset>
<!-- Language -->
<fieldset id="language">
<fieldset class="article-section resources-section" id="language" tabindex="-1">
<legend>Language Attribute</legend>
<p>Declaring a language attribute on the html element enables a screen reader to read out the text with correct pronunciation.</p>
<!-- text transcript -->
@@ -75,7 +92,7 @@ permalink: checklist.html
</fieldset>
<!-- Document Outline -->
<fieldset id="outline">
<fieldset class="article-section resources-section" id="outline" tabindex="-1">
<legend>Document Outline</legend>
<!-- form document-outline -->
<label for="document-outline" class="checkbox">Use semantic headings and structure
@@ -84,7 +101,7 @@ permalink: checklist.html
</fieldset>
<!-- Images -->
<fieldset id="links">
<fieldset class="article-section resources-section" id="links" tabindex="-1">
<legend>Links</legend>
<!-- focus -->
<label for="links-focus" class="checkbox">Ensure links have <code class="language-markup">:focus</code> state.
@@ -104,7 +121,7 @@ permalink: checklist.html
</fieldset>
<!-- Images -->
<fieldset id="images">
<fieldset class="article-section resources-section" id="images" tabindex="-1">
<legend>Images</legend>
<!-- alt -->
@@ -114,7 +131,7 @@ permalink: checklist.html
</fieldset>
<!-- Javascript -->
<fieldset id="js">
<fieldset class="article-section resources-section" id="js" tabindex="-1">
<legend>Javascript</legend>
<!-- unobtrusive js -->
<label for="unobtrusive-js" class="checkbox">Unobtrusive Javascript
@@ -132,7 +149,7 @@ permalink: checklist.html
</fieldset>
<!-- Forms -->
<fieldset id="forms">
<fieldset class="article-section resources-section" id="forms" tabindex="-1">
<legend>Forms</legend>
<!-- form layout -->
<label for="logical-layout" class="checkbox">Logical layout
@@ -165,7 +182,7 @@ permalink: checklist.html
</fieldset>
<!-- Audio -->
<fieldset id="audio">
<fieldset class="article-section resources-section" id="audio" tabindex="-1">
<legend>Media (Audio and Video)</legend>
<p>Providing text alternatives makes the audio information accessible to people who are deaf or hard of hearing. This also goes for search engines who are deaf and hard of hearing as well.</p>
<!-- text transcript -->
@@ -178,7 +195,7 @@ permalink: checklist.html
</fieldset>
<!-- Color and Contrast -->
<fieldset>
<fieldset class="article-section resources-section" id="color-contrast" tabindex="-1">
<legend>Color and Contrast</legend>
<label for="test-colorcontrast" class="checkbox">Test color contrast
<input name="test-colorcontrast" id="test-colorcontrast" type="checkbox">
@@ -186,7 +203,7 @@ permalink: checklist.html
<p class="description">Best done early in the process, by ensuring that the foreground and background colors of your site have sufficient contrast you will help make your site more readable for everyone. <a href="http://leaverou.github.com/contrast-ratio/">Contrast Ratio</a> is one tool for checking the contrast of your colors for both standard vision and color deficient user.</p>
</fieldset>
<fieldset>
<fieldset class="article-section resources-section" id="color-blind" tabindex="-1">
<legend>Test for different types of color blindness.</legend>
<label for="deuteranopia" class="checkbox">Deuteranopia
<input name="deuteranopia" id="deuteranopia" type="checkbox">
@@ -201,7 +218,7 @@ permalink: checklist.html
</fieldset>
<!-- Testing -->
<fieldset>
<fieldset class="article-section resources-section" id="testing" tabindex="-1">
<legend>Testing</legend>
<p>Navigating your site using a range of tools, such as just the keyboard or a screen reader, will help you understand how a blind, low-vision, or limited-mobility user will experience it.</p>
<label for="test-screenreader" class="checkbox" >Test using a screen reader
index.html
+ 2
- 2
  • View file @ 6ee9c0e1

  • Edit in single-file editor

  • Open in Web IDE


@@ -2,7 +2,7 @@
layout: archives
description: A community-driven effort to make web accessibility easier.
---
<nav class="toc-wrap" aria-labelledby="toc_title">
<nav class="toc-wrap toc-long" aria-labelledby="toc_title">
<h2 id="toc_title" class="toc-title">Categories</h2>
<ul class="toc">
{% for category in site.categories %}
@@ -19,7 +19,7 @@ description: A community-driven effort to make web accessibility easier.
{% assign title = category.first %}
{% assign posts = category.last %}
<section id="{{ title | capitalize | replace:' ','-' }}" class="article-section archive-section" tabindex="-1">
<section id="{{ title | capitalize | replace:' ','-' }}" class="article-section" tabindex="-1">
<h2 class="article-section__title">{{ title | capitalize }}</h2>
<ul class="article-section__content excerpt-list">
{% for post in posts %}
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 participant
Administrator
Reference: a11yproject/a11yproject.com!524
Source branch: github/fork/joe-watkins/joe-watkins/455

Menu

Explore Projects Groups Snippets