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,131 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Promo banner
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Promotional banner
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <div class="us-promo-banner">
|
9
|
+
// <div class="us-promo-banner__inner">
|
10
|
+
// <h3 class="us-promo-banner__title">Title block here</h3>
|
11
|
+
// <ul class="us-promo-banner__list">
|
12
|
+
// <li class="us-promo-banner__list-item">
|
13
|
+
// <span class="us-promo-banner__circle">1</span>
|
14
|
+
// <span class="us-promo-banner__text">Text here</span>
|
15
|
+
// </li>
|
16
|
+
// <li class="us-promo-banner__list-item">
|
17
|
+
// <span class="us-promo-banner__circle">2</span>
|
18
|
+
// <span class="us-promo-banner__text">Text here</span>
|
19
|
+
// </li>
|
20
|
+
// <li class="us-promo-banner__list-item">
|
21
|
+
// <span class="us-promo-banner__circle">3</span>
|
22
|
+
// <span class="us-promo-banner__text">Text here</span>
|
23
|
+
// </li>
|
24
|
+
// </ul>
|
25
|
+
// <div class="us-promo-banner__button"><a class="us-btn us-btn--action us-btn--large" href="#">Promo CTA text</a></div>
|
26
|
+
// </div>
|
27
|
+
// </div>
|
28
|
+
|
29
|
+
.us-promo-banner {
|
30
|
+
width: 100%;
|
31
|
+
padding: 1.7em;
|
32
|
+
background-color: $c-uswitch-navy;
|
33
|
+
|
34
|
+
&__inner {
|
35
|
+
display: flex;
|
36
|
+
width: 100%;
|
37
|
+
max-width: 800px;
|
38
|
+
margin: 0 auto;
|
39
|
+
align-items: flex-start;
|
40
|
+
flex-direction: column;
|
41
|
+
justify-content: center;
|
42
|
+
|
43
|
+
@include respond-to(desktop) {
|
44
|
+
max-width: 1200px;
|
45
|
+
flex-direction: row;
|
46
|
+
flex-wrap: wrap;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
&__list {
|
51
|
+
display: flex;
|
52
|
+
width: 100%;
|
53
|
+
padding: 0;
|
54
|
+
margin: 1em 0 3em 0;
|
55
|
+
align-items: flex-start;
|
56
|
+
flex-direction: column;
|
57
|
+
justify-content: center;
|
58
|
+
|
59
|
+
@include respond-to(desktop) {
|
60
|
+
width: 60%;
|
61
|
+
flex-direction: row;
|
62
|
+
flex-grow: 1;
|
63
|
+
margin-bottom: 1em;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
&__list-item {
|
68
|
+
display: flex;
|
69
|
+
width: 100%;
|
70
|
+
margin: 15px 0 0 0;
|
71
|
+
align-items: center;
|
72
|
+
flex-direction: row;
|
73
|
+
justify-content: flex-start;
|
74
|
+
|
75
|
+
@include respond-to(desktop) {
|
76
|
+
margin: 0;
|
77
|
+
}
|
78
|
+
|
79
|
+
&:first-child {
|
80
|
+
margin: 0;
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
&__title {
|
85
|
+
font-size: 1.2em;
|
86
|
+
font-weight: 700;
|
87
|
+
color: #fff;
|
88
|
+
|
89
|
+
@include respond-to(desktop) {
|
90
|
+
width: 100%;
|
91
|
+
font-size: 1.5em;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
&__circle {
|
96
|
+
display: inline-block;
|
97
|
+
width: 36px;
|
98
|
+
height: 36px;
|
99
|
+
min-width: 36px;
|
100
|
+
min-height: 36px;
|
101
|
+
margin-right: 10px;
|
102
|
+
line-height: 30px;
|
103
|
+
color: $c-uswitch-navy;
|
104
|
+
text-align: center;
|
105
|
+
background: $c-white;
|
106
|
+
border: solid 3px #fff;
|
107
|
+
border-radius: 50%;
|
108
|
+
align-self: flex-start;
|
109
|
+
font-weight: 800;
|
110
|
+
}
|
111
|
+
|
112
|
+
&__text {
|
113
|
+
padding: 5px 10px 0 10px;
|
114
|
+
color: $c-white;
|
115
|
+
flex-grow: 1;
|
116
|
+
align-self: flex-start;
|
117
|
+
}
|
118
|
+
|
119
|
+
&__button {
|
120
|
+
|
121
|
+
@include respond-to(desktop) {
|
122
|
+
width: auto;
|
123
|
+
flex-grow: 1;
|
124
|
+
}
|
125
|
+
|
126
|
+
a {
|
127
|
+
width: 100%;
|
128
|
+
padding: .75em 1.2em;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Reminder
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Placed underneath some tables to enable reminders
|
6
|
+
//
|
7
|
+
//
|
8
|
+
// @markup
|
9
|
+
// <div class="us-container us-reminder">
|
10
|
+
// <div class="us-grid-row us-reminder-title">Got a balance transfer card?</div>
|
11
|
+
// <div class="us-grid-row us-reminder-content">
|
12
|
+
// <p>Create a reminder and we'll let you know when you're nearing the end of your 0% period</p>
|
13
|
+
// <a class="us-btn us-btn--primary" data-widget-creative="banner" data-widget-name="reminder-credit-cards" data-widget-position="table" data-event="" data-event-category="reminders" data-event-action="banner-click" data-event-label="credit-cards" href="/account/signin?origin=https://www.uswitch.com/account/reminders#credit-cards&source=credit-cards.reminders" data-overlay-title="Sign up to create a reminder" data-source="credit-cards.reminders" data-origin="https://www.uswitch.com/account/reminders#credit-cards" onclick="uSwitch.openSignin(event)">
|
14
|
+
// Create a reminder
|
15
|
+
// </a>
|
16
|
+
// </div>
|
17
|
+
// </div>
|
18
|
+
// <div class="us-container us-reminder--grey">
|
19
|
+
// <div class="us-grid-row us-reminder-title">Got a balance transfer card?</div>
|
20
|
+
// <div class="us-grid-row us-reminder-content">
|
21
|
+
// <p>Create a reminder and we'll let you know when you're nearing the end of your 0% period</p>
|
22
|
+
// <a class="us-btn us-btn--primary" data-widget-creative="banner" data-widget-name="reminder-credit-cards" data-widget-position="table" data-event="" data-event-category="reminders" data-event-action="banner-click" data-event-label="credit-cards" href="/account/signin?origin=https://www.uswitch.com/account/reminders#credit-cards&source=credit-cards.reminders" data-overlay-title="Sign up to create a reminder" data-source="credit-cards.reminders" data-origin="https://www.uswitch.com/account/reminders#credit-cards" onclick="uSwitch.openSignin(event)">
|
23
|
+
// Create a reminder
|
24
|
+
// </a>
|
25
|
+
// </div>
|
26
|
+
// </div>
|
27
|
+
// <div class="us-container us-reminder--navy">
|
28
|
+
// <div class="us-grid-row us-reminder-title">Got a balance transfer card?</div>
|
29
|
+
// <div class="us-grid-row us-reminder-content">
|
30
|
+
// <p>Create a reminder and we'll let you know when you're nearing the end of your 0% period</p>
|
31
|
+
// <a class="us-btn us-btn--action" data-widget-creative="banner" data-widget-name="reminder-credit-cards" data-widget-position="table" data-event="" data-event-category="reminders" data-event-action="banner-click" data-event-label="credit-cards" href="/account/signin?origin=https://www.uswitch.com/account/reminders#credit-cards&source=credit-cards.reminders" data-overlay-title="Sign up to create a reminder" data-source="credit-cards.reminders" data-origin="https://www.uswitch.com/account/reminders#credit-cards" onclick="uSwitch.openSignin(event)">
|
32
|
+
// Create a reminder
|
33
|
+
// </a>
|
34
|
+
// </div>
|
35
|
+
// </div>
|
36
|
+
|
37
|
+
.us-reminder,
|
38
|
+
.us-reminder--grey,
|
39
|
+
.us-reminder--navy {
|
40
|
+
background-color: $c-white;
|
41
|
+
border: 1px solid $c-grey;
|
42
|
+
max-width: 950px;
|
43
|
+
|
44
|
+
&.us-container {
|
45
|
+
margin-bottom: 2em;
|
46
|
+
|
47
|
+
@include respond-to(to-small-tablet) {
|
48
|
+
padding: 0;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
&-title {
|
53
|
+
color: $c-uswitch-navy;
|
54
|
+
padding: 1.33em 1.33em 0 1.33em;
|
55
|
+
font-size: 1.5em;
|
56
|
+
font-weight: bold;
|
57
|
+
}
|
58
|
+
|
59
|
+
&-content {
|
60
|
+
padding: 2em;
|
61
|
+
color: $c-dark-grey;
|
62
|
+
|
63
|
+
p {
|
64
|
+
font-size: 1.125em;
|
65
|
+
margin-bottom: 1.5em;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
&--grey {
|
70
|
+
background-color: $c-super-light-grey;
|
71
|
+
|
72
|
+
.us-reminder-content {
|
73
|
+
color: $c-uswitch-navy;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
&--navy {
|
78
|
+
background-color: $c-uswitch-navy;
|
79
|
+
border-color: $c-uswitch-navy;
|
80
|
+
color: $c-white;
|
81
|
+
|
82
|
+
.us-reminder-title,
|
83
|
+
.us-reminder-content {
|
84
|
+
color: $c-white;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
@@ -0,0 +1,114 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Tab navigation
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Above table, tab-style navigation
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <div class="us-tabs us-tabs--page-nav">
|
9
|
+
// <div class="us-tabs__inner">
|
10
|
+
// <ul class="us-tabs__links">
|
11
|
+
// <li class="us-tabs__links-item us-tabs__links-item--active"><a href="#">Link here</a></li>
|
12
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
13
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
14
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
15
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
16
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
17
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
18
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
19
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
20
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
21
|
+
// <li class="us-tabs__links-item"><a>Link here</a></li>
|
22
|
+
// </ul>
|
23
|
+
// </div>
|
24
|
+
// </div>
|
25
|
+
|
26
|
+
.us-tabs {
|
27
|
+
&--page-nav {
|
28
|
+
display: none;
|
29
|
+
background-color: $c-super-light-grey;
|
30
|
+
|
31
|
+
@include respond-to(tablet) {
|
32
|
+
display: block;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
&__inner {
|
37
|
+
width: 100%;
|
38
|
+
max-width: 1200px;
|
39
|
+
margin: 0 auto;
|
40
|
+
}
|
41
|
+
|
42
|
+
&__links {
|
43
|
+
display: flex;
|
44
|
+
padding: 0;
|
45
|
+
margin: 0;
|
46
|
+
list-style: none;
|
47
|
+
align-items: center;
|
48
|
+
flex-direction: row;
|
49
|
+
justify-content: center;
|
50
|
+
flex-wrap: nowrap;
|
51
|
+
align-items: stretch;
|
52
|
+
}
|
53
|
+
|
54
|
+
&__links-item {
|
55
|
+
position: relative;
|
56
|
+
display: flex;
|
57
|
+
max-width: 180px;
|
58
|
+
margin: 0;
|
59
|
+
text-align: center;
|
60
|
+
cursor: pointer;
|
61
|
+
border-right: 3px solid #fff;
|
62
|
+
transition: background-color .2s;
|
63
|
+
flex-grow: 1;
|
64
|
+
align-items: center;
|
65
|
+
justify-content: center;
|
66
|
+
font-size: .875em;
|
67
|
+
line-height: 1.25em;
|
68
|
+
|
69
|
+
@include respond-to(desktop) {
|
70
|
+
font-size: 1em;
|
71
|
+
line-height: 1.5em;
|
72
|
+
}
|
73
|
+
|
74
|
+
a {
|
75
|
+
display: block;
|
76
|
+
color: $c-darker-grey;
|
77
|
+
transition: color .2s;
|
78
|
+
padding: .825em 1em;
|
79
|
+
text-decoration: none;
|
80
|
+
}
|
81
|
+
|
82
|
+
&:last-child {
|
83
|
+
border: 0;
|
84
|
+
}
|
85
|
+
|
86
|
+
&::before {
|
87
|
+
position: absolute;
|
88
|
+
top: 0;
|
89
|
+
left: 0;
|
90
|
+
width: 100%;
|
91
|
+
border-top: 5px solid $c-uswitch-navy;
|
92
|
+
content: "";
|
93
|
+
opacity: 0;
|
94
|
+
transition: opacity .2s;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
&__links-item:hover {
|
99
|
+
background-color: #f4f5f6;
|
100
|
+
|
101
|
+
a { color: $c-uswitch-navy; }
|
102
|
+
|
103
|
+
&::before { opacity: 1; }
|
104
|
+
}
|
105
|
+
|
106
|
+
&__links-item--active {
|
107
|
+
background-color: #fff;
|
108
|
+
border-right: 0;
|
109
|
+
|
110
|
+
a { color: $c-uswitch-navy; }
|
111
|
+
|
112
|
+
&::before { opacity: 1; }
|
113
|
+
}
|
114
|
+
}
|
@@ -0,0 +1,91 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Table toolbar
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// The table toolbar sits above comparison tables and holds search refinement and filtering tools.
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <div class="us-table-toolbar">
|
9
|
+
// <div class="us-table-toolbar__wrapper">
|
10
|
+
// <form class='us-calculator'>
|
11
|
+
// <h2 class='us-table-toolbar__heading'>How much would you like to transfer?</h2>
|
12
|
+
// <div class='us-input-group us-calculator__input'>
|
13
|
+
// <div class='us-input-group__box'>£</div>
|
14
|
+
// <input type='text' class='us-form-input' pattern='[0-9]*' name='amount' id='amount' value='3000' />
|
15
|
+
// </div>
|
16
|
+
// <button class='us-btn us-btn--primary'>Update results</button>
|
17
|
+
// <div class='us-tooltip us-tooltip--right'>
|
18
|
+
// <div class='us-tooltip__wrapper'>
|
19
|
+
// <div class='us-tooltip__icon'></div>
|
20
|
+
// <div class='us-tooltip__note'>
|
21
|
+
// <div class='us-tooltip__arrow'></div>
|
22
|
+
// Note that this is illustrative and this figure does not reflect the credit limit you will be offered.
|
23
|
+
// </div>
|
24
|
+
// </div>
|
25
|
+
// </div>
|
26
|
+
// </form>
|
27
|
+
// </div>
|
28
|
+
// <div class="us-table-toolbar__wrapper us-table-toolbar__wrapper--right">
|
29
|
+
// <div class="us-table-toolbar__sort">
|
30
|
+
// <h3 class="us-table-toolbar__heading">Sort by:</h3>
|
31
|
+
// <select class="us-form-select name="sort"">
|
32
|
+
// <option value="popularity">Popularity</option>
|
33
|
+
// <option value="apr">Lowest APR</option>
|
34
|
+
// <option value="min-credit-limit">Minimum credit limit</option>
|
35
|
+
// <option value="max-credit-limit">Maximum credit limit</option>
|
36
|
+
// </select>
|
37
|
+
// </div>
|
38
|
+
// </div>
|
39
|
+
// </div>
|
40
|
+
|
41
|
+
.us-table-toolbar {
|
42
|
+
background: $c-bggrey;
|
43
|
+
padding: $gutter-width / 2;
|
44
|
+
border-bottom: 1px solid $c-keylinegrey;
|
45
|
+
margin: 0 auto $gutter-width / 2;
|
46
|
+
|
47
|
+
@include respond-to(tablet) {
|
48
|
+
display: flex;
|
49
|
+
background-color: transparent;
|
50
|
+
border-bottom: 0;
|
51
|
+
padding: $gutter-width $gutter-width / 2;
|
52
|
+
flex-direction: row;
|
53
|
+
}
|
54
|
+
|
55
|
+
&__wrapper {
|
56
|
+
display: flex;
|
57
|
+
flex: 1 1;
|
58
|
+
|
59
|
+
&:first-child {
|
60
|
+
margin-bottom: $gutter-width / 2;
|
61
|
+
|
62
|
+
@include respond-to(tablet) {
|
63
|
+
margin-bottom: 0;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
&__sort {
|
69
|
+
width: 100%;
|
70
|
+
|
71
|
+
@include respond-to(tablet) {
|
72
|
+
width: auto;
|
73
|
+
}
|
74
|
+
|
75
|
+
select {
|
76
|
+
width: 100%;
|
77
|
+
|
78
|
+
@include respond-to(tablet) {
|
79
|
+
width: auto;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
&__wrapper--right {
|
85
|
+
justify-content: flex-end;
|
86
|
+
}
|
87
|
+
|
88
|
+
&__heading {
|
89
|
+
font-size: 18px;
|
90
|
+
}
|
91
|
+
}
|