reustyle 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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,41 @@
|
|
|
1
|
+
// @page Pattern Library/Components
|
|
2
|
+
// @name Calculator
|
|
3
|
+
//
|
|
4
|
+
// @description
|
|
5
|
+
// The calculator tends to sit in the table toolbar component and is used to refine results from comparison tables, and give estimated info about products based on the input.
|
|
6
|
+
//
|
|
7
|
+
// @markup
|
|
8
|
+
// <form class='us-calculator'>
|
|
9
|
+
// <h2 class='us-table-toolbar__heading'>How much would you like to transfer?</h2>
|
|
10
|
+
// <div class='us-calculator__input us-input-group'>
|
|
11
|
+
// <div class='us-input-group__box'>£</div>
|
|
12
|
+
// <input type='text' class='us-form-input' pattern='[0-9]*' name='amount' id='amount' value='3000' />
|
|
13
|
+
// </div>
|
|
14
|
+
// <button class='us-calculator__btn us-btn us-btn--primary'>Update results</button>
|
|
15
|
+
// <div class='us-tooltip us-tooltip--right'>
|
|
16
|
+
// <div class='us-tooltip__wrapper'>
|
|
17
|
+
// <div class='us-tooltip__icon'></div>
|
|
18
|
+
// <div class='us-tooltip__note'>
|
|
19
|
+
// <div class='us-tooltip__arrow'></div>
|
|
20
|
+
// Note that this is illustrative and this figure does not reflect the credit limit you will be offered.
|
|
21
|
+
// </div>
|
|
22
|
+
// </div>
|
|
23
|
+
// </div>
|
|
24
|
+
// </form>
|
|
25
|
+
|
|
26
|
+
.us-calculator {
|
|
27
|
+
position: relative;
|
|
28
|
+
display: block;
|
|
29
|
+
width: 100%;
|
|
30
|
+
|
|
31
|
+
&__input {
|
|
32
|
+
display: inline-table;
|
|
33
|
+
margin-right: 10px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&__btn {
|
|
37
|
+
display: block;
|
|
38
|
+
margin: .5em;
|
|
39
|
+
width: auto;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
// @page Pattern Library/Components
|
|
2
|
+
// @name Comp table row
|
|
3
|
+
//
|
|
4
|
+
// @description
|
|
5
|
+
// The `.us-ct__row` appears in the comparison tables, and contains a single product.
|
|
6
|
+
//
|
|
7
|
+
// @state .us-ct-row--details-toggle - Used for a thicker bottom border when the toggle is showing.
|
|
8
|
+
//
|
|
9
|
+
// @markup
|
|
10
|
+
// <div class="us-ct-row {$modifiers}">
|
|
11
|
+
// <div class="us-ct-row__title">
|
|
12
|
+
// <p class="us-ct-row__title-text">aqua Reward With Cashback</p>
|
|
13
|
+
// <div class="us-usp us-usp--orange">£20 Amazon voucher</div>
|
|
14
|
+
// <div class="us-usp us-usp--green">Cashback</div>
|
|
15
|
+
// </div>
|
|
16
|
+
// <div class="us-ct-row__product">
|
|
17
|
+
// <div class="us-ct-row__col us-ct-row__col--image">
|
|
18
|
+
// <img src="https://uswitch-cms.imgix.net/uswitch-assets-eu/banking/credit-cards/cards/aqua-2017-large.png?w=170&h=107&fit=auto&bg=0fff&fm=png8" class="us-ct-row__image" />
|
|
19
|
+
// <div class="us-ct-row__title--mobile"><strong>aqua Reward With Cashback</strong></div>
|
|
20
|
+
// <div class="us-ct-row__usp--mobile">
|
|
21
|
+
// <div class="us-usp us-usp--orange">£20 Amazon voucher</div>
|
|
22
|
+
// <div class="us-usp us-usp--green">Cashback</div>
|
|
23
|
+
// </div>
|
|
24
|
+
// </div>
|
|
25
|
+
// <div class="us-ct-row__col us-ct-row__col--stretch">
|
|
26
|
+
// <div class="us-ct-row__name"><strong>34.9% APR</strong></div><div class="us-ct-row__value">Representative (variable)</div>
|
|
27
|
+
// </div>
|
|
28
|
+
// <div class="us-ct-row__col us-ct-row__col--stretch">
|
|
29
|
+
// <div class="us-ct-row__name"><strong>£250</strong></div><div class="us-ct-row__value">Minimum credit limit</div>
|
|
30
|
+
// </div>
|
|
31
|
+
// <div class="us-ct-row__col us-ct-row__col--stretch">
|
|
32
|
+
// <div class="us-ct-row__name"><strong>£1250</strong></div><div class="us-ct-row__value">Maximum credit limit</div>
|
|
33
|
+
// </div>
|
|
34
|
+
// <div class="us-ct-row__col us-ct-row__col--apply">
|
|
35
|
+
// <a class="us-btn us-btn--primary us-btn--blocked" href="#" role="button">Apply</a>
|
|
36
|
+
// <a href="#" class="us-ct-row__more-info">More info</a>
|
|
37
|
+
// </div>
|
|
38
|
+
// </div>
|
|
39
|
+
// <span class="us-ct-row__rep-ex">Representative example: When you spend £1,200 at a rate of 34.91% (variable) per annum, your representative APR is 34.9% APR (variable)</span>
|
|
40
|
+
// <div class="us-ct-row__key-details">
|
|
41
|
+
// <button class="us-ct-row__key-details-toggle us-ct-row__key-details-toggle-open">View key details <svg role="presentation" class="us-ct-row__key-details-chevron"><use xlink:href="/images/icons.svg#icon-chevron-right"></use></svg></button>
|
|
42
|
+
// <div class="us-ct-row__key-details-info">
|
|
43
|
+
// <div class="us-ct-row__key-details-col">
|
|
44
|
+
// <strong>Card details</strong>
|
|
45
|
+
// <ul class="us-ct-row__key-details-ul">
|
|
46
|
+
// <li>£20 Amazon gift certificate exclusively through uSwitch (terms apply)</li>
|
|
47
|
+
// <li>0.5% cashback and no foreign transaction fees</li>
|
|
48
|
+
// <li>Credit limit increase possible after four months</li>
|
|
49
|
+
// </ul>
|
|
50
|
+
// </div>
|
|
51
|
+
// <div class="us-ct-row__key-details-col">
|
|
52
|
+
// <strong>To get this card you must at least:</strong>
|
|
53
|
+
// <ul class="us-ct-row__criteria us-ct-row__key-details-ul">
|
|
54
|
+
// <li class="us-ct-row__criteria-li"><svg role="presentation" class="us-icon us-icon--small us-icon--tick us-ct-row__criteria-tick"><use xlink:href="/images/icons.svg#icon-tick"></use></svg>be 18 or older</li>
|
|
55
|
+
// <li class="us-ct-row__criteria-li"><svg role="presentation" class="us-icon us-icon--small us-icon--tick us-ct-row__criteria-tick"><use xlink:href="/images/icons.svg#icon-tick"></use></svg>have a permanent UK address</li>
|
|
56
|
+
// <li class="us-ct-row__criteria-li"><svg role="presentation" class="us-icon us-icon--small us-icon--tick us-ct-row__criteria-tick"><use xlink:href="/images/icons.svg#icon-tick"></use></svg>have a UK current bank or building society account</li>
|
|
57
|
+
// <li class="us-ct-row__criteria-li"><svg role="presentation" class="us-icon us-icon--small us-icon--tick us-ct-row__criteria-tick"><use xlink:href="/images/icons.svg#icon-tick"></use></svg>not be registered bankrupt in past 18 months or have proceedings</li>
|
|
58
|
+
// <li class="us-ct-row__criteria-li"><svg role="presentation" class="us-icon us-icon--small us-icon--tick us-ct-row__criteria-tick"><use xlink:href="/images/icons.svg#icon-tick"></use></svg>have no CCJs (past 12 months)</li>
|
|
59
|
+
// </ul>
|
|
60
|
+
// <p class="us-ct-row__criteria-additional">Additional criteria for acceptance from the lender may apply.</p>
|
|
61
|
+
// </div>
|
|
62
|
+
// </div>
|
|
63
|
+
// </div>
|
|
64
|
+
// </div>
|
|
65
|
+
|
|
66
|
+
.us-ct-row {
|
|
67
|
+
position: relative;
|
|
68
|
+
display: block;
|
|
69
|
+
margin-bottom: 15px;
|
|
70
|
+
color: $c-uswitch-navy;
|
|
71
|
+
background: #fff;
|
|
72
|
+
border: 1px solid $c-grey;
|
|
73
|
+
|
|
74
|
+
&:hover {
|
|
75
|
+
cursor: pointer;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__title {
|
|
79
|
+
display: none;
|
|
80
|
+
width: 100%;
|
|
81
|
+
padding: $gutter-width / 2;
|
|
82
|
+
border-bottom: 1px solid $c-grey;
|
|
83
|
+
|
|
84
|
+
@include respond-to(desktop) {
|
|
85
|
+
display: flex;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.us-usp {
|
|
89
|
+
margin-right: 8px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&__title-text {
|
|
94
|
+
margin: 0 15px 0 0;
|
|
95
|
+
font-weight: bold;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&__product {
|
|
99
|
+
position: relative;
|
|
100
|
+
margin: 15px 0;
|
|
101
|
+
|
|
102
|
+
@include respond-to(desktop) {
|
|
103
|
+
display: flex;
|
|
104
|
+
border-bottom: 1px solid $c-grey;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
&__image {
|
|
109
|
+
max-width: 150px;
|
|
110
|
+
|
|
111
|
+
@include respond-to(desktop) {
|
|
112
|
+
max-width: 100%;
|
|
113
|
+
min-width: 100%;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
&__title--mobile {
|
|
118
|
+
margin-top: 10px;
|
|
119
|
+
font-size: 18px;
|
|
120
|
+
|
|
121
|
+
@include respond-to(tablet) {
|
|
122
|
+
font-size: 24px;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
&__usp--mobile {
|
|
127
|
+
display: flex;
|
|
128
|
+
margin: 15px 0 10px 0;
|
|
129
|
+
|
|
130
|
+
.us-usp {
|
|
131
|
+
margin-right: 8px;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
&__title--mobile,
|
|
136
|
+
&__usp--mobile {
|
|
137
|
+
@include respond-to(desktop) {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&__col {
|
|
143
|
+
padding: 6px $gutter-width / 2;
|
|
144
|
+
|
|
145
|
+
@include respond-to(desktop) {
|
|
146
|
+
border-top: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&--stretch {
|
|
150
|
+
display: flex;
|
|
151
|
+
align-self: stretch;
|
|
152
|
+
justify-content: space-between;
|
|
153
|
+
flex-direction: row-reverse;
|
|
154
|
+
|
|
155
|
+
@include respond-to(desktop) {
|
|
156
|
+
display: block;
|
|
157
|
+
flex: 1 1;
|
|
158
|
+
padding: 15px 0 15px 15px;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&--apply {
|
|
163
|
+
position: absolute;
|
|
164
|
+
top: 0;
|
|
165
|
+
right: 0;
|
|
166
|
+
border-top: 0;
|
|
167
|
+
width: calc(100% - 165px);
|
|
168
|
+
max-width: 200px;
|
|
169
|
+
text-align: center;
|
|
170
|
+
|
|
171
|
+
@include respond-to(tablet) {
|
|
172
|
+
max-width: 250px;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
@include respond-to(desktop) {
|
|
176
|
+
border-right: 0;
|
|
177
|
+
position: relative;
|
|
178
|
+
flex: 0 0 160px;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
&--image {
|
|
183
|
+
border-top: 0;
|
|
184
|
+
|
|
185
|
+
@include respond-to(desktop) {
|
|
186
|
+
flex: 0 0 150px;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
img {
|
|
190
|
+
@include respond-to(desktop) {
|
|
191
|
+
width: 120px;
|
|
192
|
+
height: auto;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
&__more-info {
|
|
199
|
+
display: inline-block;
|
|
200
|
+
margin-top: 10px;
|
|
201
|
+
color: $c-typecyan;
|
|
202
|
+
text-decoration: underline;
|
|
203
|
+
white-space: nowrap;
|
|
204
|
+
cursor: pointer;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&__rep-ex {
|
|
208
|
+
display: block;
|
|
209
|
+
font-size: 16px;
|
|
210
|
+
border-bottom: 1px solid $c-grey;
|
|
211
|
+
padding: 15px;
|
|
212
|
+
font-weight: bold;
|
|
213
|
+
width: 100%;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&__key-details-toggle {
|
|
217
|
+
display: block;
|
|
218
|
+
width: 100%;
|
|
219
|
+
padding: 10px;
|
|
220
|
+
font-size: 16px;
|
|
221
|
+
font-weight: 500;
|
|
222
|
+
text-decoration: underline;
|
|
223
|
+
text-align: center;
|
|
224
|
+
cursor: pointer;
|
|
225
|
+
background: none;
|
|
226
|
+
border: 0;
|
|
227
|
+
outline: 0;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
&__key-details-chevron {
|
|
231
|
+
width: 20px;
|
|
232
|
+
height: 20px;
|
|
233
|
+
padding: 3px;
|
|
234
|
+
margin-left: 4px;
|
|
235
|
+
transform: translateY(5px) rotate(90deg);
|
|
236
|
+
stroke-width: 10px;
|
|
237
|
+
transform-origin: center;
|
|
238
|
+
|
|
239
|
+
.us-ct-row__key-details-toggle-open & {
|
|
240
|
+
transform: translateY(5px) rotate(-90deg);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
&__key-details-info {
|
|
245
|
+
padding: 0 15px;
|
|
246
|
+
margin-top: 20px;
|
|
247
|
+
justify-content: space-evenly;
|
|
248
|
+
|
|
249
|
+
@include respond-to(desktop) {
|
|
250
|
+
display: flex;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&__key-details-col {
|
|
255
|
+
flex: 1 1;
|
|
256
|
+
font-size: 18px;
|
|
257
|
+
margin: 10px 0;
|
|
258
|
+
|
|
259
|
+
@include respond-to(desktop) {
|
|
260
|
+
margin-right: 20px;
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
&__key-details-ul {
|
|
265
|
+
font-size: 16px;
|
|
266
|
+
padding-left: 20px;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&__criteria {
|
|
270
|
+
padding: 0;
|
|
271
|
+
list-style-type: none;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&__criteria-li {
|
|
275
|
+
position: relative;
|
|
276
|
+
padding-left: 30px;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
&__criteria-tick {
|
|
280
|
+
position: absolute;
|
|
281
|
+
top: 4px;
|
|
282
|
+
left: 0;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
&__criteria-additional {
|
|
286
|
+
font-size: 14px;
|
|
287
|
+
color: $c-darker-grey;
|
|
288
|
+
margin-top: 10px;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&__name {
|
|
292
|
+
width: 33%;
|
|
293
|
+
font-size: 16px;
|
|
294
|
+
|
|
295
|
+
@include respond-to(desktop) {
|
|
296
|
+
width: 100%;
|
|
297
|
+
font-size: 24px;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
&__value {
|
|
302
|
+
color: $c-dark-grey;
|
|
303
|
+
font-size: 14px;
|
|
304
|
+
line-height: 1.4em;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
&__eligibility {
|
|
308
|
+
display: flex;
|
|
309
|
+
flex-direction: column;
|
|
310
|
+
width: 100%;
|
|
311
|
+
align-items: center;
|
|
312
|
+
justify-content: center;
|
|
313
|
+
padding: 0 0 10px 0;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
&__eligibility-score {
|
|
317
|
+
font-weight: 700;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
&__eligibility-link {
|
|
321
|
+
white-space: nowrap;
|
|
322
|
+
cursor: pointer;
|
|
323
|
+
color: #008fe9;
|
|
324
|
+
border-bottom: 1px solid #008fe9;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
&__eligibility-progress {
|
|
328
|
+
height: 15px;
|
|
329
|
+
width: 100%;
|
|
330
|
+
background: #e9ebed;
|
|
331
|
+
margin: 0 0 5px 0;
|
|
332
|
+
position: relative;
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
&__eligibility-bar {
|
|
336
|
+
height: inherit;
|
|
337
|
+
position: absolute;
|
|
338
|
+
top: 0;
|
|
339
|
+
left: 0;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// @page Pattern Library/Components
|
|
2
|
+
// @name Compliance banner
|
|
3
|
+
//
|
|
4
|
+
// @description
|
|
5
|
+
// Compliance banner and disclaimer below the comparison table
|
|
6
|
+
//
|
|
7
|
+
// @markup
|
|
8
|
+
// <div class="us-comp-banner">
|
|
9
|
+
// <div class="us-comp-banner__inner">
|
|
10
|
+
// <p class="us-comp-banner__text">uSwitch Limited is a credit broker, not a lender, for consumer credit products.</p>
|
|
11
|
+
// <p class="us-comp-banner__text">uSwitch services are provided at no cost to you, but we may receive a commission from the companies we refer you to.</p>
|
|
12
|
+
// </div>
|
|
13
|
+
// </div>
|
|
14
|
+
|
|
15
|
+
.us-comp-banner {
|
|
16
|
+
width: 100%;
|
|
17
|
+
background-color: $c-white;
|
|
18
|
+
border: 1px solid $c-grey;
|
|
19
|
+
color: $c-uswitch-navy;
|
|
20
|
+
padding: $gutter-width * 2;
|
|
21
|
+
text-align: center;
|
|
22
|
+
font-size: 14px;
|
|
23
|
+
line-height: 20px;
|
|
24
|
+
|
|
25
|
+
&__inner {
|
|
26
|
+
width: 100%;
|
|
27
|
+
max-width: 1200px;
|
|
28
|
+
margin: 0 auto;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__text {
|
|
32
|
+
margin: 0;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&__text:last-child {
|
|
36
|
+
padding: 0;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// @page Pattern Library/Components
|
|
2
|
+
// @name Content group
|
|
3
|
+
//
|
|
4
|
+
// @description
|
|
5
|
+
// The `.us-content-group` is a separator element for content groupings. Ideal to split up landing pages with reasonable padding.
|
|
6
|
+
//
|
|
7
|
+
// @state .mobile-bordered - Adds a smaller border and padding to mobile devices.
|
|
8
|
+
//
|
|
9
|
+
// @markup
|
|
10
|
+
// <div class='us-content-group {$modifiers}'>
|
|
11
|
+
// <p>
|
|
12
|
+
// Swat at dog intrigued by the shower missing until dinner time and run in circles use lap as chair.
|
|
13
|
+
// </p>
|
|
14
|
+
// </div>
|
|
15
|
+
|
|
16
|
+
$content-group-border-color: $c-keylinegrey !default;
|
|
17
|
+
|
|
18
|
+
.us-content-group,
|
|
19
|
+
%us-content-group {
|
|
20
|
+
@include respond-to($default-grid-breakpoint, true) {
|
|
21
|
+
padding-top: 50px;
|
|
22
|
+
padding-bottom: 50px;
|
|
23
|
+
border-bottom: 1px solid $content-group-border-color;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&.mobile-bordered {
|
|
27
|
+
@include respond-to(to-#{$default-grid-breakpoint}) {
|
|
28
|
+
padding-top: 15px;
|
|
29
|
+
padding-bottom: 15px;
|
|
30
|
+
border-bottom: 1px solid $content-group-border-color;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// @page Pattern Library/Components
|
|
2
|
+
// @name CTAs
|
|
3
|
+
//
|
|
4
|
+
// @description
|
|
5
|
+
// Used within guide and news articles, these CTAs (Calls to Action) are intended to not interupt the content but to integrate in more subtle means.
|
|
6
|
+
//
|
|
7
|
+
// @markup
|
|
8
|
+
// <section class="us-cta cta cta-column">
|
|
9
|
+
// <form>
|
|
10
|
+
// <h3 class="us-cta__title">It's your report</h3>
|
|
11
|
+
// <p>Join the campaign to fight for free annual credit reports for everyone</p>
|
|
12
|
+
// <a href="/money/itsmyreport/" class="us-btn us-btn--primary" rel="nofollow">Sign the petition</a>
|
|
13
|
+
// </form>
|
|
14
|
+
// </section>
|
|
15
|
+
|
|
16
|
+
.us-cta {
|
|
17
|
+
padding: $gutter-width / 2;
|
|
18
|
+
margin-bottom: 1.5em;
|
|
19
|
+
background-color: $c-white;
|
|
20
|
+
border: 1px solid $c-grey;
|
|
21
|
+
border-left: 8px solid $c-light-purple;
|
|
22
|
+
|
|
23
|
+
@include respond-to(tablet, true) {
|
|
24
|
+
padding: $gutter-width;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
label {
|
|
28
|
+
display: block;
|
|
29
|
+
|
|
30
|
+
@include respond-to(desktop, true) {
|
|
31
|
+
display: inline-block;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
p {
|
|
36
|
+
font-size: 1.125em;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.us-cta__title.us-cta__title {
|
|
41
|
+
@include heading-font;
|
|
42
|
+
margin-top: 0;
|
|
43
|
+
font-size: 1.5em;
|
|
44
|
+
|
|
45
|
+
@include respond-to(tablet) {
|
|
46
|
+
@include heading(4, $extend: false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@include respond-to(desktop, true) {
|
|
50
|
+
@include heading(3, $extend: false);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.us-cta--side {
|
|
55
|
+
padding: $gutter-width / 2;
|
|
56
|
+
border-bottom: 10px solid $c-navy;
|
|
57
|
+
border-left: 0;
|
|
58
|
+
|
|
59
|
+
@include respond-to(desktop, true) {
|
|
60
|
+
padding: $gutter-width / 1.5;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.us-form-input {
|
|
64
|
+
width: 100%;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@if $html-grid-classes {
|
|
2
|
+
* {
|
|
3
|
+
box-sizing: border-box;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.us-container {
|
|
7
|
+
@extend %container;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.us-grid-row {
|
|
11
|
+
@include us-row;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
@include respond-to($default-grid-breakpoint, false, true) {
|
|
15
|
+
@for $column from 1 through $grid-columns {
|
|
16
|
+
.us-col-#{$column} {
|
|
17
|
+
@include us-col($column);
|
|
18
|
+
min-height: 1px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Placeholders
|
|
25
|
+
|
|
26
|
+
@for $column from 1 through $grid-columns {
|
|
27
|
+
@include _grid-class("us-col-xsm", $column);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include respond-to(small-tablet) {
|
|
31
|
+
@for $column from 1 through $grid-columns {
|
|
32
|
+
@include _grid-class("us-col-sm", $column);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@include respond-to(tablet, false, true) {
|
|
37
|
+
@for $column from 1 through $grid-columns {
|
|
38
|
+
@include _grid-class("us-col-md", $column);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include respond-to(desktop, false, true) {
|
|
43
|
+
@for $column from 1 through $grid-columns {
|
|
44
|
+
@include _grid-class("us-col-lg", $column);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@include respond-to(large-desktop, false, false) {
|
|
49
|
+
@for $column from 1 through $grid-columns {
|
|
50
|
+
@include _grid-class("us-col-xlg", $column);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// @page Pattern Library/Components
|
|
2
|
+
// @name Hero
|
|
3
|
+
//
|
|
4
|
+
// @description
|
|
5
|
+
// The `.us-hero` is used for the upper part of most pages, where the calls to action are usually kept.
|
|
6
|
+
// It is intended to draw attention with `$c-cyan` as it's background color, and should be used across all landing pages.
|
|
7
|
+
//
|
|
8
|
+
// @markup
|
|
9
|
+
// <div class='us-hero'>
|
|
10
|
+
// <div class='us-hero-container'>
|
|
11
|
+
// <h1 class='us-hero-title'>Hero title</h1>
|
|
12
|
+
// <p class='us-hero-description us-standfirst us-mobile--hidden'>Swat at dog intrigued by the shower missing until dinner time.</p>
|
|
13
|
+
// </div>
|
|
14
|
+
// </div>
|
|
15
|
+
// <div class='us-hero us-hero--double'>
|
|
16
|
+
// <div class='us-hero-container'>
|
|
17
|
+
// <div class="us-hero__block">
|
|
18
|
+
// <h1 class='us-hero-title'>Hero title</h1>
|
|
19
|
+
// <p class='us-hero-description us-standfirst us-mobile--hidden'>Swat at dog intrigued by the shower missing until dinner time.</p>
|
|
20
|
+
// </div>
|
|
21
|
+
// <div class="us-hero__block"></div>
|
|
22
|
+
// </div>
|
|
23
|
+
// </div>
|
|
24
|
+
|
|
25
|
+
$hero-background-color: $c-cyan !default;
|
|
26
|
+
$hero-text-color: $c-navy !default;
|
|
27
|
+
$hero-padding-top: 2.5em !default;
|
|
28
|
+
$hero-padding-bottom: $hero-padding-top !default;
|
|
29
|
+
|
|
30
|
+
.us-hero {
|
|
31
|
+
background-color: $hero-background-color;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.us-hero-container {
|
|
35
|
+
@extend %container;
|
|
36
|
+
padding-top: $hero-padding-top / 2;
|
|
37
|
+
padding-bottom: $hero-padding-bottom / 2;
|
|
38
|
+
|
|
39
|
+
@include respond-to(tablet) {
|
|
40
|
+
padding-top: $hero-padding-top;
|
|
41
|
+
padding-bottom: $hero-padding-bottom;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.us-hero-title {
|
|
46
|
+
margin-bottom: 0;
|
|
47
|
+
font-size: 1.25em;
|
|
48
|
+
|
|
49
|
+
@include respond-to(tablet) {
|
|
50
|
+
font-size: 2.25em;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.us-hero-title,
|
|
55
|
+
.us-hero-description {
|
|
56
|
+
color: $hero-text-color;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.us-hero-description {
|
|
60
|
+
@extend %reset-box-model;
|
|
61
|
+
margin-bottom: 0;
|
|
62
|
+
padding-top: 5px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.us-hero--double .us-hero-container {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
justify-content: flex-start;
|
|
69
|
+
|
|
70
|
+
@include respond-to(tablet) {
|
|
71
|
+
flex-direction: row;
|
|
72
|
+
align-items: center;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
@include respond-to(desktop) {
|
|
76
|
+
align-items: flex-start;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.us-hero__block {
|
|
81
|
+
@include respond-to(mobile) {
|
|
82
|
+
&:nth-child(2) {
|
|
83
|
+
display: none;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@include respond-to(tablet) {
|
|
88
|
+
&:nth-child(1) {
|
|
89
|
+
width: 60%;
|
|
90
|
+
max-width: 60%;
|
|
91
|
+
flex-grow: 1;
|
|
92
|
+
margin: 0 100px 0 0;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&:nth-child(2) {
|
|
96
|
+
width: 40%;
|
|
97
|
+
margin: 0 100px 0 0;
|
|
98
|
+
display: block;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@include respond-to(desktop) {
|
|
103
|
+
&:nth-child(1) {
|
|
104
|
+
width: auto;
|
|
105
|
+
max-width: 100%;
|
|
106
|
+
flex-grow: 1;
|
|
107
|
+
margin: 0 100px 0 0;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&:nth-child(2) {
|
|
111
|
+
width: 50%;
|
|
112
|
+
max-width: 50%;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|