├── .babelrc
├── .editorconfig
├── .eslintrc
├── .github
└── issue-template.md
├── .gitignore
├── .nvmrc
├── .sass-lint.yml
├── CNAME
├── CONTRIBUTING.md
├── LICENCE
├── README.md
├── dist
├── all
│ └── all.css
├── assets
│ ├── angry-pepper.jpg
│ ├── blackicon.jpg
│ ├── blueicon.jpg
│ ├── butterfly.jpg
│ ├── chevron_left_round_red.png
│ ├── chevron_right_round_red.png
│ ├── chevron_up_round_red.png
│ ├── dog.jpg
│ ├── glasswing.jpg
│ ├── gold-banded.jpg
│ ├── gus-grissom.jpg
│ ├── hr.png
│ ├── icon_address.png
│ ├── icon_address.svg
│ ├── icon_email.png
│ ├── icon_email.svg
│ ├── icon_facebook_small.png
│ ├── icon_facebook_small.svg
│ ├── icon_facebook_small_hover.png
│ ├── icon_facebook_small_hover.svg
│ ├── icon_github.png
│ ├── icon_instagram_small.png
│ ├── icon_instagram_small.svg
│ ├── icon_instagram_small_hover.png
│ ├── icon_instagram_small_hover.svg
│ ├── icon_new-tab.png
│ ├── icon_phone.png
│ ├── icon_phone.svg
│ ├── icon_snapchat_small.png
│ ├── icon_snapchat_small.svg
│ ├── icon_snapchat_small_hover.png
│ ├── icon_snapchat_small_hover.svg
│ ├── icon_twitter.png
│ ├── icon_twitter_small.png
│ ├── icon_twitter_small.svg
│ ├── icon_twitter_small_hover.png
│ ├── icon_twitter_small_hover.svg
│ ├── icon_you-tube_small.png
│ ├── icon_you-tube_small.svg
│ ├── icon_you-tube_small_hover.png
│ ├── icon_you-tube_small_hover.svg
│ ├── lacewing.jpg
│ ├── mae-jemison.jpg
│ ├── minus_round_red.png
│ ├── plus_round_red.png
│ ├── px-video-sprite.svg
│ ├── searchicon.png
│ ├── site-logo.png
│ ├── snail.jpg
│ ├── snow.jpg
│ ├── starry.jpg
│ ├── swallowtail.jpg
│ ├── test.mp3
│ ├── tracy-caldwell.jpg
│ ├── videos
│ │ ├── badges-demo.mov
│ │ ├── read-more.m4a
│ │ ├── read-more.mov
│ │ ├── read-more.mp4
│ │ ├── read-more.png
│ │ ├── read-more.txt
│ │ ├── read-more.vtt
│ │ └── read-more.webm
│ └── w3c.png
├── css
│ ├── accordion.css
│ ├── audio.css
│ ├── breadcrumbs.css
│ ├── buttons.css
│ ├── cards-basic-grid.css
│ ├── cards-basic.css
│ ├── cards-bio-details.css
│ ├── cards-bio-grid.css
│ ├── cards-click.css
│ ├── cards-color-overlay.css
│ ├── cards-highlight-full.css
│ ├── cards-highlight-left.css
│ ├── cards-highlight-right.css
│ ├── cards-hover.css
│ ├── checkboxes.css
│ ├── global.css
│ ├── headings.css
│ ├── icons.css
│ ├── image-gallery.css
│ ├── images.css
│ ├── link-focus.css
│ ├── lists.css
│ ├── navigation-basic.css
│ ├── navigation-dropdown.css
│ ├── navigation-footer.css
│ ├── navigation-mobile.css
│ ├── pagination.css
│ ├── radio-buttons.css
│ ├── read-more.css
│ ├── resources.css
│ ├── search.css
│ ├── select-lists.css
│ ├── site-logo.css
│ ├── skip-links.css
│ ├── svgs.css
│ ├── tables.css
│ ├── tabs.css
│ ├── text-fields.css
│ ├── toggles.css
│ ├── tooltips.css
│ └── videos.css
├── favicons
│ ├── android-icon-144x144.png
│ ├── android-icon-192x192.png
│ ├── android-icon-36x36.png
│ ├── android-icon-48x48.png
│ ├── android-icon-72x72.png
│ ├── android-icon-96x96.png
│ ├── apple-icon-114x114.png
│ ├── apple-icon-120x120.png
│ ├── apple-icon-144x144.png
│ ├── apple-icon-152x152.png
│ ├── apple-icon-180x180.png
│ ├── apple-icon-57x57.png
│ ├── apple-icon-60x60.png
│ ├── apple-icon-72x72.png
│ ├── apple-icon-76x76.png
│ ├── apple-icon-precomposed.png
│ ├── apple-icon.png
│ ├── browserconfig.xml
│ ├── favicon-16x16.png
│ ├── favicon-32x32.png
│ ├── favicon-96x96.png
│ ├── favicon.ico
│ ├── manifest.json
│ ├── ms-icon-144x144.png
│ ├── ms-icon-150x150.png
│ ├── ms-icon-310x310.png
│ └── ms-icon-70x70.png
├── js
│ ├── accordion.js
│ ├── aria-card-flip.js
│ ├── aria-switch.js
│ ├── aria-toggle.js
│ ├── aria-tooltips.js
│ ├── back-to-top.js
│ ├── button-state.js
│ ├── button.js
│ ├── clipboard.min.js
│ ├── copy-button.js
│ ├── jump-link-fix.js
│ ├── menu.js
│ ├── mobile-menu-icon.js
│ ├── mobile-menu.js
│ ├── px-video.js
│ ├── sidebar-slide.js
│ ├── strings.js
│ ├── tables.js
│ └── tabs.js
└── style-guide
│ ├── homepage.html
│ ├── index.html
│ ├── item-cards-basic.html
│ ├── item-cards-cards-basic-grid.html
│ ├── item-cards-cards-bio-details.html
│ ├── item-cards-cards-bio-grid.html
│ ├── item-cards-cards-color-overlay.html
│ ├── item-cards-cards-flip-click.html
│ ├── item-cards-cards-flip-hover.html
│ ├── item-cards-cards-highlight-full.html
│ ├── item-cards-cards-highlight-left.html
│ ├── item-cards-cards-highlight-right.html
│ ├── item-cards.html
│ ├── item-forms-checkboxes.html
│ ├── item-forms-radio-buttons.html
│ ├── item-forms-search.html
│ ├── item-forms-select-lists.html
│ ├── item-forms-text-fields.html
│ ├── item-forms-toggles.html
│ ├── item-forms-tooltips.html
│ ├── item-forms.html
│ ├── item-general-buttons.html
│ ├── item-general-colors.html
│ ├── item-general-link-focus.html
│ ├── item-general-read-more.html
│ ├── item-general-skip-links.html
│ ├── item-general-typography.html
│ ├── item-general.html
│ ├── item-media-audio.html
│ ├── item-media-image-gallery.html
│ ├── item-media-images.html
│ ├── item-media-site-logo.html
│ ├── item-media-svgs.html
│ ├── item-media-videos.html
│ ├── item-media.html
│ ├── item-navigation-accordion.html
│ ├── item-navigation-breadcrumbs.html
│ ├── item-navigation-navigation-basic.html
│ ├── item-navigation-navigation-dropdown.html
│ ├── item-navigation-navigation-footer.html
│ ├── item-navigation-navigation-mobile.html
│ ├── item-navigation-pagination.html
│ ├── item-navigation.html
│ ├── item-resources.html
│ ├── item-structure-headings.html
│ ├── item-structure-lists.html
│ ├── item-structure-tables.html
│ ├── item-structure-tabs.html
│ ├── item-structure.html
│ ├── kss-assets
│ ├── kss.css
│ ├── kss.js
│ ├── local.css
│ ├── main.js
│ └── rainbow.min.js
│ ├── section-cards.html
│ ├── section-forms.html
│ ├── section-general.html
│ ├── section-media.html
│ ├── section-navigation.html
│ ├── section-resources.html
│ └── section-structure.html
├── docs
├── CNAME
├── _config.yml
├── all
│ └── all.css
├── assets
│ ├── angry-pepper.jpg
│ ├── blackicon.jpg
│ ├── blueicon.jpg
│ ├── butterfly.jpg
│ ├── chevron_left_round_red.png
│ ├── chevron_right_round_red.png
│ ├── chevron_up_round_red.png
│ ├── dog.jpg
│ ├── glasswing.jpg
│ ├── gold-banded.jpg
│ ├── gus-grissom.jpg
│ ├── hr.png
│ ├── icon_address.png
│ ├── icon_address.svg
│ ├── icon_email.png
│ ├── icon_email.svg
│ ├── icon_facebook_small.png
│ ├── icon_facebook_small.svg
│ ├── icon_facebook_small_hover.png
│ ├── icon_facebook_small_hover.svg
│ ├── icon_github.png
│ ├── icon_instagram_small.png
│ ├── icon_instagram_small.svg
│ ├── icon_instagram_small_hover.png
│ ├── icon_instagram_small_hover.svg
│ ├── icon_new-tab.png
│ ├── icon_phone.png
│ ├── icon_phone.svg
│ ├── icon_snapchat_small.png
│ ├── icon_snapchat_small.svg
│ ├── icon_snapchat_small_hover.png
│ ├── icon_snapchat_small_hover.svg
│ ├── icon_twitter.png
│ ├── icon_twitter_small.png
│ ├── icon_twitter_small.svg
│ ├── icon_twitter_small_hover.png
│ ├── icon_twitter_small_hover.svg
│ ├── icon_you-tube_small.png
│ ├── icon_you-tube_small.svg
│ ├── icon_you-tube_small_hover.png
│ ├── icon_you-tube_small_hover.svg
│ ├── lacewing.jpg
│ ├── mae-jemison.jpg
│ ├── minus_round_red.png
│ ├── plus_round_red.png
│ ├── px-video-sprite.svg
│ ├── searchicon.png
│ ├── site-logo.png
│ ├── snail.jpg
│ ├── snow.jpg
│ ├── starry.jpg
│ ├── swallowtail.jpg
│ ├── test.mp3
│ ├── tracy-caldwell.jpg
│ ├── videos
│ │ ├── badges-demo.mov
│ │ ├── read-more.m4a
│ │ ├── read-more.mov
│ │ ├── read-more.mp4
│ │ ├── read-more.png
│ │ ├── read-more.txt
│ │ ├── read-more.vtt
│ │ └── read-more.webm
│ └── w3c.png
├── browserconfig.xml
├── css
│ ├── accordion.css
│ ├── audio.css
│ ├── breadcrumbs.css
│ ├── buttons.css
│ ├── cards-basic-grid.css
│ ├── cards-basic.css
│ ├── cards-bio-details.css
│ ├── cards-bio-grid.css
│ ├── cards-click.css
│ ├── cards-color-overlay.css
│ ├── cards-highlight-full.css
│ ├── cards-highlight-left.css
│ ├── cards-highlight-right.css
│ ├── cards-hover.css
│ ├── checkboxes.css
│ ├── global.css
│ ├── headings.css
│ ├── icons.css
│ ├── image-gallery.css
│ ├── images.css
│ ├── link-focus.css
│ ├── lists.css
│ ├── navigation-basic.css
│ ├── navigation-dropdown.css
│ ├── navigation-footer.css
│ ├── navigation-mobile.css
│ ├── pagination.css
│ ├── radio-buttons.css
│ ├── read-more.css
│ ├── resources.css
│ ├── search.css
│ ├── select-lists.css
│ ├── site-logo.css
│ ├── skip-links.css
│ ├── svgs.css
│ ├── tables.css
│ ├── tabs.css
│ ├── text-fields.css
│ ├── toggles.css
│ ├── tooltips.css
│ └── videos.css
├── favicons
│ ├── android-icon-144x144.png
│ ├── android-icon-192x192.png
│ ├── android-icon-36x36.png
│ ├── android-icon-48x48.png
│ ├── android-icon-72x72.png
│ ├── android-icon-96x96.png
│ ├── apple-icon-114x114.png
│ ├── apple-icon-120x120.png
│ ├── apple-icon-144x144.png
│ ├── apple-icon-152x152.png
│ ├── apple-icon-180x180.png
│ ├── apple-icon-57x57.png
│ ├── apple-icon-60x60.png
│ ├── apple-icon-72x72.png
│ ├── apple-icon-76x76.png
│ ├── apple-icon-precomposed.png
│ ├── apple-icon.png
│ ├── browserconfig.xml
│ ├── favicon-16x16.png
│ ├── favicon-32x32.png
│ ├── favicon-96x96.png
│ ├── favicon.ico
│ ├── manifest.json
│ ├── ms-icon-144x144.png
│ ├── ms-icon-150x150.png
│ ├── ms-icon-310x310.png
│ └── ms-icon-70x70.png
├── js
│ ├── accordion.js
│ ├── aria-card-flip.js
│ ├── aria-switch.js
│ ├── aria-toggle.js
│ ├── aria-tooltips.js
│ ├── back-to-top.js
│ ├── button-state.js
│ ├── button.js
│ ├── clipboard.min.js
│ ├── copy-button.js
│ ├── jump-link-fix.js
│ ├── menu.js
│ ├── mobile-menu-icon.js
│ ├── mobile-menu.js
│ ├── px-video.js
│ ├── sidebar-slide.js
│ ├── strings.js
│ ├── tables.js
│ └── tabs.js
└── style-guide
│ ├── homepage.html
│ ├── index.html
│ ├── item-cards-basic.html
│ ├── item-cards-cards-basic-grid.html
│ ├── item-cards-cards-bio-details.html
│ ├── item-cards-cards-bio-grid.html
│ ├── item-cards-cards-color-overlay.html
│ ├── item-cards-cards-flip-click.html
│ ├── item-cards-cards-flip-hover.html
│ ├── item-cards-cards-highlight-full.html
│ ├── item-cards-cards-highlight-left.html
│ ├── item-cards-cards-highlight-right.html
│ ├── item-cards.html
│ ├── item-forms-checkboxes.html
│ ├── item-forms-radio-buttons.html
│ ├── item-forms-search.html
│ ├── item-forms-select-lists.html
│ ├── item-forms-text-fields.html
│ ├── item-forms-toggles.html
│ ├── item-forms-tooltips.html
│ ├── item-forms.html
│ ├── item-general-buttons.html
│ ├── item-general-colors.html
│ ├── item-general-link-focus.html
│ ├── item-general-read-more.html
│ ├── item-general-skip-links.html
│ ├── item-general-typography.html
│ ├── item-general.html
│ ├── item-media-audio.html
│ ├── item-media-image-gallery.html
│ ├── item-media-images.html
│ ├── item-media-site-logo.html
│ ├── item-media-svgs.html
│ ├── item-media-videos.html
│ ├── item-media.html
│ ├── item-navigation-accordion.html
│ ├── item-navigation-breadcrumbs.html
│ ├── item-navigation-navigation-basic.html
│ ├── item-navigation-navigation-dropdown.html
│ ├── item-navigation-navigation-footer.html
│ ├── item-navigation-navigation-mobile.html
│ ├── item-navigation-pagination.html
│ ├── item-navigation.html
│ ├── item-resources.html
│ ├── item-structure-headings.html
│ ├── item-structure-lists.html
│ ├── item-structure-tables.html
│ ├── item-structure-tabs.html
│ ├── item-structure.html
│ ├── kss-assets
│ ├── kss.css
│ ├── kss.js
│ ├── local.css
│ ├── main.js
│ └── rainbow.min.js
│ ├── section-cards.html
│ ├── section-forms.html
│ ├── section-general.html
│ ├── section-media.html
│ ├── section-navigation.html
│ ├── section-resources.html
│ └── section-structure.html
├── gulp-tasks
├── clean.js
├── compile.js
├── compress.js
├── concat.js
├── lint.js
├── move.js
└── styleguide.js
├── gulpfile.js
├── package-lock.json
├── package.json
└── src
├── components
├── accordion
│ ├── accordion.scss
│ └── accordion.twig
├── audio
│ ├── audio.scss
│ └── audio.twig
├── breadcrumbs
│ ├── breadcrumbs.scss
│ └── breadcrumbs.twig
├── buttons
│ ├── buttons.scss
│ └── buttons.twig
├── cards-basic-grid
│ ├── cards-basic-grid.json
│ ├── cards-basic-grid.scss
│ └── cards-basic-grid.twig
├── cards-basic
│ ├── cards-basic.json
│ ├── cards-basic.scss
│ └── cards-basic.twig
├── cards-bio-details
│ ├── cards-bio-details.json
│ ├── cards-bio-details.scss
│ └── cards-bio-details.twig
├── cards-bio-grid
│ ├── cards-bio-grid-names.twig
│ ├── cards-bio-grid.json
│ ├── cards-bio-grid.scss
│ └── cards-bio-grid.twig
├── cards-color-overlay
│ ├── cards-color-overlay.scss
│ └── cards-color-overlay.twig
├── cards-flip-click
│ ├── cards-click.scss
│ └── cards-click.twig
├── cards-flip-hover
│ ├── cards-hover.scss
│ └── cards-hover.twig
├── cards-highlight-full
│ ├── cards-highlight-full.scss
│ └── cards-highlight-full.twig
├── cards-highlight-left
│ ├── cards-highlight-left.scss
│ └── cards-highlight-left.twig
├── cards-highlight-right
│ ├── cards-highlight-right.scss
│ └── cards-highlight-right.twig
├── checkboxes
│ ├── checkboxes.scss
│ └── checkboxes.twig
├── headings
│ ├── headings.scss
│ └── headings.twig
├── homepage.md
├── icons
│ └── icons.scss
├── image-gallery
│ ├── image-gallery.scss
│ └── image-gallery.twig
├── images
│ ├── images.scss
│ └── images.twig
├── link-focus
│ ├── link-focus.scss
│ └── link-focus.twig
├── lists
│ ├── lists.scss
│ └── lists.twig
├── navigation-basic
│ ├── navigation-basic.scss
│ └── navigation-basic.twig
├── navigation-footer
│ ├── navigation-footer.scss
│ └── navigation-footer.twig
├── navigation-mobile
│ ├── navigation-mobile.scss
│ └── navigation-mobile.twig
├── pagination
│ ├── pagination.scss
│ └── pagination.twig
├── radio-buttons
│ ├── radio-buttons.scss
│ └── radio-buttons.twig
├── read-more
│ ├── read-more.scss
│ └── read-more.twig
├── resources
│ ├── resources.scss
│ └── resources.twig
├── search
│ ├── search.scss
│ └── search.twig
├── select-lists
│ ├── select-lists.scss
│ └── select-lists.twig
├── site-logo
│ ├── site-logo.scss
│ └── site-logo.twig
├── skip-links
│ ├── skip-links.scss
│ └── skip-links.twig
├── svgs
│ ├── svgs.scss
│ └── svgs.twig
├── tables
│ ├── tables.scss
│ └── tables.twig
├── tabs
│ ├── tabs.scss
│ └── tabs.twig
├── text-inputs
│ ├── text-fields.scss
│ └── text-fields.twig
├── toggles
│ ├── toggles.scss
│ └── toggles.twig
├── tooltips
│ ├── tooltips.scss
│ └── tooltips.twig
└── videos
│ ├── videos.scss
│ └── videos.twig
├── global
├── base
│ └── _base.scss
├── global.scss
├── js
│ ├── accordion.js
│ ├── aria-card-flip.js
│ ├── aria-switch.js
│ ├── aria-toggle.js
│ ├── aria-tooltips.js
│ ├── back-to-top.js
│ ├── button-state.js
│ ├── button.js
│ ├── clipboard.min.js
│ ├── copy-button.js
│ ├── jump-link-fix.js
│ ├── menu.js
│ ├── mobile-menu-icon.js
│ ├── mobile-menu.js
│ ├── px-video.js
│ ├── sidebar-slide.js
│ ├── strings.js
│ ├── tables.js
│ └── tabs.js
└── utils
│ ├── _breakpoints.scss
│ ├── _colors.scss
│ ├── _functions.scss
│ ├── _init.scss
│ ├── _mixins.scss
│ ├── _overrides.scss
│ ├── _typography.scss
│ └── _variables.scss
├── index-copy.html
└── style-guide
└── builder
├── builder.js
├── index.twig
├── kss-assets
├── kss.css
├── kss.js
├── local.css
├── main.js
└── rainbow.min.js
└── package.json
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": [
3 | "es2015"
4 | ],
5 | "plugins": [
6 | "transform-remove-strict-mode"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | # editorconfig.org
2 | root = true
3 |
4 | [*]
5 | indent_style = space
6 | indent_size = 2
7 | end_of_line = lf
8 | charset = utf-8
9 | trim_trailing_whitespace = true
10 | insert_final_newline = true
11 |
12 | [*.md]
13 | trim_trailing_whitespace = false
14 |
--------------------------------------------------------------------------------
/.github/issue-template.md:
--------------------------------------------------------------------------------
1 | ## Issue
2 | Brief description of the issue. Please list any specific steps.
3 |
4 | ## Example
5 | Something that demonstrates the issue - CodePen, gif, image, etc. Be specific.
6 |
7 | ## Additional Information
8 | Operating System and version:
9 | Browser and version:
10 | Assistive technology used (if applicable):
11 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # Ignore the node modules folder (created by 'npm install').
2 | node_modules
3 |
4 | # We absolutely don't want to have the .sass-cache in git.
5 | .sass-cache
6 |
7 | # Ignore any errors thrown by npm.
8 | npm-debug.log
9 |
10 | # Ignore any map files. These don't need to be committed.
11 | *.map
12 |
13 | # Ignore OS Mac (mostly) & Windows files
14 | ._*
15 | .DS_Store
16 | .DS_Store?
17 | .Spotlight-V100
18 | .Trashes
19 | Desktop.ini
20 | ehthumbs.db
21 | Thumbs.db
22 |
--------------------------------------------------------------------------------
/.nvmrc:
--------------------------------------------------------------------------------
1 | v7.4.0
2 |
--------------------------------------------------------------------------------
/CNAME:
--------------------------------------------------------------------------------
1 | www.a11y-style-guide.com
2 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 |
20 |
Tips and Tricks
21 |
22 | Make all of your changes in the src
folder or your changes will be overwritten on the next gulp
command.
23 | If you add a JS file, you must add the script to the bottom of the index.twig
file in the style-guide
folder, otherwise the script will not be added to the page.
24 | Once you are done making changes to the patterns, you can easily update the doc folders by these commands (or let a repo manager do it):npm run gulp clean:docs
- Removes old code from /docs except index and KSS settings
25 | npm run gulp move:docs
- Move items from /dist to /docs.
26 |
27 |
28 |
--------------------------------------------------------------------------------
/LICENCE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2017
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/dist/assets/angry-pepper.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/angry-pepper.jpg
--------------------------------------------------------------------------------
/dist/assets/blackicon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/blackicon.jpg
--------------------------------------------------------------------------------
/dist/assets/blueicon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/blueicon.jpg
--------------------------------------------------------------------------------
/dist/assets/butterfly.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/butterfly.jpg
--------------------------------------------------------------------------------
/dist/assets/chevron_left_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/chevron_left_round_red.png
--------------------------------------------------------------------------------
/dist/assets/chevron_right_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/chevron_right_round_red.png
--------------------------------------------------------------------------------
/dist/assets/chevron_up_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/chevron_up_round_red.png
--------------------------------------------------------------------------------
/dist/assets/dog.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/dog.jpg
--------------------------------------------------------------------------------
/dist/assets/glasswing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/glasswing.jpg
--------------------------------------------------------------------------------
/dist/assets/gold-banded.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/gold-banded.jpg
--------------------------------------------------------------------------------
/dist/assets/gus-grissom.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/gus-grissom.jpg
--------------------------------------------------------------------------------
/dist/assets/hr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/hr.png
--------------------------------------------------------------------------------
/dist/assets/icon_address.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_address.png
--------------------------------------------------------------------------------
/dist/assets/icon_address.svg:
--------------------------------------------------------------------------------
1 |
icon_address
--------------------------------------------------------------------------------
/dist/assets/icon_email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_email.png
--------------------------------------------------------------------------------
/dist/assets/icon_email.svg:
--------------------------------------------------------------------------------
1 |
icon_email
--------------------------------------------------------------------------------
/dist/assets/icon_facebook_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_facebook_small.png
--------------------------------------------------------------------------------
/dist/assets/icon_facebook_small.svg:
--------------------------------------------------------------------------------
1 |
icon_facebook_small
--------------------------------------------------------------------------------
/dist/assets/icon_facebook_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_facebook_small_hover.png
--------------------------------------------------------------------------------
/dist/assets/icon_facebook_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_facebook_small
--------------------------------------------------------------------------------
/dist/assets/icon_github.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_github.png
--------------------------------------------------------------------------------
/dist/assets/icon_instagram_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_instagram_small.png
--------------------------------------------------------------------------------
/dist/assets/icon_instagram_small.svg:
--------------------------------------------------------------------------------
1 |
icon_instagram_small
--------------------------------------------------------------------------------
/dist/assets/icon_instagram_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_instagram_small_hover.png
--------------------------------------------------------------------------------
/dist/assets/icon_instagram_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_instagram_small_hover
--------------------------------------------------------------------------------
/dist/assets/icon_new-tab.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_new-tab.png
--------------------------------------------------------------------------------
/dist/assets/icon_phone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_phone.png
--------------------------------------------------------------------------------
/dist/assets/icon_phone.svg:
--------------------------------------------------------------------------------
1 |
icon_phone
--------------------------------------------------------------------------------
/dist/assets/icon_snapchat_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_snapchat_small.png
--------------------------------------------------------------------------------
/dist/assets/icon_snapchat_small.svg:
--------------------------------------------------------------------------------
1 |
icon_snapchat_small
--------------------------------------------------------------------------------
/dist/assets/icon_snapchat_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_snapchat_small_hover.png
--------------------------------------------------------------------------------
/dist/assets/icon_snapchat_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_snapchat_small_hover
--------------------------------------------------------------------------------
/dist/assets/icon_twitter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_twitter.png
--------------------------------------------------------------------------------
/dist/assets/icon_twitter_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_twitter_small.png
--------------------------------------------------------------------------------
/dist/assets/icon_twitter_small.svg:
--------------------------------------------------------------------------------
1 |
icon_twitter_small
--------------------------------------------------------------------------------
/dist/assets/icon_twitter_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_twitter_small_hover.png
--------------------------------------------------------------------------------
/dist/assets/icon_twitter_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_twitter_small_hover
--------------------------------------------------------------------------------
/dist/assets/icon_you-tube_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_you-tube_small.png
--------------------------------------------------------------------------------
/dist/assets/icon_you-tube_small.svg:
--------------------------------------------------------------------------------
1 |
icon_you-tube_small
--------------------------------------------------------------------------------
/dist/assets/icon_you-tube_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/icon_you-tube_small_hover.png
--------------------------------------------------------------------------------
/dist/assets/icon_you-tube_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_you-tube_small_hover
--------------------------------------------------------------------------------
/dist/assets/lacewing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/lacewing.jpg
--------------------------------------------------------------------------------
/dist/assets/mae-jemison.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/mae-jemison.jpg
--------------------------------------------------------------------------------
/dist/assets/minus_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/minus_round_red.png
--------------------------------------------------------------------------------
/dist/assets/plus_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/plus_round_red.png
--------------------------------------------------------------------------------
/dist/assets/searchicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/searchicon.png
--------------------------------------------------------------------------------
/dist/assets/site-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/site-logo.png
--------------------------------------------------------------------------------
/dist/assets/snail.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/snail.jpg
--------------------------------------------------------------------------------
/dist/assets/snow.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/snow.jpg
--------------------------------------------------------------------------------
/dist/assets/starry.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/starry.jpg
--------------------------------------------------------------------------------
/dist/assets/swallowtail.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/swallowtail.jpg
--------------------------------------------------------------------------------
/dist/assets/test.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/test.mp3
--------------------------------------------------------------------------------
/dist/assets/tracy-caldwell.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/tracy-caldwell.jpg
--------------------------------------------------------------------------------
/dist/assets/videos/badges-demo.mov:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/videos/badges-demo.mov
--------------------------------------------------------------------------------
/dist/assets/videos/read-more.m4a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/videos/read-more.m4a
--------------------------------------------------------------------------------
/dist/assets/videos/read-more.mov:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/videos/read-more.mov
--------------------------------------------------------------------------------
/dist/assets/videos/read-more.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/videos/read-more.mp4
--------------------------------------------------------------------------------
/dist/assets/videos/read-more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/videos/read-more.png
--------------------------------------------------------------------------------
/dist/assets/videos/read-more.txt:
--------------------------------------------------------------------------------
1 | Here is some placeholder info about the Read More video.
--------------------------------------------------------------------------------
/dist/assets/videos/read-more.vtt:
--------------------------------------------------------------------------------
1 | Here is some placeholder info about the Read More video.
--------------------------------------------------------------------------------
/dist/assets/videos/read-more.webm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/videos/read-more.webm
--------------------------------------------------------------------------------
/dist/assets/w3c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/assets/w3c.png
--------------------------------------------------------------------------------
/dist/css/cards-highlight-left.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/css/cards-highlight-left.css
--------------------------------------------------------------------------------
/dist/css/cards-highlight-right.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/css/cards-highlight-right.css
--------------------------------------------------------------------------------
/dist/favicons/android-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/android-icon-144x144.png
--------------------------------------------------------------------------------
/dist/favicons/android-icon-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/android-icon-192x192.png
--------------------------------------------------------------------------------
/dist/favicons/android-icon-36x36.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/android-icon-36x36.png
--------------------------------------------------------------------------------
/dist/favicons/android-icon-48x48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/android-icon-48x48.png
--------------------------------------------------------------------------------
/dist/favicons/android-icon-72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/android-icon-72x72.png
--------------------------------------------------------------------------------
/dist/favicons/android-icon-96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/android-icon-96x96.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-114x114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-114x114.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-120x120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-120x120.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-144x144.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-152x152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-152x152.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-180x180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-180x180.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-57x57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-57x57.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-60x60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-60x60.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-72x72.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-76x76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-76x76.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon-precomposed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon-precomposed.png
--------------------------------------------------------------------------------
/dist/favicons/apple-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/apple-icon.png
--------------------------------------------------------------------------------
/dist/favicons/browserconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
#ffffff
--------------------------------------------------------------------------------
/dist/favicons/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/favicon-16x16.png
--------------------------------------------------------------------------------
/dist/favicons/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/favicon-32x32.png
--------------------------------------------------------------------------------
/dist/favicons/favicon-96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/favicon-96x96.png
--------------------------------------------------------------------------------
/dist/favicons/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/favicon.ico
--------------------------------------------------------------------------------
/dist/favicons/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "App",
3 | "icons": [
4 | {
5 | "src": "\/android-icon-36x36.png",
6 | "sizes": "36x36",
7 | "type": "image\/png",
8 | "density": "0.75"
9 | },
10 | {
11 | "src": "\/android-icon-48x48.png",
12 | "sizes": "48x48",
13 | "type": "image\/png",
14 | "density": "1.0"
15 | },
16 | {
17 | "src": "\/android-icon-72x72.png",
18 | "sizes": "72x72",
19 | "type": "image\/png",
20 | "density": "1.5"
21 | },
22 | {
23 | "src": "\/android-icon-96x96.png",
24 | "sizes": "96x96",
25 | "type": "image\/png",
26 | "density": "2.0"
27 | },
28 | {
29 | "src": "\/android-icon-144x144.png",
30 | "sizes": "144x144",
31 | "type": "image\/png",
32 | "density": "3.0"
33 | },
34 | {
35 | "src": "\/android-icon-192x192.png",
36 | "sizes": "192x192",
37 | "type": "image\/png",
38 | "density": "4.0"
39 | }
40 | ]
41 | }
--------------------------------------------------------------------------------
/dist/favicons/ms-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/ms-icon-144x144.png
--------------------------------------------------------------------------------
/dist/favicons/ms-icon-150x150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/ms-icon-150x150.png
--------------------------------------------------------------------------------
/dist/favicons/ms-icon-310x310.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/ms-icon-310x310.png
--------------------------------------------------------------------------------
/dist/favicons/ms-icon-70x70.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/favicons/ms-icon-70x70.png
--------------------------------------------------------------------------------
/dist/js/accordion.js:
--------------------------------------------------------------------------------
1 | ;(function ( $, doc ) {
2 | 'use strict';
3 |
4 | var accordion = $('.accordion__trigger');
5 |
6 | accordion.on('click',function(event) {
7 | //check if the panel is already expanded
8 | var isExpanded = $(this).attr('aria-expanded') == 'true';
9 | var accordionContent = '#' + $(this).attr('aria-controls');
10 |
11 | if(isExpanded) {
12 | //hide the content panel and mark expanded as false
13 | $(accordionContent).attr('aria-hidden',true).slideUp();
14 | $(this).attr('aria-expanded',false);
15 | } else {
16 | $(accordionContent).attr('aria-hidden',false).slideDown();
17 | $(this).attr('aria-expanded', true);
18 | }
19 |
20 | event.preventDefault();
21 | });
22 |
23 | accordion.on('keydown',function(event){
24 | //navigate up and down
25 | if (event.keyCode == 40) {
26 | $(this).closest('.js-accordion__panel').next().find(accordion).focus();
27 | }
28 | if (event.keyCode == 38) {
29 | $(this).closest('.js-accordion__panel').prev().find(accordion).focus();
30 | }
31 | });
32 |
33 | })( jQuery, this.document );
34 |
--------------------------------------------------------------------------------
/dist/js/aria-card-flip.js:
--------------------------------------------------------------------------------
1 | (function(win, doc) {
2 | 'use strict';
3 | if (!doc.querySelectorAll || !win.addEventListener) {
4 | return;
5 | }
6 | var toggles = doc.querySelectorAll('[aria-controls]');
7 | var togglecount = toggles.length;
8 | var toggleID;
9 | var togglecontent;
10 | var i;
11 | var target;
12 | for (i = 0; i < togglecount; i = i + 1) {
13 | toggleID = toggles[i].getAttribute('aria-controls');
14 | togglecontent = doc.getElementById(toggleID);
15 | togglecontent.setAttribute('aria-hidden', 'true');
16 | togglecontent.setAttribute('tabindex', '-1');
17 | }
18 |
19 | var cards = document.querySelectorAll(".card.effect__click");
20 | for ( var i = 0, len = cards.length; i < len; i++ ) {
21 | var card = cards[i];
22 | clickListener( card );
23 | }
24 |
25 | function clickListener(card) {
26 | card.addEventListener( 'click', function() {
27 | var c = this.classList;
28 | c.contains('flipped') === true ? c.remove('flipped') : c.add('flipped');
29 | });
30 | }
31 |
32 | function toggle(ev) {
33 | ev = ev || win.event;
34 | target = ev.target || ev.srcElement;
35 |
36 | if (target.hasAttribute('aria-controls')) {
37 | toggleID = target.getAttribute('aria-controls');
38 | togglecontent = doc.getElementById(toggleID);
39 |
40 | if (togglecontent.getAttribute('aria-hidden') == 'true') {
41 | togglecontent.setAttribute('aria-hidden', 'false');
42 | target.setAttribute('aria-expanded', 'true');
43 | } else {
44 |
45 | togglecontent.setAttribute('aria-hidden', 'true');
46 | target.setAttribute('aria-expanded', 'false');
47 | }
48 | }
49 | }
50 |
51 | // Each card needs its own specific ID
52 | doc.getElementById('flip1').addEventListener('click', toggle, false);
53 | doc.getElementById('flip2').addEventListener('click', toggle, false);
54 | doc.getElementById('flip3').addEventListener('click', toggle, false);
55 | doc.getElementById('flip4').addEventListener('click', toggle, false);
56 |
57 | }(this, this.document));
58 |
--------------------------------------------------------------------------------
/dist/js/back-to-top.js:
--------------------------------------------------------------------------------
1 | ;(function ( $, doc ) {
2 | 'use strict';
3 |
4 | var $win = $(window);
5 | var $html = $('html');
6 | var scrollTimeout; // global for any pending scrollTimeout
7 |
8 | $win.scroll(function () {
9 | if ( scrollTimeout ) {
10 | // clear the timeout, if one is pending
11 | clearTimeout(scrollTimeout);
12 | scrollTimeout = null;
13 | }
14 | scrollTimeout = setTimeout(scrollHandler, 200);
15 | });
16 |
17 |
18 | var scrollHandler = function () {
19 | if ( $win.scrollTop() >= 200 && !$html.hasClass('show-back-to-top') ) {
20 | $html.addClass('show-back-to-top');
21 | }
22 | else if ( $win.scrollTop() <= 200 ) {
23 | $html.removeClass('show-back-to-top');
24 | }
25 | };
26 |
27 | if ( $win.scrollTop() >= 200 ) {
28 | $html.addClass('show-back-to-top');
29 | }
30 |
31 | scrollHandler();
32 |
33 |
34 | $('.back-to-top').on('click', function () {
35 | var $targetNode = $(this).attr('href').split('h1')[1];
36 | $('h1' + $targetNode).attr('tabindex', '-1');
37 | $html.removeClass('show-back-to-top');
38 | $('h1' + $targetNode).focus();
39 | });
40 |
41 | })( jQuery, this.document );
42 |
--------------------------------------------------------------------------------
/dist/js/button-state.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | var pressedBtn = document.getElementById('button_state');
3 |
4 | pressedBtn.addEventListener('click', function (e) {
5 | pressedBtn.setAttribute('aria-pressed', e.target.getAttribute('aria-pressed') === 'true' ? 'false' : 'true');
6 | });
7 |
8 | var pressedBtn2 = document.getElementById('button_like');
9 |
10 | pressedBtn2.addEventListener('click', function (e) {
11 | pressedBtn2.setAttribute('aria-pressed', e.target.getAttribute('aria-pressed') === 'true' ? 'false' : 'true');
12 | });
13 |
14 | var pressedBtn3 = document.getElementById('button_all');
15 |
16 | pressedBtn3.addEventListener('click', function (e) {
17 | pressedBtn3.setAttribute('aria-pressed', e.target.getAttribute('aria-pressed') === 'true' ? 'false' : 'true');
18 | });
19 |
20 | var pressedBtn4 = document.getElementById('button_search');
21 |
22 | pressedBtn4.addEventListener('click', function (e) {
23 | pressedBtn4.setAttribute('aria-pressed', e.target.getAttribute('aria-pressed') === 'true' ? 'false' : 'true');
24 | });
25 | })(document, jQuery);
26 |
--------------------------------------------------------------------------------
/dist/js/button.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | function handleBtnClick(event) {
3 | toggleButton(event.target);
4 | }
5 |
6 | function handleBtnKeyPress(event) {
7 | // Check to see if space or enter were pressed
8 | if (event.keyCode === 32 || event.keyCode === 13) {
9 | // Prevent the default action to stop scrolling when space is pressed
10 | event.preventDefault();
11 | toggleButton(event.target);
12 | }
13 | }
14 |
15 | function toggleButton(element) {
16 | // Check to see if the button is pressed
17 | var pressed = (element.getAttribute("aria-pressed") === "true");
18 | // Change aria-pressed to the opposite state
19 | element.setAttribute("aria-pressed", !pressed);
20 | }
21 | })(document, jQuery);
22 |
--------------------------------------------------------------------------------
/dist/js/copy-button.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | var clip = new Clipboard('.copy-button');
3 |
4 | clip.on('success', function(e) {
5 | $('.copied').show();
6 | $('.copied').fadeOut(2000);
7 | });
8 | })(document, jQuery);
9 |
--------------------------------------------------------------------------------
/dist/js/jump-link-fix.js:
--------------------------------------------------------------------------------
1 | var jumpLinkFix = function () {
2 | var el = document.getElementById( location.hash.substring( 1 ) );
3 |
4 | if ( el ) {
5 | if ( !/^(?:a|select|input|button|textarea)$/i.test( el.tagName ) ) {
6 | el.tabIndex = -1;
7 | }
8 | el.focus();
9 | } // if
10 | };
11 |
--------------------------------------------------------------------------------
/dist/js/mobile-menu-icon.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | // Set button to click. Toggle button example 1.
3 | var button = document.getElementById( 'menu-toggle-ex1' );
4 |
5 | // Click the button.
6 | button.onclick = function() {
7 |
8 | // Toggle class "opened". Set also aria-expanded to true or false.
9 | if ( -1 !== button.className.indexOf( 'opened' ) ) {
10 | button.className = button.className.replace( ' opened', '' );
11 | button.setAttribute( 'aria-expanded', 'false' );
12 | } else {
13 | button.className += ' opened';
14 | button.setAttribute( 'aria-expanded', 'true' );
15 | }
16 |
17 | };
18 |
19 | // Set button to click. Toggle button example 2.
20 | var button2 = document.getElementById( 'menu-toggle-ex2' );
21 |
22 | // Click the button.
23 | button2.onclick = function() {
24 |
25 | // Toggle class "opened". Set also aria-expanded to true or false.
26 | if ( -1 !== button2.className.indexOf( 'opened' ) ) {
27 | button2.className = button2.className.replace( ' opened', '' );
28 | button2.setAttribute( 'aria-expanded', 'false' );
29 | } else {
30 | button2.className += ' opened';
31 | button2.setAttribute( 'aria-expanded', 'true' );
32 | }
33 |
34 | };
35 |
36 | })(document, jQuery);
37 |
--------------------------------------------------------------------------------
/dist/js/mobile-menu.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | $('#toggle-menu').click(function(e) {
3 | e.preventDefault();
4 | $('ul').toggleClass('active');
5 | });
6 |
7 |
8 | // Set button to click. Mobile menu button.
9 | var buttonmm = document.getElementById( 'toggle-menu' );
10 |
11 | // Click the button.
12 | buttonmm.onclick = function() {
13 |
14 | // Toggle class "opened". Set also aria-expanded to true or false.
15 | if ( -1 !== buttonmm.className.indexOf( 'opened' ) ) {
16 | buttonmm.className = buttonmm.className.replace( ' opened', '' );
17 | buttonmm.setAttribute( 'aria-expanded', 'false' );
18 | } else {
19 | buttonmm.className += ' opened';
20 | buttonmm.setAttribute( 'aria-expanded', 'true' );
21 | }
22 |
23 | };
24 | })(document, jQuery);
--------------------------------------------------------------------------------
/dist/js/sidebar-slide.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | 'use strict';
3 |
4 | // the nav is open by default, so set
5 | // aria-expanded to be true by default
6 | // also add aria-controls to provide context
7 | // (to ATs that actually respect aria-controls)
8 | // as to what element this button is toggling
9 | $('.nav-btn').attr({
10 | 'aria-expanded': 'true',
11 | 'aria-controls': 'kss-nav-list'
12 | });
13 |
14 | $('.nav-btn').on('click', function() {
15 | $('.kss-sidebar').toggleClass('kss-sidebar-collapsed');
16 | // when the button is triggered, toggle between expanded
17 | // state being true/false
18 | if ( $(this).attr('aria-expanded') === 'true' ) {
19 | $(this).attr('aria-expanded', 'false');
20 | }
21 | else {
22 | $(this).attr('aria-expanded', 'true');
23 | }
24 | });
25 | })(document, jQuery);
26 |
--------------------------------------------------------------------------------
/dist/js/strings.js:
--------------------------------------------------------------------------------
1 | var GLOBAL_STRINGS = {
2 | "PLAY": "Play",
3 | "PAUSE": "Pause",
4 | "TOGGLE_FULL_SCREEN": "Toggle full screen",
5 | "MUTE": "Mute",
6 | "RESTART": "Restart",
7 | "CAPTIONS": "Closed captions",
8 | "REWIND": "Rewind",
9 | "FORWARD": "Forward"
10 | }
--------------------------------------------------------------------------------
/dist/js/tables.js:
--------------------------------------------------------------------------------
1 | window.onload = function () {
2 | 'use strict';
3 |
4 | var i,
5 | element;
6 |
7 | //create headers for the mobile view
8 | (function () {
9 | var headers = document.getElementById("responsive-tableID").querySelectorAll("th"),
10 | index = 1,
11 | columns = document.getElementById("responsive-tableID").querySelectorAll("td"),
12 | headerName,
13 | responsiveHeader;
14 |
15 | if (columns.length > 0) {
16 | for (i = 0; i < columns.length; i += 1) {
17 | if (index > headers.length) {
18 | index = 1;
19 | }
20 | //mobile headers are actually td
21 | element = columns[i];
22 | headerName = document.getElementById("responsive-tableID").querySelector('th:nth-of-type(' + index + ')').textContent;
23 | responsiveHeader = document.createElement("td");
24 |
25 | responsiveHeader.className = "responsive-header";
26 | responsiveHeader.innerHTML = headerName;
27 | element.parentNode.insertBefore(responsiveHeader, element);
28 |
29 | index+=1;
30 | }
31 | }
32 | }());
33 |
34 | var tableMinWidth,
35 | hasBeenSet = false;
36 |
37 | //addds mobile class for table when table is larger than screen
38 | function sytleTable () {
39 | var tableWidth = document.querySelector('.responsive-table').offsetWidth,
40 | windowWidth = window.innerWidth,
41 | responsiveTables = document.getElementsByClassName('responsive-table');
42 |
43 | if (tableWidth >= windowWidth) {
44 | if (!hasBeenSet) {
45 | tableMinWidth = tableWidth;
46 | hasBeenSet = true;
47 | }
48 |
49 | for (i = 0; i < responsiveTables.length; i += 1) {
50 | element = responsiveTables[i];
51 | element.classList.add("mobile");
52 | }
53 |
54 | } else if (tableWidth >= tableMinWidth) {
55 |
56 | for (i = 0; i < responsiveTables.length ; i += 1) {
57 | element = responsiveTables[i];
58 | element.classList.remove("mobile");
59 | }
60 |
61 | }
62 | }
63 |
64 | window.onresize = function () {
65 | sytleTable();
66 | };
67 |
68 | sytleTable();
69 | }; //window.onload
--------------------------------------------------------------------------------
/dist/style-guide/kss-assets/kss.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | var KssStateGenerator;
3 |
4 | KssStateGenerator = (function() {
5 |
6 | function KssStateGenerator() {
7 | var idx, idxs, pseudos, replaceRule, rule, stylesheet, _i, _len, _len2, _ref, _ref2;
8 | pseudos = /(\:hover|\:disabled|\:active|\:visited|\:focus)/g;
9 | // try {
10 | _ref = document.styleSheets;
11 | for (_i = 0, _len = _ref.length; _i < _len; _i++) {
12 | stylesheet = _ref[_i];
13 | idxs = [];
14 | _ref2 = stylesheet.cssRules || [];
15 | for (idx = 0, _len2 = _ref2.length; idx < _len2; idx++) {
16 | rule = _ref2[idx];
17 | if ((rule.type === CSSRule.STYLE_RULE) && pseudos.test(rule.selectorText)) {
18 | replaceRule = function(matched, stuff) {
19 | return ".pseudo-class-" + matched.replace(':', '');
20 | };
21 | this.insertRule(rule.cssText.replace(pseudos, replaceRule));
22 | }
23 | }
24 | }
25 | // } catch (_error) {console.log(_error.message);}
26 | }
27 |
28 | KssStateGenerator.prototype.insertRule = function(rule) {
29 | var headEl, styleEl;
30 | headEl = document.getElementsByTagName('head')[0];
31 | styleEl = document.createElement('style');
32 | styleEl.type = 'text/css';
33 | if (styleEl.styleSheet) {
34 | styleEl.styleSheet.cssText = rule;
35 | } else {
36 | styleEl.appendChild(document.createTextNode(rule));
37 | }
38 | return headEl.appendChild(styleEl);
39 | };
40 |
41 | return KssStateGenerator;
42 |
43 | })();
44 |
45 | new KssStateGenerator;
46 |
47 | }).call(this);
48 |
--------------------------------------------------------------------------------
/dist/style-guide/kss-assets/local.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/dist/style-guide/kss-assets/local.css
--------------------------------------------------------------------------------
/docs/CNAME:
--------------------------------------------------------------------------------
1 | a11y-style-guide.com
--------------------------------------------------------------------------------
/docs/_config.yml:
--------------------------------------------------------------------------------
1 | theme: jekyll-theme-slate
--------------------------------------------------------------------------------
/docs/assets/angry-pepper.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/angry-pepper.jpg
--------------------------------------------------------------------------------
/docs/assets/blackicon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/blackicon.jpg
--------------------------------------------------------------------------------
/docs/assets/blueicon.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/blueicon.jpg
--------------------------------------------------------------------------------
/docs/assets/butterfly.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/butterfly.jpg
--------------------------------------------------------------------------------
/docs/assets/chevron_left_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/chevron_left_round_red.png
--------------------------------------------------------------------------------
/docs/assets/chevron_right_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/chevron_right_round_red.png
--------------------------------------------------------------------------------
/docs/assets/chevron_up_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/chevron_up_round_red.png
--------------------------------------------------------------------------------
/docs/assets/dog.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/dog.jpg
--------------------------------------------------------------------------------
/docs/assets/glasswing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/glasswing.jpg
--------------------------------------------------------------------------------
/docs/assets/gold-banded.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/gold-banded.jpg
--------------------------------------------------------------------------------
/docs/assets/gus-grissom.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/gus-grissom.jpg
--------------------------------------------------------------------------------
/docs/assets/hr.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/hr.png
--------------------------------------------------------------------------------
/docs/assets/icon_address.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_address.png
--------------------------------------------------------------------------------
/docs/assets/icon_address.svg:
--------------------------------------------------------------------------------
1 |
icon_address
--------------------------------------------------------------------------------
/docs/assets/icon_email.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_email.png
--------------------------------------------------------------------------------
/docs/assets/icon_email.svg:
--------------------------------------------------------------------------------
1 |
icon_email
--------------------------------------------------------------------------------
/docs/assets/icon_facebook_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_facebook_small.png
--------------------------------------------------------------------------------
/docs/assets/icon_facebook_small.svg:
--------------------------------------------------------------------------------
1 |
icon_facebook_small
--------------------------------------------------------------------------------
/docs/assets/icon_facebook_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_facebook_small_hover.png
--------------------------------------------------------------------------------
/docs/assets/icon_facebook_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_facebook_small
--------------------------------------------------------------------------------
/docs/assets/icon_github.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_github.png
--------------------------------------------------------------------------------
/docs/assets/icon_instagram_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_instagram_small.png
--------------------------------------------------------------------------------
/docs/assets/icon_instagram_small.svg:
--------------------------------------------------------------------------------
1 |
icon_instagram_small
--------------------------------------------------------------------------------
/docs/assets/icon_instagram_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_instagram_small_hover.png
--------------------------------------------------------------------------------
/docs/assets/icon_instagram_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_instagram_small_hover
--------------------------------------------------------------------------------
/docs/assets/icon_new-tab.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_new-tab.png
--------------------------------------------------------------------------------
/docs/assets/icon_phone.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_phone.png
--------------------------------------------------------------------------------
/docs/assets/icon_phone.svg:
--------------------------------------------------------------------------------
1 |
icon_phone
--------------------------------------------------------------------------------
/docs/assets/icon_snapchat_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_snapchat_small.png
--------------------------------------------------------------------------------
/docs/assets/icon_snapchat_small.svg:
--------------------------------------------------------------------------------
1 |
icon_snapchat_small
--------------------------------------------------------------------------------
/docs/assets/icon_snapchat_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_snapchat_small_hover.png
--------------------------------------------------------------------------------
/docs/assets/icon_snapchat_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_snapchat_small_hover
--------------------------------------------------------------------------------
/docs/assets/icon_twitter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_twitter.png
--------------------------------------------------------------------------------
/docs/assets/icon_twitter_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_twitter_small.png
--------------------------------------------------------------------------------
/docs/assets/icon_twitter_small.svg:
--------------------------------------------------------------------------------
1 |
icon_twitter_small
--------------------------------------------------------------------------------
/docs/assets/icon_twitter_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_twitter_small_hover.png
--------------------------------------------------------------------------------
/docs/assets/icon_twitter_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_twitter_small_hover
--------------------------------------------------------------------------------
/docs/assets/icon_you-tube_small.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_you-tube_small.png
--------------------------------------------------------------------------------
/docs/assets/icon_you-tube_small.svg:
--------------------------------------------------------------------------------
1 |
icon_you-tube_small
--------------------------------------------------------------------------------
/docs/assets/icon_you-tube_small_hover.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/icon_you-tube_small_hover.png
--------------------------------------------------------------------------------
/docs/assets/icon_you-tube_small_hover.svg:
--------------------------------------------------------------------------------
1 |
icon_you-tube_small_hover
--------------------------------------------------------------------------------
/docs/assets/lacewing.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/lacewing.jpg
--------------------------------------------------------------------------------
/docs/assets/mae-jemison.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/mae-jemison.jpg
--------------------------------------------------------------------------------
/docs/assets/minus_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/minus_round_red.png
--------------------------------------------------------------------------------
/docs/assets/plus_round_red.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/plus_round_red.png
--------------------------------------------------------------------------------
/docs/assets/searchicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/searchicon.png
--------------------------------------------------------------------------------
/docs/assets/site-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/site-logo.png
--------------------------------------------------------------------------------
/docs/assets/snail.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/snail.jpg
--------------------------------------------------------------------------------
/docs/assets/snow.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/snow.jpg
--------------------------------------------------------------------------------
/docs/assets/starry.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/starry.jpg
--------------------------------------------------------------------------------
/docs/assets/swallowtail.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/swallowtail.jpg
--------------------------------------------------------------------------------
/docs/assets/test.mp3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/test.mp3
--------------------------------------------------------------------------------
/docs/assets/tracy-caldwell.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/tracy-caldwell.jpg
--------------------------------------------------------------------------------
/docs/assets/videos/badges-demo.mov:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/videos/badges-demo.mov
--------------------------------------------------------------------------------
/docs/assets/videos/read-more.m4a:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/videos/read-more.m4a
--------------------------------------------------------------------------------
/docs/assets/videos/read-more.mov:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/videos/read-more.mov
--------------------------------------------------------------------------------
/docs/assets/videos/read-more.mp4:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/videos/read-more.mp4
--------------------------------------------------------------------------------
/docs/assets/videos/read-more.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/videos/read-more.png
--------------------------------------------------------------------------------
/docs/assets/videos/read-more.txt:
--------------------------------------------------------------------------------
1 | Here is some placeholder info about the Read More video.
--------------------------------------------------------------------------------
/docs/assets/videos/read-more.vtt:
--------------------------------------------------------------------------------
1 | Here is some placeholder info about the Read More video.
--------------------------------------------------------------------------------
/docs/assets/videos/read-more.webm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/videos/read-more.webm
--------------------------------------------------------------------------------
/docs/assets/w3c.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/assets/w3c.png
--------------------------------------------------------------------------------
/docs/browserconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
#ffffff
--------------------------------------------------------------------------------
/docs/css/cards-highlight-left.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/css/cards-highlight-left.css
--------------------------------------------------------------------------------
/docs/css/cards-highlight-right.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/css/cards-highlight-right.css
--------------------------------------------------------------------------------
/docs/favicons/android-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/android-icon-144x144.png
--------------------------------------------------------------------------------
/docs/favicons/android-icon-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/android-icon-192x192.png
--------------------------------------------------------------------------------
/docs/favicons/android-icon-36x36.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/android-icon-36x36.png
--------------------------------------------------------------------------------
/docs/favicons/android-icon-48x48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/android-icon-48x48.png
--------------------------------------------------------------------------------
/docs/favicons/android-icon-72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/android-icon-72x72.png
--------------------------------------------------------------------------------
/docs/favicons/android-icon-96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/android-icon-96x96.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-114x114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-114x114.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-120x120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-120x120.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-144x144.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-152x152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-152x152.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-180x180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-180x180.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-57x57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-57x57.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-60x60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-60x60.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-72x72.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-76x76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-76x76.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon-precomposed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon-precomposed.png
--------------------------------------------------------------------------------
/docs/favicons/apple-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/apple-icon.png
--------------------------------------------------------------------------------
/docs/favicons/browserconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
#ffffff
--------------------------------------------------------------------------------
/docs/favicons/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/favicon-16x16.png
--------------------------------------------------------------------------------
/docs/favicons/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/favicon-32x32.png
--------------------------------------------------------------------------------
/docs/favicons/favicon-96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/favicon-96x96.png
--------------------------------------------------------------------------------
/docs/favicons/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/favicon.ico
--------------------------------------------------------------------------------
/docs/favicons/manifest.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "App",
3 | "icons": [
4 | {
5 | "src": "\/android-icon-36x36.png",
6 | "sizes": "36x36",
7 | "type": "image\/png",
8 | "density": "0.75"
9 | },
10 | {
11 | "src": "\/android-icon-48x48.png",
12 | "sizes": "48x48",
13 | "type": "image\/png",
14 | "density": "1.0"
15 | },
16 | {
17 | "src": "\/android-icon-72x72.png",
18 | "sizes": "72x72",
19 | "type": "image\/png",
20 | "density": "1.5"
21 | },
22 | {
23 | "src": "\/android-icon-96x96.png",
24 | "sizes": "96x96",
25 | "type": "image\/png",
26 | "density": "2.0"
27 | },
28 | {
29 | "src": "\/android-icon-144x144.png",
30 | "sizes": "144x144",
31 | "type": "image\/png",
32 | "density": "3.0"
33 | },
34 | {
35 | "src": "\/android-icon-192x192.png",
36 | "sizes": "192x192",
37 | "type": "image\/png",
38 | "density": "4.0"
39 | }
40 | ]
41 | }
--------------------------------------------------------------------------------
/docs/favicons/ms-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/ms-icon-144x144.png
--------------------------------------------------------------------------------
/docs/favicons/ms-icon-150x150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/ms-icon-150x150.png
--------------------------------------------------------------------------------
/docs/favicons/ms-icon-310x310.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/ms-icon-310x310.png
--------------------------------------------------------------------------------
/docs/favicons/ms-icon-70x70.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/favicons/ms-icon-70x70.png
--------------------------------------------------------------------------------
/docs/js/accordion.js:
--------------------------------------------------------------------------------
1 | ;(function ( $, doc ) {
2 | 'use strict';
3 |
4 | var accordion = $('.accordion__trigger');
5 |
6 | accordion.on('click',function(event) {
7 | //check if the panel is already expanded
8 | var isExpanded = $(this).attr('aria-expanded') == 'true';
9 | var accordionContent = '#' + $(this).attr('aria-controls');
10 |
11 | if(isExpanded) {
12 | //hide the content panel and mark expanded as false
13 | $(accordionContent).attr('aria-hidden',true).slideUp();
14 | $(this).attr('aria-expanded',false);
15 | } else {
16 | $(accordionContent).attr('aria-hidden',false).slideDown();
17 | $(this).attr('aria-expanded', true);
18 | }
19 |
20 | event.preventDefault();
21 | });
22 |
23 | accordion.on('keydown',function(event){
24 | //navigate up and down
25 | if (event.keyCode == 40) {
26 | $(this).closest('.js-accordion__panel').next().find(accordion).focus();
27 | }
28 | if (event.keyCode == 38) {
29 | $(this).closest('.js-accordion__panel').prev().find(accordion).focus();
30 | }
31 | });
32 |
33 | })( jQuery, this.document );
34 |
--------------------------------------------------------------------------------
/docs/js/aria-card-flip.js:
--------------------------------------------------------------------------------
1 | (function(win, doc) {
2 | 'use strict';
3 | if (!doc.querySelectorAll || !win.addEventListener) {
4 | return;
5 | }
6 | var toggles = doc.querySelectorAll('[aria-controls]');
7 | var togglecount = toggles.length;
8 | var toggleID;
9 | var togglecontent;
10 | var i;
11 | var target;
12 | for (i = 0; i < togglecount; i = i + 1) {
13 | toggleID = toggles[i].getAttribute('aria-controls');
14 | togglecontent = doc.getElementById(toggleID);
15 | togglecontent.setAttribute('aria-hidden', 'true');
16 | togglecontent.setAttribute('tabindex', '-1');
17 | }
18 |
19 | var cards = document.querySelectorAll(".card.effect__click");
20 | for ( var i = 0, len = cards.length; i < len; i++ ) {
21 | var card = cards[i];
22 | clickListener( card );
23 | }
24 |
25 | function clickListener(card) {
26 | card.addEventListener( 'click', function() {
27 | var c = this.classList;
28 | c.contains('flipped') === true ? c.remove('flipped') : c.add('flipped');
29 | });
30 | }
31 |
32 | function toggle(ev) {
33 | ev = ev || win.event;
34 | target = ev.target || ev.srcElement;
35 |
36 | if (target.hasAttribute('aria-controls')) {
37 | toggleID = target.getAttribute('aria-controls');
38 | togglecontent = doc.getElementById(toggleID);
39 |
40 | if (togglecontent.getAttribute('aria-hidden') == 'true') {
41 | togglecontent.setAttribute('aria-hidden', 'false');
42 | target.setAttribute('aria-expanded', 'true');
43 | } else {
44 |
45 | togglecontent.setAttribute('aria-hidden', 'true');
46 | target.setAttribute('aria-expanded', 'false');
47 | }
48 | }
49 | }
50 |
51 | // Each card needs its own specific ID
52 | doc.getElementById('flip1').addEventListener('click', toggle, false);
53 | doc.getElementById('flip2').addEventListener('click', toggle, false);
54 | doc.getElementById('flip3').addEventListener('click', toggle, false);
55 | doc.getElementById('flip4').addEventListener('click', toggle, false);
56 |
57 | }(this, this.document));
58 |
--------------------------------------------------------------------------------
/docs/js/back-to-top.js:
--------------------------------------------------------------------------------
1 | ;(function ( $, doc ) {
2 | 'use strict';
3 |
4 | var $win = $(window);
5 | var $html = $('html');
6 | var scrollTimeout; // global for any pending scrollTimeout
7 |
8 | $win.scroll(function () {
9 | if ( scrollTimeout ) {
10 | // clear the timeout, if one is pending
11 | clearTimeout(scrollTimeout);
12 | scrollTimeout = null;
13 | }
14 | scrollTimeout = setTimeout(scrollHandler, 200);
15 | });
16 |
17 |
18 | var scrollHandler = function () {
19 | if ( $win.scrollTop() >= 200 && !$html.hasClass('show-back-to-top') ) {
20 | $html.addClass('show-back-to-top');
21 | }
22 | else if ( $win.scrollTop() <= 200 ) {
23 | $html.removeClass('show-back-to-top');
24 | }
25 | };
26 |
27 | if ( $win.scrollTop() >= 200 ) {
28 | $html.addClass('show-back-to-top');
29 | }
30 |
31 | scrollHandler();
32 |
33 |
34 | $('.back-to-top').on('click', function () {
35 | var $targetNode = $(this).attr('href').split('h1')[1];
36 | $('h1' + $targetNode).attr('tabindex', '-1');
37 | $html.removeClass('show-back-to-top');
38 | $('h1' + $targetNode).focus();
39 | });
40 |
41 | })( jQuery, this.document );
42 |
--------------------------------------------------------------------------------
/docs/js/button-state.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | var pressedBtn = document.getElementById('button_state');
3 |
4 | pressedBtn.addEventListener('click', function (e) {
5 | pressedBtn.setAttribute('aria-pressed', e.target.getAttribute('aria-pressed') === 'true' ? 'false' : 'true');
6 | });
7 |
8 | var pressedBtn2 = document.getElementById('button_like');
9 |
10 | pressedBtn2.addEventListener('click', function (e) {
11 | pressedBtn2.setAttribute('aria-pressed', e.target.getAttribute('aria-pressed') === 'true' ? 'false' : 'true');
12 | });
13 |
14 | var pressedBtn3 = document.getElementById('button_all');
15 |
16 | pressedBtn3.addEventListener('click', function (e) {
17 | pressedBtn3.setAttribute('aria-pressed', e.target.getAttribute('aria-pressed') === 'true' ? 'false' : 'true');
18 | });
19 |
20 | var pressedBtn4 = document.getElementById('button_search');
21 |
22 | pressedBtn4.addEventListener('click', function (e) {
23 | pressedBtn4.setAttribute('aria-pressed', e.target.getAttribute('aria-pressed') === 'true' ? 'false' : 'true');
24 | });
25 | })(document, jQuery);
26 |
--------------------------------------------------------------------------------
/docs/js/button.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | function handleBtnClick(event) {
3 | toggleButton(event.target);
4 | }
5 |
6 | function handleBtnKeyPress(event) {
7 | // Check to see if space or enter were pressed
8 | if (event.keyCode === 32 || event.keyCode === 13) {
9 | // Prevent the default action to stop scrolling when space is pressed
10 | event.preventDefault();
11 | toggleButton(event.target);
12 | }
13 | }
14 |
15 | function toggleButton(element) {
16 | // Check to see if the button is pressed
17 | var pressed = (element.getAttribute("aria-pressed") === "true");
18 | // Change aria-pressed to the opposite state
19 | element.setAttribute("aria-pressed", !pressed);
20 | }
21 | })(document, jQuery);
22 |
--------------------------------------------------------------------------------
/docs/js/copy-button.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | var clip = new Clipboard('.copy-button');
3 |
4 | clip.on('success', function(e) {
5 | $('.copied').show();
6 | $('.copied').fadeOut(2000);
7 | });
8 | })(document, jQuery);
9 |
--------------------------------------------------------------------------------
/docs/js/jump-link-fix.js:
--------------------------------------------------------------------------------
1 | var jumpLinkFix = function () {
2 | var el = document.getElementById( location.hash.substring( 1 ) );
3 |
4 | if ( el ) {
5 | if ( !/^(?:a|select|input|button|textarea)$/i.test( el.tagName ) ) {
6 | el.tabIndex = -1;
7 | }
8 | el.focus();
9 | } // if
10 | };
11 |
--------------------------------------------------------------------------------
/docs/js/mobile-menu-icon.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | // Set button to click. Toggle button example 1.
3 | var button = document.getElementById( 'menu-toggle-ex1' );
4 |
5 | // Click the button.
6 | button.onclick = function() {
7 |
8 | // Toggle class "opened". Set also aria-expanded to true or false.
9 | if ( -1 !== button.className.indexOf( 'opened' ) ) {
10 | button.className = button.className.replace( ' opened', '' );
11 | button.setAttribute( 'aria-expanded', 'false' );
12 | } else {
13 | button.className += ' opened';
14 | button.setAttribute( 'aria-expanded', 'true' );
15 | }
16 |
17 | };
18 |
19 | // Set button to click. Toggle button example 2.
20 | var button2 = document.getElementById( 'menu-toggle-ex2' );
21 |
22 | // Click the button.
23 | button2.onclick = function() {
24 |
25 | // Toggle class "opened". Set also aria-expanded to true or false.
26 | if ( -1 !== button2.className.indexOf( 'opened' ) ) {
27 | button2.className = button2.className.replace( ' opened', '' );
28 | button2.setAttribute( 'aria-expanded', 'false' );
29 | } else {
30 | button2.className += ' opened';
31 | button2.setAttribute( 'aria-expanded', 'true' );
32 | }
33 |
34 | };
35 |
36 | })(document, jQuery);
37 |
--------------------------------------------------------------------------------
/docs/js/mobile-menu.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | $('#toggle-menu').click(function(e) {
3 | e.preventDefault();
4 | $('ul').toggleClass('active');
5 | });
6 |
7 |
8 | // Set button to click. Mobile menu button.
9 | var buttonmm = document.getElementById( 'toggle-menu' );
10 |
11 | // Click the button.
12 | buttonmm.onclick = function() {
13 |
14 | // Toggle class "opened". Set also aria-expanded to true or false.
15 | if ( -1 !== buttonmm.className.indexOf( 'opened' ) ) {
16 | buttonmm.className = buttonmm.className.replace( ' opened', '' );
17 | buttonmm.setAttribute( 'aria-expanded', 'false' );
18 | } else {
19 | buttonmm.className += ' opened';
20 | buttonmm.setAttribute( 'aria-expanded', 'true' );
21 | }
22 |
23 | };
24 | })(document, jQuery);
--------------------------------------------------------------------------------
/docs/js/sidebar-slide.js:
--------------------------------------------------------------------------------
1 | !((document, $) => {
2 | 'use strict';
3 |
4 | // the nav is open by default, so set
5 | // aria-expanded to be true by default
6 | // also add aria-controls to provide context
7 | // (to ATs that actually respect aria-controls)
8 | // as to what element this button is toggling
9 | $('.nav-btn').attr({
10 | 'aria-expanded': 'true',
11 | 'aria-controls': 'kss-nav-list'
12 | });
13 |
14 | $('.nav-btn').on('click', function() {
15 | $('.kss-sidebar').toggleClass('kss-sidebar-collapsed');
16 | // when the button is triggered, toggle between expanded
17 | // state being true/false
18 | if ( $(this).attr('aria-expanded') === 'true' ) {
19 | $(this).attr('aria-expanded', 'false');
20 | }
21 | else {
22 | $(this).attr('aria-expanded', 'true');
23 | }
24 | });
25 | })(document, jQuery);
26 |
--------------------------------------------------------------------------------
/docs/js/strings.js:
--------------------------------------------------------------------------------
1 | var GLOBAL_STRINGS = {
2 | "PLAY": "Play",
3 | "PAUSE": "Pause",
4 | "TOGGLE_FULL_SCREEN": "Toggle full screen",
5 | "MUTE": "Mute",
6 | "RESTART": "Restart",
7 | "CAPTIONS": "Closed captions",
8 | "REWIND": "Rewind",
9 | "FORWARD": "Forward"
10 | }
--------------------------------------------------------------------------------
/docs/js/tables.js:
--------------------------------------------------------------------------------
1 | window.onload = function () {
2 | 'use strict';
3 |
4 | var i,
5 | element;
6 |
7 | //create headers for the mobile view
8 | (function () {
9 | var headers = document.getElementById("responsive-tableID").querySelectorAll("th"),
10 | index = 1,
11 | columns = document.getElementById("responsive-tableID").querySelectorAll("td"),
12 | headerName,
13 | responsiveHeader;
14 |
15 | if (columns.length > 0) {
16 | for (i = 0; i < columns.length; i += 1) {
17 | if (index > headers.length) {
18 | index = 1;
19 | }
20 | //mobile headers are actually td
21 | element = columns[i];
22 | headerName = document.getElementById("responsive-tableID").querySelector('th:nth-of-type(' + index + ')').textContent;
23 | responsiveHeader = document.createElement("td");
24 |
25 | responsiveHeader.className = "responsive-header";
26 | responsiveHeader.innerHTML = headerName;
27 | element.parentNode.insertBefore(responsiveHeader, element);
28 |
29 | index+=1;
30 | }
31 | }
32 | }());
33 |
34 | var tableMinWidth,
35 | hasBeenSet = false;
36 |
37 | //addds mobile class for table when table is larger than screen
38 | function sytleTable () {
39 | var tableWidth = document.querySelector('.responsive-table').offsetWidth,
40 | windowWidth = window.innerWidth,
41 | responsiveTables = document.getElementsByClassName('responsive-table');
42 |
43 | if (tableWidth >= windowWidth) {
44 | if (!hasBeenSet) {
45 | tableMinWidth = tableWidth;
46 | hasBeenSet = true;
47 | }
48 |
49 | for (i = 0; i < responsiveTables.length; i += 1) {
50 | element = responsiveTables[i];
51 | element.classList.add("mobile");
52 | }
53 |
54 | } else if (tableWidth >= tableMinWidth) {
55 |
56 | for (i = 0; i < responsiveTables.length ; i += 1) {
57 | element = responsiveTables[i];
58 | element.classList.remove("mobile");
59 | }
60 |
61 | }
62 | }
63 |
64 | window.onresize = function () {
65 | sytleTable();
66 | };
67 |
68 | sytleTable();
69 | }; //window.onload
--------------------------------------------------------------------------------
/docs/style-guide/kss-assets/kss.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | var KssStateGenerator;
3 |
4 | KssStateGenerator = (function() {
5 |
6 | function KssStateGenerator() {
7 | var idx, idxs, pseudos, replaceRule, rule, stylesheet, _i, _len, _len2, _ref, _ref2;
8 | pseudos = /(\:hover|\:disabled|\:active|\:visited|\:focus)/g;
9 | // try {
10 | _ref = document.styleSheets;
11 | for (_i = 0, _len = _ref.length; _i < _len; _i++) {
12 | stylesheet = _ref[_i];
13 | idxs = [];
14 | _ref2 = stylesheet.cssRules || [];
15 | for (idx = 0, _len2 = _ref2.length; idx < _len2; idx++) {
16 | rule = _ref2[idx];
17 | if ((rule.type === CSSRule.STYLE_RULE) && pseudos.test(rule.selectorText)) {
18 | replaceRule = function(matched, stuff) {
19 | return ".pseudo-class-" + matched.replace(':', '');
20 | };
21 | this.insertRule(rule.cssText.replace(pseudos, replaceRule));
22 | }
23 | }
24 | }
25 | // } catch (_error) {console.log(_error.message);}
26 | }
27 |
28 | KssStateGenerator.prototype.insertRule = function(rule) {
29 | var headEl, styleEl;
30 | headEl = document.getElementsByTagName('head')[0];
31 | styleEl = document.createElement('style');
32 | styleEl.type = 'text/css';
33 | if (styleEl.styleSheet) {
34 | styleEl.styleSheet.cssText = rule;
35 | } else {
36 | styleEl.appendChild(document.createTextNode(rule));
37 | }
38 | return headEl.appendChild(styleEl);
39 | };
40 |
41 | return KssStateGenerator;
42 |
43 | })();
44 |
45 | new KssStateGenerator;
46 |
47 | }).call(this);
48 |
--------------------------------------------------------------------------------
/docs/style-guide/kss-assets/local.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/cehfisher/a11y-style-guide/ffabbd19127bd51e0396b650516090c76647ede3/docs/style-guide/kss-assets/local.css
--------------------------------------------------------------------------------
/gulp-tasks/clean.js:
--------------------------------------------------------------------------------
1 | /*eslint strict: ["error", "global"]*/
2 | 'use strict';
3 |
4 | //=======================================================
5 | // Include Our Plugins
6 | //=======================================================
7 | var del = require('del');
8 |
9 | // Export our tasks.
10 | module.exports = {
11 |
12 | // Clean style guide files.
13 | styleguide: function() {
14 | // You can use multiple globbing patterns as you would with `gulp.src`
15 | return del([
16 | './dist/style-guide/*'
17 | ], {force: true});
18 | },
19 |
20 | // Clean CSS files.
21 | css: function() {
22 | return del([
23 | './dist/css/*'
24 | ], {force: true});
25 | },
26 |
27 | // Clean JS files.
28 | js: function() {
29 | return del([
30 | './dist/js/*'
31 | ], {force: true});
32 | },
33 | docs: function() {
34 | return del([
35 | './docs/style-guide/',
36 | './docs/css/',
37 | './docs/assets/',
38 | './docs/all/',
39 | './docs/js/'
40 | ], {force: true});
41 | }
42 | };
43 |
--------------------------------------------------------------------------------
/gulp-tasks/compile.js:
--------------------------------------------------------------------------------
1 | /*eslint strict: ["error", "global"]*/
2 | 'use strict';
3 |
4 | //=======================================================
5 | // Include gulp
6 | //=======================================================
7 | var gulp = require('gulp');
8 |
9 | //=======================================================
10 | // Include Our Plugins
11 | //=======================================================
12 | var sass = require('gulp-sass');
13 | var prefix = require('gulp-autoprefixer');
14 | var sourcemaps = require('gulp-sourcemaps');
15 | var sync = require('browser-sync');
16 | var babel = require('gulp-babel');
17 | var rename = require('gulp-rename');
18 |
19 | // Small error handler helper function.
20 | function handleError(err) {
21 | console.log(err.toString());
22 | this.emit('end');
23 | }
24 |
25 | // Export our tasks.
26 | module.exports = {
27 |
28 | // Compile Sass.
29 | sass: function() {
30 | return gulp.src('./src/{global,layout,components}/**/*.scss')
31 | .pipe(
32 | sass({ outputStyle: 'nested' })
33 | .on('error', handleError)
34 | )
35 | .pipe(prefix({
36 | cascade: false
37 | }))
38 | .pipe(rename(function (path) {
39 | path.dirname = '';
40 | return path;
41 | }))
42 | .pipe(gulp.dest('./dist/css'))
43 | .pipe(sync.stream({match: '**/*.css'}));
44 | },
45 |
46 | // Compile JavaScript.
47 | js: function() {
48 | return gulp.src([
49 | './src/{global,layout,components}/**/*.es6.js'
50 | ], { base: './' })
51 | .pipe(sourcemaps.init())
52 | .pipe(
53 | babel()
54 | .on('error', handleError)
55 | )
56 | .pipe(rename(function (path) {
57 | // Currently not using ES6 modules so for now
58 | // es6 files are compiled into individual JS files.
59 | // Eventually this can use ES6 Modules and compile
60 | // all files within a component directory into a single
61 | // foo.bundle.js file. In that case the bundle name should
62 | // reflect the components directory name.
63 | path.dirname = '';
64 | path.basename = path.basename.replace(/\.es6/, '');
65 | return path;
66 | }))
67 | .pipe(sourcemaps.write('./'))
68 | .pipe(gulp.dest('./dist/js'));
69 | }
70 | };
71 |
--------------------------------------------------------------------------------
/gulp-tasks/compress.js:
--------------------------------------------------------------------------------
1 | /*eslint strict: ["error", "global"]*/
2 | 'use strict';
3 |
4 | //=======================================================
5 | // Include gulp
6 | //=======================================================
7 | var gulp = require('gulp');
8 |
9 | //=======================================================
10 | // Include Our Plugins
11 | //=======================================================
12 | var rename = require('gulp-rename');
13 | var imagemin = require('gulp-imagemin');
14 |
15 | // Export our tasks.
16 | module.exports = {
17 |
18 | // Compress svg/png/jpg files.
19 | assets: function() {
20 | return gulp.src([
21 | './src/{global,components}/**/*{.png,.jpg,.svg}'
22 | ])
23 | .pipe(imagemin({
24 | progressive: true,
25 | svgoPlugins: [{
26 | removeViewBox: false
27 | }]
28 | }))
29 | .pipe(rename(function (path) {
30 | path.dirname = '';
31 | return path;
32 | }))
33 | .pipe(gulp.dest('./dist/assets'));
34 | }
35 | };
36 |
--------------------------------------------------------------------------------
/gulp-tasks/concat.js:
--------------------------------------------------------------------------------
1 | /*eslint strict: ["error", "global"]*/
2 | 'use strict';
3 |
4 | //=======================================================
5 | // Include gulp
6 | //=======================================================
7 | var gulp = require('gulp');
8 |
9 | //=======================================================
10 | // Include Our Plugins
11 | //=======================================================
12 | var concat = require('gulp-concat');
13 | var order = require('gulp-order');
14 | var sync = require('browser-sync');
15 |
16 | // Export our tasks.
17 | module.exports = {
18 |
19 | // Concat all CSS into a master bundle.
20 | css: function() {
21 | return gulp.src([
22 | './dist/css/*.css'
23 | ])
24 | // Reorder the files so global is first.
25 | // If you need to get fancier with the order here's an example:
26 | // .pipe(order([
27 | // 'dist/css/global.css',
28 | // 'src/components/**/*.css',
29 | // 'dist/css/btn.css',
30 | // 'dist/css/form-item.css',
31 | // 'dist/css/form-float-label.css',
32 | // 'dist/css/*.css'
33 | // ], { base: './' }))
34 | .pipe(order([
35 | 'dist/css/global.css',
36 | 'dist/css/*.css'
37 | ], { base: './' }))
38 | .pipe(concat('all.css'))
39 | .pipe(gulp.dest('./dist/all'))
40 | .pipe(sync.stream());
41 | }
42 | };
43 |
--------------------------------------------------------------------------------
/gulp-tasks/lint.js:
--------------------------------------------------------------------------------
1 | /*eslint strict: ["error", "global"]*/
2 | 'use strict';
3 |
4 | //=======================================================
5 | // Include gulp
6 | //=======================================================
7 | var gulp = require('gulp');
8 |
9 | //=======================================================
10 | // Include Our Plugins
11 | //=======================================================
12 | var sassLint = require('gulp-sass-lint');
13 | var eslint = require('gulp-eslint');
14 |
15 | // Export our tasks.
16 | module.exports = {
17 |
18 | // Lint Sass based on .sass-lint.yml config.
19 | sass: function() {
20 | return gulp.src([
21 | './src/{global,components}/**/*.scss',
22 | '!./src/global/utils/*'
23 | ])
24 | .pipe(sassLint())
25 | .pipe(sassLint.format());
26 | },
27 |
28 | // Lint JavaScript based on .eslintrc config.
29 | js: function() {
30 | return gulp.src([
31 | './src/{global,components}/**/*.js',
32 | '!./src/components/**/vendors/*'
33 | ])
34 | .pipe(eslint())
35 | .pipe(eslint.format());
36 | }
37 | };
38 |
--------------------------------------------------------------------------------
/gulp-tasks/move.js:
--------------------------------------------------------------------------------
1 | /*eslint strict: ["error", "global"]*/
2 | 'use strict';
3 |
4 | // If some JS components aren't es6 we want to simply move them
5 | // into the dist folder. This allows us to clean the dist/js
6 | // folder on build.
7 |
8 | //=======================================================
9 | // Include gulp
10 | //=======================================================
11 | var gulp = require('gulp');
12 |
13 | //=======================================================
14 | // Include Our Plugins
15 | //=======================================================
16 | var rename = require('gulp-rename');
17 |
18 | // Export our tasks.
19 | module.exports = {
20 |
21 | // Moves JavaScript.
22 | js: function() {
23 | return gulp.src([
24 | './src/{global,components}/**/*.js',
25 | '!./src/{global,components}/**/*.es6.js'
26 | ], { base: './' })
27 | .pipe(rename(function (path) {
28 | path.dirname = '';
29 | return path;
30 | }))
31 | .pipe(gulp.dest('./dist/js'));
32 | },
33 |
34 | docs: function() {
35 | return gulp.src([
36 | '*/**'
37 | ], { base: './dist'})
38 | .pipe(gulp.dest('./docs'));
39 | }
40 | };
41 |
--------------------------------------------------------------------------------
/gulp-tasks/styleguide.js:
--------------------------------------------------------------------------------
1 | /*eslint strict: ["error", "global"]*/
2 | 'use strict';
3 |
4 | //=======================================================
5 | // Include kss
6 | //=======================================================
7 | var kss = require('kss');
8 |
9 | //=======================================================
10 | // Include Our Plugins
11 | //=======================================================
12 | var path = require('path');
13 |
14 | // Export our tasks.
15 | module.exports = {
16 |
17 | // Generate the style guide using the top level
18 | // directory name passed in as a parameter.
19 | generate: function(dirname) {
20 |
21 | return kss({
22 | source: [
23 | dirname + '/src/global',
24 | dirname + '/src/components'
25 | ],
26 | destination: dirname + '/dist/style-guide',
27 | builder: dirname + '/src/style-guide/builder',
28 | namespace: 'a11y_style_guide:' + dirname + '/src/components/',
29 | // The css and js paths are URLs, like '/misc/jquery.js'.
30 | // The following paths are relative to the generated style guide.
31 | // The all.css file is for the style guide ONLY so you don't have to
32 | // keep adding the file here everytime you add a new component.
33 | css: [
34 | path.relative(
35 | dirname + '/style-guide/',
36 | dirname + '/all/all.css'
37 | )
38 | ],
39 | js: [
40 | ],
41 | homepage: 'style-guide.md',
42 | title: 'Style Guide'
43 | });
44 | }
45 | };
46 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "a11y_style_guide",
3 | "version": "1.0.0",
4 | "license": "MIT",
5 | "repository": {
6 | "type": "git",
7 | "url": "https://github.com/cehfisher/a11y-style-guide.git"
8 | },
9 | "scripts": {
10 | "build": "gulp",
11 | "compile": "gulp compile",
12 | "watch": "gulp watch",
13 | "styleguide": "gulp styleguide",
14 | "compress": "gulp compress",
15 | "lint": "gulp lint",
16 | "clean": "gulp clean",
17 | "gulp": "gulp"
18 | },
19 | "babel": {
20 | "presets": [
21 | [
22 | "env",
23 | {
24 | "targets": {
25 | "browsers": [
26 | "IE >= 9",
27 | "last 3 versions"
28 | ]
29 | }
30 | }
31 | ]
32 | ],
33 | "plugins": [
34 | "transform-remove-strict-mode"
35 | ]
36 | },
37 | "browserslist": [
38 | "IE >= 9",
39 | "last 3 versions"
40 | ],
41 | "devDependencies": {
42 | "babel-plugin-transform-remove-strict-mode": "0.0.2",
43 | "babel-preset-env": "^1.6.0",
44 | "breakpoint-sass": "^2.7.1",
45 | "browser-sync": "^2.27.5",
46 | "del": "^3.0.0",
47 | "gulp": "^4.0.2",
48 | "gulp-autoprefixer": "^4.0.0",
49 | "gulp-babel": "^6.1.2",
50 | "gulp-concat": "^2.6.1",
51 | "gulp-eslint": "^4.0.0",
52 | "gulp-imagemin": "^6.2.0",
53 | "gulp-order": "^1.2.0",
54 | "gulp-rename": "^1.2.2",
55 | "gulp-sass": "^3.2.1",
56 | "gulp-sass-lint": "^1.3.2",
57 | "gulp-sourcemaps": "^2.6.5",
58 | "kss": "^3.0.1",
59 | "run-sequence": "^2.0.0"
60 | },
61 | "dependencies": {
62 | "lodash.template": "^4.5.0"
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/src/components/accordion/accordion.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | I’m tall when I’m young and I’m short when I’m old. What am I?
6 |
7 |
8 |
11 |
12 |
13 |
14 | Which weighs more, a pound of feathers or a pound of bricks?
15 |
16 |
17 |
18 |
Neither, they both weigh one pound.
19 |
20 |
21 |
22 |
23 | The more you take, the more you leave behind. What are they?
24 |
25 |
26 |
29 |
30 |
31 |
32 |
--------------------------------------------------------------------------------
/src/components/audio/audio.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Your user agent does not support the HTML5 Audio element.
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/src/components/breadcrumbs/breadcrumbs.scss:
--------------------------------------------------------------------------------
1 | // Breadcrumbs
2 | //
3 | // - Place the breadcrumb in a `
` element when you can.
4 | // - If you do not use a `` element, you need to add `role="navigation"` to the markup. Note: this role is implied when you use the `` element so it is a bit redundant to use both at the same time.
5 | // - The markup includes an `aria-label="breadcrumbs"` to describe the type of navigation.
6 | // - Add `aria-current="page"` to the link that points to the current page. This will tell assistive technology (AT) devices that the focused link is pointing to the current page.
7 | //
8 | //
9 | //
10 | //
11 | //
12 | // 2.4.8 Location - Information about the user's location within a set of Web pages is available. (Level AAA)
13 | //
14 | //
15 | //
16 | // Markup: breadcrumbs.twig
17 | //
18 | // Style guide: Navigation.breadcrumbs
19 |
20 | // Import site utilities.
21 | @import '../../global/utils/init';
22 |
23 | .breadcrumb {
24 | padding: $padding-sm;
25 | margin-bottom: $padding-sm;
26 | clear: both;
27 | list-style: none;
28 |
29 | .breadcrumb-item {
30 | float: left;
31 | list-style: none;
32 |
33 | &::after {
34 | display: inline-block;
35 | padding-right: $padding-xsm;
36 | padding-left: $padding-xsm;
37 | color: $color-midnight;
38 | font-weight: normal;
39 | content: ' / ';
40 | }
41 |
42 | &:last-child::after {
43 | display: none;
44 | }
45 |
46 | a[aria-current='page'] {
47 | color: $color-midnight;
48 | }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/src/components/breadcrumbs/breadcrumbs.twig:
--------------------------------------------------------------------------------
1 |
2 | Option #1: List styling with nav element
3 |
4 |
5 | Home
6 |
7 |
8 |
9 | Home
10 | Parent
11 |
12 |
13 |
14 | Home
15 | Parent
16 | Child
17 |
18 |
19 |
20 |
21 | Option #2: Link styling with no nav element
22 |
27 |
28 |
--------------------------------------------------------------------------------
/src/components/buttons/buttons.twig:
--------------------------------------------------------------------------------
1 |
15 |
--------------------------------------------------------------------------------
/src/components/cards-basic-grid/cards-basic-grid.json:
--------------------------------------------------------------------------------
1 | {
2 | {
3 | "image1": " ",
4 | "title1": "Blue Morpho",
5 | "link1": "https://www.floridamuseum.ufl.edu/exhibits/butterfly-rainforest/id-guide/blue/"
6 | },
7 | {
8 | "image": " ",
9 | "title": "Gold-banded Forester",
10 | "link": "https://www.floridamuseum.ufl.edu/exhibits/butterfly-rainforest/id-guide/blue/"
11 | },
12 | {
13 | "image": " ",
14 | "title": "Starry Night Cracker",
15 | "link": "https://www.floridamuseum.ufl.edu/exhibits/butterfly-rainforest/id-guide/blue/"
16 | },
17 | {
18 | "image": " ",
19 | "title": "Red Lacewing",
20 | "link": "https://www.floridamuseum.ufl.edu/exhibits/butterfly-rainforest/id-guide/red/"
21 | },
22 | {
23 | "image": " ",
24 | "title": "Emerald Swallowtail",
25 | "link": "https://www.floridamuseum.ufl.edu/exhibits/butterfly-rainforest/id-guide/green/"
26 | },
27 | {
28 | "image": " ",
29 | "title": "Glasswing",
30 | "link": "https://www.floridamuseum.ufl.edu/exhibits/butterfly-rainforest/id-guide/gray-white/"
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/src/components/cards-basic-grid/cards-basic-grid.scss:
--------------------------------------------------------------------------------
1 | // Basic Card Grid
2 | //
3 | // Markup: cards-basic-grid.twig
4 | //
5 | // Style guide: Cards.cards-basic-grid
6 |
7 | // Import site utilities.
8 | @import '../../global/utils/init';
9 |
10 | .card-grid .card {
11 | margin: 0 $padding-xsm $padding-sm;
12 | }
13 |
14 | .card-grid__item {
15 | margin: 3rem 0;
16 |
17 | @include breakpoint($bp-md) {
18 | .card__title {
19 | left: 15px;
20 | right: 15px;
21 | }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/src/components/cards-basic-grid/cards-basic-grid.twig:
--------------------------------------------------------------------------------
1 |
2 |
10 |
18 |
26 |
34 |
42 |
50 |
--------------------------------------------------------------------------------
/src/components/cards-basic/cards-basic.json:
--------------------------------------------------------------------------------
1 | {
2 | "image": " ",
3 | "title": "More about angry pepper",
4 | "link": "https://twitter.com/cariefisher/status/901993743535964161"
5 | }
6 |
--------------------------------------------------------------------------------
/src/components/cards-basic/cards-basic.twig:
--------------------------------------------------------------------------------
1 |
9 |
--------------------------------------------------------------------------------
/src/components/cards-bio-details/cards-bio-details.json:
--------------------------------------------------------------------------------
1 | {
2 | "photo": " ",
3 | "name": "Gus Grissom",
4 | "title": "Astronaut, NASA",
5 | "email": "email@email.com",
6 | "phone": "555-555-1212",
7 | "address": "Office Address
123 Maple St.
West Lafayette, IN
",
8 | "external_link": "Learn more about Gus Grissom ",
9 | "brief_description": "Lieutenant Colonel Virgil Ivan (Gus) Grissom (April 3, 1926 – January 27, 1967) was one of the original NASA Project Mercury astronauts, a United States Air Force test pilot, and a mechanical engineer. He was the second American to fly in space, and the first member of the NASA Astronaut Corps to fly in space twice.
"
10 | }
11 |
--------------------------------------------------------------------------------
/src/components/cards-bio-grid/cards-bio-grid-names.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 | {% if photo %}
4 | {{ photo }}
5 | {% else %}
6 |
7 | {% endif %}
8 |
9 |
10 | {% if link %}
11 |
14 | {% else %}
15 |
{{ name }}
16 | {% endif %}
17 | {% if title %}
18 |
{{ title }}
19 | {% endif %}
20 | {% if email %}
21 |
24 | {% endif %}
25 |
26 |
27 |
--------------------------------------------------------------------------------
/src/components/cards-bio-grid/cards-bio-grid.json:
--------------------------------------------------------------------------------
1 | {
2 | "items": [
3 | {
4 | "modifier_class": "photo-grid-names",
5 | "link": "https://en.wikipedia.org/wiki/Mae_Jemison",
6 | "photo": " ",
7 | "name": "Mae Carol Jemison",
8 | "title": "Astronaut, NASA",
9 | "email": "email@email.com"
10 | },
11 | {
12 | "modifier_class": "photo-grid-names",
13 | "link": "https://en.wikipedia.org/wiki/Gus_Grissom",
14 | "photo": " ",
15 | "name": "Gus Grissom",
16 | "title": "Astronaut, NASA",
17 | "email": "email@email.com"
18 | },
19 | {
20 | "modifier_class": "photo-grid-names",
21 | "link": "https://en.wikipedia.org/wiki/Tracy_Caldwell_Dyson",
22 | "photo": " ",
23 | "name": "Tracy Caldwell Dyson",
24 | "title": "Astronaut, NASA",
25 | "email": "email@email.com"
26 | }
27 | ]
28 | }
29 |
--------------------------------------------------------------------------------
/src/components/cards-bio-grid/cards-bio-grid.scss:
--------------------------------------------------------------------------------
1 | // Bio Grid Card
2 | //
3 | // Markup: cards-bio-grid.twig
4 | //
5 | // Style guide: Cards.cards-bio-grid
6 |
7 | // Import site utilities.
8 | @import '../../global/utils/init';
9 |
10 | .cards-bio-grid__item-wrapper.photo-grid-names {
11 | background-color: $color-gallery;
12 | margin: 0 auto;
13 | max-width: 250px;
14 | border-radius: 0 0 $border-rd-sm $border-rd-sm;
15 | }
16 |
17 | .cards-bio-grid__item-wrapper.photo-grid {
18 | margin: 0 auto;
19 | max-width: 250px;
20 | }
21 |
22 | .cards-bio-grid__image {
23 |
24 | a {
25 | display: block;
26 | }
27 |
28 | img {
29 | border-radius: $border-rd-sm $border-rd-sm 0 0;
30 | width: 100%;
31 | }
32 | }
33 |
34 | .cards-bio-grid__placeholder-image {
35 | background-color: $color-manatee;
36 | padding-top: 140.5%;
37 | width: 100%;
38 | }
39 |
40 | .cards-bio-grid__content {
41 | background-color: $color-gallery;
42 | font-size: 1rem;
43 | line-height: 1.5;
44 | margin: $padding-sm;
45 | }
46 |
47 | .cards-bio-grid__name {
48 | margin: 0 0 0.5rem;
49 | font-size: inherit;
50 | line-height: inherit;
51 | word-break: break-word;
52 | }
53 |
54 | .cards-bio-grid__title {
55 | margin-bottom: 0.5rem;
56 | word-break: break-word;
57 | }
58 |
59 | .directory__group-title {
60 | color: $color-cherry;
61 | font-weight: $font-weight-bold;
62 | font-size: 2.2rem;
63 | line-height: 1.5;
64 | text-transform: none;
65 | }
66 |
67 | .directory__items {
68 | margin: 0;
69 | padding: 0;
70 |
71 | .directory-layout--photo-grid &,
72 | .directory-layout--photo-grid-name & {
73 | display: flex;
74 | flex-wrap: wrap;
75 | margin: 0 -0.5rem;
76 |
77 | @include breakpoint($bp-xsm) {
78 | margin: 0 -1rem;
79 | }
80 | }
81 | }
82 |
83 | .directory__item {
84 | list-style: none;
85 | padding: 1rem;
86 |
87 | .directory-layout--list & {
88 | flex: 0 1 100%;
89 | padding: 0;
90 | }
91 |
92 | .directory-layout--photo-grid &,
93 | .directory-layout--photo-grid-name & {
94 | flex: 0 1 50%;
95 | padding: 1rem;
96 | flex-basis: 100%;
97 |
98 | @include breakpoint($bp-sm) {
99 | flex-basis: 33.33%;
100 | }
101 | }
102 |
103 | .directory-layout--photo-grid-name & {
104 | display: flex;
105 | }
106 | }
107 |
--------------------------------------------------------------------------------
/src/components/cards-bio-grid/cards-bio-grid.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
12 |
Astronaut, NASA
13 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
28 |
Astronaut, NASA
29 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
44 |
Astronaut, NASA
45 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/src/components/cards-color-overlay/cards-color-overlay.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
Nic Cage
9 |
10 |
11 |
12 |
13 |
14 |
Steven Segal
15 |
16 |
17 |
18 |
19 |
20 |
Bill Murray
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/src/components/cards-flip-click/cards-click.scss:
--------------------------------------------------------------------------------
1 | // Flip Click Card
2 | //
3 | // Markup: cards-click.twig
4 | //
5 | // Style guide: Cards.cards-flip-click
6 |
7 | // Import site utilities.
8 | @import '../../global/utils/init';
9 |
10 | // Base styling for click cards
11 | .toggleflip {
12 | @include font-stack-base;
13 | position: relative;
14 | display: inline-block;
15 | line-height: 1.2;
16 | }
17 |
18 | .toggleflip [aria-hidden] {
19 | position: absolute;
20 | left: 0;
21 | top: 0;
22 | width: 100%;
23 | }
24 |
25 | .toggleflip [aria-hidden='false'] {
26 | display: inline-block;
27 | z-index: 2;
28 | }
29 |
30 | .card__back[aria-hidden='false'] {
31 | transform-origin: center top;
32 | animation-duration: $anim-speed-moderate;
33 | animation-iteration-count: 1;
34 | animation-direction: normal;
35 | }
36 |
37 | .card__front,
38 | .card__back {
39 | position: absolute;
40 | top: 0;
41 | left: 0;
42 | width: 100%;
43 | height: 250px;
44 | backface-visibility: hidden;
45 | transition: transform 0.3s;
46 | }
47 |
48 | .card__back {
49 | transform: rotateY(-180deg);
50 | position: absolute;
51 | padding: $padding-sm 1.5rem;
52 | background: $color-white;
53 |
54 | .cards__item-description {
55 | height: 155px;
56 | transform: rotateY(-180deg);
57 | visibility: hidden;
58 | }
59 | }
60 |
61 | .card__front {
62 | transform: rotateY(0deg);
63 | }
64 |
65 | .card.effect__click.flipped .card__front {
66 | transform: rotateY(0deg);
67 | }
68 |
69 | .card.effect__click.flipped .card__back {
70 | transform: scale(1, 1);
71 |
72 | .cards__item-description {
73 | visibility: visible;
74 | transform: rotateY(0deg);
75 | }
76 | }
77 |
--------------------------------------------------------------------------------
/src/components/cards-highlight-full/cards-highlight-full.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
8 |
9 |
Whose woods these are I think I know.
10 | His house is in the village, though;
11 | He will not see me stopping here
12 | To watch his woods fill up with snow.
13 |
14 | My little horse must think it queer
15 | To stop without a farmhouse near
16 | Between the woods and frozen lake
17 | The darkest evening of the year.
18 |
19 | He gives his harness bells a shake
20 | To ask if there is some mistake.
21 | The only other sound's the sweep
22 | Of easy wind and downy flake.
23 |
24 | The woods are lovely, dark, and deep.
25 | But I have promises to keep,
26 | And miles to go before I sleep,
27 | And miles to go before I sleep.
28 |
29 |
30 |
31 |
--------------------------------------------------------------------------------
/src/components/cards-highlight-left/cards-highlight-left.scss:
--------------------------------------------------------------------------------
1 | // Highlight Card Left
2 | //
3 | // Markup: cards-highlight-left.twig
4 | //
5 | // Style guide: Cards.cards-highlight-left
6 |
7 | // See main highlight component for styles.
8 |
--------------------------------------------------------------------------------
/src/components/cards-highlight-left/cards-highlight-left.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
In convallis euismod nibh a ornare. Integer vitae ultrices lectus, quis semper leo. Sed tempus massa vel arcu dapibus tempus. Quisque dignissim ac diam et auctor. In hac habitasse platea dictumst. Vestibulum ut tellus eu magna varius tempus. Sed vitae scelerisque odio, ut tempor dolor. Vivamus non ultrices nisl. Donec maximus vehicula consequat. Integer sed fermentum nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
12 |
13 |
Optional Read More Link
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
In convallis euismod nibh a ornare. Integer vitae ultrices lectus, quis semper leo. Sed tempus massa vel arcu dapibus tempus. Quisque dignissim ac diam et auctor. In hac habitasse platea dictumst. Vestibulum ut tellus eu magna varius tempus. Sed vitae scelerisque odio, ut tempor dolor. Vivamus non ultrices nisl. Donec maximus vehicula consequat. Integer sed fermentum nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
29 |
30 |
Optional Read More Link
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/components/cards-highlight-right/cards-highlight-right.scss:
--------------------------------------------------------------------------------
1 | // Highlight Card Right
2 | //
3 | // Markup: cards-highlight-right.twig
4 | //
5 | // Style guide: Cards.cards-highlight-right
6 |
7 | // See main highlight component for styles.
8 |
--------------------------------------------------------------------------------
/src/components/cards-highlight-right/cards-highlight-right.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
10 |
11 |
In convallis euismod nibh a ornare. Integer vitae ultrices lectus, quis semper leo. Sed tempus massa vel arcu dapibus tempus. Quisque dignissim ac diam et auctor. In hac habitasse platea dictumst. Vestibulum ut tellus eu magna varius tempus. Sed vitae scelerisque odio, ut tempor dolor. Vivamus non ultrices nisl. Donec maximus vehicula consequat. Integer sed fermentum nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
12 |
13 |
Optional Read More Link
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
27 |
28 |
In convallis euismod nibh a ornare. Integer vitae ultrices lectus, quis semper leo. Sed tempus massa vel arcu dapibus tempus. Quisque dignissim ac diam et auctor. In hac habitasse platea dictumst. Vestibulum ut tellus eu magna varius tempus. Sed vitae scelerisque odio, ut tempor dolor. Vivamus non ultrices nisl. Donec maximus vehicula consequat. Integer sed fermentum nisl. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
29 |
30 |
Optional Read More Link
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/components/checkboxes/checkboxes.twig:
--------------------------------------------------------------------------------
1 |
36 |
--------------------------------------------------------------------------------
/src/components/headings/headings.scss:
--------------------------------------------------------------------------------
1 | // Headings
2 | //
3 | // - Navigating through the `` and `` give a user an overview of a page and how its content is structured. The `` through `` elements provide a quick understanding of the details in each section.
4 | // - Heading tags should be in order. That means an `` is followed by an ``, an `` is followed by a `` or `` and so on. It *is* ok to skip heading levels when going up in order (ex. `` to ``).
5 | // - Keep heading tags consistent. Inconsistently implementing headings can create confusion and frustration for users using assistive technologies.
6 | // - Do not style text to give the visual appearance of headings - use actual heading tags.
7 | //
8 | // 1.1.1 Non-text Content - All non-text content that is presented to the user has a text alternative that serves the equivalent purpose (some exceptions). (Level A)Note: If non-text content is pure decoration, is used only for visual formatting, or is not presented to users, then it does not need text alternatives.
9 | //
10 | //
11 | //
12 | // Markup: headings.twig
13 | //
14 | // Style guide: Structure.headings
15 |
16 | // Import site utilities.
17 | @import '../../global/utils/init';
18 |
19 | // Header styles set in the _base.scss file
20 |
--------------------------------------------------------------------------------
/src/components/headings/headings.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
I’m writing the code,
4 | but I do not realize,
5 | hours have gone by.
6 | My eyes are bloodshot,
7 | My fingertips are bleeding,
8 | but I carry on.
9 |
10 |
11 |
--------------------------------------------------------------------------------
/src/components/icons/icons.scss:
--------------------------------------------------------------------------------
1 | // Import site utilities.
2 | @import '../../global/utils/init';
3 |
4 | .icon {
5 | @include image-replace;
6 | display: block;
7 | margin: 0;
8 | padding: 0;
9 | width: 36px;
10 | height: 36px;
11 | max-width: 100%;
12 | background-position: center;
13 | background-size: contain;
14 | background-repeat: no-repeat;
15 | }
16 |
17 | // Social Footer Icons
18 | .icon--facebook {
19 | background-image: url('#{$asset-path}/icon_facebook_small.svg');
20 |
21 | &:hover,
22 | &:focus {
23 | background-image: url('#{$asset-path}/icon_facebook_small_hover.svg');
24 | }
25 | }
26 |
27 | .icon--twitter {
28 | background-image: url('#{$asset-path}/icon_twitter_small.svg');
29 |
30 | &:hover,
31 | &:focus {
32 | background-image: url('#{$asset-path}/icon_twitter_small_hover.svg');
33 | }
34 | }
35 |
36 | .icon--youtube {
37 | background-image: url('#{$asset-path}/icon_you-tube_small.svg');
38 | width: 50px;
39 | max-width: 100%;
40 |
41 | &:hover,
42 | &:focus {
43 | background-image: url('#{$asset-path}/icon_you-tube_small_hover.svg');
44 | }
45 | }
46 |
47 | .icon--instagram {
48 | background-image: url('#{$asset-path}/icon_instagram_small.svg');
49 |
50 | &:hover,
51 | &:focus {
52 | background-image: url('#{$asset-path}/icon_instagram_small_hover.svg');
53 | }
54 | }
55 |
56 | .icon--snapchat {
57 | background-image: url('#{$asset-path}/icon_snapchat_small.svg');
58 |
59 | &:hover,
60 | &:focus {
61 | background-image: url('#{$asset-path}/icon_snapchat_small_hover.svg');
62 | }
63 | }
64 |
65 | // Contact Footer Icons
66 | .icon--phone {
67 | background-image: url('#{$asset-path}/icon_phone.svg');
68 | content: '';
69 | background-size: 15px 15px;
70 | background-repeat: no-repeat;
71 | padding: 0 4px 0 25px;
72 | }
73 |
74 | .icon--email {
75 | background-image: url('#{$asset-path}/icon_email.svg');
76 | content: '';
77 | background-size: 17px 21px;
78 | background-repeat: no-repeat;
79 | padding: 0 4px 0 25px;
80 | }
81 |
82 | .icon--address {
83 | background-image: url('#{$asset-path}/icon_address.svg');
84 | content: '';
85 | background-size: 17px 19px;
86 | background-repeat: no-repeat;
87 | padding: 0 4px 0 25px;
88 | }
89 |
--------------------------------------------------------------------------------
/src/components/image-gallery/image-gallery.scss:
--------------------------------------------------------------------------------
1 | // Image Gallery
2 | //
3 | // - Every ` ` you add to your site needs to have an alt attribute. If the image is informational, set the `alt` equal to a *descriptive* alternative for that image.
4 | // - Avoid using generic strings like photo, image, or icon as `alt` values, as they don’t communicate valuable content to the user. Be as descriptive as possible.
5 | //
6 | // Note: we are using a randomly generated image filler so the `alt` text is not as descriptive as it could be...make your real images more descriptive!
7 | //
8 | // 1.1.1 Non-text Content - All non-text content that is presented to the user has a text alternative that serves the equivalent purpose (some exceptions). (Level A)Note: If non-text content is pure decoration, is used only for visual formatting, or is not presented to users, then it does not need text alternatives.
9 | //
10 | //
11 | //
12 | // Markup: image-gallery.twig
13 | //
14 | // Style guide: Media.image-gallery
15 |
16 | // Import site utilities.
17 | @import '../../global/utils/init';
18 |
19 | .image-gallery {
20 | @include clearfix;
21 | position: relative;
22 | font-size: 0;
23 | flex-flow: row wrap;
24 | display: flex;
25 | padding: 0;
26 |
27 | @include breakpoint($bp-sm) {
28 | padding: 0.5vw;
29 | }
30 |
31 | .square {
32 | flex: auto;
33 | width: 100px;
34 | margin: 0.5vw;
35 | text-align: center;
36 |
37 | img {
38 | width: 100%;
39 | max-width: 100%;
40 | height: auto;
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/src/components/image-gallery/image-gallery.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
--------------------------------------------------------------------------------
/src/components/images/images.scss:
--------------------------------------------------------------------------------
1 | // Images
2 | //
3 | // - Every ` ` you add to your site needs to have an alt attribute. If the image is informational, set the `alt` equal to a *descriptive* alternative for that image.
4 | // - If the image is decorative or redundant to adjacent text, set `alt=""`, which conveys to assistive technology users that the image isn’t necessary for understanding the page.
5 | // - Avoid using generic strings like photo, image, or icon as `alt` values, as they don’t communicate valuable content to the user. Be as descriptive as possible.
6 | // - Make sure any text in images of text is at least 14 points and has good contrast with the background.
7 | //
8 | // 1.1.1 Non-text Content - All non-text content that is presented to the user has a text alternative that serves the equivalent purpose (some exceptions). (Level A)Note: If non-text content is pure decoration, is used only for visual formatting, or is not presented to users, then it does not need text alternatives.1.4.3 Contrast (Minimum) - The visual presentation of text and images of text has a contrast ratio of at least 4.5:1 (some exceptions). (Level AA)1.4.5 Images of Text - If the technologies being used can achieve the visual presentation, text is used to convey information rather than images of text (some exceptions). (Level AA)
9 | //
10 | //
11 | //
12 | // Markup: images.twig
13 | //
14 | // Style guide: Media.images
15 |
16 | // Import site utilities.
17 | @import '../../global/utils/init';
18 |
19 | .images {
20 | position: relative;
21 | margin: 0 auto;
22 | max-width: 650px;
23 | max-height: 500px;
24 | background-size: contain;
25 |
26 | img {
27 | border-radius: $border-rd-sm;
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/components/images/images.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
--------------------------------------------------------------------------------
/src/components/link-focus/link-focus.scss:
--------------------------------------------------------------------------------
1 | // Link Focus
2 | //
3 | // - Do not set your site's link focus to `outline: none`. Never. Ever.
4 | // - If you have multiple form fields on your site or you see the dreaded `outline: none` in your base code, you can reset the browser defaults by adding the code:
5 | //
6 | // a:focus {
7 | // outline: auto 2px Highlight; // for non-webkit browsers
8 | // outline: auto 5px -webkit-focus-ring-color; // for webkit browsers
9 | // }
10 | // - Of course you can create your own focus styles to match your theme or to make the default browser styles more prominent, just make sure they are visible by tabbing and obvious to your users.
11 | //
12 | // 2.4.7 Focus Visible - Any keyboard operable user interface has a mode of operation where the keyboard focus indicator is visible. (Level AA)
13 | //
14 | //
15 | //
16 | // Markup: link-focus.twig
17 | //
18 | // Style guide: General.link-focus
19 |
20 | // Import site utilities.
21 | @import '../../global/utils/init';
22 |
23 | a:focus,
24 | .button-icon:focus {
25 | outline: auto 2px Highlight; // for non-webkit browsers
26 | outline: auto 5px -webkit-focus-ring-color; // sass-lint:disable-line no-vendor-prefixes no-duplicate-properties
27 | }
28 |
--------------------------------------------------------------------------------
/src/components/link-focus/link-focus.twig:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/src/components/lists/lists.scss:
--------------------------------------------------------------------------------
1 | // Lists
2 | //
3 | // - Creating accessible lists is fairly straight-forward and easy *if* you use the correct mark-up.
4 | // - Use `ol` markup to group ordered lists; use `ul` markup to group unordered lists; and use `dl` markup to group terms with their definitions.
5 | // - Simple comma-separated lists may not need list markup, but longer lists or groups of links should have it.
6 | //
7 | // 1.3.1 Info and Relationships - Information, structure, and relationships conveyed through presentation can be programmatically determined or are available in text. (Level A)
8 | //
9 | //
10 | //
11 | // Markup: lists.twig
12 | //
13 | // Style guide: Structure.lists
14 |
15 | // Import site utilities.
16 | @import '../../global/utils/init';
17 |
18 | // List styles set in the _base.scss file
19 |
--------------------------------------------------------------------------------
/src/components/lists/lists.twig:
--------------------------------------------------------------------------------
1 |
2 | Ordered List
3 | Best Nikola Tesla Quotes
4 |
5 | "Our virtues and our failings are inseparable, like force and matter. When they separate, man is no more."
6 | "The scientists of today think deeply instead of clearly. One must be sane to think clearly, but one can think deeply and be quite insane."
7 | "It is paradoxical, yet true, to say, that the more we know, the more ignorant we become in the absolute sense, for it is only through enlightenment that we become conscious of our limitations. Precisely one of the most gratifying results of intellectual evolution is the continuous opening up of new and greater prospects."
8 |
9 |
10 |
11 |
12 | Unordered List
13 | List of Unusual Dog Breeds
14 |
15 | Beauceron
16 | Belgian Malinois
17 | Entlebucher Mountain Dog
18 | Keeshond
19 | Kooikerhondje
20 | Mudi
21 | Petit Basset Griffon Vendéen
22 | Portuguese Podengo Pequeno
23 | Schipperke
24 | Xoloitzcuintli
25 |
26 |
27 |
28 |
29 | Definition List
30 |
31 | Vegetables That Are Technically Fruits
32 | Avocados
33 | Bell Peppers
34 | Cucumbers
35 | Eggplants
36 | Pumpkins
37 | Tomatoes
38 | Zucchinis
39 |
40 |
41 |
--------------------------------------------------------------------------------
/src/components/navigation-basic/navigation-basic.twig:
--------------------------------------------------------------------------------
1 |
2 | Option #1: List styling with visuallyhidden class
3 |
4 | Main Menu
5 |
19 |
20 |
21 | Option #2: List styling with ARIA label
22 |
23 | Main Menu
24 |
38 |
39 |
40 | Option #3: No list styling with ARIA labelledby
41 |
42 | Main Menu
43 |
49 |
50 |
51 |
--------------------------------------------------------------------------------
/src/components/navigation-mobile/navigation-mobile.twig:
--------------------------------------------------------------------------------
1 |
22 |
--------------------------------------------------------------------------------
/src/components/radio-buttons/radio-buttons.twig:
--------------------------------------------------------------------------------
1 |
30 |
--------------------------------------------------------------------------------
/src/components/read-more/read-more.scss:
--------------------------------------------------------------------------------
1 | // Read More Links
2 | //
3 | // - Add id selectors to titles or paragraphs and use `aria-labelledby=""` to link to the title text (Example #1).
4 | // - Add descriptive text with `aria-label=""` directly in the link (Example #2).
5 | // - Use the class `visuallyhidden` to visually hide more information about the link (Example #3). Note that VoiceOver can cause unintended reading order of visually hidden content in interactive elements .
6 | // - Turn read more links into buttons, when you can, since they allow for more labeling options.
7 | //
8 | // 2.4.4 Link Purpose (In Context) : The purpose of each link can be determined from the link text alone or from the link text together with its programmatically determined link context, except where the purpose of the link would be ambiguous to users in general. (Level A)2.4.9 Link Purpose (Link Only) : A mechanism is available to allow the purpose of each link to be identified from link text alone, except where the purpose of the link would be ambiguous to users in general. (Level AAA)
9 | //
10 | //
11 | //
12 | // Markup: read-more.twig
13 | //
14 | // Style guide: General.read-more
15 |
16 | // Import site utilities.
17 | @import '../../global/utils/init';
18 |
19 | .read-more {
20 |
21 | &::after {
22 | content: ' ';
23 | height: 0;
24 | position: absolute;
25 | width: 0;
26 | border: 7px solid transparent;
27 | border-left-color: $color-cherry;
28 | margin-left: 6px;
29 | margin-top: 5px;
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/components/read-more/read-more.twig:
--------------------------------------------------------------------------------
1 |
2 | Example #1: Using aria-labelledby
3 | Storms Hit East Coast
4 | Torrential rain and gale force winds have struck the east coast, causing flooding in many coastal towns. Read More
5 |
6 | Example #2: Using aria-label
7 | Black Bears Trapped in Cars
8 | Over the past three weeks there have been 15 reports or black bears getting themselves trapped in vehicles. There are several ways to prevent this from happening to you. Read More
9 |
10 | Example #3: Using visually hidden text
11 | Mass Hysteria
12 | Fire and brimstone, coming down from the skies. Rivers and seas boiling... Human sacrifice, dogs and cats, living together...
13 |
Read More about mass hysteria in relation to movie quotes
14 |
15 |
--------------------------------------------------------------------------------
/src/components/resources/resources.scss:
--------------------------------------------------------------------------------
1 | // Resources
2 | //
3 | // Markup: resources.twig
4 | //
5 | // Weight: 999
6 | //
7 | // Style guide: Resources
8 |
9 | // Import site utilities.
10 | @import '../../global/utils/init';
11 |
--------------------------------------------------------------------------------
/src/components/search/search.twig:
--------------------------------------------------------------------------------
1 |
26 |
--------------------------------------------------------------------------------
/src/components/select-lists/select-lists.twig:
--------------------------------------------------------------------------------
1 |
2 | Option #1: Select with no grouping
3 |
4 |
Label for section 1
5 |
6 | First select
7 | Option 1.1
8 | Option 1.2
9 |
10 |
11 |
12 |
13 |
Label for section 2
14 |
15 | Second select
16 | Option 2.1
17 | Option 2.2
18 |
19 |
20 |
21 |
22 | Option #2: Select with grouping
23 |
24 |
Choose a Lecture
25 |
26 | Choose a Lecture
27 |
28 | Lecture 1.1: In the Beginning
29 | Lecture 1.2: Stuck in the Middle
30 | Lecture 1.3: At the End
31 |
32 |
33 | Lecture 2.1: Wait! There's More
34 |
35 |
36 |
37 |
38 |
39 |
--------------------------------------------------------------------------------
/src/components/skip-links/skip-links.scss:
--------------------------------------------------------------------------------
1 | // Skip Links
2 | //
3 | // - Provide ways for users to skip to important sections of your website. This will help users using screenreaders navigate your site easier and more efficiently.
4 | // - There is no real theming rule when it comes to styling your skip links, as such a lot of websites tend to hide them with class="visuallyhidden"
with a special focus attribute so that sighted keyboard only users are able to see them.
5 | // - It is important to see that the link points to a valid HTML ID, as often this is overlooked in implementation.
6 | // - In this site we have used 'Jump to main content', but other valid examples of "skip" links include:
7 | // Skip to content Skip to main content Skip to search Skip to bottom navigation Skip to main menu
8 | //
9 | // 2.4.1 Bypass Blocks - A mechanism is available to bypass blocks of content that are repeated on multiple Web pages. (Level A)
10 | //
11 | //
12 | //
13 | // Markup: skip-links.twig
14 | //
15 | // Style guide: General.skip-links
16 |
17 | // Import site utilities.
18 | @import '../../global/utils/init';
19 |
--------------------------------------------------------------------------------
/src/components/skip-links/skip-links.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
Skip to main content
4 |
Hodor hodor; hodor hodor; hodor hodor?! Hodor. Hodor hodor, hodor. Hodor HODOR hodor, hodor hodor... Hodor hodor hodor... Hodor hodor hodor, hodor, hodor hodor. Hodor hodor; hodor hodor; hodor hodor hodor! Hodor hodor hodor - hodor, hodor. Hodor hodor? Hodor! Hodor hodor, hodor hodor hodor... Hodor hodor hodor?!
5 |
Heading
6 |
This is the first real paragraph. All that other stuff was just plain hodor.
7 |
8 |
9 |
--------------------------------------------------------------------------------
/src/components/svgs/svgs.scss:
--------------------------------------------------------------------------------
1 | // SVGs
2 | //
3 | // SVGs are scalable vector graphics and can be made used for icons, images, logos, etc. SVG content is scalable and scales without any reduction in visual quality.
4 | //
5 | // - The best way to make SVGs accessible to Assistive Technologies (AT) like screen readers and speech recognition tools is to put it directly into your HTML using the `` tag
6 | // - Avoid using ``, ``, or ` ` elements as they are not as supported by browsers as inline SVG
7 | // - Include a `` and `` in your SVG markup
8 | // - Use `aria-labelledby=""` and reference the id values of the title and description elements
9 | // - Give your SVGs a job with the `role=""` attribute
10 | // - To “hide” elements from a screen reader in an SVG add `role="presentation"`
11 | //
12 | //
13 | //
14 | //
15 | //
16 | // 1.1.1 Non-text Content - All non-text content that is presented to the user has a text alternative that serves the equivalent purpose (some exceptions). (Level A)Note: If non-text content is pure decoration, is used only for visual formatting, or is not presented to users, then it does not need text alternatives.1.4.3 Contrast (Minimum) - The visual presentation of text and images of text has a contrast ratio of at least 4.5:1 (some exceptions). (Level AA)1.4.5 Images of Text - If the technologies being used can achieve the visual presentation, text is used to convey information rather than images of text (some exceptions). (Level AA)
17 | //
18 | //
19 | //
20 | // Markup: svgs.twig
21 | //
22 | // Style guide: Media.svgs
23 |
24 | // Import site utilities.
25 | @import '../../global/utils/init';
26 |
--------------------------------------------------------------------------------
/src/components/tabs/tabs.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Tab 1
6 |
7 | Tab 2
8 |
9 | Tab 3
10 |
11 |
12 |
13 |
14 |
Tab 1
15 |
16 |
The important achievement of Apollo was demonstrating that humanity is not forever chained to this planet and our visions go rather further than that and our opportunities are unlimited.
17 |
18 |
19 |
20 |
Tab 2
21 |
22 |
Never limit yourself because of others' limited imagination; never limit others because of your own limited imagination.
23 |
24 |
25 |
26 |
Tab 3
27 |
28 |
After Apollo 17, America stopped looking towards the next horizon. The United States had become a space-faring nation, but threw it away. We have sacrificed space exploration for space exploitation, which is interesting but scarcely visionary.
29 |
30 |
31 |
32 |
33 |
--------------------------------------------------------------------------------
/src/components/text-inputs/text-fields.twig:
--------------------------------------------------------------------------------
1 |
19 |
--------------------------------------------------------------------------------
/src/components/toggles/toggles.twig:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Optional Label
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/src/components/tooltips/tooltips.twig:
--------------------------------------------------------------------------------
1 |
50 |
--------------------------------------------------------------------------------
/src/components/videos/videos.twig:
--------------------------------------------------------------------------------
1 |
28 |
29 |
30 |
31 |
43 |