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,27 @@
|
|
1
|
+
// Extends here are used to minimise repetition and reuse already
|
2
|
+
// declared font families across the site. It is not recommended that you
|
3
|
+
// redeclare font families on other components. Instead extend these.
|
4
|
+
|
5
|
+
%heading-font {
|
6
|
+
font: {
|
7
|
+
family: $heading-font;
|
8
|
+
weight: 700;
|
9
|
+
};
|
10
|
+
}
|
11
|
+
|
12
|
+
%heading-font-primary {
|
13
|
+
@extend %heading-font;
|
14
|
+
}
|
15
|
+
|
16
|
+
%heading-font-secondary {
|
17
|
+
@extend %heading-font;
|
18
|
+
}
|
19
|
+
|
20
|
+
%normal-font {
|
21
|
+
font-family: $normal-font;
|
22
|
+
}
|
23
|
+
|
24
|
+
%italic-font {
|
25
|
+
@extend %normal-font;
|
26
|
+
font-style: italic;
|
27
|
+
}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
/// Returns a `rem` value from pixels
|
2
|
+
///
|
3
|
+
/// @param {Number (unit)} $pixels
|
4
|
+
/// The pixel number you want converted to `rem`
|
5
|
+
///
|
6
|
+
/// @param {Number (unit)} $font-size [$base-font-size]
|
7
|
+
/// The font-size relative to `rems`
|
8
|
+
///
|
9
|
+
/// @return {Unit}
|
10
|
+
|
11
|
+
@function rem($pixels, $font-size: $base-font-size) {
|
12
|
+
@return $pixels / $font-size * 1rem;
|
13
|
+
}
|
14
|
+
|
15
|
+
/// Returns a `em` value from pixels
|
16
|
+
///
|
17
|
+
/// @param {Number (unit)} $pixels
|
18
|
+
/// The pixel number you want converted to `em`
|
19
|
+
///
|
20
|
+
/// @param {Number (unit)} $font-size [$base-font-size]
|
21
|
+
/// The font-size relative to `ems`
|
22
|
+
///
|
23
|
+
/// @return {Unit}
|
24
|
+
|
25
|
+
@function em($pixels, $font-size: $base-font-size) {
|
26
|
+
@return $pixels / $font-size * 1em;
|
27
|
+
}
|
28
|
+
|
29
|
+
/// Returns a column % from `$grid-columns`
|
30
|
+
///
|
31
|
+
/// @param {Number (unitless)} $columns
|
32
|
+
/// The column number to convert to a % of the grid
|
33
|
+
///
|
34
|
+
/// @return {Unit (percentage)}
|
35
|
+
|
36
|
+
@function col-width($columns) {
|
37
|
+
@return percentage($columns / $grid-columns);
|
38
|
+
}
|
39
|
+
|
40
|
+
/// Returns a colour based on a black + `$color` percentage mix
|
41
|
+
///
|
42
|
+
/// @param {String} $color
|
43
|
+
/// The colour you want to darken
|
44
|
+
///
|
45
|
+
/// @param {Number (unit)} $percentage
|
46
|
+
/// The percentage amount to mix of black with the colour
|
47
|
+
|
48
|
+
@function shade($color, $percentage) {
|
49
|
+
@return mix(#000, $color, $percentage);
|
50
|
+
}
|
51
|
+
|
52
|
+
/// Returns a colour based on a white + `$color` percentage mix
|
53
|
+
///
|
54
|
+
/// @param {String} $color
|
55
|
+
/// The colour you want to darken
|
56
|
+
///
|
57
|
+
/// @param {Number (unit)} $percentage
|
58
|
+
/// The percentage amount to mix of white with the colour
|
59
|
+
|
60
|
+
@function tint($color, $percentage) {
|
61
|
+
@return mix(#fff, $color, $percentage);
|
62
|
+
}
|
63
|
+
|
64
|
+
/// Returns the opposite direction of each direction in a list
|
65
|
+
/// @param {List} $directions - List of initial directions
|
66
|
+
/// @return {List} - List of opposite directions
|
67
|
+
|
68
|
+
@function opposite-direction($directions) {
|
69
|
+
$opposite-directions: ();
|
70
|
+
$directions-normal: "top", "bottom", "left", "right", "up", "down";
|
71
|
+
$directions-opposite: "bottom", "top", "right", "left", "down", "up";
|
72
|
+
|
73
|
+
@each $direction in $directions {
|
74
|
+
$opposite-directions: append($opposite-directions, unquote(nth($directions-opposite, index($directions-normal, $direction))));
|
75
|
+
}
|
76
|
+
|
77
|
+
@return $opposite-directions;
|
78
|
+
}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
////
|
2
|
+
//// @author David Annez
|
3
|
+
//// @group Grid
|
4
|
+
////
|
5
|
+
|
6
|
+
/// Adds a negative left and right margin of `$gutter-width / 2` to normalise the outer padding of columns
|
7
|
+
///
|
8
|
+
/// @param {String} $breakpoint [$default-grid-breakpoint]
|
9
|
+
/// The breakpoint where you want the margin to be set
|
10
|
+
|
11
|
+
@mixin us-row($breakpoint: $default-grid-breakpoint) {
|
12
|
+
@extend %clearfix;
|
13
|
+
@if $breakpoint == "mobile" {
|
14
|
+
margin-right: -$gutter-width / 2;
|
15
|
+
margin-left: -$gutter-width / 2;
|
16
|
+
} @else {
|
17
|
+
@include respond-to($breakpoint, true) {
|
18
|
+
margin-right: -$gutter-width / 2;
|
19
|
+
margin-left: -$gutter-width / 2;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
/// The grid column builder for uSwitch - floats, sets a % width and adds left and right padding for column gutters
|
25
|
+
///
|
26
|
+
/// @param {Number (unitless)} $cols
|
27
|
+
/// The number of columns to make the selected element
|
28
|
+
|
29
|
+
@mixin us-col($cols) {
|
30
|
+
float: left;
|
31
|
+
padding-left: $gutter-width / 2;
|
32
|
+
padding-right: $gutter-width / 2;
|
33
|
+
width: col-width($cols);
|
34
|
+
}
|
35
|
+
|
36
|
+
/// Grid class and extend generator for ease of class/no-class use
|
37
|
+
///
|
38
|
+
/// @access private
|
39
|
+
///
|
40
|
+
/// @param {String} $selector
|
41
|
+
/// The CSS selector to use for building the the grid placeholders and classes
|
42
|
+
///
|
43
|
+
/// @param {Number (unitless)} $cols
|
44
|
+
/// The number of columns for the `$selector`
|
45
|
+
///
|
46
|
+
/// @param {Bool} $html-classes [$html-grid-classes]
|
47
|
+
/// If set to false will only output placeholder classes for selective CSS generation
|
48
|
+
|
49
|
+
@mixin _grid-class($selector, $cols, $html-classes: $html-grid-classes) {
|
50
|
+
@if $html-classes {
|
51
|
+
.#{$selector}-#{$cols},
|
52
|
+
%#{$selector}-#{$cols} {
|
53
|
+
@include us-col($cols);
|
54
|
+
}
|
55
|
+
} @else {
|
56
|
+
%#{$selector}-#{$cols} {
|
57
|
+
@include us-col($cols);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
%us-grid-row {
|
63
|
+
@include us-row;
|
64
|
+
}
|
65
|
+
|
66
|
+
%container {
|
67
|
+
@extend %clearfix;
|
68
|
+
position: relative;
|
69
|
+
padding: 0 $gutter-width / 2;
|
70
|
+
margin-right: auto;
|
71
|
+
margin-left: auto;
|
72
|
+
|
73
|
+
@include respond-to(tablet) {
|
74
|
+
max-width: $tablet-container-width;
|
75
|
+
}
|
76
|
+
|
77
|
+
@include respond-to(desktop, true) {
|
78
|
+
max-width: $desktop-container-width;
|
79
|
+
}
|
80
|
+
|
81
|
+
@include respond-to(large-desktop) {
|
82
|
+
max-width: $large-container-width;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
@import "ustyle/components/grid-classes";
|
@@ -0,0 +1,123 @@
|
|
1
|
+
@if $establish-type-rules {
|
2
|
+
// @page Pattern Library/Typography
|
3
|
+
// @name Headings
|
4
|
+
//
|
5
|
+
// @description
|
6
|
+
// The default heading styling across all uSwitch pages.
|
7
|
+
// We allow extending the sizes of these headings with `%heading-{$i}` so that we don't repeat similar font sizes across the site
|
8
|
+
//
|
9
|
+
// @markup
|
10
|
+
// <h1>Heading 1</h1>
|
11
|
+
// <h2>Heading 2</h2>
|
12
|
+
// <h3>Heading 3</h3>
|
13
|
+
// <h4>Heading 4</h4>
|
14
|
+
// <h5>Heading 5</h5>
|
15
|
+
// <h6>Heading 6</h6>
|
16
|
+
|
17
|
+
html {
|
18
|
+
@include normal-font;
|
19
|
+
font-size: $base-font-size;
|
20
|
+
line-height: $base-line-ratio + em;
|
21
|
+
}
|
22
|
+
|
23
|
+
body {
|
24
|
+
color: $c-typegrey;
|
25
|
+
}
|
26
|
+
|
27
|
+
h1,
|
28
|
+
h2,
|
29
|
+
h3,
|
30
|
+
h4,
|
31
|
+
h5,
|
32
|
+
h6 {
|
33
|
+
margin-top: 0;
|
34
|
+
margin-bottom: .375em;
|
35
|
+
}
|
36
|
+
|
37
|
+
@for $level from 1 through 6 {
|
38
|
+
h#{$level},
|
39
|
+
%heading-#{$level},
|
40
|
+
.us-heading--#{$level} {
|
41
|
+
@include heading($level);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
// @page Pattern Library/Typography
|
46
|
+
// @name Paragraphs
|
47
|
+
//
|
48
|
+
// @description
|
49
|
+
// Default paragraph styling with a margin bottom.
|
50
|
+
//
|
51
|
+
// @state .us-standfirst - Used for heros and introductory paragraphs
|
52
|
+
//
|
53
|
+
// @markup
|
54
|
+
// <p class="{$modifiers}">
|
55
|
+
// Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean vel arcu non magna varius sagittis vel at elit.
|
56
|
+
// Vivamus et orci pretium, commodo eros vitae, tincidunt purus. Nunc consequat condimentum porttitor.
|
57
|
+
// Cras at mi sed quam hendrerit bibendum ac a lorem. Mauris a sapien vitae massa lacinia malesuada.
|
58
|
+
// </p>
|
59
|
+
|
60
|
+
p,
|
61
|
+
.trailered {
|
62
|
+
margin: 0 0 1.5em 0;
|
63
|
+
}
|
64
|
+
|
65
|
+
.us-standfirst {
|
66
|
+
@include baseline(18px);
|
67
|
+
}
|
68
|
+
|
69
|
+
// @page Pattern Library/Typography
|
70
|
+
// @name Lists
|
71
|
+
//
|
72
|
+
// @description
|
73
|
+
// Normal list styling
|
74
|
+
//
|
75
|
+
// @markup
|
76
|
+
// <ul>
|
77
|
+
// <li>List item 1</li>
|
78
|
+
// <li>List item 2</li>
|
79
|
+
// <li>List item 3</li>
|
80
|
+
// </ul>
|
81
|
+
|
82
|
+
ul {
|
83
|
+
li {
|
84
|
+
margin-bottom: .5em;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
small {
|
89
|
+
line-height: 1.15em;
|
90
|
+
}
|
91
|
+
|
92
|
+
%small-font {
|
93
|
+
font-size: em(14px);
|
94
|
+
line-height: 1.15em;
|
95
|
+
}
|
96
|
+
|
97
|
+
// @page Pattern Library/Typography
|
98
|
+
// @name Blockquote
|
99
|
+
//
|
100
|
+
// @description
|
101
|
+
// Default blockquote
|
102
|
+
//
|
103
|
+
// @markup
|
104
|
+
// <blockquote>
|
105
|
+
// <p>
|
106
|
+
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
107
|
+
// Aenean vel arcu non magna varius sagittis vel at elit.
|
108
|
+
// Vivamus et orci pretium, commodo eros vitae, tincidunt purus.
|
109
|
+
// </p>
|
110
|
+
// </blockquote>
|
111
|
+
|
112
|
+
blockquote {
|
113
|
+
@include italic-font;
|
114
|
+
padding: $gutter-width / 2;
|
115
|
+
color: $c-navy;
|
116
|
+
border-left: 5px solid $c-bordergrey;
|
117
|
+
|
118
|
+
> p {
|
119
|
+
padding: 0 !important;
|
120
|
+
margin: 0 !important;
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
@@ -0,0 +1,188 @@
|
|
1
|
+
// ----------
|
2
|
+
// Colors
|
3
|
+
// ----------
|
4
|
+
@import "ustyle/basics/variables/colors";
|
5
|
+
|
6
|
+
// ----------
|
7
|
+
// Forms
|
8
|
+
// ----------
|
9
|
+
@import "ustyle/basics/variables/forms";
|
10
|
+
|
11
|
+
// ----------
|
12
|
+
// Fonts
|
13
|
+
// ----------
|
14
|
+
|
15
|
+
/// If using a uStyle project outside of www.uswitch.com domain or one that lacks the power the includes, then
|
16
|
+
/// set this to `true` to import the correct `@font-face` declarations.
|
17
|
+
///
|
18
|
+
/// @group fonts
|
19
|
+
/// @type Bool
|
20
|
+
|
21
|
+
$needs-font: false !default;
|
22
|
+
|
23
|
+
/// Same as `$needs-font` but also imports the EOT's so that fonts work in < IE8
|
24
|
+
///
|
25
|
+
/// @group fonts
|
26
|
+
/// @type Bool
|
27
|
+
|
28
|
+
$needs-font-ie: false !default;
|
29
|
+
|
30
|
+
/// Set this to wherever you are serving the uSwitch fonts from.
|
31
|
+
///
|
32
|
+
/// @group fonts
|
33
|
+
/// @type String
|
34
|
+
|
35
|
+
$base-font-url: "//fonts.uswitch.com/" !default;
|
36
|
+
|
37
|
+
/// The primary heading font stack
|
38
|
+
///
|
39
|
+
/// @group fonts
|
40
|
+
/// @type String
|
41
|
+
|
42
|
+
$heading-font: "Open Sans", Helvetica, Arial, sans-serif !default;
|
43
|
+
|
44
|
+
/// The primary heading font stack
|
45
|
+
///
|
46
|
+
/// @deprecated use `$heading-font`
|
47
|
+
/// @group fonts
|
48
|
+
/// @type String
|
49
|
+
|
50
|
+
$heading-font-primary: $heading-font !default;
|
51
|
+
|
52
|
+
/// The secondary heading font stack
|
53
|
+
///
|
54
|
+
/// @deprecated use `$heading-font`
|
55
|
+
/// @group fonts
|
56
|
+
/// @type String
|
57
|
+
|
58
|
+
$heading-font-secondary: $heading-font !default;
|
59
|
+
|
60
|
+
/// The default sans-serif font stack
|
61
|
+
///
|
62
|
+
/// @group fonts
|
63
|
+
/// @type String
|
64
|
+
|
65
|
+
$normal-font: "Open Sans", Helvetica, Arial, sans-serif !default;
|
66
|
+
|
67
|
+
// ----------
|
68
|
+
// Icons
|
69
|
+
// ----------
|
70
|
+
|
71
|
+
@import "ustyle/basics/variables/icons";
|
72
|
+
|
73
|
+
// ----------
|
74
|
+
// Typography
|
75
|
+
// ----------
|
76
|
+
|
77
|
+
/// By default we establish normalised type rules for `body`. Certain projects won't need this or would rather
|
78
|
+
/// override, so set this to false if you don't want the default typography rules to kick in
|
79
|
+
///
|
80
|
+
/// @group typography
|
81
|
+
/// @type Bool
|
82
|
+
|
83
|
+
$establish-type-rules: true !default;
|
84
|
+
|
85
|
+
/// The base font size where every other type setting inherits from
|
86
|
+
///
|
87
|
+
/// @group typography
|
88
|
+
/// @type Number (pixels)
|
89
|
+
|
90
|
+
$base-font-size: 16px !default;
|
91
|
+
|
92
|
+
/// The base line height for mapped for the `$base-font-size`
|
93
|
+
///
|
94
|
+
/// @group typography
|
95
|
+
/// @type Number (pixels)
|
96
|
+
|
97
|
+
$base-line-height: 24px !default;
|
98
|
+
|
99
|
+
/// The cap height for the uSwitch fonts (average)
|
100
|
+
///
|
101
|
+
/// @group typography
|
102
|
+
/// @type Number (unitless)
|
103
|
+
|
104
|
+
$base-cap-height: .6 !default;
|
105
|
+
|
106
|
+
/// The line ratio for establishing a baseline - set as the golden ratio
|
107
|
+
///
|
108
|
+
/// @group typography
|
109
|
+
/// @type Number (unitless)
|
110
|
+
|
111
|
+
$base-line-ratio: 1.618 !default;
|
112
|
+
|
113
|
+
$base-scale: 2 !default;
|
114
|
+
$base-unit: $base-font-size * $base-line-ratio / $base-scale !default;
|
115
|
+
|
116
|
+
/// A list containing the 6 heading font sizes used across uStyle
|
117
|
+
///
|
118
|
+
/// @group typography
|
119
|
+
/// @type List
|
120
|
+
|
121
|
+
$heading-font-sizes: 36px, 30px, 24px, 18px, 16px, 16px !default;
|
122
|
+
|
123
|
+
/// A list with the 6 corresponding line heights for headings
|
124
|
+
///
|
125
|
+
/// @group typography
|
126
|
+
/// @type List
|
127
|
+
|
128
|
+
$heading-line-heights: 1.3, 1.3, 1.25, 1.25, .95, .95 !default;
|
129
|
+
|
130
|
+
// ----------
|
131
|
+
// Grid
|
132
|
+
// ----------
|
133
|
+
|
134
|
+
/// If set to false will not give you CSS classes for your grid like `.us-col-6` but rather the placeholder class
|
135
|
+
/// instead
|
136
|
+
///
|
137
|
+
/// @group grid
|
138
|
+
/// @type Bool
|
139
|
+
|
140
|
+
$html-grid-classes: true !default;
|
141
|
+
|
142
|
+
/// Column width for calculating the uSwitch grid
|
143
|
+
///
|
144
|
+
/// @group grid
|
145
|
+
/// @type Number (unit)
|
146
|
+
|
147
|
+
$col-width: 70px !default;
|
148
|
+
|
149
|
+
/// Gutter width for calculating the uSwitch grid
|
150
|
+
///
|
151
|
+
/// @group grid
|
152
|
+
/// @type Number (unit)
|
153
|
+
|
154
|
+
$gutter-width: 30px !default;
|
155
|
+
|
156
|
+
/// Number of columns for large screens
|
157
|
+
///
|
158
|
+
/// @group grid
|
159
|
+
/// @type Number (unitless)
|
160
|
+
|
161
|
+
$grid-columns: 12 !default;
|
162
|
+
|
163
|
+
/// Number of columns for desktop screens
|
164
|
+
///
|
165
|
+
/// @group grid
|
166
|
+
/// @type Number (unitless)
|
167
|
+
|
168
|
+
$grid-columns-desktop: 10 !default;
|
169
|
+
|
170
|
+
/// Number of columns for tablet screens and below
|
171
|
+
///
|
172
|
+
/// @group grid
|
173
|
+
/// @type Number (unitless)
|
174
|
+
|
175
|
+
$grid-columns-tablet: 8 !default;
|
176
|
+
|
177
|
+
/// The device breakpoint that all ustyle elements respond to
|
178
|
+
///
|
179
|
+
/// @group grid
|
180
|
+
/// @type String
|
181
|
+
|
182
|
+
$default-grid-breakpoint: tablet !default;
|
183
|
+
|
184
|
+
// Containers
|
185
|
+
|
186
|
+
$large-container-width: $grid-columns * $col-width + $grid-columns * $gutter-width;
|
187
|
+
$desktop-container-width: $grid-columns-desktop * $col-width + $grid-columns-desktop * $gutter-width;
|
188
|
+
$tablet-container-width: $grid-columns-tablet * $col-width + $grid-columns-tablet * $gutter-width;
|
@@ -0,0 +1,95 @@
|
|
1
|
+
// @page Brand/Colours
|
2
|
+
// @name Primary palette
|
3
|
+
// @partial colour
|
4
|
+
//
|
5
|
+
// @description Our colours (with a “u”, we’re a UK company) are divided into primary, secondary and tertiary palettes. The primary and secondary are core to all our design work and supported by the tertiary which we use in infographics, graphs and the like. CMYK equivalents are available for print work.
|
6
|
+
//
|
7
|
+
// @variable c-cyan - Hero banners
|
8
|
+
// @variable c-navy - Text with emphasis
|
9
|
+
// @variable c-blue - Logo
|
10
|
+
// @variable c-typecyan - Text links, icons
|
11
|
+
// @variable c-typegrey - Body text
|
12
|
+
// @variable c-typegrey-2 - Text without emphasis
|
13
|
+
// @variable c-inputgrey - Dropdowns, icons
|
14
|
+
// @variable c-bordergrey - Borders
|
15
|
+
// @variable c-keylinegrey - Keylines, separators
|
16
|
+
// @variable c-bggrey - Backgrounds
|
17
|
+
|
18
|
+
$c-navy: #1c1f4e;
|
19
|
+
$c-blue: #174695;
|
20
|
+
$c-typecyan: #008fe9;
|
21
|
+
$c-cyan: #99e2ff;
|
22
|
+
$c-typegrey: #333;
|
23
|
+
$c-typegrey-2: #767676;
|
24
|
+
$c-inputgrey: #97999a;
|
25
|
+
$c-bordergrey: #bbb;
|
26
|
+
$c-keylinegrey: #eaeaea;
|
27
|
+
$c-bggrey: #f4f4f4;
|
28
|
+
|
29
|
+
// @page Brand/Colours
|
30
|
+
// @name Secondary palette
|
31
|
+
// @partial colour
|
32
|
+
//
|
33
|
+
// @variable c-red - Primary buttons
|
34
|
+
// @variable c-green - Action buttons, USPs
|
35
|
+
// @variable c-yellow - USPs
|
36
|
+
// @variable c-orange - USPs
|
37
|
+
// @variable c-purple - USPs
|
38
|
+
// @variable c-navy-light
|
39
|
+
// @variable c-blue-light
|
40
|
+
// @variable c-typecyan-light
|
41
|
+
// @variable c-cyan-light
|
42
|
+
|
43
|
+
$c-yellow: #ffd32f;
|
44
|
+
$c-orange: #f27930;
|
45
|
+
$c-purple: #9c55b8;
|
46
|
+
$c-red: #d64226;
|
47
|
+
$c-green: #2aaa5b;
|
48
|
+
$c-navy-light: #1a316e;
|
49
|
+
$c-blue-light: #0c72bf;
|
50
|
+
$c-typecyan-light: #4cc0f4;
|
51
|
+
$c-cyan-light: #e4f8ff;
|
52
|
+
|
53
|
+
// @page Brand/Colours
|
54
|
+
// @name Tertiary palette
|
55
|
+
// @partial colour
|
56
|
+
//
|
57
|
+
// @variable c-yellow-lightest
|
58
|
+
// @variable c-yellow-light
|
59
|
+
// @variable c-yellow-dark
|
60
|
+
//
|
61
|
+
// @variable c-orange-lightest
|
62
|
+
// @variable c-orange-light
|
63
|
+
// @variable c-orange-dark
|
64
|
+
//
|
65
|
+
// @variable c-purple-lightest
|
66
|
+
// @variable c-purple-light
|
67
|
+
// @variable c-purple-dark
|
68
|
+
//
|
69
|
+
// @variable c-red-lightest
|
70
|
+
// @variable c-red-light
|
71
|
+
// @variable c-red-dark
|
72
|
+
//
|
73
|
+
// @variable c-green-lightest
|
74
|
+
// @variable c-green-light
|
75
|
+
// @variable c-green-dark
|
76
|
+
|
77
|
+
$c-yellow-lightest: #ffedab;
|
78
|
+
$c-yellow-light: #ffe06d;
|
79
|
+
$c-yellow-dark: #d8b327;
|
80
|
+
|
81
|
+
$c-orange-lightest: #f9c9ac;
|
82
|
+
$c-orange-light: #f5a16e;
|
83
|
+
$c-orange-dark: #cd6628;
|
84
|
+
|
85
|
+
$c-purple-lightest: #d7bbe2;
|
86
|
+
$c-purple-light: #b988cd;
|
87
|
+
$c-purple-dark: #84489c;
|
88
|
+
|
89
|
+
$c-red-lightest: #eeb3a8;
|
90
|
+
$c-red-light: #e27a67;
|
91
|
+
$c-red-dark: #b53820;
|
92
|
+
|
93
|
+
$c-green-lightest: #a9ddbd;
|
94
|
+
$c-green-light: #69c38c;
|
95
|
+
$c-green-dark: #23904d;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
////
|
2
|
+
//// @group Forms
|
3
|
+
////
|
4
|
+
|
5
|
+
/// The base height for all our form elements
|
6
|
+
///
|
7
|
+
/// @type Number (pixels)
|
8
|
+
|
9
|
+
$form-element-base-height: 37px !default;
|
10
|
+
|
11
|
+
/// Padding that is shared across form elements
|
12
|
+
///
|
13
|
+
/// @type Number (em)
|
14
|
+
|
15
|
+
$form-element-base-padding: .35em .5em !default;
|
16
|
+
|
17
|
+
/// Background color for our form elements
|
18
|
+
///
|
19
|
+
/// @type String (hex)
|
20
|
+
|
21
|
+
$c-form-element-text: $c-typegrey !default;
|
22
|
+
|
23
|
+
/// Background color for our form elements
|
24
|
+
///
|
25
|
+
/// @type String (hex)
|
26
|
+
|
27
|
+
$c-form-element-background: #fff !default;
|
28
|
+
|
29
|
+
/// Default border color for all form elements
|
30
|
+
///
|
31
|
+
/// @type Variable | String (pixels)
|
32
|
+
|
33
|
+
$c-form-element-border: $c-inputgrey !default;
|
34
|
+
|
35
|
+
/// Default border active colour for all form elements
|
36
|
+
///
|
37
|
+
/// @type Variable | String (pixels)
|
38
|
+
|
39
|
+
$c-form-element-border-hover: $c-typecyan !default;
|
40
|
+
|
41
|
+
/// Disabled foreground colour for form elements
|
42
|
+
///
|
43
|
+
/// @type String (pixels)
|
44
|
+
|
45
|
+
$c-form-element-disabled-fg: #ddd !default;
|
46
|
+
$c-input-disabled-foreground: $c-form-element-disabled-fg;
|
47
|
+
|
48
|
+
/// Disabled background colour for form elements
|
49
|
+
///
|
50
|
+
/// @type Variable | String (pixels)
|
51
|
+
|
52
|
+
$c-form-element-disabled-bg: #fafafa !default;
|
53
|
+
$c-input-disabled-background: $c-form-element-disabled-fg;
|
54
|
+
|
55
|
+
/// Error color for form elements
|
56
|
+
///
|
57
|
+
/// @type Variable | String (pixels)
|
58
|
+
|
59
|
+
$c-form-error: $c-red !default;
|
60
|
+
|
61
|
+
/// Success color for form elements
|
62
|
+
///
|
63
|
+
/// @type Variable | String (pixels)
|
64
|
+
|
65
|
+
$c-form-success: $c-green !default;
|