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,79 @@
|
|
1
|
+
---
|
2
|
+
name: Imagery
|
3
|
+
---
|
4
|
+
|
5
|
+
<p>Our brand imagery is made up of <strong>lifestyle photography, product and object images, illustrations,</strong> and <strong>infographics.</strong> All of our imagery types should reassert our brand values of fairness, clarity and confidence.</p>
|
6
|
+
<p>It’s important to remember that imagery is an extension of the uSwitch brand. It's use is to support or convey a message, not drive it.</p>
|
7
|
+
<div class="us-content-group">
|
8
|
+
<h2>Lifestyle photography</h2>
|
9
|
+
|
10
|
+
<p>Lifestyle photography should have a British feel where possible, avoiding obviously American or global images. It should be ‘reportage’ in style, avoiding cheesy, posed, forced or unrealistic photography.</p>
|
11
|
+
<div class="us-grid-row">
|
12
|
+
<div class="us-col-md-6">
|
13
|
+
<img class="us-img--full trailered" src="/images/lifestyle-photography-01.png">
|
14
|
+
<img class="us-img--full trailered" src="/images/lifestyle-photography-02.png">
|
15
|
+
<img class="us-img--full trailered" src="/images/lifestyle-photography-05.png">
|
16
|
+
<img class="us-img--full trailered" src="/images/lifestyle-photography-06.png">
|
17
|
+
</div>
|
18
|
+
<div class="us-col-md-6">
|
19
|
+
<img class="us-img--full trailered" src="/images/lifestyle-photography-03.png">
|
20
|
+
<img class="us-img--full trailered" src="/images/lifestyle-photography-04.png">
|
21
|
+
<img class="us-img--full trailered" src="/images/lifestyle-photography-07.png">
|
22
|
+
<img class="us-img--full trailered" src="/images/lifestyle-photography-08.png">
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<div class="us-content-group">
|
27
|
+
<h2>Product and object images</h2>
|
28
|
+
<p>Our product and object focused imagery may be cut out over our brand colours, brand gradients or white. When objects aren’t cut out, they should be realistic in their setting and not appear staged. Images should be straightforward, not overly metaphor based, and should not appear noticeably manipulatd. Images should be ‘documentary’ in style, avoiding cheesy, posed, forced or unrealistic photography.</p>
|
29
|
+
<p>This will also extend into 3D renderings of objects, which are used within the banner areas of our website.</p>
|
30
|
+
<div class="us-grid-row">
|
31
|
+
<div class="us-col-md-6">
|
32
|
+
<img class="us-img--full trailered" src="/images/object-photography-01.png">
|
33
|
+
<img class="us-img--full trailered" src="/images/object-photography-02.png">
|
34
|
+
<img class="us-img--full trailered" src="/images/object-photography-05.png">
|
35
|
+
<img class="us-img--full trailered" src="/images/object-photography-06.png">
|
36
|
+
</div>
|
37
|
+
<div class="us-col-md-6">
|
38
|
+
<img class="us-img--full trailered" src="/images/object-photography-03.png">
|
39
|
+
<img class="us-img--full trailered" src="/images/object-photography-04.png">
|
40
|
+
<img class="us-img--full trailered" src="/images/object-photography-07.png">
|
41
|
+
<img class="us-img--full trailered" src="/images/object-photography-08.png">
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
45
|
+
<div class="us-content-group">
|
46
|
+
<h2>Illustrations</h2>
|
47
|
+
<p>Our illustration style should be straightforward, clean and simple. Illustrations should be put over our brand colours, gradients or white, and they should be 2-D where possible, and not be overly metaphor based or cliché.</p>
|
48
|
+
<div class="us-grid-row">
|
49
|
+
<div class="us-col-md-6">
|
50
|
+
<img class="us-img--full trailered" src="/images/illustration-01.png">
|
51
|
+
<img class="us-img--full trailered" src="/images/illustration-02.png">
|
52
|
+
<img class="us-img--full trailered" src="/images/illustration-05.png">
|
53
|
+
<img class="us-img--full trailered" src="/images/illustration-06.png">
|
54
|
+
</div>
|
55
|
+
<div class="us-col-md-6">
|
56
|
+
<img class="us-img--full trailered" src="/images/illustration-03.png">
|
57
|
+
<img class="us-img--full trailered" src="/images/illustration-04.png">
|
58
|
+
<img class="us-img--full trailered" src="/images/illustration-07.png">
|
59
|
+
<img class="us-img--full trailered" src="/images/illustration-08.png">
|
60
|
+
</div>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
<div class="us-content-group">
|
64
|
+
<h2>Infographics</h2>
|
65
|
+
<p>We use a 3D text effect to give some depth to our infographics. This should be used on objects to highlight or pull them out of the infographic. Due to the uniqueness of each infographic, there is not a rigid style in place. Just be as sympathetic to our guidelines as possible and use the colour palette.</p>
|
66
|
+
<h4>Sizing</h4>
|
67
|
+
<p>Infographics are generally displayed on our news and guide pages, so size the graphic accordingly (ie. 8 column width). They are also sometimes printed, so prepare them at 300dpi, then save at 72dpi if also needed for web.</p>
|
68
|
+
|
69
|
+
<div class="us-grid-row">
|
70
|
+
<div class="us-col-md-6">
|
71
|
+
<img class="us-img--full trailered" src="/images/infographic-01.png">
|
72
|
+
</div>
|
73
|
+
<div class="us-col-md-6">
|
74
|
+
<img class="us-img--full trailered" src="/images/infographic-02.png">
|
75
|
+
</div>
|
76
|
+
</div>
|
77
|
+
</div>
|
78
|
+
</div>
|
79
|
+
</div>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
Typography is a key element of how we communicate at uSwitch. We've recently revised our type settings and removed FS Elliot Web from our fonts to increase legibility across devices.
|
2
|
+
|
3
|
+
Our chosen font is the beautiful and open source Open Sans which performs exceptionally well across all of our target devices and operating systems. It is, unlike many custom webfonts, particularly well kerned for Windows machines.
|
4
|
+
|
5
|
+
Open Sans
|
6
|
+
---
|
7
|
+
|
8
|
+
<div class="font-chars">
|
9
|
+
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
|
10
|
+
<br>a b c d e f g h i j k l m n o p q r s t u v w x y z
|
11
|
+
<br>0 1 2 3 4 5 6 7 8 9 10
|
12
|
+
</div>
|
13
|
+
|
14
|
+
Open Sans Bold
|
15
|
+
---
|
16
|
+
|
17
|
+
<div class="font-chars font-chars--bold">
|
18
|
+
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
|
19
|
+
<br>a b c d e f g h i j k l m n o p q r s t u v w x y z
|
20
|
+
<br>0 1 2 3 4 5 6 7 8 9 10
|
21
|
+
</div>
|
22
|
+
|
23
|
+
Open Sans Italic
|
24
|
+
---
|
25
|
+
|
26
|
+
<div class="font-chars font-chars--italic">
|
27
|
+
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
|
28
|
+
<br>a b c d e f g h i j k l m n o p q r s t u v w x y z
|
29
|
+
<br>0 1 2 3 4 5 6 7 8 9 10
|
30
|
+
</div>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
template: simple.tpl
|
3
|
+
name: uSwitch living styleguide
|
4
|
+
---
|
5
|
+
<p>
|
6
|
+
The sum of our efforts towards style guidelines, a pattern library and an automated front-end. Made with ❤ at <a href="http://www.uswitch.com" target="_blank"><strong class="us-color--blue">uSwitch.com</strong></a>
|
7
|
+
</p>
|
8
|
+
<div class="us-content-group mobile-bordered">
|
9
|
+
<div class="us-grid-row">
|
10
|
+
<div class="us-col-md-6">
|
11
|
+
<h3>Design guidelines</h3>
|
12
|
+
<p>uStyle includes documentation and guidelines relating to our core design principles. It is where we document everything that happens within our brand, UX and front-end development.</p>
|
13
|
+
</div>
|
14
|
+
<div class="us-col-md-6">
|
15
|
+
<h3>Automated development</h3>
|
16
|
+
<p>uStyle is a gem, a bower package, a npm package and static assets. This allows our team setup to choose how they wish to implement the core front-end of uSwitch. We've tried to be as accessible as possible.</p>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<div class="us-content-group mobile-bordered">
|
21
|
+
<div class="us-grid-row">
|
22
|
+
<div class="us-col-md-6">
|
23
|
+
<h3>Pattern library</h3>
|
24
|
+
<p>At its core, uStyle is a pattern library. It contains all current components and elements of the uSwitch UI. These are documented in the <a href="/pattern-library/">pattern library</a> section.</p>
|
25
|
+
</div>
|
26
|
+
<div class="us-col-md-6">
|
27
|
+
<h3>Designer + developer happiness</h3>
|
28
|
+
<p>Delivering designer + developer happiness is very important to us. uStyle provides a base for all our design and development work and allows our designers and developers to focus on the things that matter, whilst making their lives easier when prototyping.</p>
|
29
|
+
</div>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="us-content-group">
|
33
|
+
<h2>The logo</h2>
|
34
|
+
<div class="us-grid-row">
|
35
|
+
<div class="us-col-md-2">
|
36
|
+
<span class="us-icon--notext us-icon--ustyle us-icon--large logo--ustyle"></span>
|
37
|
+
</div>
|
38
|
+
<div class="us-col-md-10">
|
39
|
+
<p>There is no reason for this logo other than it's funny and unicorns are all the rage just now.</p>
|
40
|
+
|
41
|
+
<p><strong>Disclaimer:</strong> uSwitch is not a unicorn company.
|
42
|
+
</div>
|
43
|
+
</div>
|
44
|
+
</div>
|
@@ -0,0 +1,64 @@
|
|
1
|
+
<div class="styleguide__block">
|
2
|
+
<p>
|
3
|
+
Our grid is a 12 column grid, with similar sizes to that of Bootstrap. We also adhere to the same naming standards for device breakpoints.
|
4
|
+
</p>
|
5
|
+
<ul>
|
6
|
+
<li>Default gutter width: <strong>15px either side</strong></li>
|
7
|
+
<li>Large container width: <strong>1170px</strong></li>
|
8
|
+
<li>Desktop container width: <strong>970px</strong></li>
|
9
|
+
<li>Tablet container width: <strong>770px</strong></li>
|
10
|
+
</ul>
|
11
|
+
<ul>
|
12
|
+
<li>The parent container is <code>.us-container</code>, you must have this to start building the uSwitch layouts.</li>
|
13
|
+
<li><code>.us-grid-row</code> is then used when you are building rows of columns (gives a negative margin to the container so they align correctly)</li>
|
14
|
+
<li>All grid class names are prefixed with <code>.us-col-</code></li>
|
15
|
+
</ul>
|
16
|
+
</div>
|
17
|
+
<div class="styleguide__block">
|
18
|
+
<h2 class="styleguide__block-title">Example</h2>
|
19
|
+
<p>Here is an example of a grid which will turn into 100% width columns on mobile.</p>
|
20
|
+
<div class="grid-example">
|
21
|
+
<div class="us-grid-row">
|
22
|
+
<div class="col-example us-col-md-2">.us-col-md-2</div>
|
23
|
+
<div class="col-example us-col-md-2">.us-col-md-2</div>
|
24
|
+
<div class="col-example us-col-md-4">.us-col-md-4</div>
|
25
|
+
<div class="col-example us-col-md-4">.us-col-md-4</div>
|
26
|
+
</div>
|
27
|
+
<div class="us-grid-row">
|
28
|
+
<div class="col-example us-col-md-8">.us-col-md-8</div>
|
29
|
+
<div class="col-example us-col-md-4">.us-col-md-4</div>
|
30
|
+
</div>
|
31
|
+
<div class="us-grid-row">
|
32
|
+
<div class="col-example us-col-md-6">.us-col-md-6</div>
|
33
|
+
<div class="col-example us-col-md-6">.us-col-md-6</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
<pre><code class="html">
|
37
|
+
<div class="us-grid-row">
|
38
|
+
<div class="us-col-md-2">.us-col-md-2</div>
|
39
|
+
<div class="us-col-md-2">.us-col-md-2</div>
|
40
|
+
<div class="us-col-md-4">.us-col-md-4</div>
|
41
|
+
<div class="us-col-md-4">.us-col-md-4</div>
|
42
|
+
</div>
|
43
|
+
<div class="us-grid-row">
|
44
|
+
<div class="us-col-md-8">.us-col-md-8</div>
|
45
|
+
<div class="us-col-md-4">.us-col-md-4</div>
|
46
|
+
</div>
|
47
|
+
<div class="us-grid-row">
|
48
|
+
<div class="us-col-md-6">.us-col-md-6</div>
|
49
|
+
<div class="us-col-md-6">.us-col-md-6</div>
|
50
|
+
</div>
|
51
|
+
</code></pre>
|
52
|
+
</div>
|
53
|
+
<div class="styleguide__block">
|
54
|
+
<h2 class="styleguide__block-title">Example with mobile columns</h2>
|
55
|
+
<div class="grid-example">
|
56
|
+
<div class="us-grid-row">
|
57
|
+
<div class="col-example us-col-xsm-6 us-col-md-2">.us-col-xsm-6.us-col-md-2</div>
|
58
|
+
<div class="col-example us-col-xsm-6 us-col-md-2">.us-col-xsm-6.us-col-md-2</div>
|
59
|
+
<div class="col-example us-col-sm-6 us-col-md-4">.us-col-sm-6.us-col-md-4</div>
|
60
|
+
<div class="col-example us-col-sm-6 us-col-md-4">.us-col-sm-6.us-col-md-4</div>
|
61
|
+
</div>
|
62
|
+
</div>
|
63
|
+
</div>
|
64
|
+
</div>
|
@@ -0,0 +1,92 @@
|
|
1
|
+
---
|
2
|
+
template: simple.tpl
|
3
|
+
name: Introduction
|
4
|
+
---
|
5
|
+
<p>
|
6
|
+
Our pattern library comes as a easily distributed package, ready to use in multiple programming environments. It contains our basic CSS components and correct usage, as well as JavaScript components that are widely used across the website.
|
7
|
+
</p>
|
8
|
+
<a class="us-btn us-btn--small" href="http://github.com/uswitch/ustyle">View on github</a>
|
9
|
+
<div class="us-content-group mobile-bordered">
|
10
|
+
<h2 class="trailered">Distribution methods</h2>
|
11
|
+
<div class="us-grid-row">
|
12
|
+
<div class="us-col-md-6 trailered">
|
13
|
+
<img src="/images/ruby-logo.png" alt="Ruby logo" class="distro-image">
|
14
|
+
<h3>Ruby gem</h3>
|
15
|
+
<p>uStyle was initially created as a gem. Some of the Sass functions rely on Ruby to run. You can install it via any Gemfile and it will install the required dependencies.</p>
|
16
|
+
<pre><code class="ruby">gem 'ustyle', git: "git@github.com:uswitch/ustyle.git"</code></pre>
|
17
|
+
</div>
|
18
|
+
<div class="us-col-md-6 trailered">
|
19
|
+
<img src="/images/bower-logo.png" alt="Bower logo" class="distro-image">
|
20
|
+
<h3>Bower package</h3>
|
21
|
+
<p>Install is as a bower package. This will pull down the original <code>.scss</code> files and compiled static CSS + JS.</p>
|
22
|
+
<pre><code class="javascript">
|
23
|
+
"dependencies": {
|
24
|
+
"ustyle": "git@github.com:uswitch/ustyle.git#~0.19.1"
|
25
|
+
}
|
26
|
+
</code></pre>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
<div class="us-content-group mobile-bordered">
|
31
|
+
<div class="us-grid-row">
|
32
|
+
<div class="us-col-md-6 trailered">
|
33
|
+
<img src="/images/cloudfront-logo.png" alt="Cloudfront logo" class="distro-image">
|
34
|
+
<h3>Cloudfront</h3>
|
35
|
+
<p>Every time uStyle gets a new version, the version gets updated across our Cloudfront distributions.
|
36
|
+
<pre><code class="html">
|
37
|
+
<!-- get latest -->
|
38
|
+
<link href='//assets0.uswitch.com/s3/uswitch-assets-eu/ustyle/ustyle-latest.css' media='all' rel='stylesheet' type='text/css' />
|
39
|
+
<!-- get versioned -->
|
40
|
+
<link href='//assets0.uswitch.com/s3/uswitch-assets-eu/ustyle/VERSION/ustyle-latest.css' media='all' rel='stylesheet' type='text/css' />
|
41
|
+
</code></pre>
|
42
|
+
</div>
|
43
|
+
<div class="us-col-md-6">
|
44
|
+
<img src="/images/npm-logo.png" alt="NPM logo" class="distro-image">
|
45
|
+
<h3>NPM Package</h3>
|
46
|
+
<pre><code class="javascript">
|
47
|
+
"devDependencies": {
|
48
|
+
"ustyle": "git@github.com:uswitch/ustyle.git#~0.19.1"
|
49
|
+
}
|
50
|
+
</code></pre>
|
51
|
+
</div>
|
52
|
+
</div>
|
53
|
+
</div>
|
54
|
+
<div class="us-content-group mobile-bordered">
|
55
|
+
<h2>Browser support</h2>
|
56
|
+
<p>We use <a href="https://github.com/postcss/autoprefixer">Autoprefixer + Browserlist</a> to decide what vendor prefixes to apply to our <code>Sass</code> files. We have a slightly wider browser support than the default (<a href="https://github.com/ai/browserslist#browserslist-">here</a>). Currently we support all the way to IE8.</p>
|
57
|
+
<p>Below is what we support. Each line is the minimum version or % use based on CanIUse metrics</p>
|
58
|
+
<table class="pure-table pure-table-bordered">
|
59
|
+
<thead>
|
60
|
+
<tr>
|
61
|
+
<th>Browser</th>
|
62
|
+
<th>Minimum version supported</th>
|
63
|
+
</tr>
|
64
|
+
</thead>
|
65
|
+
<tbody>
|
66
|
+
<tr>
|
67
|
+
<td>Safari, Chrome</td>
|
68
|
+
<td>Last 5 versions</td>
|
69
|
+
</tr>
|
70
|
+
<tr>
|
71
|
+
<td>Firefox</td>
|
72
|
+
<td>22</td>
|
73
|
+
</tr>
|
74
|
+
<tr>
|
75
|
+
<td>Opera</td>
|
76
|
+
<td>12.1</td>
|
77
|
+
</tr>
|
78
|
+
<tr>
|
79
|
+
<td>Internet Explorer</td>
|
80
|
+
<td>8 (unless stated)</td>
|
81
|
+
</tr>
|
82
|
+
<tr>
|
83
|
+
<td>Global usage</td>
|
84
|
+
<td>> 1%</td>
|
85
|
+
</tr>
|
86
|
+
</tbody>
|
87
|
+
</table>
|
88
|
+
</div>
|
89
|
+
<div class="us-content-group mobile-bordered">
|
90
|
+
<h2>Installation</h2>
|
91
|
+
<p>See our github for documentation on installing this across applications.</p>
|
92
|
+
</div>
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<div class="container sidebar--push">
|
2
|
+
<p class="copyright">Copyright uSwitch Limited 2015. <a href="https://github.com/{{project.repository}}">Github</a></p>
|
3
|
+
</div>
|
4
|
+
<script type="text/javascript" src='https://www.gstatic.com/charts/loader.js'>
|
5
|
+
</script>
|
6
|
+
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
|
7
|
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
8
|
+
<script src="/js/app.js"></script>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
|
3
|
+
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
|
4
|
+
<!--[if (gt IE 9)|!(IE)]> ><! <![endif]-->
|
5
|
+
<html class='no-js svg' lang='en'>
|
6
|
+
<!-- <![endif] -->
|
7
|
+
<head>
|
8
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
9
|
+
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
|
10
|
+
<title>uStyle styleguide</title>
|
11
|
+
<link rel="stylesheet" href="/css/main.css" type="text/css" />
|
12
|
+
<!--[if lt IE 9]>
|
13
|
+
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
|
14
|
+
<![endif] -->
|
15
|
+
<script>
|
16
|
+
(function(html){
|
17
|
+
html.className=html.className.replace(/\bno-js\b/,'js');
|
18
|
+
})(document.documentElement);
|
19
|
+
</script>
|
20
|
+
</head>
|
@@ -0,0 +1,7 @@
|
|
1
|
+
<header class="ustyle__header">
|
2
|
+
<a class="logo" href="/">
|
3
|
+
<span class="logo__icon us-icon--notext us-icon--ustyle us-icon--typegrey us-icon--medium--mobile us-icon--large"></span>
|
4
|
+
uStyle
|
5
|
+
</a>
|
6
|
+
<a class="version" href="https://github.com/uswitch/ustyle/releases/tag/{{project.version}}">v{{project.version}}</a>
|
7
|
+
</header>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<a href="javascript:void(0);" class="nav-mobile js-toggle__link us-tablet--hidden" data-target="sidebar"><span class="nav-mobile__hamburger">Sidebar</span></a>
|
2
|
+
<div class='sidebar'>
|
3
|
+
{{#navigation}}
|
4
|
+
<nav class="sidebar__nav {{activeClass this 'section'}}">
|
5
|
+
<a href="/{{this}}/" class="sidebar__nav-link js-sidebar-nav-link {{activeClass this 'section'}}">{{humanize this}}</a>
|
6
|
+
<nav class="sidebar__sub-nav">
|
7
|
+
{{#each ../pages}}
|
8
|
+
{{#isActive this.section ../this}}
|
9
|
+
<a class="sidebar__nav-link sidebar__nav-link--sub {{activeClass this.name 'name'}}" href="/{{../../this}}/{{page}}">{{name}}</a>
|
10
|
+
{{/isActive}}
|
11
|
+
{{/each}}
|
12
|
+
{{#isActive "pattern-library" this}}
|
13
|
+
<a class="sidebar__nav-link sidebar__nav-link--sub" href="/sass/" target="_blank">Sass doc</a>
|
14
|
+
{{/isActive}}
|
15
|
+
</nav>
|
16
|
+
</nav>
|
17
|
+
{{/navigation}}
|
18
|
+
|
19
|
+
<div class="made-at">
|
20
|
+
<a href="http://www.uswitch.com/tech/" target="_blank" class="us-icon--before us-icon--uswitch--before us-icon--custom--before us-icon--small--before--mobile us-icon--medium--before"><span class="us-color--blue">uSwitch tech creation.</span></a>
|
21
|
+
</div>
|
22
|
+
</div>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<div class="styleguide__block" id="{{link}}">
|
2
|
+
<div class="styleguide__block-info">
|
3
|
+
<h2 class="styleguide__block-title">
|
4
|
+
{{name}}
|
5
|
+
<a href="https://github.com/uswitch/ustyle/tree/master/{{path}}" class="styleguide__file-link"><span class="us-icon--small us-icon--github us-icon--notext us-icon--custom">Github:</span> {{file}}</a>
|
6
|
+
</h2>
|
7
|
+
|
8
|
+
{{{description}}}
|
9
|
+
<div class="us-grid-row">
|
10
|
+
{{#variable}}
|
11
|
+
<div class="colour us-col-md-4">
|
12
|
+
<div class="colour__block">
|
13
|
+
<div class="colour__hex" style='background: {{value}}; color: white;'>
|
14
|
+
</div>
|
15
|
+
<div class="colour__description">
|
16
|
+
<h4 class="colour__title">{{name}} - {{value}}</h4>
|
17
|
+
<span>{{description}}</span>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
{{/variable}}
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<div class="styleguide__block styleguide__block--icons" id="{{link}}">
|
2
|
+
<h2 class="styleguide__block-title">
|
3
|
+
{{name}}
|
4
|
+
<a href="https://github.com/uswitch/ustyle/tree/master/{{path}}" class="styleguide__file-link"><span class="us-icon--small us-icon--github us-icon--notext us-icon--custom">Github:</span> <span class="us-tablet--inline">{{file}}</span></a>
|
5
|
+
</h2>
|
6
|
+
|
7
|
+
<div class="styleguide__description">
|
8
|
+
{{{description}}}
|
9
|
+
</div>
|
10
|
+
|
11
|
+
<h3 class="styleguide__block-small-title">Example</h3>
|
12
|
+
<div class="styleguide__block-examples">
|
13
|
+
<pre><code class="html">
|
14
|
+
{{#markup}}
|
15
|
+
{{~{escaped}}}
|
16
|
+
{{/markup}}
|
17
|
+
</code></pre>
|
18
|
+
<div class="us-clearfix">
|
19
|
+
{{#state}}
|
20
|
+
<div class="styleguide__block-example us-col-md-3 state">
|
21
|
+
{{{markup.example}}}
|
22
|
+
<div class="styleguide__block-example-class">{{name}}</div>
|
23
|
+
</div>
|
24
|
+
{{/state}}
|
25
|
+
</div>
|
26
|
+
</div>
|
27
|
+
|
28
|
+
</div>
|
@@ -0,0 +1,44 @@
|
|
1
|
+
<div class="styleguide__block" id="{{link}}">
|
2
|
+
<h2 class="styleguide__block-title">
|
3
|
+
{{name}}
|
4
|
+
<a href="https://github.com/uswitch/ustyle/tree/master/{{path}}" class="styleguide__file-link"><span class="us-icon--small us-icon--github us-icon--notext us-icon--custom">Github:</span> <span class="us-tablet--inline">{{file}}</span></a>
|
5
|
+
</h2>
|
6
|
+
|
7
|
+
<div class="styleguide__description">
|
8
|
+
{{{description}}}
|
9
|
+
</div>
|
10
|
+
|
11
|
+
{{#if state}}
|
12
|
+
<h4>States</h4>
|
13
|
+
<ul class="styleguide__block-states us-clearfix">
|
14
|
+
{{#state}}
|
15
|
+
<li class="name"><strong>{{name}}</strong> - {{description}}</li>
|
16
|
+
{{/state}}
|
17
|
+
</ul>
|
18
|
+
{{/if}}
|
19
|
+
|
20
|
+
<div class="styleguide__block-examples">
|
21
|
+
<h3 class="styleguide__block-small-title">Example</h3>
|
22
|
+
<div class="styleguide__block-example">
|
23
|
+
{{{markup.example}}}
|
24
|
+
</div>
|
25
|
+
|
26
|
+
{{#state}}
|
27
|
+
<div class="styleguide__block-example state-{{classSanitizer name}}">
|
28
|
+
{{{markup.example}}}
|
29
|
+
<div class="styleguide__block-example-class">{{name}}</div>
|
30
|
+
</div>
|
31
|
+
{{/state}}
|
32
|
+
|
33
|
+
<pre><code class="html">
|
34
|
+
{{#markup}}
|
35
|
+
{{~{escaped}}}
|
36
|
+
{{/markup}}
|
37
|
+
</code></pre>
|
38
|
+
{{#if javascript}}
|
39
|
+
<pre><code class="javascript">
|
40
|
+
{{~{javascript}}}
|
41
|
+
</code></pre>
|
42
|
+
{{/if}}
|
43
|
+
</div>
|
44
|
+
</div>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{{> _head}}
|
2
|
+
<body>
|
3
|
+
{{> _header}}
|
4
|
+
{{> _sidebar}}
|
5
|
+
<div id="wrapper" class="container header--push sidebar--push">
|
6
|
+
<div class="styleguide__hero">
|
7
|
+
<h1 class="styleguide__hero-heading">{{page.name}}</h1>
|
8
|
+
</div>
|
9
|
+
<div class="styleguide__content markdown styleguide us-col-lg-10">
|
10
|
+
{{{page.content}}}
|
11
|
+
</div>
|
12
|
+
</div>
|
13
|
+
{{> _footer}}
|
14
|
+
</body>
|
15
|
+
</html>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
{{> _head}}
|
2
|
+
<body>
|
3
|
+
{{> _header}}
|
4
|
+
{{> _sidebar}}
|
5
|
+
<div id="wrapper" class="container header--push sidebar--push">
|
6
|
+
<div class="styleguide__hero">
|
7
|
+
<h1 class="styleguide__hero-heading">{{page.name}}</h1>
|
8
|
+
</div>
|
9
|
+
<div class="styleguide__content markdown styleguide us-col-lg-10">
|
10
|
+
<script>
|
11
|
+
var reportData = {{{json page.content.report}}};
|
12
|
+
</script>
|
13
|
+
<div id="simplicity_chart" style="width: 100%; height: 500px;"></div>
|
14
|
+
<div class="us-padding-top--large" id="size_chart" style="width: 100%; height: 500px;"></div>
|
15
|
+
<div class="us-content-group table__container">
|
16
|
+
<h2>Breakdown of stats by uStyle release</h2>
|
17
|
+
<table class="pure-table pure-table-bordered pure-table-striped">
|
18
|
+
<thead>
|
19
|
+
<tr>
|
20
|
+
<th>Version</th>
|
21
|
+
<th>Selectors</th>
|
22
|
+
<th>Simplicity</th>
|
23
|
+
<th>Rules</th>
|
24
|
+
<th>Universal selectors</th>
|
25
|
+
<th>Media queries</th>
|
26
|
+
<th>Important keywords</th>
|
27
|
+
<th>Size</th>
|
28
|
+
</tr>
|
29
|
+
</thead>
|
30
|
+
<tbody>
|
31
|
+
{{#each page.content.report}}
|
32
|
+
<tr>
|
33
|
+
<td><strong class="us-color--typecyan">{{this.version}}</strong></td>
|
34
|
+
<td>{{this.selectors}}</td>
|
35
|
+
<td>{{number this.simplicity}}</td>
|
36
|
+
<td>{{this.rules}}</td>
|
37
|
+
<td>{{this.universalSelectors}}</td>
|
38
|
+
<td>{{this.mediaQueries}}</td>
|
39
|
+
<td>{{this.importantKeywords}}</td>
|
40
|
+
<td>{{humanFileSize this.size}}</td>
|
41
|
+
</tr>
|
42
|
+
{{/each}}
|
43
|
+
</tbody>
|
44
|
+
</table>
|
45
|
+
</div>
|
46
|
+
</div>
|
47
|
+
</div>
|
48
|
+
{{> _footer}}
|
49
|
+
</body>
|
50
|
+
</html>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{{> _head}}
|
2
|
+
<body>
|
3
|
+
{{> _header}}
|
4
|
+
{{> _sidebar}}
|
5
|
+
{{#page}}
|
6
|
+
<div id="wrapper" class="container sidebar--push header--push nav--push">
|
7
|
+
<div class="styleguide__hero">
|
8
|
+
<h1 class="styleguide__hero-heading">{{name}}</h1>
|
9
|
+
</div>
|
10
|
+
{{#if blocks}}
|
11
|
+
<nav class="nav--sub us-col-lg-2">
|
12
|
+
<div class="js-sticky">
|
13
|
+
<h4>Patterns</h4>
|
14
|
+
{{#blocks}}
|
15
|
+
<a class="nav__link" href="#{{link}}">{{name}}</a>
|
16
|
+
{{/blocks}}
|
17
|
+
</div>
|
18
|
+
</nav>
|
19
|
+
{{/if}}
|
20
|
+
<div class="us-col-lg-10 styleguide__content styleguide__content--w-sidebar">
|
21
|
+
{{#blocks}}
|
22
|
+
{{#if partial}}
|
23
|
+
{{partial partial}}
|
24
|
+
{{else}}
|
25
|
+
{{> style_block}}
|
26
|
+
{{/if}}
|
27
|
+
{{/blocks}}
|
28
|
+
</div>
|
29
|
+
</div>
|
30
|
+
{{/page}}
|
31
|
+
{{> _footer}}
|
32
|
+
</body>
|
33
|
+
</html>
|
data/tasks/publish.rake
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
lib_path = File.join(File.dirname(__FILE__), 'lib')
|
2
|
+
$:.unshift(lib_path) unless $:.include?(lib_path)
|
3
|
+
|
4
|
+
require 'botoenv'
|
5
|
+
Botoenv.load
|
6
|
+
|
7
|
+
require 'ustyle'
|
8
|
+
require 'ustyle/deploy'
|
9
|
+
require 'fileutils'
|
10
|
+
|
11
|
+
namespace :ustyle do
|
12
|
+
desc "Publishes uStyle v#{Ustyle::VERSION}"
|
13
|
+
task :publish => [ "git:add", "git:push",
|
14
|
+
"deploy:images", "deploy:stylesheets"
|
15
|
+
] do
|
16
|
+
puts green("Publishing uStyle v#{Ustyle::VERSION}")
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
namespace :git do
|
21
|
+
task :add do
|
22
|
+
`git commit -am '#{Ustyle::VERSION}' && git tag -a v#{Ustyle::VERSION} -m '#{Ustyle::VERSION}'`
|
23
|
+
end
|
24
|
+
|
25
|
+
desc "Push version #{Ustyle::VERSION} to github"
|
26
|
+
task :push do
|
27
|
+
`git push && git push --tags`
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
namespace :deploy do
|
32
|
+
desc "Deploy stylesheets to S3"
|
33
|
+
task :stylesheets do
|
34
|
+
Dir["dist/*.{css,json,js}"].each do |file|
|
35
|
+
file_name = File.basename(file)
|
36
|
+
content_type = Ustyle.mime_type_for(file_name)
|
37
|
+
Ustyle.s3_upload( Ustyle.versioned_path(file_name), file, content_type )
|
38
|
+
Ustyle.s3_upload( "ustyle/#{file_name}", file, content_type )
|
39
|
+
end
|
40
|
+
|
41
|
+
Ustyle.invalidate([
|
42
|
+
"/s3/#{Ustyle::BUCKET}/ustyle/ustyle-latest.css",
|
43
|
+
"/s3/#{Ustyle::BUCKET}/ustyle/ustyle-content.css",
|
44
|
+
"/s3/#{Ustyle::BUCKET}/ustyle/ustyle-icons.css"
|
45
|
+
])
|
46
|
+
end
|
47
|
+
|
48
|
+
desc "Deploy images to S3"
|
49
|
+
task :images do
|
50
|
+
images_dir = File.join Ustyle.assets_path, "images", "**", "*"
|
51
|
+
Dir[images_dir].each do |file|
|
52
|
+
next if File.directory?(file)
|
53
|
+
file_path = file.gsub(Regexp.new("#{Ustyle.assets_path}/"), "")
|
54
|
+
hashed_file = Ustyle.asset_digest(file_path)
|
55
|
+
Ustyle.s3_upload( Ustyle.versioned_path(hashed_file), file, Ustyle.mime_type_for(file))
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
def colorize(text, color_code)
|
61
|
+
"\e[#{color_code}m#{text}\e[0m"
|
62
|
+
end
|
63
|
+
|
64
|
+
def red(text); colorize(text, 31); end
|
65
|
+
def green(text); colorize(text, 32); end
|