ustyle 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/.rbenv-gemsets +1 -0
- data/.ruby-version +1 -0
- data/CONTRIBUTING.md +68 -0
- data/Gemfile +4 -0
- data/Gruntfile.js +189 -0
- data/JAVASCRIPT_STANDARDS.md +88 -0
- data/LICENSE.txt +13 -0
- data/README.md +93 -0
- data/Rakefile +6 -0
- data/bower.json +54 -0
- data/config/.jscsrc +76 -0
- data/config/autoprefixer.yml +6 -0
- data/config/scss-lint.yml +54 -0
- data/dist/ustyle-content.css +1 -0
- data/dist/ustyle-icons.css +1 -0
- data/dist/ustyle-latest.css +1 -0
- data/dist/ustyle.js +799 -0
- data/dist/ustyle.json +1 -0
- data/grunt/modules/dss-helper.js +117 -0
- data/grunt/modules/file.js +26 -0
- data/grunt/modules/templates.js +59 -0
- data/grunt/tasks/browser-sync.js +19 -0
- data/grunt/tasks/builder.js +72 -0
- data/grunt/tasks/styleguide.js +290 -0
- data/grunt/tasks/svg2png.js +57 -0
- data/lib/ustyle/deploy.rb +31 -0
- data/lib/ustyle/engine.rb +24 -0
- data/lib/ustyle/hash.rb +44 -0
- data/lib/ustyle/icons.rb +13 -0
- data/lib/ustyle/sass_functions.rb +104 -0
- data/lib/ustyle/sinatra.rb +34 -0
- data/lib/ustyle/sprockets.rb +6 -0
- data/lib/ustyle/utils.rb +40 -0
- data/lib/ustyle/version.rb +4 -0
- data/lib/ustyle.rb +54 -0
- data/package.json +74 -0
- data/styleguide/CNAME +1 -0
- data/styleguide/assets/images/bower-logo.png +0 -0
- data/styleguide/assets/images/cloudfront-logo.png +0 -0
- data/styleguide/assets/images/illustration-01.png +0 -0
- data/styleguide/assets/images/illustration-02.png +0 -0
- data/styleguide/assets/images/illustration-03.png +0 -0
- data/styleguide/assets/images/illustration-04.png +0 -0
- data/styleguide/assets/images/illustration-05.png +0 -0
- data/styleguide/assets/images/illustration-06.png +0 -0
- data/styleguide/assets/images/illustration-07.png +0 -0
- data/styleguide/assets/images/illustration-08.png +0 -0
- data/styleguide/assets/images/infographic-01.png +0 -0
- data/styleguide/assets/images/infographic-02.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-01.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-02.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-03.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-04.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-05.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-06.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-07.png +0 -0
- data/styleguide/assets/images/lifestyle-photography-08.png +0 -0
- data/styleguide/assets/images/npm-logo.png +0 -0
- data/styleguide/assets/images/object-photography-01.png +0 -0
- data/styleguide/assets/images/object-photography-02.png +0 -0
- data/styleguide/assets/images/object-photography-03.png +0 -0
- data/styleguide/assets/images/object-photography-04.png +0 -0
- data/styleguide/assets/images/object-photography-05.png +0 -0
- data/styleguide/assets/images/object-photography-06.png +0 -0
- data/styleguide/assets/images/object-photography-07.png +0 -0
- data/styleguide/assets/images/object-photography-08.png +0 -0
- data/styleguide/assets/images/ruby-logo.png +0 -0
- data/styleguide/assets/images/ustyle.svg +73 -0
- data/styleguide/assets/javascripts/app.js +91 -0
- data/styleguide/assets/javascripts/modules/cleanWhiteSpace.js +34 -0
- data/styleguide/assets/javascripts/modules/stats.js +51 -0
- data/styleguide/assets/javascripts/vendor/highlight.js +1 -0
- data/styleguide/assets/sass/main.scss +152 -0
- data/styleguide/assets/sass/modules/_code.scss +8 -0
- data/styleguide/assets/sass/modules/_colours.scss +25 -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/_links.scss +3 -0
- data/styleguide/assets/sass/modules/_logo.scss +56 -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 +134 -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/language.md +102 -0
- data/styleguide/content/brand/logo.tpl +102 -0
- data/styleguide/content/design/index.tpl +79 -0
- data/styleguide/content/design/typography.md +30 -0
- data/styleguide/content/index.tpl +44 -0
- data/styleguide/content/pattern-library/grid.tpl +64 -0
- data/styleguide/content/pattern-library/index.tpl +92 -0
- data/styleguide/partials/_footer.tpl +8 -0
- data/styleguide/partials/_head.tpl +20 -0
- data/styleguide/partials/_header.tpl +7 -0
- data/styleguide/partials/_sidebar.tpl +22 -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 +15 -0
- data/styleguide/templates/stats.tpl +50 -0
- data/styleguide/templates/styleguide.tpl +33 -0
- data/tasks/publish.rake +65 -0
- data/ustyle.gemspec +34 -0
- data/vendor/assets/images/icons/16px/alarm.png +0 -0
- data/vendor/assets/images/icons/16px/android.png +0 -0
- data/vendor/assets/images/icons/16px/angry.png +0 -0
- data/vendor/assets/images/icons/16px/apple.png +0 -0
- data/vendor/assets/images/icons/16px/arrow-circle.png +0 -0
- data/vendor/assets/images/icons/16px/arrow-up-left.png +0 -0
- data/vendor/assets/images/icons/16px/arrow-up.png +0 -0
- data/vendor/assets/images/icons/16px/barchart.png +0 -0
- data/vendor/assets/images/icons/16px/blackberry.png +0 -0
- data/vendor/assets/images/icons/16px/book.png +0 -0
- data/vendor/assets/images/icons/16px/bookmark.png +0 -0
- data/vendor/assets/images/icons/16px/breadcrumb.png +0 -0
- data/vendor/assets/images/icons/16px/calculator.png +0 -0
- data/vendor/assets/images/icons/16px/calendar.png +0 -0
- data/vendor/assets/images/icons/16px/car.png +0 -0
- data/vendor/assets/images/icons/16px/checkbox-tick.png +0 -0
- data/vendor/assets/images/icons/16px/clock.png +0 -0
- data/vendor/assets/images/icons/16px/close.png +0 -0
- data/vendor/assets/images/icons/16px/cog.png +0 -0
- data/vendor/assets/images/icons/16px/controller.png +0 -0
- data/vendor/assets/images/icons/16px/credit-card.png +0 -0
- data/vendor/assets/images/icons/16px/cross.png +0 -0
- data/vendor/assets/images/icons/16px/desktop.png +0 -0
- data/vendor/assets/images/icons/16px/doc.png +0 -0
- data/vendor/assets/images/icons/16px/down-arrow.png +0 -0
- data/vendor/assets/images/icons/16px/dual-fuel.png +0 -0
- data/vendor/assets/images/icons/16px/electric-light.png +0 -0
- data/vendor/assets/images/icons/16px/envelope.png +0 -0
- data/vendor/assets/images/icons/16px/exit-noexit.png +0 -0
- data/vendor/assets/images/icons/16px/facebook.png +0 -0
- data/vendor/assets/images/icons/16px/filter.png +0 -0
- data/vendor/assets/images/icons/16px/fixed-variable.png +0 -0
- data/vendor/assets/images/icons/16px/gas.png +0 -0
- data/vendor/assets/images/icons/16px/gauge.png +0 -0
- data/vendor/assets/images/icons/16px/github.png +0 -0
- data/vendor/assets/images/icons/16px/google.png +0 -0
- data/vendor/assets/images/icons/16px/graph-up.png +0 -0
- data/vendor/assets/images/icons/16px/happy.png +0 -0
- data/vendor/assets/images/icons/16px/home.png +0 -0
- data/vendor/assets/images/icons/16px/hot.png +0 -0
- data/vendor/assets/images/icons/16px/info.png +0 -0
- data/vendor/assets/images/icons/16px/kettle.png +0 -0
- data/vendor/assets/images/icons/16px/key.png +0 -0
- data/vendor/assets/images/icons/16px/laptop.png +0 -0
- data/vendor/assets/images/icons/16px/lock.png +0 -0
- data/vendor/assets/images/icons/16px/magnify-in.png +0 -0
- data/vendor/assets/images/icons/16px/magnify-out.png +0 -0
- data/vendor/assets/images/icons/16px/magnify.png +0 -0
- data/vendor/assets/images/icons/16px/menu.png +0 -0
- data/vendor/assets/images/icons/16px/message.png +0 -0
- data/vendor/assets/images/icons/16px/mobile.png +0 -0
- data/vendor/assets/images/icons/16px/monthly-dd.png +0 -0
- data/vendor/assets/images/icons/16px/neutral.png +0 -0
- data/vendor/assets/images/icons/16px/no-exit.png +0 -0
- data/vendor/assets/images/icons/16px/pdf.png +0 -0
- data/vendor/assets/images/icons/16px/pencil.png +0 -0
- data/vendor/assets/images/icons/16px/person-add.png +0 -0
- data/vendor/assets/images/icons/16px/person.png +0 -0
- data/vendor/assets/images/icons/16px/phone.png +0 -0
- data/vendor/assets/images/icons/16px/piggy-bank.png +0 -0
- data/vendor/assets/images/icons/16px/pin.png +0 -0
- data/vendor/assets/images/icons/16px/play.png +0 -0
- data/vendor/assets/images/icons/16px/pound-circle.png +0 -0
- data/vendor/assets/images/icons/16px/pound-note.png +0 -0
- data/vendor/assets/images/icons/16px/power.png +0 -0
- data/vendor/assets/images/icons/16px/present.png +0 -0
- data/vendor/assets/images/icons/16px/print.png +0 -0
- data/vendor/assets/images/icons/16px/quarterly-dd.png +0 -0
- data/vendor/assets/images/icons/16px/question-circle.png +0 -0
- data/vendor/assets/images/icons/16px/question.png +0 -0
- data/vendor/assets/images/icons/16px/quote.png +0 -0
- data/vendor/assets/images/icons/16px/recycle.png +0 -0
- data/vendor/assets/images/icons/16px/remove.png +0 -0
- data/vendor/assets/images/icons/16px/renewable.png +0 -0
- data/vendor/assets/images/icons/16px/results.png +0 -0
- data/vendor/assets/images/icons/16px/sad.png +0 -0
- data/vendor/assets/images/icons/16px/save.png +0 -0
- data/vendor/assets/images/icons/16px/share.png +0 -0
- data/vendor/assets/images/icons/16px/sim.png +0 -0
- data/vendor/assets/images/icons/16px/smiley.png +0 -0
- data/vendor/assets/images/icons/16px/sort.png +0 -0
- data/vendor/assets/images/icons/16px/speech-circle.png +0 -0
- data/vendor/assets/images/icons/16px/speech.png +0 -0
- data/vendor/assets/images/icons/16px/spinner 2.png +0 -0
- data/vendor/assets/images/icons/16px/spinner.png +0 -0
- data/vendor/assets/images/icons/16px/star-half.png +0 -0
- data/vendor/assets/images/icons/16px/star.png +0 -0
- data/vendor/assets/images/icons/16px/starline-half.png +0 -0
- data/vendor/assets/images/icons/16px/starline.png +0 -0
- data/vendor/assets/images/icons/16px/tablet.png +0 -0
- data/vendor/assets/images/icons/16px/talk.png +0 -0
- data/vendor/assets/images/icons/16px/tick-circle.png +0 -0
- data/vendor/assets/images/icons/16px/tick.png +0 -0
- data/vendor/assets/images/icons/16px/tv.png +0 -0
- data/vendor/assets/images/icons/16px/twitter.png +0 -0
- data/vendor/assets/images/icons/16px/ustyle.png +0 -0
- data/vendor/assets/images/icons/16px/uswitch.png +0 -0
- data/vendor/assets/images/icons/16px/variable.png +0 -0
- data/vendor/assets/images/icons/16px/warning-circle.png +0 -0
- data/vendor/assets/images/icons/16px/warning.png +0 -0
- data/vendor/assets/images/icons/16px/wifi.png +0 -0
- data/vendor/assets/images/icons/16px/wiki.png +0 -0
- data/vendor/assets/images/icons/16px/windows.png +0 -0
- data/vendor/assets/images/icons/16px/wondering.png +0 -0
- data/vendor/assets/images/icons/16px/world.png +0 -0
- data/vendor/assets/images/icons/16px/xml.png +0 -0
- data/vendor/assets/images/icons/32px/alarm.png +0 -0
- data/vendor/assets/images/icons/32px/android.png +0 -0
- data/vendor/assets/images/icons/32px/angry.png +0 -0
- data/vendor/assets/images/icons/32px/apple.png +0 -0
- data/vendor/assets/images/icons/32px/arrow-circle.png +0 -0
- data/vendor/assets/images/icons/32px/arrow-up-left.png +0 -0
- data/vendor/assets/images/icons/32px/arrow-up.png +0 -0
- data/vendor/assets/images/icons/32px/barchart.png +0 -0
- data/vendor/assets/images/icons/32px/blackberry.png +0 -0
- data/vendor/assets/images/icons/32px/book.png +0 -0
- data/vendor/assets/images/icons/32px/bookmark.png +0 -0
- data/vendor/assets/images/icons/32px/breadcrumb.png +0 -0
- data/vendor/assets/images/icons/32px/calculator.png +0 -0
- data/vendor/assets/images/icons/32px/calendar.png +0 -0
- data/vendor/assets/images/icons/32px/car.png +0 -0
- data/vendor/assets/images/icons/32px/checkbox-tick.png +0 -0
- data/vendor/assets/images/icons/32px/clock.png +0 -0
- data/vendor/assets/images/icons/32px/close.png +0 -0
- data/vendor/assets/images/icons/32px/cog.png +0 -0
- data/vendor/assets/images/icons/32px/controller.png +0 -0
- data/vendor/assets/images/icons/32px/credit-card.png +0 -0
- data/vendor/assets/images/icons/32px/cross.png +0 -0
- data/vendor/assets/images/icons/32px/desktop.png +0 -0
- data/vendor/assets/images/icons/32px/doc.png +0 -0
- data/vendor/assets/images/icons/32px/down-arrow.png +0 -0
- data/vendor/assets/images/icons/32px/dual-fuel.png +0 -0
- data/vendor/assets/images/icons/32px/electric-light.png +0 -0
- data/vendor/assets/images/icons/32px/envelope.png +0 -0
- data/vendor/assets/images/icons/32px/exit-noexit.png +0 -0
- data/vendor/assets/images/icons/32px/facebook.png +0 -0
- data/vendor/assets/images/icons/32px/filter.png +0 -0
- data/vendor/assets/images/icons/32px/fixed-variable.png +0 -0
- data/vendor/assets/images/icons/32px/gas.png +0 -0
- data/vendor/assets/images/icons/32px/gauge.png +0 -0
- data/vendor/assets/images/icons/32px/github.png +0 -0
- data/vendor/assets/images/icons/32px/google.png +0 -0
- data/vendor/assets/images/icons/32px/graph-up.png +0 -0
- data/vendor/assets/images/icons/32px/happy.png +0 -0
- data/vendor/assets/images/icons/32px/home.png +0 -0
- data/vendor/assets/images/icons/32px/hot.png +0 -0
- data/vendor/assets/images/icons/32px/info.png +0 -0
- data/vendor/assets/images/icons/32px/kettle.png +0 -0
- data/vendor/assets/images/icons/32px/key.png +0 -0
- data/vendor/assets/images/icons/32px/laptop.png +0 -0
- data/vendor/assets/images/icons/32px/lock.png +0 -0
- data/vendor/assets/images/icons/32px/magnify-in.png +0 -0
- data/vendor/assets/images/icons/32px/magnify-out.png +0 -0
- data/vendor/assets/images/icons/32px/magnify.png +0 -0
- data/vendor/assets/images/icons/32px/menu.png +0 -0
- data/vendor/assets/images/icons/32px/message.png +0 -0
- data/vendor/assets/images/icons/32px/mobile.png +0 -0
- data/vendor/assets/images/icons/32px/monthly-dd.png +0 -0
- data/vendor/assets/images/icons/32px/neutral.png +0 -0
- data/vendor/assets/images/icons/32px/no-exit.png +0 -0
- data/vendor/assets/images/icons/32px/pdf.png +0 -0
- data/vendor/assets/images/icons/32px/pencil.png +0 -0
- data/vendor/assets/images/icons/32px/person-add.png +0 -0
- data/vendor/assets/images/icons/32px/person.png +0 -0
- data/vendor/assets/images/icons/32px/phone.png +0 -0
- data/vendor/assets/images/icons/32px/piggy-bank.png +0 -0
- data/vendor/assets/images/icons/32px/pin.png +0 -0
- data/vendor/assets/images/icons/32px/play.png +0 -0
- data/vendor/assets/images/icons/32px/pound-circle.png +0 -0
- data/vendor/assets/images/icons/32px/pound-note.png +0 -0
- data/vendor/assets/images/icons/32px/power.png +0 -0
- data/vendor/assets/images/icons/32px/present.png +0 -0
- data/vendor/assets/images/icons/32px/print.png +0 -0
- data/vendor/assets/images/icons/32px/quarterly-dd.png +0 -0
- data/vendor/assets/images/icons/32px/question-circle.png +0 -0
- data/vendor/assets/images/icons/32px/question.png +0 -0
- data/vendor/assets/images/icons/32px/quote.png +0 -0
- data/vendor/assets/images/icons/32px/recycle.png +0 -0
- data/vendor/assets/images/icons/32px/remove.png +0 -0
- data/vendor/assets/images/icons/32px/renewable.png +0 -0
- data/vendor/assets/images/icons/32px/results.png +0 -0
- data/vendor/assets/images/icons/32px/sad.png +0 -0
- data/vendor/assets/images/icons/32px/save.png +0 -0
- data/vendor/assets/images/icons/32px/share.png +0 -0
- data/vendor/assets/images/icons/32px/sim.png +0 -0
- data/vendor/assets/images/icons/32px/smiley.png +0 -0
- data/vendor/assets/images/icons/32px/sort.png +0 -0
- data/vendor/assets/images/icons/32px/speech-circle.png +0 -0
- data/vendor/assets/images/icons/32px/speech.png +0 -0
- data/vendor/assets/images/icons/32px/spinner 2.png +0 -0
- data/vendor/assets/images/icons/32px/spinner.png +0 -0
- data/vendor/assets/images/icons/32px/star-half.png +0 -0
- data/vendor/assets/images/icons/32px/star.png +0 -0
- data/vendor/assets/images/icons/32px/starline-half.png +0 -0
- data/vendor/assets/images/icons/32px/starline.png +0 -0
- data/vendor/assets/images/icons/32px/tablet.png +0 -0
- data/vendor/assets/images/icons/32px/talk.png +0 -0
- data/vendor/assets/images/icons/32px/tick-circle.png +0 -0
- data/vendor/assets/images/icons/32px/tick.png +0 -0
- data/vendor/assets/images/icons/32px/tv.png +0 -0
- data/vendor/assets/images/icons/32px/twitter.png +0 -0
- data/vendor/assets/images/icons/32px/ustyle.png +0 -0
- data/vendor/assets/images/icons/32px/uswitch.png +0 -0
- data/vendor/assets/images/icons/32px/variable.png +0 -0
- data/vendor/assets/images/icons/32px/warning-circle.png +0 -0
- data/vendor/assets/images/icons/32px/warning.png +0 -0
- data/vendor/assets/images/icons/32px/wifi.png +0 -0
- data/vendor/assets/images/icons/32px/wiki.png +0 -0
- data/vendor/assets/images/icons/32px/windows.png +0 -0
- data/vendor/assets/images/icons/32px/wondering.png +0 -0
- data/vendor/assets/images/icons/32px/world.png +0 -0
- data/vendor/assets/images/icons/32px/xml.png +0 -0
- data/vendor/assets/images/icons/64px/alarm.png +0 -0
- data/vendor/assets/images/icons/64px/android.png +0 -0
- data/vendor/assets/images/icons/64px/angry.png +0 -0
- data/vendor/assets/images/icons/64px/apple.png +0 -0
- data/vendor/assets/images/icons/64px/arrow-circle.png +0 -0
- data/vendor/assets/images/icons/64px/arrow-up-left.png +0 -0
- data/vendor/assets/images/icons/64px/arrow-up.png +0 -0
- data/vendor/assets/images/icons/64px/barchart.png +0 -0
- data/vendor/assets/images/icons/64px/blackberry.png +0 -0
- data/vendor/assets/images/icons/64px/book.png +0 -0
- data/vendor/assets/images/icons/64px/bookmark.png +0 -0
- data/vendor/assets/images/icons/64px/breadcrumb.png +0 -0
- data/vendor/assets/images/icons/64px/calculator.png +0 -0
- data/vendor/assets/images/icons/64px/calendar.png +0 -0
- data/vendor/assets/images/icons/64px/car.png +0 -0
- data/vendor/assets/images/icons/64px/checkbox-tick.png +0 -0
- data/vendor/assets/images/icons/64px/clock.png +0 -0
- data/vendor/assets/images/icons/64px/close.png +0 -0
- data/vendor/assets/images/icons/64px/cog.png +0 -0
- data/vendor/assets/images/icons/64px/controller.png +0 -0
- data/vendor/assets/images/icons/64px/credit-card.png +0 -0
- data/vendor/assets/images/icons/64px/cross.png +0 -0
- data/vendor/assets/images/icons/64px/desktop.png +0 -0
- data/vendor/assets/images/icons/64px/doc.png +0 -0
- data/vendor/assets/images/icons/64px/down-arrow.png +0 -0
- data/vendor/assets/images/icons/64px/dual-fuel.png +0 -0
- data/vendor/assets/images/icons/64px/electric-light.png +0 -0
- data/vendor/assets/images/icons/64px/envelope.png +0 -0
- data/vendor/assets/images/icons/64px/exit-noexit.png +0 -0
- data/vendor/assets/images/icons/64px/facebook.png +0 -0
- data/vendor/assets/images/icons/64px/filter.png +0 -0
- data/vendor/assets/images/icons/64px/fixed-variable.png +0 -0
- data/vendor/assets/images/icons/64px/gas.png +0 -0
- data/vendor/assets/images/icons/64px/gauge.png +0 -0
- data/vendor/assets/images/icons/64px/github.png +0 -0
- data/vendor/assets/images/icons/64px/google.png +0 -0
- data/vendor/assets/images/icons/64px/graph-up.png +0 -0
- data/vendor/assets/images/icons/64px/happy.png +0 -0
- data/vendor/assets/images/icons/64px/home.png +0 -0
- data/vendor/assets/images/icons/64px/hot.png +0 -0
- data/vendor/assets/images/icons/64px/info.png +0 -0
- data/vendor/assets/images/icons/64px/kettle.png +0 -0
- data/vendor/assets/images/icons/64px/key.png +0 -0
- data/vendor/assets/images/icons/64px/laptop.png +0 -0
- data/vendor/assets/images/icons/64px/lock.png +0 -0
- data/vendor/assets/images/icons/64px/magnify-in.png +0 -0
- data/vendor/assets/images/icons/64px/magnify-out.png +0 -0
- data/vendor/assets/images/icons/64px/magnify.png +0 -0
- data/vendor/assets/images/icons/64px/menu.png +0 -0
- data/vendor/assets/images/icons/64px/message.png +0 -0
- data/vendor/assets/images/icons/64px/mobile.png +0 -0
- data/vendor/assets/images/icons/64px/monthly-dd.png +0 -0
- data/vendor/assets/images/icons/64px/neutral.png +0 -0
- data/vendor/assets/images/icons/64px/no-exit.png +0 -0
- data/vendor/assets/images/icons/64px/pdf.png +0 -0
- data/vendor/assets/images/icons/64px/pencil.png +0 -0
- data/vendor/assets/images/icons/64px/person-add.png +0 -0
- data/vendor/assets/images/icons/64px/person.png +0 -0
- data/vendor/assets/images/icons/64px/phone.png +0 -0
- data/vendor/assets/images/icons/64px/piggy-bank.png +0 -0
- data/vendor/assets/images/icons/64px/pin.png +0 -0
- data/vendor/assets/images/icons/64px/play.png +0 -0
- data/vendor/assets/images/icons/64px/pound-circle.png +0 -0
- data/vendor/assets/images/icons/64px/pound-note.png +0 -0
- data/vendor/assets/images/icons/64px/power.png +0 -0
- data/vendor/assets/images/icons/64px/present.png +0 -0
- data/vendor/assets/images/icons/64px/print.png +0 -0
- data/vendor/assets/images/icons/64px/quarterly-dd.png +0 -0
- data/vendor/assets/images/icons/64px/question-circle.png +0 -0
- data/vendor/assets/images/icons/64px/question.png +0 -0
- data/vendor/assets/images/icons/64px/quote.png +0 -0
- data/vendor/assets/images/icons/64px/recycle.png +0 -0
- data/vendor/assets/images/icons/64px/remove.png +0 -0
- data/vendor/assets/images/icons/64px/renewable.png +0 -0
- data/vendor/assets/images/icons/64px/results.png +0 -0
- data/vendor/assets/images/icons/64px/sad.png +0 -0
- data/vendor/assets/images/icons/64px/save.png +0 -0
- data/vendor/assets/images/icons/64px/share.png +0 -0
- data/vendor/assets/images/icons/64px/sim.png +0 -0
- data/vendor/assets/images/icons/64px/smiley.png +0 -0
- data/vendor/assets/images/icons/64px/sort.png +0 -0
- data/vendor/assets/images/icons/64px/speech-circle.png +0 -0
- data/vendor/assets/images/icons/64px/speech.png +0 -0
- data/vendor/assets/images/icons/64px/spinner 2.png +0 -0
- data/vendor/assets/images/icons/64px/spinner.png +0 -0
- data/vendor/assets/images/icons/64px/star-half.png +0 -0
- data/vendor/assets/images/icons/64px/star.png +0 -0
- data/vendor/assets/images/icons/64px/starline-half.png +0 -0
- data/vendor/assets/images/icons/64px/starline.png +0 -0
- data/vendor/assets/images/icons/64px/tablet.png +0 -0
- data/vendor/assets/images/icons/64px/talk.png +0 -0
- data/vendor/assets/images/icons/64px/tick-circle.png +0 -0
- data/vendor/assets/images/icons/64px/tick.png +0 -0
- data/vendor/assets/images/icons/64px/tv.png +0 -0
- data/vendor/assets/images/icons/64px/twitter.png +0 -0
- data/vendor/assets/images/icons/64px/ustyle.png +0 -0
- data/vendor/assets/images/icons/64px/uswitch.png +0 -0
- data/vendor/assets/images/icons/64px/variable.png +0 -0
- data/vendor/assets/images/icons/64px/warning-circle.png +0 -0
- data/vendor/assets/images/icons/64px/warning.png +0 -0
- data/vendor/assets/images/icons/64px/wifi.png +0 -0
- data/vendor/assets/images/icons/64px/wiki.png +0 -0
- data/vendor/assets/images/icons/64px/windows.png +0 -0
- data/vendor/assets/images/icons/64px/wondering.png +0 -0
- data/vendor/assets/images/icons/64px/world.png +0 -0
- data/vendor/assets/images/icons/64px/xml.png +0 -0
- data/vendor/assets/images/icons/alarm.svg +1 -0
- data/vendor/assets/images/icons/android.svg +1 -0
- data/vendor/assets/images/icons/angry.svg +1 -0
- data/vendor/assets/images/icons/apple.svg +1 -0
- data/vendor/assets/images/icons/arrow-circle.svg +1 -0
- data/vendor/assets/images/icons/arrow-up-left.svg +1 -0
- data/vendor/assets/images/icons/arrow-up.svg +1 -0
- data/vendor/assets/images/icons/barchart.svg +1 -0
- data/vendor/assets/images/icons/blackberry.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/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/desktop.svg +1 -0
- data/vendor/assets/images/icons/doc.svg +1 -0
- data/vendor/assets/images/icons/down-arrow.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.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.svg +1 -0
- data/vendor/assets/images/icons/graph-up.svg +1 -0
- data/vendor/assets/images/icons/happy.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/laptop.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-out.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/neutral.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/power.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/question.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/sad.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/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 2.svg +1 -0
- data/vendor/assets/images/icons/spinner.svg +1 -0
- data/vendor/assets/images/icons/spinner_fallback.gif +0 -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/tablet.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.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/windows.svg +1 -0
- data/vendor/assets/images/icons/wondering.svg +1 -0
- data/vendor/assets/images/icons/world.svg +1 -0
- data/vendor/assets/images/icons/xml.svg +1 -0
- data/vendor/assets/javascripts/ustyle/anchor.js +300 -0
- data/vendor/assets/javascripts/ustyle/backdrop.js +56 -0
- data/vendor/assets/javascripts/ustyle/classtoggler.js +58 -0
- data/vendor/assets/javascripts/ustyle/login/login.js +165 -0
- data/vendor/assets/javascripts/ustyle/login/password-helper.js +151 -0
- data/vendor/assets/javascripts/ustyle/overlay.js +125 -0
- data/vendor/assets/javascripts/ustyle/radioToggle.js +28 -0
- data/vendor/assets/javascripts/ustyle/tabs.js +120 -0
- data/vendor/assets/javascripts/ustyle/utils.js +106 -0
- data/vendor/assets/javascripts/ustyle.js +7 -0
- data/vendor/assets/stylesheets/ustyle/_all.scss +50 -0
- data/vendor/assets/stylesheets/ustyle/_content.scss +5 -0
- data/vendor/assets/stylesheets/ustyle/_global.scss +24 -0
- data/vendor/assets/stylesheets/ustyle/_icons.scss +20 -0
- data/vendor/assets/stylesheets/ustyle/articles/_base.scss +88 -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 +214 -0
- data/vendor/assets/stylesheets/ustyle/articles/_related.scss +74 -0
- data/vendor/assets/stylesheets/ustyle/basics/_extends.scss +69 -0
- data/vendor/assets/stylesheets/ustyle/basics/_font-face-ie.scss +31 -0
- data/vendor/assets/stylesheets/ustyle/basics/_font-face.scss +31 -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 +188 -0
- data/vendor/assets/stylesheets/ustyle/basics/variables/_colors.scss +95 -0
- data/vendor/assets/stylesheets/ustyle/basics/variables/_forms.scss +65 -0
- data/vendor/assets/stylesheets/ustyle/basics/variables/_icons.scss +166 -0
- data/vendor/assets/stylesheets/ustyle/components/_anchor.scss +134 -0
- data/vendor/assets/stylesheets/ustyle/components/_backdrop.scss +19 -0
- data/vendor/assets/stylesheets/ustyle/components/_breadcrumbs.scss +59 -0
- data/vendor/assets/stylesheets/ustyle/components/_button.scss +184 -0
- data/vendor/assets/stylesheets/ustyle/components/_content-group.scss +33 -0
- data/vendor/assets/stylesheets/ustyle/components/_cta.scss +64 -0
- data/vendor/assets/stylesheets/ustyle/components/_featured.scss +112 -0
- data/vendor/assets/stylesheets/ustyle/components/_grid-classes.scss +52 -0
- data/vendor/assets/stylesheets/ustyle/components/_hero.scss +42 -0
- data/vendor/assets/stylesheets/ustyle/components/_links.scss +30 -0
- data/vendor/assets/stylesheets/ustyle/components/_lists-li.scss +89 -0
- data/vendor/assets/stylesheets/ustyle/components/_lists.scss +46 -0
- data/vendor/assets/stylesheets/ustyle/components/_loader.scss +142 -0
- data/vendor/assets/stylesheets/ustyle/components/_overlay.scss +183 -0
- data/vendor/assets/stylesheets/ustyle/components/_progress.scss +126 -0
- data/vendor/assets/stylesheets/ustyle/components/_tabs.scss +239 -0
- data/vendor/assets/stylesheets/ustyle/components/_tooltip.scss +244 -0
- data/vendor/assets/stylesheets/ustyle/components/_usp.scss +69 -0
- data/vendor/assets/stylesheets/ustyle/content/_base.scss +195 -0
- data/vendor/assets/stylesheets/ustyle/content/_c-header.scss +30 -0
- data/vendor/assets/stylesheets/ustyle/content/_c-social.scss +10 -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 +75 -0
- data/vendor/assets/stylesheets/ustyle/forms/_input-group.scss +101 -0
- data/vendor/assets/stylesheets/ustyle/forms/_input.scss +63 -0
- data/vendor/assets/stylesheets/ustyle/forms/_radio-checkbox.scss +133 -0
- data/vendor/assets/stylesheets/ustyle/forms/_reset.scss +23 -0
- data/vendor/assets/stylesheets/ustyle/forms/_select.scss +125 -0
- data/vendor/assets/stylesheets/ustyle/forms/_textarea.scss +33 -0
- data/vendor/assets/stylesheets/ustyle/forms/_toggle.scss +125 -0
- data/vendor/assets/stylesheets/ustyle/forms/_validation.scss +104 -0
- data/vendor/assets/stylesheets/ustyle/icons/_base.scss +239 -0
- data/vendor/assets/stylesheets/ustyle/icons/_png.scss +37 -0
- data/vendor/assets/stylesheets/ustyle/icons/_svg.scss +29 -0
- data/vendor/assets/stylesheets/ustyle/login/_base.scss +81 -0
- data/vendor/assets/stylesheets/ustyle/login/_password-help.scss +61 -0
- data/vendor/assets/stylesheets/ustyle/login/_social.scss +63 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_arrow.scss +51 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_base.scss +8 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_baseline.scss +41 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_forms.scss +62 -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 +116 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_rgba-inline.scss +18 -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 +106 -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 +74 -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-icons.scss +1 -0
- data/vendor/assets/stylesheets/ustyle.scss +1 -0
- metadata +822 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
// Global import
|
2
|
+
@import "ustyle/global";
|
3
|
+
|
4
|
+
// Basics
|
5
|
+
@import "ustyle/basics/typography";
|
6
|
+
|
7
|
+
// uSwitch grid
|
8
|
+
@import "ustyle/basics/grid";
|
9
|
+
|
10
|
+
// Forms
|
11
|
+
@import "ustyle/forms/base";
|
12
|
+
|
13
|
+
// Tables
|
14
|
+
@import "ustyle/tables/base";
|
15
|
+
|
16
|
+
// Icons
|
17
|
+
@import "ustyle/icons/base";
|
18
|
+
|
19
|
+
// Components
|
20
|
+
@import "ustyle/components/links";
|
21
|
+
@import "ustyle/components/lists";
|
22
|
+
@import "ustyle/components/lists-li";
|
23
|
+
@import "ustyle/components/button";
|
24
|
+
@import "ustyle/components/featured";
|
25
|
+
@import "ustyle/components/hero";
|
26
|
+
@import "ustyle/components/content-group";
|
27
|
+
@import "ustyle/components/tabs";
|
28
|
+
@import "ustyle/components/anchor";
|
29
|
+
@import "ustyle/components/loader";
|
30
|
+
@import "ustyle/components/breadcrumbs";
|
31
|
+
@import "ustyle/components/cta";
|
32
|
+
@import "ustyle/components/overlay";
|
33
|
+
@import "ustyle/components/tooltip";
|
34
|
+
@import "ustyle/components/usp";
|
35
|
+
@import "ustyle/components/progress";
|
36
|
+
@import "ustyle/components/backdrop";
|
37
|
+
|
38
|
+
// Articles
|
39
|
+
@import "ustyle/articles/base";
|
40
|
+
@import "ustyle/articles/news";
|
41
|
+
@import "ustyle/articles/guide";
|
42
|
+
@import "ustyle/articles/more";
|
43
|
+
@import "ustyle/articles/related";
|
44
|
+
|
45
|
+
// Utilities
|
46
|
+
@import "ustyle/utilities/general";
|
47
|
+
@import "ustyle/utilities/spacing";
|
48
|
+
@import "ustyle/utilities/images";
|
49
|
+
@import "ustyle/utilities/grid";
|
50
|
+
@import "ustyle/utilities/responsive";
|
@@ -0,0 +1,24 @@
|
|
1
|
+
// scss-lint:disable Comment
|
2
|
+
/*! uStyle version #{ustyle-version()}. Copyright uSwitch limited, all rights reserved. */
|
3
|
+
|
4
|
+
//
|
5
|
+
// This is the shared global file that includes uStyle's core helpers
|
6
|
+
//
|
7
|
+
|
8
|
+
// Reset
|
9
|
+
@import "ustyle/vendor/normalize";
|
10
|
+
|
11
|
+
// Basics
|
12
|
+
@import "ustyle/basics/functions";
|
13
|
+
@import "ustyle/basics/variables";
|
14
|
+
|
15
|
+
// All mixins
|
16
|
+
@import "ustyle/mixins/base";
|
17
|
+
|
18
|
+
// Font face
|
19
|
+
@import "ustyle/basics/font-face";
|
20
|
+
@import "ustyle/basics/font-face-ie";
|
21
|
+
|
22
|
+
// Basic extends
|
23
|
+
@import "ustyle/basics/fonts";
|
24
|
+
@import "ustyle/basics/extends";
|
@@ -0,0 +1,20 @@
|
|
1
|
+
$load-icons: true;
|
2
|
+
|
3
|
+
// Basics
|
4
|
+
@import "ustyle/basics/functions";
|
5
|
+
@import "ustyle/basics/variables";
|
6
|
+
|
7
|
+
// All mixins
|
8
|
+
@import "ustyle/mixins/base";
|
9
|
+
|
10
|
+
// Font face
|
11
|
+
@import "ustyle/basics/font-face";
|
12
|
+
@import "ustyle/basics/font-face-ie";
|
13
|
+
|
14
|
+
// Basic extends
|
15
|
+
@import "ustyle/basics/fonts";
|
16
|
+
@import "ustyle/basics/extends";
|
17
|
+
|
18
|
+
@import "ustyle/icons/base";
|
19
|
+
@import "ustyle/icons/svg";
|
20
|
+
@import "ustyle/icons/png";
|
@@ -0,0 +1,88 @@
|
|
1
|
+
// @page Pattern Library/Articles
|
2
|
+
// @name Base article
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Article listings for news are important on the landing pages.
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <article class='us-article'>
|
9
|
+
// <a class='us-article__link' href="#">
|
10
|
+
// <div class='us-grid-row'>
|
11
|
+
// <div class='us-col-md-8'>
|
12
|
+
// <h3 class='us-article__title'>Car insurance guides</h3>
|
13
|
+
// <p class='us-article__description'>
|
14
|
+
// A quarter of 18-34 year olds believe that tech companies could offer better financial services than banks
|
15
|
+
// </p>
|
16
|
+
// <div class="us-article__meta">
|
17
|
+
// <span class="date">2 months ago</span>
|
18
|
+
// in
|
19
|
+
// <span class="category">Banking</span>
|
20
|
+
// </div>
|
21
|
+
// </div>
|
22
|
+
// <div class='us-col-md-4 us-tablet--block'>
|
23
|
+
// <img class='us-img--full us-article__image' src='http://www.uswitch.com/insurance/assets/guide-home-16141c84afd29e2063ee76803037716c.jpg' />
|
24
|
+
// </div>
|
25
|
+
// </a>
|
26
|
+
// </div>
|
27
|
+
// </article>
|
28
|
+
|
29
|
+
$article-border-color: $c-keylinegrey !default;
|
30
|
+
$article-padding: 2em !default;
|
31
|
+
$article-description-color: $c-typegrey-2 !default;
|
32
|
+
|
33
|
+
.us-article {
|
34
|
+
padding-top: $article-padding/2;
|
35
|
+
padding-bottom: $article-padding/2;
|
36
|
+
border-bottom: 1px solid $article-border-color;
|
37
|
+
|
38
|
+
@include respond-to(tablet, true) {
|
39
|
+
padding-top: $article-padding;
|
40
|
+
padding-bottom: $article-padding;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.us-article__link {
|
45
|
+
display: block;
|
46
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
47
|
+
|
48
|
+
&:hover {
|
49
|
+
.us-article__title {
|
50
|
+
text-decoration: underline;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.us-article__link,
|
56
|
+
.us-article__link:hover,
|
57
|
+
.us-article__link:visited, {
|
58
|
+
color: inherit;
|
59
|
+
}
|
60
|
+
|
61
|
+
.us-article__title {
|
62
|
+
@include heading(4);
|
63
|
+
|
64
|
+
@include respond-to(tablet, true) {
|
65
|
+
@include heading(3, $extend: false);
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
.us-article__meta,
|
70
|
+
.us-article__description {
|
71
|
+
color: $article-description-color;
|
72
|
+
}
|
73
|
+
|
74
|
+
.us-article__meta {
|
75
|
+
font-size: .875em;
|
76
|
+
}
|
77
|
+
|
78
|
+
.us-article__description {
|
79
|
+
margin-bottom: 1em;
|
80
|
+
|
81
|
+
@include respond-to(tablet, true) {
|
82
|
+
font-size: 1.125em;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.us-article__image {
|
87
|
+
border: 1px solid $article-border-color;
|
88
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
// @page Pattern Library/Articles
|
2
|
+
// @name Guide article
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Our guide and news articles are used across the site to communicate news/guide snippets. The layout is decided by our grid, by default they have 100% width.
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <div class='us-article-group'>
|
9
|
+
// <div class='us-guide-item us-col-md-4'>
|
10
|
+
// <a class='us-guide-item-link' href='#'>
|
11
|
+
// <div class='us-guide-item-image-container'>
|
12
|
+
// <div class='us-guide-item-image background' style='background-image: url(http://www.uswitch.com/insurance/assets/guide-home-16141c84afd29e2063ee76803037716c.jpg)'></div>
|
13
|
+
// </div>
|
14
|
+
// <div class='us-guide-item-content'>
|
15
|
+
// <h4 class='us-guide-item-title'>Car insurance guides</h4>
|
16
|
+
// <p class='us-guide-item-description'>Read our car insurance advice guides for the facts on why you need car insurance, the types of cover available, and tips on how to make a claim.</p>
|
17
|
+
// </div>
|
18
|
+
// <div class='us-guide-item-readmore'>
|
19
|
+
// <span class='us-news-item-readmorelink'>Read more</span>
|
20
|
+
// </div>
|
21
|
+
// </a>
|
22
|
+
// </div>
|
23
|
+
// </div>
|
24
|
+
|
25
|
+
$guide-item-image-size: 128px !default;
|
26
|
+
|
27
|
+
.us-guide-item {
|
28
|
+
@extend %base-item;
|
29
|
+
}
|
30
|
+
|
31
|
+
.us-guide-item-link {
|
32
|
+
@extend %base-item-link;
|
33
|
+
}
|
34
|
+
|
35
|
+
.us-guide-item-title {
|
36
|
+
@extend %base-item-title;
|
37
|
+
}
|
38
|
+
|
39
|
+
.us-guide-item-description {
|
40
|
+
@extend %base-item-description;
|
41
|
+
}
|
42
|
+
|
43
|
+
.us-guide-item-image-container {
|
44
|
+
@extend %base-item-image-container;
|
45
|
+
}
|
46
|
+
|
47
|
+
.us-guide-item-image {
|
48
|
+
@extend %base-item-image;
|
49
|
+
}
|
50
|
+
|
51
|
+
.us-guide-item-readmore {
|
52
|
+
@extend %readmore;
|
53
|
+
}
|
54
|
+
|
55
|
+
.us-guide-item-readmorelink {
|
56
|
+
@extend %readmore-link;
|
57
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
// @page Pattern Library/Articles
|
2
|
+
// @name More article
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// If the article listing has more in a category, we use this to let a user navigate to that category
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <div class='us-more-item us-col-md-4'>
|
9
|
+
// <a class='us-more-item-link' href='#'>
|
10
|
+
// <span class='us-more-item-title'>See more banking news</span>
|
11
|
+
// </a>
|
12
|
+
// </div>
|
13
|
+
|
14
|
+
.us-more-item {
|
15
|
+
@extend %base-item;
|
16
|
+
}
|
17
|
+
|
18
|
+
.us-more-item-link {
|
19
|
+
@extend %base-item-link;
|
20
|
+
}
|
21
|
+
|
22
|
+
.us-more-item-title {
|
23
|
+
@extend %heading-1;
|
24
|
+
display: block;
|
25
|
+
padding: $item-padding;
|
26
|
+
color: $c-typecyan;
|
27
|
+
|
28
|
+
&.small {
|
29
|
+
@extend %heading-3;
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,214 @@
|
|
1
|
+
// @page Pattern Library/Articles
|
2
|
+
// @name News article
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// The news item article standard. It mirrors the guide article. The news item image is a background image as the problem of not displaying `<img>` tags on mobile hasn't been resolved.
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <div class='us-article-group'>
|
9
|
+
// <div class='us-news-item us-col-md-4'>
|
10
|
+
// <a class='us-news-item-link' href='#'>
|
11
|
+
// <div class='us-news-item-image-container'>
|
12
|
+
// <div class='us-news-item-image background' style='background-image: url(http://uswitch-wp-blog-assets.s3-website-eu-west-1.amazonaws.com/wp-content/uploads/2013/09/Untitled-1.jpg)'></div>
|
13
|
+
// </div>
|
14
|
+
// <div class='us-news-meta'>
|
15
|
+
// <span class='category'>Consumer rights</span>
|
16
|
+
// <span class='date'>14 Nov 2014</span>
|
17
|
+
// </div>
|
18
|
+
// <h3 class='us-news-item-title'>Customer uses promoted tweet to complain about BA</h3>
|
19
|
+
// <p class='us-news-item-snippet'>Sign of things to come? Social media helps to empower disgruntled consumer amid lost luggage row</p>
|
20
|
+
// <div class='us-news-item-readmore'>
|
21
|
+
// <span class='us-news-item-readmorelink'>More consumer rights</span>
|
22
|
+
// </div>
|
23
|
+
// </a>
|
24
|
+
// </div>
|
25
|
+
// </div>
|
26
|
+
|
27
|
+
$item-padding: 9px;
|
28
|
+
$news-item-image-size: 128px !default;
|
29
|
+
$base-item-image-size: $news-item-image-size;
|
30
|
+
|
31
|
+
%base-item {
|
32
|
+
margin-bottom: 1em;
|
33
|
+
|
34
|
+
&:hover {
|
35
|
+
%base-item-image {
|
36
|
+
opacity: .8;
|
37
|
+
}
|
38
|
+
|
39
|
+
%readmore:after {
|
40
|
+
left: .5em;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.us-article-group & {
|
45
|
+
@include respond-to(mobile) {
|
46
|
+
padding: 0;
|
47
|
+
margin-bottom: 0;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
%base-item-link {
|
53
|
+
@extend %bordered-box;
|
54
|
+
@extend %backface-visibility--hidden;
|
55
|
+
position: relative;
|
56
|
+
display: block;
|
57
|
+
overflow: hidden;
|
58
|
+
text-decoration: none;
|
59
|
+
background-color: #fff;
|
60
|
+
transition: border-color 333ms, background-color 333ms;
|
61
|
+
|
62
|
+
@include respond-to(small-tablet,true) {
|
63
|
+
padding-bottom: em(35px);
|
64
|
+
}
|
65
|
+
|
66
|
+
.us-article-group & {
|
67
|
+
@include respond-to(mobile) {
|
68
|
+
border-top-width: 0;
|
69
|
+
border-radius: 0;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
%base-item-title {
|
75
|
+
@extend %heading-4;
|
76
|
+
padding: $item-padding;
|
77
|
+
margin: 0;
|
78
|
+
color: $c-navy;
|
79
|
+
}
|
80
|
+
|
81
|
+
%base-item-description {
|
82
|
+
@include baseline(14px);
|
83
|
+
padding: 0 $item-padding;
|
84
|
+
color: $c-navy;
|
85
|
+
}
|
86
|
+
|
87
|
+
%base-item-image-container {
|
88
|
+
display: none;
|
89
|
+
|
90
|
+
@include respond-to(small-tablet, true) {
|
91
|
+
display: block;
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
%base-item-image {
|
96
|
+
@extend %backface-visibility--hidden;
|
97
|
+
width: 100%;
|
98
|
+
height: auto;
|
99
|
+
border-radius: em(5px) em(5px) 0 0;
|
100
|
+
transition: opacity 333ms;
|
101
|
+
|
102
|
+
&.background {
|
103
|
+
height: $base-item-image-size;
|
104
|
+
background-position: center center;
|
105
|
+
background-repeat: no-repeat;
|
106
|
+
background-size: cover;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
%readmore-link {
|
111
|
+
@include normal-font;
|
112
|
+
@include link-colors($c-typecyan, $c-typecyan, $c-typecyan, $c-typecyan);
|
113
|
+
border-bottom: 1px solid $c-typecyan;
|
114
|
+
}
|
115
|
+
|
116
|
+
%readmore {
|
117
|
+
position: absolute;
|
118
|
+
bottom: 0;
|
119
|
+
display: none;
|
120
|
+
padding: $item-padding;
|
121
|
+
color: $c-typecyan;
|
122
|
+
white-space: nowrap;
|
123
|
+
|
124
|
+
@include respond-to(small-tablet,true) {
|
125
|
+
display: block;
|
126
|
+
}
|
127
|
+
|
128
|
+
&:after {
|
129
|
+
@extend %link-triangle;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
.us-article-group {
|
134
|
+
@include respond-to(mobile) {
|
135
|
+
margin-bottom: 1em;
|
136
|
+
overflow: hidden;
|
137
|
+
|
138
|
+
%base-item:first-child {
|
139
|
+
%base-item-link {
|
140
|
+
border-top-width: 1px;
|
141
|
+
border-bottom-width: 1px;
|
142
|
+
border-radius: em(5px) em(5px) 0 0;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
%base-item:last-child {
|
147
|
+
%base-item-link {
|
148
|
+
border-bottom-width: 1px;
|
149
|
+
border-radius: 0 0 em(5px) em(5px);
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
|
155
|
+
.us-news-item {
|
156
|
+
@extend %base-item;
|
157
|
+
}
|
158
|
+
|
159
|
+
.us-news-item-link {
|
160
|
+
@extend %base-item-link;
|
161
|
+
}
|
162
|
+
|
163
|
+
.us-news-item-title {
|
164
|
+
@extend %base-item-title;
|
165
|
+
}
|
166
|
+
|
167
|
+
.us-news-item-snippet {
|
168
|
+
@extend %base-item-description;
|
169
|
+
}
|
170
|
+
|
171
|
+
.us-news-item-image-container {
|
172
|
+
@extend %base-item-image-container;
|
173
|
+
}
|
174
|
+
|
175
|
+
.us-news-item-image {
|
176
|
+
@extend %base-item-image;
|
177
|
+
}
|
178
|
+
|
179
|
+
.us-news-item-readmore {
|
180
|
+
@extend %readmore;
|
181
|
+
}
|
182
|
+
|
183
|
+
.us-news-item-readmorelink {
|
184
|
+
@extend %readmore-link;
|
185
|
+
}
|
186
|
+
|
187
|
+
.us-news-meta {
|
188
|
+
padding-right: $item-padding;
|
189
|
+
padding-left: $item-padding;
|
190
|
+
overflow: hidden;
|
191
|
+
|
192
|
+
.category,
|
193
|
+
.date {
|
194
|
+
padding-top: em(4px);
|
195
|
+
padding-bottom: em(4px);
|
196
|
+
font-size: em(13px);
|
197
|
+
font-weight: bold;
|
198
|
+
color: $c-navy;
|
199
|
+
|
200
|
+
@include respond-to(large-desktop) {
|
201
|
+
font-size: em(14px);
|
202
|
+
}
|
203
|
+
}
|
204
|
+
|
205
|
+
.date {
|
206
|
+
display: block;
|
207
|
+
float: right;
|
208
|
+
}
|
209
|
+
|
210
|
+
.category {
|
211
|
+
display: block;
|
212
|
+
float: left;
|
213
|
+
}
|
214
|
+
}
|
@@ -0,0 +1,74 @@
|
|
1
|
+
// @page Pattern Library/Articles
|
2
|
+
// @name Related items
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Related lists used for content sidebars
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <ul class="us-related us-list--reset">
|
9
|
+
// <li class="us-related__item">
|
10
|
+
// <a class="us-related__item-link" href="#">Car accident claims — How to make a car insurance claim</a>
|
11
|
+
// </li>
|
12
|
+
// <li class="us-related__item">
|
13
|
+
// <a class="us-related__item-link" href="#">How to get the best car insurance deals</a>
|
14
|
+
// </li>
|
15
|
+
// <li class="us-related__item">
|
16
|
+
// <a class="us-related__item-link" href="#">No claims bonus explained: how to protect a no claims discount</a>
|
17
|
+
// </li>
|
18
|
+
// <li class="us-related__item">
|
19
|
+
// <a class="us-related__item-link us-related__item-link--more" href="#">See more guides</a>
|
20
|
+
// </li>
|
21
|
+
// </ul>
|
22
|
+
|
23
|
+
.us-related {
|
24
|
+
margin-bottom: $gutter-width;
|
25
|
+
}
|
26
|
+
|
27
|
+
.us-related__item {
|
28
|
+
margin-bottom: 0;
|
29
|
+
}
|
30
|
+
|
31
|
+
.us-related__item-link {
|
32
|
+
@extend %clearfix;
|
33
|
+
@include link-colors($c-typegrey-2, $c-typecyan, $c-typegrey-2, $c-typegrey-2);
|
34
|
+
display: block;
|
35
|
+
padding-top: .5em;
|
36
|
+
padding-bottom: .5em;
|
37
|
+
border-bottom: 1px solid $c-bordergrey;
|
38
|
+
transition: color .3s, border-color .3s;
|
39
|
+
}
|
40
|
+
|
41
|
+
.us-related__item-link--more {
|
42
|
+
@include link-colors($c-typegrey, $c-typecyan, $c-typegrey, $c-typegrey);
|
43
|
+
padding-right: .5em;
|
44
|
+
text-align: right;
|
45
|
+
background-color: $c-cyan-light;
|
46
|
+
|
47
|
+
&:after {
|
48
|
+
@extend %link-triangle;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.us-related__item-title {
|
53
|
+
@extend %small-font;
|
54
|
+
@include normal-font;
|
55
|
+
vertical-align: middle;
|
56
|
+
|
57
|
+
@include respond-to(desktop) {
|
58
|
+
display: inline-block;
|
59
|
+
width: calc(100% - 90px);
|
60
|
+
margin-left: $gutter-width / 4;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.us-related__item-image {
|
65
|
+
@include respond-to(desktop) {
|
66
|
+
display: inline-block;
|
67
|
+
width: 70px;
|
68
|
+
height: 70px;
|
69
|
+
vertical-align: middle;
|
70
|
+
background-position: center center;
|
71
|
+
background-repeat: no-repeat;
|
72
|
+
background-size: 100%;
|
73
|
+
}
|
74
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
// -------------------------
|
2
|
+
// These are default, handy extends that can be used anywhere to minimise
|
3
|
+
// repetition and keep everything compartmentalised in CSS
|
4
|
+
// -------------------------
|
5
|
+
|
6
|
+
%float-left {
|
7
|
+
float: left;
|
8
|
+
}
|
9
|
+
|
10
|
+
%float-right {
|
11
|
+
float: right;
|
12
|
+
}
|
13
|
+
|
14
|
+
%reset-box-model {
|
15
|
+
padding: 0;
|
16
|
+
margin: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
// Clearfix - micro clearfix
|
20
|
+
|
21
|
+
%clearfix {
|
22
|
+
@include clearfix;
|
23
|
+
}
|
24
|
+
|
25
|
+
// A bordered box used for all news/guide/seemore/block items
|
26
|
+
|
27
|
+
%bordered-box {
|
28
|
+
border: 1px solid $c-bordergrey;
|
29
|
+
border-radius: em(5px);
|
30
|
+
|
31
|
+
&:hover {
|
32
|
+
border-color: $c-typecyan;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
// Triangle used across all buttons/link lists
|
37
|
+
|
38
|
+
%link-triangle {
|
39
|
+
position: relative;
|
40
|
+
left: 0;
|
41
|
+
display: inline;
|
42
|
+
margin: 0 0 0 .5em;
|
43
|
+
font-size: .5em;
|
44
|
+
line-height: 0;
|
45
|
+
vertical-align: middle;
|
46
|
+
content: "\25b6";
|
47
|
+
transition: left 200ms;
|
48
|
+
}
|
49
|
+
|
50
|
+
// Vertical alignment helpers
|
51
|
+
|
52
|
+
%vertical-align-parent {
|
53
|
+
transform-style: preserve-3d;
|
54
|
+
}
|
55
|
+
|
56
|
+
%vertical-align-child {
|
57
|
+
top: 50%;
|
58
|
+
transform: translateY(-50%);
|
59
|
+
}
|
60
|
+
|
61
|
+
// Backface visibility
|
62
|
+
%backface-visibility--hidden {
|
63
|
+
backface-visibility: hidden;
|
64
|
+
}
|
65
|
+
|
66
|
+
// Normalise Firefox mobile inputs - https://bugzilla.mozilla.org/show_bug.cgi?id=763671
|
67
|
+
%input-background--normalise {
|
68
|
+
background-image: none;
|
69
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@if $needs-font-ie {
|
2
|
+
@font-face {
|
3
|
+
font-family: "FS Elliot Web Bold";
|
4
|
+
font-style: normal;
|
5
|
+
font-weight: 700;
|
6
|
+
// [doc]
|
7
|
+
// Setting the font to OpenSans to override older legacy parts
|
8
|
+
src: url("#{$base-font-url}OpenSans-Bold-webfont.eot");
|
9
|
+
}
|
10
|
+
|
11
|
+
@font-face {
|
12
|
+
font-family: "Open Sans";
|
13
|
+
font-style: normal;
|
14
|
+
font-weight: 400;
|
15
|
+
src: url("#{$base-font-url}OpenSans-Regular-webfont.eot");
|
16
|
+
}
|
17
|
+
|
18
|
+
@font-face {
|
19
|
+
font-family: "Open Sans";
|
20
|
+
font-style: italic;
|
21
|
+
font-weight: 400;
|
22
|
+
src: url("#{$base-font-url}OpenSans-Italic-webfont.eot");
|
23
|
+
}
|
24
|
+
|
25
|
+
@font-face {
|
26
|
+
font-family: "Open Sans";
|
27
|
+
font-style: normal;
|
28
|
+
font-weight: 700;
|
29
|
+
src: url("#{$base-font-url}OpenSans-Bold-webfont.eot");
|
30
|
+
}
|
31
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@if $needs-font {
|
2
|
+
@font-face {
|
3
|
+
font-family: "FS Elliot Web Bold";
|
4
|
+
font-style: normal;
|
5
|
+
font-weight: 700;
|
6
|
+
// [doc]
|
7
|
+
// Setting the font to OpenSans to override older legacy parts
|
8
|
+
src: local("Open Sans Bold"), local("OpenSans-Bold"), url("#{$base-font-url}OpenSans-Bold-webfont.woff") format("woff"), url("#{$base-font-url}OpenSans-Bold-webfont.ttf") format("truetype");
|
9
|
+
}
|
10
|
+
|
11
|
+
@font-face {
|
12
|
+
font-family: "Open Sans";
|
13
|
+
font-style: normal;
|
14
|
+
font-weight: 400;
|
15
|
+
src: local("Open Sans"), local("OpenSans"), url("#{$base-font-url}OpenSans-Regular-webfont.woff") format("woff"), url("#{$base-font-url}OpenSans-Regular-webfont.ttf") format("truetype");
|
16
|
+
}
|
17
|
+
|
18
|
+
@font-face {
|
19
|
+
font-family: "Open Sans";
|
20
|
+
font-style: italic;
|
21
|
+
font-weight: 400;
|
22
|
+
src: local("Open Sans Italic"), local("OpenSans-Italic"), url("#{$base-font-url}OpenSans-Italic-webfont.woff") format("woff"), url("#{$base-font-url}OpenSans-Italic-webfont.ttf") format("truetype");
|
23
|
+
}
|
24
|
+
|
25
|
+
@font-face {
|
26
|
+
font-family: "Open Sans";
|
27
|
+
font-style: normal;
|
28
|
+
font-weight: 700;
|
29
|
+
src: local("Open Sans Bold"), local("OpenSans-Bold"), url("#{$base-font-url}OpenSans-Bold-webfont.woff") format("woff"), url("#{$base-font-url}OpenSans-Bold-webfont.ttf") format("truetype");
|
30
|
+
}
|
31
|
+
}
|