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,166 @@
|
|
1
|
+
// ----------
|
2
|
+
// Colors
|
3
|
+
// ----------
|
4
|
+
@import "ustyle/basics/variables/colors";
|
5
|
+
|
6
|
+
// ----------
|
7
|
+
// Forms
|
8
|
+
// ----------
|
9
|
+
@import "ustyle/basics/variables/forms";
|
10
|
+
|
11
|
+
// ----------
|
12
|
+
// Fonts
|
13
|
+
// ----------
|
14
|
+
|
15
|
+
/// The primary heading font stack
|
16
|
+
///
|
17
|
+
/// @group fonts
|
18
|
+
/// @type String
|
19
|
+
|
20
|
+
$heading-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial, sans-serif !default;
|
21
|
+
|
22
|
+
/// The primary heading font stack
|
23
|
+
///
|
24
|
+
/// @deprecated use `$heading-font`
|
25
|
+
/// @group fonts
|
26
|
+
/// @type String
|
27
|
+
|
28
|
+
$heading-font-primary: $heading-font !default;
|
29
|
+
|
30
|
+
/// The secondary heading font stack
|
31
|
+
///
|
32
|
+
/// @deprecated use `$heading-font`
|
33
|
+
/// @group fonts
|
34
|
+
/// @type String
|
35
|
+
|
36
|
+
$heading-font-secondary: $heading-font !default;
|
37
|
+
|
38
|
+
/// The default sans-serif font stack
|
39
|
+
///
|
40
|
+
/// @group fonts
|
41
|
+
/// @type String
|
42
|
+
|
43
|
+
$normal-font: $heading-font;
|
44
|
+
|
45
|
+
// ----------
|
46
|
+
// Icons
|
47
|
+
// ----------
|
48
|
+
|
49
|
+
@import "ustyle/basics/variables/icons";
|
50
|
+
|
51
|
+
// ----------
|
52
|
+
// Typography
|
53
|
+
// ----------
|
54
|
+
|
55
|
+
/// By default we establish normalised type rules for `body`. Certain projects won't need this or would rather
|
56
|
+
/// override, so set this to false if you don't want the default typography rules to kick in
|
57
|
+
///
|
58
|
+
/// @group typography
|
59
|
+
/// @type Bool
|
60
|
+
|
61
|
+
$establish-type-rules: true !default;
|
62
|
+
|
63
|
+
/// The base font size where every other type setting inherits from
|
64
|
+
///
|
65
|
+
/// @group typography
|
66
|
+
/// @type Number (pixels)
|
67
|
+
|
68
|
+
$base-font-size: 16px !default;
|
69
|
+
|
70
|
+
/// The base line height for mapped for the `$base-font-size`
|
71
|
+
///
|
72
|
+
/// @group typography
|
73
|
+
/// @type Number (pixels)
|
74
|
+
|
75
|
+
$base-line-height: 24px !default;
|
76
|
+
|
77
|
+
/// The cap height for the uSwitch fonts (average)
|
78
|
+
///
|
79
|
+
/// @group typography
|
80
|
+
/// @type Number (unitless)
|
81
|
+
|
82
|
+
$base-cap-height: .6 !default;
|
83
|
+
|
84
|
+
/// The line ratio for establishing a baseline - set as the golden ratio
|
85
|
+
///
|
86
|
+
/// @group typography
|
87
|
+
/// @type Number (unitless)
|
88
|
+
|
89
|
+
$base-line-ratio: 1.618 !default;
|
90
|
+
|
91
|
+
$base-scale: 2 !default;
|
92
|
+
$base-unit: $base-font-size * $base-line-ratio / $base-scale !default;
|
93
|
+
|
94
|
+
/// A list containing the 6 heading font sizes used across uStyle
|
95
|
+
///
|
96
|
+
/// @group typography
|
97
|
+
/// @type List
|
98
|
+
|
99
|
+
$heading-font-sizes: 36px, 30px, 24px, 18px, 16px, 16px !default;
|
100
|
+
|
101
|
+
/// A list with the 6 corresponding line heights for headings
|
102
|
+
///
|
103
|
+
/// @group typography
|
104
|
+
/// @type List
|
105
|
+
|
106
|
+
$heading-line-heights: 1.3, 1.3, 1.25, 1.25, .95, .95 !default;
|
107
|
+
|
108
|
+
// ----------
|
109
|
+
// Grid
|
110
|
+
// ----------
|
111
|
+
|
112
|
+
/// If set to false will not give you CSS classes for your grid like `.us-col-6` but rather the placeholder class
|
113
|
+
/// instead
|
114
|
+
///
|
115
|
+
/// @group grid
|
116
|
+
/// @type Bool
|
117
|
+
|
118
|
+
$html-grid-classes: true !default;
|
119
|
+
|
120
|
+
/// Column width for calculating the uSwitch grid
|
121
|
+
///
|
122
|
+
/// @group grid
|
123
|
+
/// @type Number (unit)
|
124
|
+
|
125
|
+
$col-width: 70px !default;
|
126
|
+
|
127
|
+
/// Gutter width for calculating the uSwitch grid
|
128
|
+
///
|
129
|
+
/// @group grid
|
130
|
+
/// @type Number (unit)
|
131
|
+
|
132
|
+
$gutter-width: 30px !default;
|
133
|
+
|
134
|
+
/// Number of columns for large screens
|
135
|
+
///
|
136
|
+
/// @group grid
|
137
|
+
/// @type Number (unitless)
|
138
|
+
|
139
|
+
$grid-columns: 12 !default;
|
140
|
+
|
141
|
+
/// Number of columns for desktop screens
|
142
|
+
///
|
143
|
+
/// @group grid
|
144
|
+
/// @type Number (unitless)
|
145
|
+
|
146
|
+
$grid-columns-desktop: 10 !default;
|
147
|
+
|
148
|
+
/// Number of columns for tablet screens and below
|
149
|
+
///
|
150
|
+
/// @group grid
|
151
|
+
/// @type Number (unitless)
|
152
|
+
|
153
|
+
$grid-columns-tablet: 8 !default;
|
154
|
+
|
155
|
+
/// The device breakpoint that all ustyle elements respond to
|
156
|
+
///
|
157
|
+
/// @group grid
|
158
|
+
/// @type String
|
159
|
+
|
160
|
+
$default-grid-breakpoint: tablet !default;
|
161
|
+
|
162
|
+
// Containers
|
163
|
+
|
164
|
+
$large-container-width: $grid-columns * $col-width + $grid-columns * $gutter-width;
|
165
|
+
$desktop-container-width: $grid-columns-desktop * $col-width + $grid-columns-desktop * $gutter-width;
|
166
|
+
$tablet-container-width: $grid-columns-tablet * $col-width + $grid-columns-tablet * $gutter-width;
|
@@ -0,0 +1,94 @@
|
|
1
|
+
// @page Brand/Colours
|
2
|
+
// @name Primary palette
|
3
|
+
// @partial colour
|
4
|
+
//
|
5
|
+
// @description Our colours (with a "u", we're a UK company) are divided into primary, secondary and tertiary palettes. The primary and secondary are core to all our design work and supported by the tertiary which we use in infographics, graphs and the like. CMYK equivalents are available for print work.
|
6
|
+
// #### Best practices
|
7
|
+
// * Do not rely only on colour to provide information. A green circle means little, a green circle with "success" in the middle gives actual information.
|
8
|
+
// * Make sure your text is [sufficiently contrasted](http://a11yproject.com/posts/what-is-color-contrast/) against its background
|
9
|
+
//
|
10
|
+
// @variable c-uswitch-navy
|
11
|
+
// @variable c-darker-grey
|
12
|
+
// @variable c-dark-grey
|
13
|
+
// @variable c-grey
|
14
|
+
// @variable c-light-grey
|
15
|
+
// @variable c-super-light-grey
|
16
|
+
// @variable c-white
|
17
|
+
// @variable c-error-red
|
18
|
+
// @variable c-success-green
|
19
|
+
|
20
|
+
$c-uswitch-navy: #141424;
|
21
|
+
$c-darker-grey: #53535e;
|
22
|
+
$c-dark-grey: #7c7c84;
|
23
|
+
$c-grey: #a7a7ac;
|
24
|
+
$c-light-grey: #c6c6c8;
|
25
|
+
$c-lighter-grey: #dadadb;
|
26
|
+
$c-super-light-grey: #e2e2e2;
|
27
|
+
$c-white: #fff;
|
28
|
+
$c-error-red: #d64226;
|
29
|
+
$c-success-green: #2aaa5b;
|
30
|
+
|
31
|
+
// @page Brand/Colours
|
32
|
+
// @name Secondary palette
|
33
|
+
// @partial colour
|
34
|
+
// @variable c-light-yellow
|
35
|
+
// @variable c-light-orange
|
36
|
+
// @variable c-light-red
|
37
|
+
// @variable c-light-pink
|
38
|
+
// @variable c-light-purple
|
39
|
+
// @variable c-light-blue
|
40
|
+
// @variable c-light-green
|
41
|
+
// @variable c-dark-yellow
|
42
|
+
// @variable c-dark-orange
|
43
|
+
// @variable c-dark-red
|
44
|
+
// @variable c-dark-pink
|
45
|
+
// @variable c-dark-purple
|
46
|
+
// @variable c-dark-blue
|
47
|
+
// @variable c-dark-green
|
48
|
+
|
49
|
+
$c-light-yellow: #f7f146;
|
50
|
+
$c-light-orange: #f7c95a;
|
51
|
+
$c-light-red: #ff8a83;
|
52
|
+
$c-light-pink: #ff99e8;
|
53
|
+
$c-light-purple: #acb0ff;
|
54
|
+
$c-light-blue: #7edce9;
|
55
|
+
$c-light-green: #b6e554;
|
56
|
+
|
57
|
+
$c-dark-yellow: #ffd555;
|
58
|
+
$c-dark-orange: #fa5;
|
59
|
+
$c-dark-red: #fd7687;
|
60
|
+
$c-dark-pink: #ff75d4;
|
61
|
+
$c-dark-purple: #ac96de;
|
62
|
+
$c-dark-blue: #84a6ff;
|
63
|
+
$c-dark-green: #82ca50;
|
64
|
+
|
65
|
+
|
66
|
+
// Old brand - to remove
|
67
|
+
|
68
|
+
$c-navy: $c-uswitch-navy;
|
69
|
+
$c-blue: $c-uswitch-navy;
|
70
|
+
$c-typecyan: $c-uswitch-navy;
|
71
|
+
$c-cyan: $c-super-light-grey;
|
72
|
+
$c-typegrey: $c-uswitch-navy;
|
73
|
+
$c-typegrey-2: #65717b;
|
74
|
+
$c-bggrey: #f4f5f6;
|
75
|
+
$c-red: #d64226;
|
76
|
+
$c-green: #2aaa5b;
|
77
|
+
|
78
|
+
$c-inputgrey: #84909a;
|
79
|
+
$c-bordergrey: #b0b8bf;
|
80
|
+
$c-keylinegrey: #e9ebed;
|
81
|
+
$c-blue-light: #0c72bf;
|
82
|
+
$c-typecyan-light: #4cc0f4;
|
83
|
+
$c-cyan-light: #e4f8ff;
|
84
|
+
$c-yellow: #ffd32f;
|
85
|
+
$c-orange: #f27930;
|
86
|
+
$c-purple: #9c55b8;
|
87
|
+
|
88
|
+
$c-red-dark: #b53820;
|
89
|
+
$c-green-dark: #23904d;
|
90
|
+
$c-red-lightest: #eeb3a8;
|
91
|
+
$c-green-lightest: #adebc5;
|
92
|
+
$c-yellow-lightest: #ffedab;
|
93
|
+
$c-orange-lightest: #f9c9ac;
|
94
|
+
$c-purple-lightest: #d7bbe2;
|
@@ -0,0 +1,98 @@
|
|
1
|
+
////
|
2
|
+
//// @group Forms
|
3
|
+
////
|
4
|
+
|
5
|
+
/// The base height for all our form elements
|
6
|
+
///
|
7
|
+
/// @type Number (pixels)
|
8
|
+
|
9
|
+
$form-element-base-height: 37px !default;
|
10
|
+
|
11
|
+
/// Padding that is shared across form elements
|
12
|
+
///
|
13
|
+
/// @type Number (em)
|
14
|
+
|
15
|
+
$form-element-base-padding: .35em .5em !default;
|
16
|
+
|
17
|
+
/// The base height for any large elements
|
18
|
+
///
|
19
|
+
/// @type Number (pixels)
|
20
|
+
|
21
|
+
$form-element-base-height--large: 48px !default;
|
22
|
+
|
23
|
+
/// Padding that is shared across large form elements
|
24
|
+
///
|
25
|
+
/// @type Number (em)
|
26
|
+
|
27
|
+
$form-element-base-padding--large: .55em .5em !default;
|
28
|
+
|
29
|
+
/// Form sizing map for inputs
|
30
|
+
///
|
31
|
+
/// @type List
|
32
|
+
|
33
|
+
$form-element-sizes: (
|
34
|
+
(base, $form-element-base-height, $form-element-base-padding, 1em),
|
35
|
+
(large, $form-element-base-height--large, $form-element-base-padding--large, 1.2em)
|
36
|
+
) !default;
|
37
|
+
|
38
|
+
/// Text color for our form elements
|
39
|
+
///
|
40
|
+
/// @type String (hex)
|
41
|
+
|
42
|
+
$c-form-element-text: $c-uswitch-navy !default;
|
43
|
+
|
44
|
+
/// Background color for our form elements
|
45
|
+
///
|
46
|
+
/// @type String (hex)
|
47
|
+
|
48
|
+
$c-form-element-background: $c-white !default;
|
49
|
+
|
50
|
+
/// Default border color for all form elements
|
51
|
+
///
|
52
|
+
/// @type Variable | String (pixels)
|
53
|
+
|
54
|
+
$c-form-element-border: $c-grey !default;
|
55
|
+
|
56
|
+
/// Default border active colour for all form elements
|
57
|
+
///
|
58
|
+
/// @type Variable | String (pixels)
|
59
|
+
|
60
|
+
$c-form-element-border-hover: $c-dark-grey !default;
|
61
|
+
|
62
|
+
/// Hover border colour for form elements
|
63
|
+
///
|
64
|
+
/// @type String (pixels)
|
65
|
+
|
66
|
+
$c-form-element-border-active: $c-uswitch-navy !default;
|
67
|
+
|
68
|
+
/// Active border colour for form elements
|
69
|
+
///
|
70
|
+
/// @type String (pixels)
|
71
|
+
|
72
|
+
$c-form-element-disabled-fg: $c-grey !default;
|
73
|
+
$c-input-disabled-foreground: $c-form-element-disabled-fg;
|
74
|
+
|
75
|
+
/// Disabled background colour for form elements
|
76
|
+
///
|
77
|
+
/// @type Variable | String (pixels)
|
78
|
+
|
79
|
+
$c-form-element-disabled-bg: $c-super-light-grey !default;
|
80
|
+
$c-input-disabled-background: $c-form-element-disabled-fg;
|
81
|
+
|
82
|
+
/// Disabled border colour for form elements
|
83
|
+
///
|
84
|
+
/// @type Variable | String (pixels)
|
85
|
+
|
86
|
+
$c-form-element-disabled-border: $c-light-grey !default;
|
87
|
+
|
88
|
+
/// Error color for form elements
|
89
|
+
///
|
90
|
+
/// @type Variable | String (pixels)
|
91
|
+
|
92
|
+
$c-form-error: $c-error-red !default;
|
93
|
+
|
94
|
+
/// Success color for form elements
|
95
|
+
///
|
96
|
+
/// @type Variable | String (pixels)
|
97
|
+
|
98
|
+
$c-form-success: $c-success-green !default;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/// List of the supported SVG sprite colours
|
2
|
+
///
|
3
|
+
/// @group Icons
|
4
|
+
/// @type List
|
5
|
+
|
6
|
+
$icon-colors: "white", "typegrey", "inputgrey", "typecyan", "custom" !default;
|
7
|
+
|
8
|
+
/// Legacy support for icon coloring on SVGs
|
9
|
+
///
|
10
|
+
/// @group Icons
|
11
|
+
/// @type List
|
12
|
+
$icon-colors--svg: (
|
13
|
+
("white", #fff),
|
14
|
+
("typegrey", $c-typegrey),
|
15
|
+
("inputgrey", $c-inputgrey),
|
16
|
+
("typecyan", $c-typecyan),
|
17
|
+
("custom", $c-navy)
|
18
|
+
) !default;
|
19
|
+
|
20
|
+
$icon-colors--svg--custom: (
|
21
|
+
("uswitch", $c-blue),
|
22
|
+
("cross", $c-red),
|
23
|
+
("tick", $c-green),
|
24
|
+
("facebook", #3c5a99),
|
25
|
+
("google", #dc4e41),
|
26
|
+
("renewable", $c-green),
|
27
|
+
("star-half", $c-yellow),
|
28
|
+
("starline-half", $c-yellow),
|
29
|
+
("star", $c-yellow),
|
30
|
+
("starline", $c-yellow),
|
31
|
+
("twitter", #00aced)
|
32
|
+
) !default;
|
33
|
+
|
34
|
+
/// List of the icon sizes and their respective names
|
35
|
+
///
|
36
|
+
/// @group Icons
|
37
|
+
/// @type List
|
38
|
+
|
39
|
+
$icon-sizes: (
|
40
|
+
(small, 16px, 16px),
|
41
|
+
(medium, 32px, 32px),
|
42
|
+
(large, 64px, 64px)
|
43
|
+
) !default;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
.us-backdrop {
|
2
|
+
position: fixed;
|
3
|
+
top: 0;
|
4
|
+
right: 0;
|
5
|
+
bottom: 0;
|
6
|
+
left: 0;
|
7
|
+
z-index: 1002;
|
8
|
+
background: rgba($c-blue, .5);
|
9
|
+
opacity: 0;
|
10
|
+
visibility: hidden;
|
11
|
+
}
|
12
|
+
|
13
|
+
.us-backdrop--animated {
|
14
|
+
transition: opacity 0.5s;
|
15
|
+
}
|
16
|
+
|
17
|
+
.us-backdrop--visible {
|
18
|
+
visibility: visible;
|
19
|
+
}
|
20
|
+
|
21
|
+
.us-backdrop--active {
|
22
|
+
opacity: 1;
|
23
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Breadcrumbs
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Breadcrumbs are used to provide signposting of a users location and to enable quick navigation around the site. They are only to be used as a secondary means of navigation however. Pages should also be navigable through other means.
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <ul class="us-crumbs">
|
9
|
+
// <li class="us-crumbs__item"><a href="/" class="us-crumbs__link">uSwitch.com</a></li>
|
10
|
+
// <li class="us-crumbs__item"><a class="us-crumbs__link" href="http://www.uswitch.com/credit-reports/">Credit report</a></li>
|
11
|
+
// <li class="us-crumbs__item"><a class="us-crumbs__link" href="http://www.uswitch.com/credit-reports/guides/">Credit reports guides</a></li>
|
12
|
+
// <li class="us-crumbs__item">Statutory credit reports</li>
|
13
|
+
// </ul>
|
14
|
+
|
15
|
+
.us-crumbs {
|
16
|
+
@extend %reset-box-model;
|
17
|
+
@extend %clearfix;
|
18
|
+
@extend %small-font;
|
19
|
+
margin-top: 1em;
|
20
|
+
margin-bottom: 1em;
|
21
|
+
list-style: none;
|
22
|
+
}
|
23
|
+
|
24
|
+
.us-crumbs__item {
|
25
|
+
@extend %float-left;
|
26
|
+
margin-bottom: 0;
|
27
|
+
color: $c-darker-grey;
|
28
|
+
|
29
|
+
&:before {
|
30
|
+
display: inline-block;
|
31
|
+
margin: 0 .35em;
|
32
|
+
font-size: 1.4em;
|
33
|
+
font-weight: normal;
|
34
|
+
content: "\203A";
|
35
|
+
vertical-align: text-top;
|
36
|
+
}
|
37
|
+
|
38
|
+
&:first-child:before {
|
39
|
+
width: 0;
|
40
|
+
margin: 0;
|
41
|
+
color: transparent;
|
42
|
+
}
|
43
|
+
|
44
|
+
&:last-child {
|
45
|
+
font-weight: bold;
|
46
|
+
color: $c-uswitch-navy;
|
47
|
+
|
48
|
+
&:before {
|
49
|
+
color: $c-darker-grey;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
|
54
|
+
.us-crumbs__link {
|
55
|
+
color: $c-darker-grey;
|
56
|
+
text-decoration: none;
|
57
|
+
|
58
|
+
&:visited {
|
59
|
+
color: $c-darker-grey;
|
60
|
+
}
|
61
|
+
|
62
|
+
&:hover {
|
63
|
+
color: $c-darker-grey;
|
64
|
+
text-decoration: underline;
|
65
|
+
}
|
66
|
+
}
|
@@ -0,0 +1,187 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Buttons
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Our buttons used across the site. The states give different use cases. Both `<a>` and `<button>` tags are supported. Please use `role='button'` when using an `<a>` tag.
|
6
|
+
//
|
7
|
+
// @state .us-btn--primary - Used as a save/update button.
|
8
|
+
// @state .us-btn--action - Navigational button.
|
9
|
+
// @state .us-btn--secondary - Secondary.
|
10
|
+
// @state .us-btn--hero - Navy outline used for buttons on hero banners.
|
11
|
+
// @state .us-btn--reversed - White outline for dark backgrounds.
|
12
|
+
// @state .us-btn--large - Larger button for heros.
|
13
|
+
// @state .us-btn--small - Smaller button for mobile tables.
|
14
|
+
// @state .us-btn--blocked - Full width button.
|
15
|
+
// @state .us-btn--link - link style button.
|
16
|
+
// @state .us-btn--stronger - Emphasis button.
|
17
|
+
// @state .us-btn--disabled - Disabled styling (can also be styled with :disabled).
|
18
|
+
// @state .us-btn--secondary--disabled - Disabled styling (can also be styled with :disabled).
|
19
|
+
//
|
20
|
+
// @markup
|
21
|
+
// <a href="#" class="us-btn {$modifiers}" role="button">Link Button</a>
|
22
|
+
// <button class="us-btn {$modifiers}">Button Element</button>
|
23
|
+
|
24
|
+
$button-bg--base : $c-keylinegrey !default;
|
25
|
+
$button-bg--base-hover: $c-typecyan !default;
|
26
|
+
$button-bg--primary : $c-uswitch-navy !default;
|
27
|
+
$button-bg--secondary : transparent !default;
|
28
|
+
$button-bg--action : $c-white !default;
|
29
|
+
$button-bg--hero : $c-uswitch-navy !default;
|
30
|
+
$button-bg--reversed : transparent !default;
|
31
|
+
|
32
|
+
$button-text--light: $c-white !default;
|
33
|
+
$button-text--dark: $c-uswitch-navy !default;
|
34
|
+
|
35
|
+
$button-styles: (
|
36
|
+
("primary", $button-bg--primary, $button-text--light),
|
37
|
+
("action", $button-bg--action, $c-uswitch-navy)
|
38
|
+
) !default;
|
39
|
+
|
40
|
+
$outline-button-styles: (
|
41
|
+
("secondary", $button-bg--secondary, $button-text--dark),
|
42
|
+
("hero", $button-bg--secondary, $button-text--dark),
|
43
|
+
("reversed", $button-bg--reversed, $button-text--light)
|
44
|
+
) !default;
|
45
|
+
|
46
|
+
@mixin button-style($name, $outlined: false) {
|
47
|
+
@if $outlined {
|
48
|
+
&,
|
49
|
+
&:visited {
|
50
|
+
color: nth($name, 3);
|
51
|
+
background-color: nth($name, 2);
|
52
|
+
border: 1px solid nth($name, 3);
|
53
|
+
}
|
54
|
+
|
55
|
+
&--disabled,
|
56
|
+
&--disabled:visited {
|
57
|
+
pointer-events: none;
|
58
|
+
border: 1px solid $c-grey;
|
59
|
+
background-color: transparent;
|
60
|
+
color: $c-grey;
|
61
|
+
}
|
62
|
+
} @else {
|
63
|
+
&,
|
64
|
+
&:visited {
|
65
|
+
color: nth($name, 3);
|
66
|
+
background-color: nth($name, 2);
|
67
|
+
border-color: shade(nth($name, 2), 20%);
|
68
|
+
}
|
69
|
+
|
70
|
+
&--disabled,
|
71
|
+
&--disabled:visited {
|
72
|
+
pointer-events: none;
|
73
|
+
background-color: $c-lighter-grey;
|
74
|
+
color: $c-grey;
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
&:hover,
|
79
|
+
&:focus {
|
80
|
+
@if nth($name, 2) == transparent {
|
81
|
+
background-color: transparentize($c-grey, .9);
|
82
|
+
} @else {
|
83
|
+
background-color: mix(nth($name, 2), $c-grey, 90%);
|
84
|
+
}
|
85
|
+
|
86
|
+
@if $outlined {
|
87
|
+
color: nth($name, 3);
|
88
|
+
border-color: nth($name, 3);
|
89
|
+
} @else {
|
90
|
+
color: nth($name, 3);
|
91
|
+
border-color: shade(nth($name, 2), 20%);
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
|
96
|
+
%btn,
|
97
|
+
.us-btn {
|
98
|
+
@extend %reset-box-model;
|
99
|
+
@extend %input-background--normalise;
|
100
|
+
@include normal-font;
|
101
|
+
display: inline-block;
|
102
|
+
padding: .63em 1.25em;
|
103
|
+
font-size: 1em;
|
104
|
+
font-weight: bold;
|
105
|
+
line-height: 1em;
|
106
|
+
color: $c-typegrey;
|
107
|
+
text-align: center;
|
108
|
+
text-decoration: none;
|
109
|
+
white-space: nowrap;
|
110
|
+
vertical-align: middle;
|
111
|
+
cursor: pointer;
|
112
|
+
background-color: $button-bg--base;
|
113
|
+
border: 0;
|
114
|
+
border-radius: 0;
|
115
|
+
transition: none;
|
116
|
+
|
117
|
+
&:visited {
|
118
|
+
color: $c-typegrey;
|
119
|
+
}
|
120
|
+
|
121
|
+
&:hover,
|
122
|
+
&:focus {
|
123
|
+
opacity: .9;
|
124
|
+
color: $button-bg--base-hover;
|
125
|
+
background-color: tint($button-bg--base-hover, 90%);
|
126
|
+
border-color: $button-bg--base-hover;
|
127
|
+
}
|
128
|
+
|
129
|
+
&:active {
|
130
|
+
color: #fff;
|
131
|
+
background-color: $button-bg--base-hover;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
|
135
|
+
.us-btn--stronger {
|
136
|
+
@include heading-font;
|
137
|
+
}
|
138
|
+
|
139
|
+
.us-btn--large {
|
140
|
+
font-size: 1.2em;
|
141
|
+
}
|
142
|
+
|
143
|
+
.us-btn--small {
|
144
|
+
padding: .4em .65em;
|
145
|
+
}
|
146
|
+
|
147
|
+
.us-btn--blocked {
|
148
|
+
display: block;
|
149
|
+
width: 100%;
|
150
|
+
padding-right: 0;
|
151
|
+
padding-left: 0;
|
152
|
+
}
|
153
|
+
|
154
|
+
.us-btn--link {
|
155
|
+
padding: 0;
|
156
|
+
line-height: $base-line-ratio;
|
157
|
+
color: $c-blue;
|
158
|
+
background-color: transparent;
|
159
|
+
border: 0;
|
160
|
+
|
161
|
+
&:hover {
|
162
|
+
color: $c-navy;
|
163
|
+
text-decoration: underline;
|
164
|
+
background-color: transparent;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
.us-btn--disabled,
|
169
|
+
.us-btn:disabled,
|
170
|
+
.us-btn--disabled:visited {
|
171
|
+
pointer-events: none;
|
172
|
+
background-color: $c-lighter-grey;
|
173
|
+
color: $c-grey;
|
174
|
+
}
|
175
|
+
|
176
|
+
@each $button-style in $button-styles {
|
177
|
+
%btn--#{nth($button-style, 1)},
|
178
|
+
.us-btn--#{nth($button-style, 1)} {
|
179
|
+
@include button-style($button-style);
|
180
|
+
}
|
181
|
+
}
|
182
|
+
@each $button-style in $outline-button-styles {
|
183
|
+
%btn--#{nth($button-style, 1)},
|
184
|
+
.us-btn--#{nth($button-style, 1)} {
|
185
|
+
@include button-style($button-style, true);
|
186
|
+
}
|
187
|
+
}
|