reustyle 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.drone.yml +17 -0
- data/.gitignore +25 -0
- data/.nvmrc +1 -0
- data/.rbenv-gemsets +1 -0
- data/.ruby-version +1 -0
- data/CONTRIBUTING.md +68 -0
- data/Gemfile +4 -0
- data/Gruntfile.js +234 -0
- data/LICENSE.txt +13 -0
- data/README.md +196 -0
- data/Rakefile +6 -0
- data/bower.json +54 -0
- data/config/autoprefixer.yml +6 -0
- data/config/scss-lint.yml +55 -0
- data/dist/icons.svg +1 -0
- data/dist/ustyle-content.css +1 -0
- data/dist/ustyle-latest.css +1 -0
- data/dist/ustyle.js +567 -0
- data/dist/ustyle.json +1 -0
- data/dist/ustyle.min.js +1 -0
- data/grunt/modules/dss-helper.js +115 -0
- data/grunt/modules/file.js +24 -0
- data/grunt/modules/html-parser.js +22 -0
- data/grunt/modules/templates.js +57 -0
- data/grunt/tasks/browser-sync.js +23 -0
- data/grunt/tasks/builder.js +67 -0
- data/grunt/tasks/styleguide.js +299 -0
- data/index.js +37 -0
- data/lib/ustyle/deploy.rb +41 -0
- data/lib/ustyle/engine.rb +32 -0
- data/lib/ustyle/hash.rb +44 -0
- data/lib/ustyle/helpers/icon_helper.rb +15 -0
- data/lib/ustyle/icons.rb +13 -0
- data/lib/ustyle/middleware/icon_middleware.rb +27 -0
- data/lib/ustyle/sass_functions.rb +65 -0
- data/lib/ustyle/sinatra.rb +34 -0
- data/lib/ustyle/sprockets.rb +6 -0
- data/lib/ustyle/utils.rb +42 -0
- data/lib/ustyle/version.rb +4 -0
- data/lib/ustyle.rb +58 -0
- data/package-lock.json +9303 -0
- data/package.json +89 -0
- data/styleguide/CNAME +1 -0
- data/styleguide/assets/images/CTAs.png +0 -0
- data/styleguide/assets/images/badge-label-usp.png +0 -0
- data/styleguide/assets/images/bower-logo.png +0 -0
- data/styleguide/assets/images/caveat.png +0 -0
- data/styleguide/assets/images/cloudfront-logo.png +0 -0
- data/styleguide/assets/images/design-conventions.png +0 -0
- data/styleguide/assets/images/error-texts.png +0 -0
- data/styleguide/assets/images/external-requirements.png +0 -0
- data/styleguide/assets/images/favicon/android-chrome-192x192.png +0 -0
- data/styleguide/assets/images/favicon/android-chrome-512x512.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon-114x114.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon-120x120.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon-144x144.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon-152x152.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon-180x180.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon-57x57.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon-60x60.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon-72x72.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon-76x76.png +0 -0
- data/styleguide/assets/images/favicon/apple-touch-icon.png +0 -0
- data/styleguide/assets/images/favicon/browserconfig.xml +9 -0
- data/styleguide/assets/images/favicon/favicon-16x16.png +0 -0
- data/styleguide/assets/images/favicon/favicon-32x32.png +0 -0
- data/styleguide/assets/images/favicon/favicon.ico +0 -0
- data/styleguide/assets/images/favicon/manifest.json +18 -0
- data/styleguide/assets/images/favicon/mstile-144x144.png +0 -0
- data/styleguide/assets/images/favicon/mstile-150x150.png +0 -0
- data/styleguide/assets/images/favicon/mstile-310x150.png +0 -0
- data/styleguide/assets/images/favicon/mstile-310x310.png +0 -0
- data/styleguide/assets/images/favicon/mstile-70x70.png +0 -0
- data/styleguide/assets/images/favicon/safari-pinned-tab.svg +46 -0
- data/styleguide/assets/images/icons.svg +1 -0
- data/styleguide/assets/images/infographic-01.png +0 -0
- data/styleguide/assets/images/infographic-02.png +0 -0
- data/styleguide/assets/images/npm-logo.png +0 -0
- data/styleguide/assets/images/placeholder-text.png +0 -0
- data/styleguide/assets/images/ruby-logo.png +0 -0
- data/styleguide/assets/images/site-consistency01.png +0 -0
- data/styleguide/assets/images/site-consistency02.png +0 -0
- data/styleguide/assets/images/site-consistency03.png +0 -0
- data/styleguide/assets/images/styleguide-examples/accurate-housing.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/altered.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/bad-subject.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/centered.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/cliche.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/cold.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/good-subject.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/illustrations_1.png +0 -0
- data/styleguide/assets/images/styleguide-examples/illustrations_2.png +0 -0
- data/styleguide/assets/images/styleguide-examples/illustrations_3.png +0 -0
- data/styleguide/assets/images/styleguide-examples/illustrations_4.png +0 -0
- data/styleguide/assets/images/styleguide-examples/illustrations_5.png +0 -0
- data/styleguide/assets/images/styleguide-examples/illustrations_6.png +0 -0
- data/styleguide/assets/images/styleguide-examples/innaccurate-housing.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/natural-1.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/natural-2.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/natural-3.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/not-centered.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/realistic.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/unaltered.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/unnatural-1.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/unnatural-2.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/unnatural-3.jpg +0 -0
- data/styleguide/assets/images/styleguide-examples/warm.jpg +0 -0
- data/styleguide/assets/images/tone-framework.png +0 -0
- data/styleguide/assets/images/tone.png +0 -0
- data/styleguide/assets/images/tooltip.png +0 -0
- data/styleguide/assets/images/tsandcs.png +0 -0
- data/styleguide/assets/images/ustyle.svg +73 -0
- data/styleguide/assets/images/ux-conventions-consistency.png +0 -0
- data/styleguide/assets/images/ux-conventions-error.png +0 -0
- data/styleguide/assets/images/ux-conventions-errors.png +0 -0
- data/styleguide/assets/images/ux-conventions-flexibility.png +0 -0
- data/styleguide/assets/images/ux-conventions-freedom.png +0 -0
- data/styleguide/assets/images/ux-conventions-minimalist.png +0 -0
- data/styleguide/assets/images/ux-conventions-real-world.png +0 -0
- data/styleguide/assets/images/ux-conventions-recognition.png +0 -0
- data/styleguide/assets/images/ux-conventions-visibility.png +0 -0
- data/styleguide/assets/javascripts/app.js +115 -0
- data/styleguide/assets/javascripts/modules/stats.js +50 -0
- data/styleguide/assets/javascripts/vendor/highlight.js +1 -0
- data/styleguide/assets/javascripts/vendor/svg4everybody.js +1 -0
- data/styleguide/assets/sass/main.scss +42 -0
- data/styleguide/assets/sass/modules/_code.scss +8 -0
- data/styleguide/assets/sass/modules/_colours.scss +26 -0
- data/styleguide/assets/sass/modules/_copyright.scss +4 -0
- data/styleguide/assets/sass/modules/_grid.scss +12 -0
- data/styleguide/assets/sass/modules/_home.scss +5 -0
- data/styleguide/assets/sass/modules/_images.scss +24 -0
- data/styleguide/assets/sass/modules/_links.scss +3 -0
- data/styleguide/assets/sass/modules/_logo.scss +182 -0
- data/styleguide/assets/sass/modules/_made-at.scss +6 -0
- data/styleguide/assets/sass/modules/_markdown.scss +7 -0
- data/styleguide/assets/sass/modules/_nav-mobile.scss +72 -0
- data/styleguide/assets/sass/modules/_nav.scss +32 -0
- data/styleguide/assets/sass/modules/_sidebar.scss +94 -0
- data/styleguide/assets/sass/modules/_states.scss +4 -0
- data/styleguide/assets/sass/modules/_styleguide.scss +138 -0
- data/styleguide/assets/sass/modules/_table.scss +3 -0
- data/styleguide/assets/sass/modules/_tooltip.scss +9 -0
- data/styleguide/assets/sass/modules/_typography.scss +14 -0
- data/styleguide/assets/sass/modules/_version.scss +11 -0
- data/styleguide/assets/sass/structure/_base.scss +18 -0
- data/styleguide/assets/sass/structure/_header.scss +12 -0
- data/styleguide/assets/sass/vendor/_highlight.scss +139 -0
- data/styleguide/assets/sass/vendor/_pure-table.scss +75 -0
- data/styleguide/content/brand/index.md +47 -0
- data/styleguide/content/brand/logo.tpl +279 -0
- data/styleguide/content/design/accessibility-testing.md +82 -0
- data/styleguide/content/design/index.tpl +367 -0
- data/styleguide/content/design/typography.md +68 -0
- data/styleguide/content/design/validating-designs.tpl +304 -0
- data/styleguide/content/index.tpl +51 -0
- data/styleguide/content/language/grammar.md +220 -0
- data/styleguide/content/language/microcopy.md +170 -0
- data/styleguide/content/language/tone.md +135 -0
- data/styleguide/content/pattern-library/grid.tpl +64 -0
- data/styleguide/content/pattern-library/index.tpl +88 -0
- data/styleguide/partials/_footer.tpl +8 -0
- data/styleguide/partials/_head.tpl +26 -0
- data/styleguide/partials/_header.tpl +37 -0
- data/styleguide/partials/_sidebar.tpl +27 -0
- data/styleguide/partials/colour.tpl +24 -0
- data/styleguide/partials/icons.tpl +28 -0
- data/styleguide/partials/style_block.tpl +44 -0
- data/styleguide/templates/simple.tpl +25 -0
- data/styleguide/templates/stats.tpl +50 -0
- data/styleguide/templates/styleguide.tpl +36 -0
- data/tasks/publish.rake +67 -0
- data/ustyle.gemspec +32 -0
- data/vendor/assets/images/forms/checkbox-rebrand.svg +1 -0
- data/vendor/assets/images/forms/checkbox.svg +1 -0
- data/vendor/assets/images/icons/alarm.svg +1 -0
- data/vendor/assets/images/icons/android.svg +1 -0
- data/vendor/assets/images/icons/arrow-circle.svg +1 -0
- data/vendor/assets/images/icons/arrow-down.svg +1 -0
- data/vendor/assets/images/icons/arrow-up.svg +1 -0
- data/vendor/assets/images/icons/book.svg +1 -0
- data/vendor/assets/images/icons/bookmark.svg +1 -0
- data/vendor/assets/images/icons/breadcrumb.svg +1 -0
- data/vendor/assets/images/icons/calculator.svg +1 -0
- data/vendor/assets/images/icons/calendar.svg +1 -0
- data/vendor/assets/images/icons/car.svg +1 -0
- data/vendor/assets/images/icons/checkbox-tick.svg +1 -0
- data/vendor/assets/images/icons/chevron-left.svg +1 -0
- data/vendor/assets/images/icons/chevron-right.svg +1 -0
- data/vendor/assets/images/icons/clock.svg +1 -0
- data/vendor/assets/images/icons/close.svg +1 -0
- data/vendor/assets/images/icons/cog.svg +1 -0
- data/vendor/assets/images/icons/controller.svg +1 -0
- data/vendor/assets/images/icons/credit-card.svg +1 -0
- data/vendor/assets/images/icons/cross.svg +1 -0
- data/vendor/assets/images/icons/dashcam.svg +1 -0
- data/vendor/assets/images/icons/dual-fuel.svg +1 -0
- data/vendor/assets/images/icons/electric-light.svg +1 -0
- data/vendor/assets/images/icons/envelope.svg +1 -0
- data/vendor/assets/images/icons/exit-noexit.svg +1 -0
- data/vendor/assets/images/icons/facebook-brand.svg +1 -0
- data/vendor/assets/images/icons/facebook.svg +1 -0
- data/vendor/assets/images/icons/filter.svg +1 -0
- data/vendor/assets/images/icons/fixed-variable.svg +1 -0
- data/vendor/assets/images/icons/gas.svg +1 -0
- data/vendor/assets/images/icons/gauge.svg +1 -0
- data/vendor/assets/images/icons/github.svg +1 -0
- data/vendor/assets/images/icons/google-brand.svg +1 -0
- data/vendor/assets/images/icons/google.svg +1 -0
- data/vendor/assets/images/icons/graph-up.svg +1 -0
- data/vendor/assets/images/icons/home.svg +1 -0
- data/vendor/assets/images/icons/hot.svg +1 -0
- data/vendor/assets/images/icons/info.svg +1 -0
- data/vendor/assets/images/icons/kettle.svg +1 -0
- data/vendor/assets/images/icons/key.svg +1 -0
- data/vendor/assets/images/icons/lock.svg +1 -0
- data/vendor/assets/images/icons/magnify-in.svg +1 -0
- data/vendor/assets/images/icons/magnify.svg +1 -0
- data/vendor/assets/images/icons/menu.svg +1 -0
- data/vendor/assets/images/icons/message.svg +1 -0
- data/vendor/assets/images/icons/mobile.svg +1 -0
- data/vendor/assets/images/icons/monthly-dd.svg +1 -0
- data/vendor/assets/images/icons/network.svg +1 -0
- data/vendor/assets/images/icons/no-exit.svg +1 -0
- data/vendor/assets/images/icons/pdf.svg +1 -0
- data/vendor/assets/images/icons/pencil.svg +1 -0
- data/vendor/assets/images/icons/person-add.svg +1 -0
- data/vendor/assets/images/icons/person.svg +1 -0
- data/vendor/assets/images/icons/phone.svg +1 -0
- data/vendor/assets/images/icons/piggy-bank.svg +1 -0
- data/vendor/assets/images/icons/pin.svg +1 -0
- data/vendor/assets/images/icons/play.svg +1 -0
- data/vendor/assets/images/icons/pound-circle.svg +1 -0
- data/vendor/assets/images/icons/pound-note.svg +1 -0
- data/vendor/assets/images/icons/present.svg +1 -0
- data/vendor/assets/images/icons/print.svg +1 -0
- data/vendor/assets/images/icons/quarterly-dd.svg +1 -0
- data/vendor/assets/images/icons/question-circle.svg +1 -0
- data/vendor/assets/images/icons/quote.svg +1 -0
- data/vendor/assets/images/icons/recycle.svg +1 -0
- data/vendor/assets/images/icons/remove.svg +1 -0
- data/vendor/assets/images/icons/renewable.svg +1 -0
- data/vendor/assets/images/icons/results.svg +1 -0
- data/vendor/assets/images/icons/save.svg +1 -0
- data/vendor/assets/images/icons/share.svg +1 -0
- data/vendor/assets/images/icons/shield.svg +1 -0
- data/vendor/assets/images/icons/sim.svg +1 -0
- data/vendor/assets/images/icons/smiley.svg +1 -0
- data/vendor/assets/images/icons/sort.svg +1 -0
- data/vendor/assets/images/icons/speech-circle.svg +1 -0
- data/vendor/assets/images/icons/speech.svg +1 -0
- data/vendor/assets/images/icons/spinner-rebrand.svg +1 -0
- data/vendor/assets/images/icons/spinner.svg +1 -0
- data/vendor/assets/images/icons/star-half.svg +1 -0
- data/vendor/assets/images/icons/star.svg +1 -0
- data/vendor/assets/images/icons/starline-half.svg +1 -0
- data/vendor/assets/images/icons/starline.svg +1 -0
- data/vendor/assets/images/icons/talk.svg +1 -0
- data/vendor/assets/images/icons/tick-circle.svg +1 -0
- data/vendor/assets/images/icons/tick.svg +1 -0
- data/vendor/assets/images/icons/tv.svg +1 -0
- data/vendor/assets/images/icons/twitter-brand.svg +1 -0
- data/vendor/assets/images/icons/twitter.svg +1 -0
- data/vendor/assets/images/icons/ustyle.svg +1 -0
- data/vendor/assets/images/icons/uswitch.svg +1 -0
- data/vendor/assets/images/icons/variable.svg +1 -0
- data/vendor/assets/images/icons/warning-circle.svg +1 -0
- data/vendor/assets/images/icons/warning.svg +1 -0
- data/vendor/assets/images/icons/wifi.svg +1 -0
- data/vendor/assets/images/icons/wiki.svg +1 -0
- data/vendor/assets/images/icons/xml.svg +1 -0
- data/vendor/assets/images/icons.svg +1 -0
- data/vendor/assets/javascripts/ustyle/backdrop.js +56 -0
- data/vendor/assets/javascripts/ustyle/classtoggler.js +76 -0
- data/vendor/assets/javascripts/ustyle/overlay.js +152 -0
- data/vendor/assets/javascripts/ustyle/tabs.js +166 -0
- data/vendor/assets/javascripts/ustyle/utils.js +113 -0
- data/vendor/assets/javascripts/ustyle.js +4 -0
- data/vendor/assets/stylesheets/rebrand-content.scss +1 -0
- data/vendor/assets/stylesheets/rebrand.scss +1 -0
- data/vendor/assets/stylesheets/ustyle/_all.scss +55 -0
- data/vendor/assets/stylesheets/ustyle/_content.scss +5 -0
- data/vendor/assets/stylesheets/ustyle/_global.scss +20 -0
- data/vendor/assets/stylesheets/ustyle/articles/_base.scss +100 -0
- data/vendor/assets/stylesheets/ustyle/articles/_guide.scss +57 -0
- data/vendor/assets/stylesheets/ustyle/articles/_more.scss +31 -0
- data/vendor/assets/stylesheets/ustyle/articles/_news.scss +213 -0
- data/vendor/assets/stylesheets/ustyle/articles/_related.scss +76 -0
- data/vendor/assets/stylesheets/ustyle/basics/_extends.scss +73 -0
- data/vendor/assets/stylesheets/ustyle/basics/_fonts.scss +27 -0
- data/vendor/assets/stylesheets/ustyle/basics/_functions.scss +78 -0
- data/vendor/assets/stylesheets/ustyle/basics/_grid.scss +86 -0
- data/vendor/assets/stylesheets/ustyle/basics/_typography.scss +123 -0
- data/vendor/assets/stylesheets/ustyle/basics/_variables.scss +166 -0
- data/vendor/assets/stylesheets/ustyle/basics/variables/_colors.scss +94 -0
- data/vendor/assets/stylesheets/ustyle/basics/variables/_forms.scss +98 -0
- data/vendor/assets/stylesheets/ustyle/basics/variables/_icons.scss +43 -0
- data/vendor/assets/stylesheets/ustyle/components/_backdrop.scss +23 -0
- data/vendor/assets/stylesheets/ustyle/components/_breadcrumbs.scss +66 -0
- data/vendor/assets/stylesheets/ustyle/components/_button.scss +187 -0
- data/vendor/assets/stylesheets/ustyle/components/_calculator.scss +41 -0
- data/vendor/assets/stylesheets/ustyle/components/_comp-table-row.scss +341 -0
- data/vendor/assets/stylesheets/ustyle/components/_compliance-banner.scss +38 -0
- data/vendor/assets/stylesheets/ustyle/components/_content-group.scss +33 -0
- data/vendor/assets/stylesheets/ustyle/components/_cta.scss +66 -0
- data/vendor/assets/stylesheets/ustyle/components/_grid-classes.scss +52 -0
- data/vendor/assets/stylesheets/ustyle/components/_hero.scss +115 -0
- data/vendor/assets/stylesheets/ustyle/components/_links.scss +26 -0
- data/vendor/assets/stylesheets/ustyle/components/_lists-li.scss +92 -0
- data/vendor/assets/stylesheets/ustyle/components/_lists.scss +39 -0
- data/vendor/assets/stylesheets/ustyle/components/_loader.scss +139 -0
- data/vendor/assets/stylesheets/ustyle/components/_overlay.scss +183 -0
- data/vendor/assets/stylesheets/ustyle/components/_progress.scss +138 -0
- data/vendor/assets/stylesheets/ustyle/components/_promo-banner.scss +131 -0
- data/vendor/assets/stylesheets/ustyle/components/_reminder.scss +87 -0
- data/vendor/assets/stylesheets/ustyle/components/_tab-navigation.scss +114 -0
- data/vendor/assets/stylesheets/ustyle/components/_table-toolbar.scss +91 -0
- data/vendor/assets/stylesheets/ustyle/components/_tabs.scss +300 -0
- data/vendor/assets/stylesheets/ustyle/components/_tooltip.scss +243 -0
- data/vendor/assets/stylesheets/ustyle/components/_usp.scss +88 -0
- data/vendor/assets/stylesheets/ustyle/content/_base.scss +227 -0
- data/vendor/assets/stylesheets/ustyle/content/_c-header.scss +27 -0
- data/vendor/assets/stylesheets/ustyle/content/_c-social.scss +9 -0
- data/vendor/assets/stylesheets/ustyle/content/_c-tabs.scss +30 -0
- data/vendor/assets/stylesheets/ustyle/forms/_base.scss +9 -0
- data/vendor/assets/stylesheets/ustyle/forms/_fields.scss +78 -0
- data/vendor/assets/stylesheets/ustyle/forms/_input-group.scss +154 -0
- data/vendor/assets/stylesheets/ustyle/forms/_input.scss +61 -0
- data/vendor/assets/stylesheets/ustyle/forms/_radio-checkbox.scss +144 -0
- data/vendor/assets/stylesheets/ustyle/forms/_reset.scss +21 -0
- data/vendor/assets/stylesheets/ustyle/forms/_select.scss +154 -0
- data/vendor/assets/stylesheets/ustyle/forms/_textarea.scss +33 -0
- data/vendor/assets/stylesheets/ustyle/forms/_toggle.scss +114 -0
- data/vendor/assets/stylesheets/ustyle/forms/_validation.scss +104 -0
- data/vendor/assets/stylesheets/ustyle/icons/_base.scss +241 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_arrow.scss +51 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_base.scss +7 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_baseline.scss +43 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_forms.scss +84 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_general.scss +24 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_link-colors.scss +44 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_media-query.scss +121 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_typography.scss +98 -0
- data/vendor/assets/stylesheets/ustyle/tables/_base.scss +4 -0
- data/vendor/assets/stylesheets/ustyle/tables/_tables-basic.scss +72 -0
- data/vendor/assets/stylesheets/ustyle/tables/_tables-sortable.scss +72 -0
- data/vendor/assets/stylesheets/ustyle/tables/_tables-with-key-cells.scss +18 -0
- data/vendor/assets/stylesheets/ustyle/tables/_variables.scss +15 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_general.scss +116 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_grid.scss +13 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_images.scss +34 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_responsive.scss +101 -0
- data/vendor/assets/stylesheets/ustyle/utilities/_spacing.scss +73 -0
- data/vendor/assets/stylesheets/ustyle/vendor/normalize.scss +427 -0
- data/vendor/assets/stylesheets/ustyle-content.scss +2 -0
- data/vendor/assets/stylesheets/ustyle.scss +1 -0
- metadata +517 -0
@@ -0,0 +1,279 @@
|
|
1
|
+
<ul class='table-of-contents'>
|
2
|
+
<li><a href="#orientation">Orientation</a></li>
|
3
|
+
<li><a href="#colour">Colour</a></li>
|
4
|
+
<li><a href="#exclusion-zone">Exclusion zone</a></li>
|
5
|
+
<li><a href="#alternate-logo">Alternate logo (small)</a></li>
|
6
|
+
<li><a href="#minimum-sizes">Minimum sizes</a></li>
|
7
|
+
<li><a href="#icon-only">Icon only</a></li>
|
8
|
+
<li><a href="#usage-rules">Usage rules</a></li>
|
9
|
+
<li><a href="#logo-downloads">Logo Downloads</a></li>
|
10
|
+
</ul>
|
11
|
+
<div class="us-content-group">
|
12
|
+
<div class="us-grid-row">
|
13
|
+
<div class="us-col-12">
|
14
|
+
<h3 id="orientation">Orientation</h3>
|
15
|
+
<p>
|
16
|
+
We've made our logo available in vertical and horizontal formats to
|
17
|
+
allow for flexibility in various layouts. Choose the format that best
|
18
|
+
suits the usage.
|
19
|
+
</p>
|
20
|
+
</div>
|
21
|
+
</div>
|
22
|
+
<div class="us-grid-row">
|
23
|
+
<div class="us-col-12">
|
24
|
+
<div class="us-grid-row">
|
25
|
+
<div class="us-col-6">
|
26
|
+
<div class="logo__state logo__vertical logo--blue">
|
27
|
+
<svg><use xlink:href="#uicon-logo-vertical"/></svg>
|
28
|
+
</div>
|
29
|
+
<p>
|
30
|
+
Vertical orientation
|
31
|
+
</p>
|
32
|
+
</div>
|
33
|
+
<div class="us-col-6">
|
34
|
+
<div class="logo__state logo__horizontal logo--blue">
|
35
|
+
<svg><use xlink:href="#uicon-logo"/></svg>
|
36
|
+
</div>
|
37
|
+
<p>
|
38
|
+
Horizontal orientation
|
39
|
+
</p>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div class="us-content-group">
|
47
|
+
<div class="us-grid-row">
|
48
|
+
<div class="us-col-12">
|
49
|
+
<h3 id="colour">Colour</h3>
|
50
|
+
<p>
|
51
|
+
Our logo should only appear in our approved colours. The brand blue logo
|
52
|
+
is the preferred version. It can also be displayed on a cyan background.
|
53
|
+
</p>
|
54
|
+
</div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<div class="us-grid-row">
|
58
|
+
<div class="us-col-12">
|
59
|
+
<div class="us-grid-row">
|
60
|
+
<div class="us-col-4">
|
61
|
+
<div class="logo__state logo__vertical logo--blue">
|
62
|
+
<svg><use xlink:href="#uicon-logo-vertical"/></svg>
|
63
|
+
</div>
|
64
|
+
<p>
|
65
|
+
Brand blue is the preferred version of the logo.
|
66
|
+
</p>
|
67
|
+
</div>
|
68
|
+
<div class="us-col-4">
|
69
|
+
<div class="logo__state logo__vertical logo--white">
|
70
|
+
<svg><use xlink:href="#uicon-logo-vertical"/></svg>
|
71
|
+
</div>
|
72
|
+
<p>
|
73
|
+
Alternatively it can also be used in white on dark backgrounds.
|
74
|
+
</p>
|
75
|
+
</div>
|
76
|
+
<div class="us-col-4">
|
77
|
+
<div class="logo__state logo__vertical logo--cyan">
|
78
|
+
<svg><use xlink:href="#uicon-logo-vertical"/></svg>
|
79
|
+
</div>
|
80
|
+
<p>
|
81
|
+
It can also be used on a cyan background.
|
82
|
+
</p>
|
83
|
+
</div>
|
84
|
+
</div>
|
85
|
+
</div>
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<div class="us-grid-row">
|
89
|
+
<div class="us-col-12">
|
90
|
+
<p>
|
91
|
+
The black and white versions of our logo should only be used when colour
|
92
|
+
reproduction is not available. Choose the option that will provide the
|
93
|
+
most contrast with the background.
|
94
|
+
</p>
|
95
|
+
</div>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
<div class="us-grid-row">
|
99
|
+
<div class="us-col-12">
|
100
|
+
<div class="us-grid-row">
|
101
|
+
<div class="us-col-6">
|
102
|
+
<div class="logo__state logo__horizontal logo--bwwhite">
|
103
|
+
<svg><use xlink:href="#uicon-logo"/></svg>
|
104
|
+
</div>
|
105
|
+
<p>
|
106
|
+
The black logo is for use on light backgrounds where colour
|
107
|
+
reproduction is not available.
|
108
|
+
</p>
|
109
|
+
</div>
|
110
|
+
<div class="us-col-6">
|
111
|
+
<div class="logo__state logo__horizontal logo--bwblack">
|
112
|
+
<svg><use xlink:href="#uicon-logo"/></svg>
|
113
|
+
</div>
|
114
|
+
<p>
|
115
|
+
The white logo is for use on dark backgrounds where colour
|
116
|
+
reproduction is not available.
|
117
|
+
</p>
|
118
|
+
</div>
|
119
|
+
</div>
|
120
|
+
</div>
|
121
|
+
</div>
|
122
|
+
</div>
|
123
|
+
|
124
|
+
<div class="us-content-group">
|
125
|
+
<div class="us-grid-row">
|
126
|
+
<div class="us-col-12">
|
127
|
+
<h3 id="exclusion-zone">Exclusion Zone</h3>
|
128
|
+
<p>
|
129
|
+
Always leave plenty of room around the logo. This will enable it to
|
130
|
+
feature prominently without clutter.
|
131
|
+
</p>
|
132
|
+
</div>
|
133
|
+
</div>
|
134
|
+
|
135
|
+
<div class="us-grid-row">
|
136
|
+
<div class="us-col-12">
|
137
|
+
<div class="us-grid-row">
|
138
|
+
<div class="us-col-6">
|
139
|
+
<div class="logo__state logo__vertical logo__spacer--vertical logo--blue">
|
140
|
+
<svg><use xlink:href="#uicon-logo-vertical"/></svg>
|
141
|
+
</div>
|
142
|
+
</div>
|
143
|
+
<br>
|
144
|
+
<div class="us-col-6">
|
145
|
+
<div class="logo__state logo__horizontal logo__spacer--horizontal logo--white">
|
146
|
+
<svg><use xlink:href="#uicon-logo"/></svg>
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
<p>
|
151
|
+
The 'S' from our wordmark can be used to measure out the exclusion zone.
|
152
|
+
</p>
|
153
|
+
</div>
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
|
157
|
+
<div class="us-content-group">
|
158
|
+
<div class="us-grid-row">
|
159
|
+
<div class="us-col-12">
|
160
|
+
<h3 id="alternate-logo">Alternate logo for use at smaller sizes</h3>
|
161
|
+
<p>
|
162
|
+
An alternative version of our logo must be used when it's being displayed
|
163
|
+
at smaller sizes. It ensures that the arrowhead, a key element of our
|
164
|
+
brand, remains clear and prominent.
|
165
|
+
</p>
|
166
|
+
</div>
|
167
|
+
</div>
|
168
|
+
<div class="us-grid-row">
|
169
|
+
<div class="us-col-12">
|
170
|
+
<div class="us-grid-row">
|
171
|
+
<div class="us-col-6">
|
172
|
+
<div class="logo__state logo__vertical--alternate logo--blue">
|
173
|
+
<svg><use xlink:href="#uicon-logo-vertical-small"/>
|
174
|
+
<div class="logo__sizing h98">98px</div>
|
175
|
+
</div>
|
176
|
+
<p>
|
177
|
+
Use the alternative version of the vertical logo when using at a
|
178
|
+
height of 98px or less.
|
179
|
+
</p>
|
180
|
+
</div>
|
181
|
+
<div class="us-col-6">
|
182
|
+
<div class="logo__state logo__horizontal--alternate logo--white">
|
183
|
+
<svg><use xlink:href="#uicon-logo-small"/></svg>
|
184
|
+
<div class="logo__sizing h64">64px</div>
|
185
|
+
</div>
|
186
|
+
<p>
|
187
|
+
Use the alternate version of the horizontal logo when using at a
|
188
|
+
height of 64px or less.
|
189
|
+
</p>
|
190
|
+
</div>
|
191
|
+
</div>
|
192
|
+
</div>
|
193
|
+
</div>
|
194
|
+
</div>
|
195
|
+
|
196
|
+
<div class="us-content-group">
|
197
|
+
<div class="us-grid-row">
|
198
|
+
<div class="us-col-12">
|
199
|
+
<h3 id="minimum-sizes">Minimum Size</h3>
|
200
|
+
<p>To ensure legibility of our logo, it must not be used below the
|
201
|
+
minimum size.</p>
|
202
|
+
<div class="us-col-6">
|
203
|
+
<div class="logo__state logo__vertical--alternate-min logo--blue">
|
204
|
+
<svg><use xlink:href="#uicon-logo-vertical-small"/>
|
205
|
+
<div class="logo__sizing h50">50px</div>
|
206
|
+
</div>
|
207
|
+
<p>
|
208
|
+
The minimum height that the vertical logo may be used at is 50px.
|
209
|
+
</p>
|
210
|
+
</div>
|
211
|
+
<div class="us-col-6">
|
212
|
+
<div class="logo__state logo__horizontal--alternate-min logo--white">
|
213
|
+
<svg><use xlink:href="#uicon-logo-small"/></svg>
|
214
|
+
<div class="logo__sizing h25">25px</div>
|
215
|
+
</div>
|
216
|
+
<p>
|
217
|
+
The minimum height that the horizontal logo may be used at is 25px.
|
218
|
+
</p>
|
219
|
+
</div>
|
220
|
+
</div>
|
221
|
+
</div>
|
222
|
+
</div>
|
223
|
+
</div>
|
224
|
+
|
225
|
+
<div class="us-content-group">
|
226
|
+
<div class="us-grid-row">
|
227
|
+
<div class="us-col-12">
|
228
|
+
<h3 id="icon-only">Icon only</h3>
|
229
|
+
<p>
|
230
|
+
Our icon and wordmark must always be used together. The only
|
231
|
+
exceptions are our app icon, website favicon and awards logos. Do not
|
232
|
+
separate the icon and wordmark in any other instances.
|
233
|
+
</p>
|
234
|
+
<div class="logo__icon-standalone us-margin-bottom">
|
235
|
+
<svg role="image" class="us-icon--large us-icon--white us-icon--notext">
|
236
|
+
<use xlink:href="/images/icons.svg#icon-uswitch"></use>
|
237
|
+
</svg>
|
238
|
+
</div>
|
239
|
+
<p>
|
240
|
+
The icon may only be used separately from the wordmark in approved
|
241
|
+
situations, such as our app icon.
|
242
|
+
</p>
|
243
|
+
|
244
|
+
<p><strong>Do not separate the elements in any other situations.</strong></p>
|
245
|
+
</div>
|
246
|
+
</div>
|
247
|
+
</div>
|
248
|
+
|
249
|
+
<div class="us-content-group">
|
250
|
+
<div class="us-grid-row">
|
251
|
+
<div class="us-col-12">
|
252
|
+
<h3 id="usage-rules">Usage rules</h3>
|
253
|
+
<p>Please make sure you’re not tempted to do any of the following to the logo:</p>
|
254
|
+
<ul>
|
255
|
+
<li>Change elements of it</li>
|
256
|
+
<li>Outline or put a keyline around it</li>
|
257
|
+
<li>Use a different blue</li>
|
258
|
+
<li>Use a gradient or tint</li>
|
259
|
+
<li>Rotate the logo</li>
|
260
|
+
</ul>
|
261
|
+
</div>
|
262
|
+
</div>
|
263
|
+
</div>
|
264
|
+
|
265
|
+
<div class="us-content-group">
|
266
|
+
<div class="us-grid-row">
|
267
|
+
<div class="us-col-12">
|
268
|
+
<h3 id="logo-downloads">Logo Downloads</h3>
|
269
|
+
<p>
|
270
|
+
Here you can download the standard and smaller versions of the uSwitch
|
271
|
+
logo. Each .zip file comes with .eps, .svg and .svg versions of the logo.
|
272
|
+
</p>
|
273
|
+
<ul>
|
274
|
+
<li><a href='https://s3-eu-west-1.amazonaws.com/uswitch-assets-eu/ustyle-assets/logo/Standard+logo+assets.zip'>Standard Logo</a></li>
|
275
|
+
<li><a href='https://s3-eu-west-1.amazonaws.com/uswitch-assets-eu/ustyle-assets/logo/Small+logo+assets.zip'>Logo for smaller sizes</a></li>
|
276
|
+
</ul>
|
277
|
+
</div>
|
278
|
+
</div>
|
279
|
+
</div>
|
@@ -0,0 +1,82 @@
|
|
1
|
+
Everyone experiences disability at some point in their life, whether permanent
|
2
|
+
(blindness, deafness, motor impairment) or temporary (fatigue, migraines, a broken arm).
|
3
|
+
These things may make the things we build difficult to use.
|
4
|
+
|
5
|
+
Below, you'll find recommended tools and processes that will help make it easier
|
6
|
+
for folk to use the things we build without frustration.
|
7
|
+
|
8
|
+
The web is for everyone, and it is our job to make sure that everyone can access it.
|
9
|
+
|
10
|
+
## Recommended (Free) Tools
|
11
|
+
|
12
|
+
* [Pa11y Dashboard]
|
13
|
+
* [aXe Chrome Extension]
|
14
|
+
* [tota11y]
|
15
|
+
* [Lighthouse]
|
16
|
+
* [a11y]
|
17
|
+
|
18
|
+
## How to test
|
19
|
+
|
20
|
+
### Using automated tools
|
21
|
+
|
22
|
+
There are a lot of options, both free and paid for, to automatically test the
|
23
|
+
accessibility of our products. From the most basic like [tota11y] and [a11y]
|
24
|
+
, to
|
25
|
+
the more involved like Chrome’s Accessibility Audit tool and aXe. These tools can
|
26
|
+
provide a great overview of where we might be going wrong, and even suggest ways
|
27
|
+
to improve.
|
28
|
+
|
29
|
+
But with great power, comes great responsibility. We cannot rely on automated tool
|
30
|
+
to help us find and fix all the issues.
|
31
|
+
[GDS discovered](https://accessibility.blog.gov.uk/2017/02/24/what-we-found-when-we-tested-tools-on-the-worlds-least-accessible-webpage)
|
32
|
+
that even a tool like Chrome's Accessibility auditor only surface 17% of accessibility issues.
|
33
|
+
|
34
|
+
Just because a tool says something is broken, we should still manually test to
|
35
|
+
prove it is. These automated tools provide solutions, but they are neither the
|
36
|
+
only or the most suitable solution for our users.
|
37
|
+
|
38
|
+
### Manual Testing
|
39
|
+
|
40
|
+
Nothing really beats manual testing. The more you do this, the easier you’ll find
|
41
|
+
it to spot potential accessibility errors.
|
42
|
+
|
43
|
+
#### Keyboard Only
|
44
|
+
|
45
|
+
* Can the page be navigated just by using a keyboard?
|
46
|
+
* Can you TAB to all interactive elements (links, buttons, form inputs) and interact
|
47
|
+
with such elements using traditional keys (ESC, Arrows)?
|
48
|
+
* When TABbing, do you lose track of where the keyboard is focused, suggesting that
|
49
|
+
there are hidden elements on the page you shouldn’t be able to navigate to?
|
50
|
+
|
51
|
+
#### Screen Readers
|
52
|
+
|
53
|
+
Use a screen reader like [NVDA](https://www.nvaccess.org/),
|
54
|
+
[JAWS](http://www.freedomscientific.com/Products/Blindness/Jaws), or
|
55
|
+
[VoiceOver](https://www.apple.com/accessibility/mac/vision/) to go through your
|
56
|
+
web page.
|
57
|
+
|
58
|
+
* Can you access and understand all of the content someone not using a screen reader can?
|
59
|
+
* Does the hierarchy of the content make sense?
|
60
|
+
* Can one easily navigate to different landmarks on the page
|
61
|
+
(e.g header, navigation, main content, supplementary content like an aside or footer)?
|
62
|
+
|
63
|
+
Note that you shouldn’t sink time into becoming an expert with a screen reader.
|
64
|
+
Unless you use a screen reader every day and have a legitimate need to do so, you
|
65
|
+
are unlikely to ever use a screen reader how they should be used.
|
66
|
+
|
67
|
+
It's important to note here that you cannot truly say your product is accessible
|
68
|
+
until you've tested them with folk who benefit from this work.
|
69
|
+
|
70
|
+
---
|
71
|
+
|
72
|
+
For more about how we can make uSwitch and the world more accessible, check out
|
73
|
+
our blog posts on [quick wins](https://labs.uswitch.com/four-accessibility-wins/)
|
74
|
+
and [how to perform an accessibility audit](https://labs.uswitch.com/how-to-do-an-accessibility-audit/).
|
75
|
+
|
76
|
+
Check out our tips on [usability testing](../design/validating-designs.html), too.
|
77
|
+
|
78
|
+
[Pa11y Dashboard]: https://github.com/pa11y/dashboard
|
79
|
+
[aXe Chrome Extension]: https://chrome.google.com/webstore/detail/axe/lhdoppojpmngadmnindnejefpokejbdd
|
80
|
+
[tota11y]: https://khan.github.io/tota11y/
|
81
|
+
[Lighthouse]: https://github.com/GoogleChrome/lighthouse
|
82
|
+
[a11y]: https://www.npmjs.com/package/a11y
|