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,94 @@
|
|
1
|
+
.sidebar {
|
2
|
+
z-index: 10;
|
3
|
+
display: none;
|
4
|
+
overflow-x: hidden;
|
5
|
+
overflow-y: auto;
|
6
|
+
background-color: $sidebar-bg-color;
|
7
|
+
|
8
|
+
@include respond-to($sidebar-breakpoint, true) {
|
9
|
+
position: fixed;
|
10
|
+
top: $header-height;
|
11
|
+
bottom: 0;
|
12
|
+
left: 0;
|
13
|
+
display: block;
|
14
|
+
width: $sidebar-width;
|
15
|
+
min-height: 1px;
|
16
|
+
padding-bottom: $gutter-width;
|
17
|
+
overflow-x: hidden;
|
18
|
+
overflow-y: auto;
|
19
|
+
border-right: 1px solid $c-bordergrey;
|
20
|
+
|
21
|
+
&--push {
|
22
|
+
padding-left: $sidebar-width + $gutter-width/2;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
&--active {
|
27
|
+
display: block;
|
28
|
+
}
|
29
|
+
|
30
|
+
&__nav-link {
|
31
|
+
@include link-colors($c-navy, $c-typecyan, $c-navy, $c-navy);
|
32
|
+
position: relative;
|
33
|
+
display: block;
|
34
|
+
padding: 10px $gutter-width;
|
35
|
+
|
36
|
+
&:after {
|
37
|
+
float: right;
|
38
|
+
font-size: 8px;
|
39
|
+
color: $c-bordergrey;
|
40
|
+
content: "\25BA";
|
41
|
+
}
|
42
|
+
|
43
|
+
&:hover {
|
44
|
+
background-color: lighten($sidebar-bg-color, 5%);
|
45
|
+
}
|
46
|
+
|
47
|
+
&.active {
|
48
|
+
color: $c-blue-light;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
&__nav-link--sub {
|
53
|
+
padding: 4px $gutter-width 4px $gutter-width*1.5;
|
54
|
+
|
55
|
+
@include respond-to(tablet, true) {
|
56
|
+
font-size: .875em;
|
57
|
+
}
|
58
|
+
|
59
|
+
&:after {
|
60
|
+
display: none;
|
61
|
+
}
|
62
|
+
|
63
|
+
&.active:before {
|
64
|
+
position: absolute;
|
65
|
+
top: 0;
|
66
|
+
bottom: 0;
|
67
|
+
left: 0;
|
68
|
+
width: 5px;
|
69
|
+
background-color: $c-navy;
|
70
|
+
content: "";
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
&__nav {
|
75
|
+
padding-top: 4px;
|
76
|
+
padding-bottom: 4px;
|
77
|
+
|
78
|
+
&.active {
|
79
|
+
background-color: lighten($sidebar-bg-color, 3%);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
&__sub-nav {
|
84
|
+
display: none;
|
85
|
+
|
86
|
+
.active & {
|
87
|
+
display: block;
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.sidebar__nav.active .sidebar__nav-link:after {
|
93
|
+
content: "\25BC";
|
94
|
+
}
|
@@ -0,0 +1,138 @@
|
|
1
|
+
$styleguide-block-padding: $gutter-width*2;
|
2
|
+
$styleguide-separator-color: $c-bggrey;
|
3
|
+
$styleguide-block-border-color: $c-bordergrey;
|
4
|
+
|
5
|
+
.styleguide {
|
6
|
+
&__hero {
|
7
|
+
padding: 2em $gutter-width / 2;
|
8
|
+
margin-right: - $gutter-width / 2;
|
9
|
+
margin-left: - $gutter-width/2;
|
10
|
+
color: #fff;
|
11
|
+
background-color: $c-navy;
|
12
|
+
|
13
|
+
@include respond-to($sidebar-breakpoint, true) {
|
14
|
+
padding: 2em $gutter-width/2;
|
15
|
+
}
|
16
|
+
|
17
|
+
@include respond-to(desktop, true) {
|
18
|
+
padding-left: $gutter-width;
|
19
|
+
margin-left: - $gutter-width/2;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
&__hero-heading {
|
24
|
+
margin-bottom: 0;
|
25
|
+
}
|
26
|
+
|
27
|
+
&__block {
|
28
|
+
@extend %clearfix;
|
29
|
+
position: relative;
|
30
|
+
padding-bottom: $styleguide-block-padding / 1.5;
|
31
|
+
border-bottom: 1px solid $styleguide-separator-color;
|
32
|
+
|
33
|
+
+ .styleguide__block {
|
34
|
+
padding-top: $styleguide-block-padding / 2;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
&__header {
|
39
|
+
padding-top: $styleguide-block-padding/2;
|
40
|
+
padding-bottom: $styleguide-block-padding/2;
|
41
|
+
|
42
|
+
@include respond-to(tablet, true) {
|
43
|
+
padding-top: $styleguide-block-padding/2;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
&__title {
|
48
|
+
margin-top: 1em;
|
49
|
+
margin-bottom: 1em;
|
50
|
+
color: $c-navy;
|
51
|
+
}
|
52
|
+
|
53
|
+
&__description {
|
54
|
+
color: $c-typegrey-2;
|
55
|
+
|
56
|
+
li p {
|
57
|
+
margin: 0;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
&__content {
|
62
|
+
padding-top: $gutter-width;
|
63
|
+
|
64
|
+
@include respond-to(desktop, true) {
|
65
|
+
&--w-sidebar {
|
66
|
+
border-right: 1px solid $c-keylinegrey;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
&__file-link {
|
72
|
+
@include link-colors($c-typegrey, $c-typecyan);
|
73
|
+
display: inline-block;
|
74
|
+
padding: 5px 8px;
|
75
|
+
font-size: 14px;
|
76
|
+
font-weight: 400;
|
77
|
+
line-height: 1.25;
|
78
|
+
text-decoration: none;
|
79
|
+
vertical-align: middle;
|
80
|
+
background-color: $c-bggrey;
|
81
|
+
border-radius: 2px;
|
82
|
+
}
|
83
|
+
|
84
|
+
&__block-title {
|
85
|
+
position: relative;
|
86
|
+
margin-bottom: $gutter-width/2;
|
87
|
+
color: $c-navy;
|
88
|
+
}
|
89
|
+
|
90
|
+
&__block-small-title {
|
91
|
+
padding: $gutter-width/2 $gutter-width/2 0 $gutter-width/2;
|
92
|
+
margin-bottom: 0;
|
93
|
+
font-size: 1.125em;
|
94
|
+
color: $c-typegrey-2;
|
95
|
+
text-transform: uppercase;
|
96
|
+
}
|
97
|
+
|
98
|
+
&__block-examples {
|
99
|
+
border: 1px solid $styleguide-block-border-color;
|
100
|
+
border-radius: 3px;
|
101
|
+
}
|
102
|
+
|
103
|
+
&__block-example {
|
104
|
+
@extend %clearfix;
|
105
|
+
position: relative;
|
106
|
+
padding: $gutter-width $gutter-width/2;
|
107
|
+
|
108
|
+
+ &__block-example {
|
109
|
+
border-top: 1px dashed darken($styleguide-separator-color, 10%);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
&__block-example-class {
|
114
|
+
position: absolute;
|
115
|
+
bottom: 0;
|
116
|
+
left: 0;
|
117
|
+
padding: 0 8px;
|
118
|
+
font-size: .85em;
|
119
|
+
color: $c-typegrey;
|
120
|
+
background-color: $c-bggrey;
|
121
|
+
}
|
122
|
+
|
123
|
+
&__block-states {
|
124
|
+
padding-left: 0;
|
125
|
+
margin-top: 0;
|
126
|
+
color: lighten($c-typegrey, 10%);
|
127
|
+
list-style: none;
|
128
|
+
|
129
|
+
li:before {
|
130
|
+
display: inline-block;
|
131
|
+
margin: 0 .35em;
|
132
|
+
font-size: 1.4em;
|
133
|
+
font-weight: normal;
|
134
|
+
color: $c-bordergrey;
|
135
|
+
content: "\203A";
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
$container-width: 90%;
|
2
|
+
|
3
|
+
html {
|
4
|
+
@include respond-to(mobile) {
|
5
|
+
font-size: $base-font-size * .875;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
.container {
|
10
|
+
@extend %clearfix;
|
11
|
+
position: relative;
|
12
|
+
padding-right: $gutter-width / 2;
|
13
|
+
padding-left: $gutter-width / 2;
|
14
|
+
}
|
15
|
+
|
16
|
+
.content {
|
17
|
+
padding-top: $gutter-width;
|
18
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
pre {
|
2
|
+
display: block;
|
3
|
+
padding: 1.5em;
|
4
|
+
margin-top: 0;
|
5
|
+
margin-bottom: 0;
|
6
|
+
font-family: Consolas,"Liberation Mono", Menlo, Courier, monospace;
|
7
|
+
font-size: .9em;
|
8
|
+
line-height: 1.4;
|
9
|
+
color: $c-typegrey;
|
10
|
+
background: #fafafa;
|
11
|
+
border-top: 1px solid $c-bordergrey;
|
12
|
+
|
13
|
+
code {
|
14
|
+
display: inline;
|
15
|
+
margin: 0;
|
16
|
+
padding: 0;
|
17
|
+
max-width: initial;
|
18
|
+
overflow: initial;
|
19
|
+
line-height: inherit;
|
20
|
+
color: $c-typegrey;
|
21
|
+
word-wrap: normal;
|
22
|
+
background: none;
|
23
|
+
border: 0;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
.hljs-comment,
|
28
|
+
.hljs-template_comment,
|
29
|
+
.diff .hljs-header,
|
30
|
+
.hljs-javadoc {
|
31
|
+
color: #999988;
|
32
|
+
font-style: italic;
|
33
|
+
}
|
34
|
+
|
35
|
+
.hljs-keyword,
|
36
|
+
.css .rule .hljs-keyword,
|
37
|
+
.hljs-winutils,
|
38
|
+
.javascript .hljs-title,
|
39
|
+
.nginx .hljs-title,
|
40
|
+
.hljs-subst,
|
41
|
+
.hljs-request,
|
42
|
+
.hljs-status {
|
43
|
+
color: #333333;
|
44
|
+
font-weight: bold;
|
45
|
+
}
|
46
|
+
|
47
|
+
.hljs-number,
|
48
|
+
.hljs-hexcolor,
|
49
|
+
.ruby .hljs-constant {
|
50
|
+
color: #009999;
|
51
|
+
}
|
52
|
+
|
53
|
+
.hljs-string,
|
54
|
+
.hljs-tag .hljs-value,
|
55
|
+
.hljs-phpdoc,
|
56
|
+
.tex .hljs-formula {
|
57
|
+
color: deeppink;
|
58
|
+
}
|
59
|
+
|
60
|
+
.hljs-title,
|
61
|
+
.hljs-id,
|
62
|
+
.coffeescript .hljs-params,
|
63
|
+
.scss .hljs-preprocessor {
|
64
|
+
color: #990000;
|
65
|
+
font-weight: bold;
|
66
|
+
}
|
67
|
+
|
68
|
+
.javascript .hljs-title,
|
69
|
+
.lisp .hljs-title,
|
70
|
+
.clojure .hljs-title,
|
71
|
+
.hljs-subst {
|
72
|
+
font-weight: normal;
|
73
|
+
}
|
74
|
+
|
75
|
+
.hljs-class .hljs-title,
|
76
|
+
.haskell .hljs-type,
|
77
|
+
.vhdl .hljs-literal,
|
78
|
+
.tex .hljs-command {
|
79
|
+
color: #445588;
|
80
|
+
font-weight: bold;
|
81
|
+
}
|
82
|
+
|
83
|
+
.hljs-tag,
|
84
|
+
.hljs-tag .hljs-title,
|
85
|
+
.hljs-rules .hljs-property,
|
86
|
+
.django .hljs-tag .hljs-keyword {
|
87
|
+
color: $c-blue;
|
88
|
+
font-weight: normal;
|
89
|
+
}
|
90
|
+
|
91
|
+
.hljs-attribute,
|
92
|
+
.hljs-variable,
|
93
|
+
.lisp .hljs-body {
|
94
|
+
color: $c-typecyan;
|
95
|
+
}
|
96
|
+
|
97
|
+
.hljs-regexp {
|
98
|
+
color: #009926;
|
99
|
+
}
|
100
|
+
|
101
|
+
.hljs-symbol,
|
102
|
+
.ruby .hljs-symbol .hljs-string,
|
103
|
+
.lisp .hljs-keyword,
|
104
|
+
.tex .hljs-special,
|
105
|
+
.hljs-prompt {
|
106
|
+
color: #990073;
|
107
|
+
}
|
108
|
+
|
109
|
+
.hljs-built_in,
|
110
|
+
.lisp .hljs-title,
|
111
|
+
.clojure .hljs-built_in {
|
112
|
+
color: #0086b3;
|
113
|
+
}
|
114
|
+
|
115
|
+
.hljs-preprocessor,
|
116
|
+
.hljs-pragma,
|
117
|
+
.hljs-pi,
|
118
|
+
.hljs-doctype,
|
119
|
+
.hljs-shebang,
|
120
|
+
.hljs-cdata {
|
121
|
+
color: #999999;
|
122
|
+
font-weight: bold;
|
123
|
+
}
|
124
|
+
|
125
|
+
.hljs-deletion {
|
126
|
+
background: #ffdddd;
|
127
|
+
}
|
128
|
+
|
129
|
+
.hljs-addition {
|
130
|
+
background: #ddffdd;
|
131
|
+
}
|
132
|
+
|
133
|
+
.diff .hljs-change {
|
134
|
+
background: #0086b3;
|
135
|
+
}
|
136
|
+
|
137
|
+
.hljs-chunk {
|
138
|
+
color: #aaaaaa;
|
139
|
+
}
|
@@ -0,0 +1,75 @@
|
|
1
|
+
.pure-table {
|
2
|
+
/* Remove spacing between table cells (from Normalize.css) */
|
3
|
+
border-collapse: collapse;
|
4
|
+
border-spacing: 0;
|
5
|
+
empty-cells: show;
|
6
|
+
border: 1px solid #cbcbcb;
|
7
|
+
}
|
8
|
+
|
9
|
+
.pure-table caption {
|
10
|
+
color: #000;
|
11
|
+
font: italic 85%/1 arial, sans-serif;
|
12
|
+
padding: 1em 0;
|
13
|
+
text-align: center;
|
14
|
+
}
|
15
|
+
|
16
|
+
.pure-table td,
|
17
|
+
.pure-table th {
|
18
|
+
border-left: 1px solid #cbcbcb;/* inner column border */
|
19
|
+
border-width: 0 0 0 1px;
|
20
|
+
font-size: inherit;
|
21
|
+
margin: 0;
|
22
|
+
overflow: visible; /*to make ths where the title is really long work*/
|
23
|
+
padding: 0.5em 1em; /* cell padding */
|
24
|
+
}
|
25
|
+
|
26
|
+
/* Consider removing this next declaration block, as it causes problems when
|
27
|
+
there's a rowspan on the first cell. Case added to the tests. issue#432 */
|
28
|
+
.pure-table td:first-child,
|
29
|
+
.pure-table th:first-child {
|
30
|
+
border-left-width: 0;
|
31
|
+
}
|
32
|
+
|
33
|
+
.pure-table thead {
|
34
|
+
background-color: #e0e0e0;
|
35
|
+
color: #000;
|
36
|
+
text-align: left;
|
37
|
+
vertical-align: bottom;
|
38
|
+
}
|
39
|
+
|
40
|
+
/*
|
41
|
+
striping:
|
42
|
+
even - #fff (white)
|
43
|
+
odd - #f2f2f2 (light gray)
|
44
|
+
*/
|
45
|
+
.pure-table td {
|
46
|
+
background-color: transparent;
|
47
|
+
}
|
48
|
+
.pure-table-odd td {
|
49
|
+
background-color: #f2f2f2;
|
50
|
+
}
|
51
|
+
|
52
|
+
/* nth-child selector for modern browsers */
|
53
|
+
.pure-table-striped tr:nth-child(2n-1) td {
|
54
|
+
background-color: #f2f2f2;
|
55
|
+
}
|
56
|
+
|
57
|
+
/* BORDERED TABLES */
|
58
|
+
.pure-table-bordered td {
|
59
|
+
border-bottom: 1px solid #cbcbcb;
|
60
|
+
}
|
61
|
+
.pure-table-bordered tbody > tr:last-child > td {
|
62
|
+
border-bottom-width: 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
|
66
|
+
/* HORIZONTAL BORDERED TABLES */
|
67
|
+
|
68
|
+
.pure-table-horizontal td,
|
69
|
+
.pure-table-horizontal th {
|
70
|
+
border-width: 0 0 1px 0;
|
71
|
+
border-bottom: 1px solid #cbcbcb;
|
72
|
+
}
|
73
|
+
.pure-table-horizontal tbody > tr:last-child > td {
|
74
|
+
border-bottom-width: 0;
|
75
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
name: Framework
|
3
|
+
---
|
4
|
+
|
5
|
+
## We believe in simplicity.
|
6
|
+
|
7
|
+
That’s why we’ve made these guidelines really simple. They inform the way we look, feel, behave and sound as a company. They help ensure we remain consistent, impactful and recognisable across all of our communications.
|
8
|
+
|
9
|
+
### Our values
|
10
|
+
- Fairness
|
11
|
+
- Knowledge
|
12
|
+
- Clarity
|
13
|
+
- Confidence
|
14
|
+
- Possibilities
|
15
|
+
|
16
|
+
### Our mission
|
17
|
+
Using our expansive market knowledge and customer insight, we want to provide a simple, relevant service allowing customers to switch with minimal hassle.
|
18
|
+
|
19
|
+
### Our ambition
|
20
|
+
To be the UK’s leading comparison site for all consumers who wish to make their money go further.
|
21
|
+
|
22
|
+
### Our vision
|
23
|
+
We are the comparison service of choice – because we make it relevant, personal and simple to use for consumers and partners.
|
24
|
+
|
25
|
+
### Our benefit
|
26
|
+
We help our customers feel like life just keeps on switching for the better, allowing their time and money to be spent on what really matters.
|
27
|
+
|
28
|
+
### Our personality
|
29
|
+
- Expert
|
30
|
+
- Frank
|
31
|
+
- Connected
|
32
|
+
- Human
|
33
|
+
- Advisory
|
34
|
+
|
35
|
+
## Brand positioning
|
36
|
+
|
37
|
+
### Intuitive and focused
|
38
|
+
We are connected to the individual needs of our customers. In fact, we work to understand them better than anyone. We use masses of customer data, constantly capturing more and more to continually improve the relevance of our advice. Add that to our commitment to ensure ours is the most simple and comprehensive switching service available, and our customers can find clarity in a confusing marketplace and build confidence in our brand.
|
39
|
+
|
40
|
+
### Authoritative and directional
|
41
|
+
We know what we’re talking about because we’re experts in what we do. We can demonstrate an unparalleled in-depth and connected understanding of our customers, the economy, household finances and the industries in which we operate. We’re always frank. We fight for what we believe is fair. And we do what we believe is right to build respect and trust.
|
42
|
+
|
43
|
+
### Personal and engaging
|
44
|
+
We are a human brand that talks to our customers, not preaches. We treat them like knowledgeable peers. Always consistent in our tone, look and customer experience across all touch points. To make things easy to understand, information is visualised and brought to life, enabling our customers to see how they can save money or get better value for money.
|
45
|
+
|
46
|
+
### Experimental and bold
|
47
|
+
We are pro-active, always adapting and pre-empting changes in customer mood and wider markets in which we exist. It lets our customers connect and interact with us with confidence.And we are proud of our BETA mindset. We stay agile, but we never look unpredictably experimental. Rather, we are open, current, honest, committed and consistent with our advice
|