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,81 @@
|
|
1
|
+
// These are the stylings for sign up/sign in
|
2
|
+
.us-login__hero--signup {
|
3
|
+
@include respond-to(tablet, true) {
|
4
|
+
margin-bottom: 0;
|
5
|
+
}
|
6
|
+
}
|
7
|
+
|
8
|
+
.us-login__hero-title {
|
9
|
+
margin-bottom: 1em;
|
10
|
+
}
|
11
|
+
|
12
|
+
.us-login {
|
13
|
+
position: relative;
|
14
|
+
width: 100%;
|
15
|
+
|
16
|
+
@include respond-to(small-tablet, true) {
|
17
|
+
width: em(340px);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
.us-login__container {
|
22
|
+
position: relative;
|
23
|
+
overflow: hidden;
|
24
|
+
|
25
|
+
@if $html-grid-classes == false {
|
26
|
+
* {
|
27
|
+
box-sizing: border-box;
|
28
|
+
}
|
29
|
+
|
30
|
+
a {
|
31
|
+
text-decoration: none;
|
32
|
+
transition: color 333ms, border-color 333ms;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.trailered {
|
37
|
+
margin-bottom: $gutter-width / 2;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
.us-login__form {
|
42
|
+
display: none;
|
43
|
+
transition: transform 300ms;
|
44
|
+
|
45
|
+
&.login-state--active {
|
46
|
+
display: block;
|
47
|
+
}
|
48
|
+
|
49
|
+
.us-login__input {
|
50
|
+
display: block;
|
51
|
+
width: 100%;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
.us-login__title {
|
56
|
+
@extend %heading-3;
|
57
|
+
color: $c-typegrey;
|
58
|
+
}
|
59
|
+
|
60
|
+
.us-login__additional-link {
|
61
|
+
@extend %small-font;
|
62
|
+
@include link-colors($c-typegrey-2, $c-typecyan, $c-typegrey-2, $c-typegrey-2);
|
63
|
+
display: block;
|
64
|
+
}
|
65
|
+
|
66
|
+
.us-login__extra {
|
67
|
+
padding: 1.5em $gutter-width / 2;
|
68
|
+
color: $c-typegrey-2;
|
69
|
+
}
|
70
|
+
|
71
|
+
.us-login__small-text {
|
72
|
+
@extend %small-font;
|
73
|
+
margin-top: .5em;
|
74
|
+
color: $c-typegrey-2;
|
75
|
+
}
|
76
|
+
|
77
|
+
.us-login__newsletter {
|
78
|
+
input {
|
79
|
+
margin-right: .5em;
|
80
|
+
}
|
81
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
.pass-helper__wrapper {
|
2
|
+
input {
|
3
|
+
position: relative;
|
4
|
+
z-index: 1;
|
5
|
+
background-color: transparent !important;
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
.pass-helper__meter {
|
10
|
+
position: absolute;
|
11
|
+
top: 0;
|
12
|
+
right: 0;
|
13
|
+
bottom: 0;
|
14
|
+
left: 0;
|
15
|
+
z-index: 0;
|
16
|
+
background-color: #fff;
|
17
|
+
border-radius: 3px;
|
18
|
+
|
19
|
+
div {
|
20
|
+
height: 100%;
|
21
|
+
text-indent: -999em;
|
22
|
+
transition: all 300ms ease-in-out;
|
23
|
+
}
|
24
|
+
|
25
|
+
.very-weak {
|
26
|
+
width: 25%;
|
27
|
+
background-color: #ffd;
|
28
|
+
}
|
29
|
+
|
30
|
+
.weak {
|
31
|
+
width: 50%;
|
32
|
+
background-color: #fddfd0;
|
33
|
+
}
|
34
|
+
|
35
|
+
.medium {
|
36
|
+
width: 75%;
|
37
|
+
background-color: #fff6c5;
|
38
|
+
}
|
39
|
+
|
40
|
+
.strong {
|
41
|
+
width: 100%;
|
42
|
+
background-color: #dffec2;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.pass-helper__show-hide {
|
47
|
+
position: absolute;
|
48
|
+
top: 50%;
|
49
|
+
right: .5em;
|
50
|
+
z-index: 2;
|
51
|
+
margin-top: -.5em;
|
52
|
+
font-size: 12px;
|
53
|
+
line-height: 1;
|
54
|
+
color: $c-typecyan;
|
55
|
+
text-transform: uppercase;
|
56
|
+
cursor: pointer;
|
57
|
+
|
58
|
+
@include respond-to(mobile) {
|
59
|
+
font-size: 10px;
|
60
|
+
}
|
61
|
+
}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
// Social buttons - shared across login containers
|
2
|
+
.us-social__container {
|
3
|
+
@extend %clearfix;
|
4
|
+
position: relative;
|
5
|
+
}
|
6
|
+
|
7
|
+
.us-social__cta {
|
8
|
+
@extend %reset-box-model;
|
9
|
+
padding-top: $gutter-width / 4;
|
10
|
+
padding-bottom: $gutter-width / 4;
|
11
|
+
}
|
12
|
+
|
13
|
+
.us-social__buttons {
|
14
|
+
position: absolute;
|
15
|
+
top: 0;
|
16
|
+
right: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
.us-social__btn {
|
20
|
+
@include link-colors($c-blue, $c-typecyan, $c-blue, $c-blue, darken($c-blue, 15%));
|
21
|
+
display: block;
|
22
|
+
float: left;
|
23
|
+
margin-left: .5em;
|
24
|
+
text-decoration: none;
|
25
|
+
|
26
|
+
&:hover {
|
27
|
+
.us-social__btn-text {
|
28
|
+
max-width: 400px;
|
29
|
+
margin-left: 5px;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
.us-social__btn-text,
|
35
|
+
.us-social__btn-icon {
|
36
|
+
position: relative;
|
37
|
+
vertical-align: middle;
|
38
|
+
}
|
39
|
+
|
40
|
+
.us-social__btn-text {
|
41
|
+
@extend %small-font;
|
42
|
+
z-index: 1;
|
43
|
+
display: inline-block;
|
44
|
+
max-width: 0;
|
45
|
+
overflow: hidden;
|
46
|
+
transition: max-width 300ms;
|
47
|
+
}
|
48
|
+
|
49
|
+
.us-social__btn-icon {
|
50
|
+
z-index: 5;
|
51
|
+
font-size: 2em;
|
52
|
+
line-height: 1.15em;
|
53
|
+
}
|
54
|
+
|
55
|
+
$social-buttons: ("facebook", #3b5998), ("google", #e74c3c), ("twitter", #55acee);
|
56
|
+
|
57
|
+
@each $button in $social-buttons {
|
58
|
+
.us-social__btn--#{nth($button, 1)} {
|
59
|
+
.us-social__btn-icon {
|
60
|
+
color: nth($button, 2);
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
/// Returns a CSS arrow generated by border styles
|
2
|
+
///
|
3
|
+
/// @author David Annez
|
4
|
+
///
|
5
|
+
/// @param {Number} $width [20px]
|
6
|
+
/// Horizontal width of triangle
|
7
|
+
///
|
8
|
+
/// @param {Number} $height [20px]
|
9
|
+
/// Vertical height of triangle
|
10
|
+
///
|
11
|
+
/// @param {String} $direction [up]
|
12
|
+
/// Direction of tip of arrow
|
13
|
+
///
|
14
|
+
/// @param {Color} $color [false]
|
15
|
+
/// Color of triangle, if none specified inherits from font color of element
|
16
|
+
|
17
|
+
@mixin arrow($width: 20px, $height: 20px, $direction: "up", $color: false) {
|
18
|
+
$border-style: solid;
|
19
|
+
$direction: $direction + unquote("");
|
20
|
+
|
21
|
+
@if $color {
|
22
|
+
$border-style: solid $color;
|
23
|
+
}
|
24
|
+
|
25
|
+
width: 0;
|
26
|
+
height: 0;
|
27
|
+
// Right
|
28
|
+
@if $direction == "right" {
|
29
|
+
border-top: $height / 2 solid transparent;
|
30
|
+
border-bottom: $height / 2 solid transparent;
|
31
|
+
border-left: $width $border-style;
|
32
|
+
}
|
33
|
+
// Left
|
34
|
+
@if $direction == "left" {
|
35
|
+
border-top: $height / 2 solid transparent;
|
36
|
+
border-right: $width $border-style;
|
37
|
+
border-bottom: $height / 2 solid transparent;
|
38
|
+
}
|
39
|
+
// Up
|
40
|
+
@if $direction == "up" or $direction == "top" {
|
41
|
+
border-right: $width / 2 solid transparent;
|
42
|
+
border-bottom: $height $border-style;
|
43
|
+
border-left: $width / 2 solid transparent;
|
44
|
+
}
|
45
|
+
// Down
|
46
|
+
@if $direction == "down" or $direction == "bottom" {
|
47
|
+
border-top: $height $border-style;
|
48
|
+
border-right: $width / 2 solid transparent;
|
49
|
+
border-left: $width / 2 solid transparent;
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
@import "ustyle/mixins/general";
|
2
|
+
@import "ustyle/mixins/baseline";
|
3
|
+
@import "ustyle/mixins/media-query";
|
4
|
+
@import "ustyle/mixins/typography";
|
5
|
+
@import "ustyle/mixins/arrow";
|
6
|
+
@import "ustyle/mixins/link-colors";
|
7
|
+
@import "ustyle/mixins/rgba-inline";
|
8
|
+
@import "ustyle/mixins/forms";
|
@@ -0,0 +1,41 @@
|
|
1
|
+
////
|
2
|
+
//// @group typography
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Baseline mixin for cascading typographical elements. It calculates the adequate top and bottom
|
6
|
+
/// pushes for the selected font size and line height. Will vary from font to font, has been set to our
|
7
|
+
/// defaults
|
8
|
+
///
|
9
|
+
/// @param {Number (unit)} $font-size [$base-font-size]
|
10
|
+
/// The font size for the element
|
11
|
+
///
|
12
|
+
/// @param {Number (unit)} $line-height [$base-line-ratio]
|
13
|
+
/// The line height ratio
|
14
|
+
///
|
15
|
+
/// @param {Number (unit)} $scale [$base-scale]
|
16
|
+
/// Base scale for baseline
|
17
|
+
///
|
18
|
+
/// @param {Number (unit)} $cap-height [$base-cap-height]
|
19
|
+
/// The cap height of the font being used on the element
|
20
|
+
///
|
21
|
+
|
22
|
+
@mixin baseline($font-size: $base-font-size, $line-height: $base-line-ratio, $scale: $base-scale, $cap-height: $base-cap-height) {
|
23
|
+
// rhythm unit
|
24
|
+
$rhythm: $line-height * $font-size / $scale;
|
25
|
+
// number of rhythm units that can fit the font-size
|
26
|
+
$lines: ceil(($font-size + .001px) / $rhythm);
|
27
|
+
// calculate the new line-height
|
28
|
+
$line-height: $rhythm * $lines / $font-size;
|
29
|
+
// use the results
|
30
|
+
font-size: $font-size;
|
31
|
+
font-size: rem($font-size);
|
32
|
+
line-height: $line-height;
|
33
|
+
$baseline-distance: ($line-height - $cap-height) / 2;
|
34
|
+
// if you use this mixin only on elements that have one direction margins
|
35
|
+
// http://csswizardry.com/2012/06/single-direction-margin-declarations/
|
36
|
+
// you can use this method with no worries.
|
37
|
+
padding-top: $baseline-distance * $base-font-size;
|
38
|
+
padding-top: $baseline-distance + rem;
|
39
|
+
margin-bottom: ($line-height - $baseline-distance) * $base-font-size;
|
40
|
+
margin-bottom: $line-height - $baseline-distance + rem;
|
41
|
+
}
|
@@ -0,0 +1,62 @@
|
|
1
|
+
/// Style placeholder attributes on form elements
|
2
|
+
///
|
3
|
+
/// @author Joe Green
|
4
|
+
|
5
|
+
@mixin placeholder($color) {
|
6
|
+
&::-webkit-input-placeholder {
|
7
|
+
color: $color;
|
8
|
+
}
|
9
|
+
|
10
|
+
&::-moz-placeholder {
|
11
|
+
color: $color;
|
12
|
+
opacity: 1;
|
13
|
+
}
|
14
|
+
|
15
|
+
&:-ms-input-placeholder {
|
16
|
+
color: $color;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
/// Conveniently style form input pseudo-classes for different form states
|
21
|
+
///
|
22
|
+
/// @author Joe Green
|
23
|
+
///
|
24
|
+
/// @param {Color} $color
|
25
|
+
/// The colour to be used for the form input's border and box-shadow
|
26
|
+
|
27
|
+
@mixin form-element-style($color, $color--active: false) {
|
28
|
+
border-color: $color;
|
29
|
+
|
30
|
+
&:hover,
|
31
|
+
&:focus,
|
32
|
+
&:checked {
|
33
|
+
border-color: if($color--active, $color--active, $color);
|
34
|
+
}
|
35
|
+
|
36
|
+
&:focus {
|
37
|
+
box-shadow: inset 0 0 0 1px if($color--active, $color--active, $color);
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
/// Visually make disabled form inputs look like they can't be interacted with
|
42
|
+
///
|
43
|
+
/// @author Joe Green
|
44
|
+
///
|
45
|
+
/// @param {Color} $color [#ddd]
|
46
|
+
/// Foreground placeholder and border colour
|
47
|
+
///
|
48
|
+
/// @param {Color} $background-color [#fafafa]
|
49
|
+
/// Background colour of the form input
|
50
|
+
|
51
|
+
@mixin form-element-disabled($color: $c-form-element-disabled-fg, $background: $c-form-element-disabled-bg) {
|
52
|
+
@include form-element-style($color);
|
53
|
+
@include placeholder($color);
|
54
|
+
color: $color;
|
55
|
+
background-color: $background;
|
56
|
+
cursor: default;
|
57
|
+
|
58
|
+
&:focus {
|
59
|
+
@include placeholder($color);
|
60
|
+
box-shadow: none;
|
61
|
+
}
|
62
|
+
}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
/// Clearfix mixin - http://nicolasgallagher.com/micro-clearfix-hack/
|
2
|
+
///
|
3
|
+
/// @author Nicolas Gallagher
|
4
|
+
|
5
|
+
@mixin clearfix {
|
6
|
+
&:before,
|
7
|
+
&:after {
|
8
|
+
display: table;
|
9
|
+
content: " ";
|
10
|
+
}
|
11
|
+
|
12
|
+
&:after {
|
13
|
+
clear: both;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
@mixin hidpi($dpi: 2) {
|
18
|
+
@media
|
19
|
+
(-webkit-min-device-pixel-ratio: $dpi),
|
20
|
+
(min-device-pixel-ratio: $dpi),
|
21
|
+
(min-resolution: #{$dpi}dppx) {
|
22
|
+
@content;
|
23
|
+
}
|
24
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
/// Link colors mixin, inspired by Compass
|
2
|
+
/// https://github.com/Compass/compass/blob/stable/core/stylesheets/compass/typography/links/_link-colors.scss
|
3
|
+
///
|
4
|
+
/// @author Chris Eppstein
|
5
|
+
///
|
6
|
+
/// @param {String} $base-color
|
7
|
+
/// The starting color for the link element
|
8
|
+
///
|
9
|
+
/// @param {String} $hover [false]
|
10
|
+
/// The color for the :hover state of the element
|
11
|
+
///
|
12
|
+
/// @param {String} $active [false]
|
13
|
+
/// The color for the :active state of the element
|
14
|
+
///
|
15
|
+
/// @param {String} $visited [false]
|
16
|
+
/// The color for the :visited state of the element
|
17
|
+
///
|
18
|
+
/// @param {String} $focus [false]
|
19
|
+
/// The color for the :focus state of the element
|
20
|
+
///
|
21
|
+
|
22
|
+
@mixin link-colors($base-color, $hover: false, $active: false, $visited: false, $focus: false) {
|
23
|
+
color: $base-color;
|
24
|
+
@if $visited {
|
25
|
+
&:visited {
|
26
|
+
color: $visited;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
@if $focus {
|
30
|
+
&:focus {
|
31
|
+
color: $focus;
|
32
|
+
}
|
33
|
+
}
|
34
|
+
@if $hover {
|
35
|
+
&:hover {
|
36
|
+
color: $hover;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
@if $active {
|
40
|
+
&:active {
|
41
|
+
color: $active;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
// --------------------------
|
2
|
+
// ! Respond to device mixins
|
3
|
+
// --------------------------
|
4
|
+
|
5
|
+
////
|
6
|
+
//// @author David Annez
|
7
|
+
//// @group media-queries
|
8
|
+
////
|
9
|
+
|
10
|
+
/// Breakpoint for large desktops
|
11
|
+
///
|
12
|
+
/// @type Number (unit)
|
13
|
+
|
14
|
+
$large-desktop-width: 1200px !default;
|
15
|
+
|
16
|
+
/// Breakpoint for desktop
|
17
|
+
///
|
18
|
+
/// @type Number (unit)
|
19
|
+
|
20
|
+
$desktop-width: 992px !default;
|
21
|
+
|
22
|
+
/// Breakpoint for tablet
|
23
|
+
///
|
24
|
+
/// @type Number (unit)
|
25
|
+
|
26
|
+
$tablet-width: 768px !default;
|
27
|
+
|
28
|
+
/// Breakpoint for small tablets
|
29
|
+
///
|
30
|
+
/// @type Number (unit)
|
31
|
+
|
32
|
+
$small-tablet-width: 600px !default;
|
33
|
+
|
34
|
+
/// Breakpoint for mobile
|
35
|
+
///
|
36
|
+
/// @type Number (unit)
|
37
|
+
|
38
|
+
$mobile-width: 480px !default;
|
39
|
+
|
40
|
+
/// Max-breakpoint for mobiles
|
41
|
+
///
|
42
|
+
/// @require {variable} small-tablet-width
|
43
|
+
/// @type Number (unit)
|
44
|
+
|
45
|
+
$mobile-end-width: $small-tablet-width - 1;
|
46
|
+
|
47
|
+
/// Max-breakpoint for small tablets
|
48
|
+
///
|
49
|
+
/// @require {variable} tablet-width
|
50
|
+
/// @type Number (unit)
|
51
|
+
|
52
|
+
$small-tablet-end-width: $tablet-width - 1;
|
53
|
+
|
54
|
+
/// Max-breakpoint for tablets
|
55
|
+
///
|
56
|
+
/// @require {variable} desktop-width
|
57
|
+
/// @type Number (unit)
|
58
|
+
|
59
|
+
$tablet-end-width: $desktop-width - 1;
|
60
|
+
|
61
|
+
/// A list containing the devices for `min-width` media-query breakpoints
|
62
|
+
///
|
63
|
+
/// @type List
|
64
|
+
|
65
|
+
$min-breakpoints: (small-tablet, $small-tablet-width), (tablet, $tablet-width), (desktop, $desktop-width), (large-desktop, $large-desktop-width) !default;
|
66
|
+
|
67
|
+
/// A list containing the devices for `max-width` media-query breakpoints
|
68
|
+
///
|
69
|
+
/// @type List
|
70
|
+
|
71
|
+
$max-breakpoints: (mobile, $mobile-end-width), (to-small-tablet, $small-tablet-end-width), (to-tablet, $tablet-end-width) !default;
|
72
|
+
|
73
|
+
$devices: ();
|
74
|
+
|
75
|
+
@each $breakpoint in $min-breakpoints {
|
76
|
+
$devices: append($devices, (nth($breakpoint, 1), min, nth($breakpoint, 2)), comma);
|
77
|
+
}
|
78
|
+
|
79
|
+
@each $breakpoint in $max-breakpoints {
|
80
|
+
$devices: append($devices, (nth($breakpoint, 1), max, nth($breakpoint, 2)), comma);
|
81
|
+
}
|
82
|
+
|
83
|
+
/// Output a media query block for the targeted device and a potential internet explorer fallback
|
84
|
+
///
|
85
|
+
/// @require {Variable} devices
|
86
|
+
///
|
87
|
+
/// @param {String} $device
|
88
|
+
/// The device to match up the media query with. Can be one from the list of `$min-breakpoints`
|
89
|
+
/// or `$max-breakpoints`
|
90
|
+
///
|
91
|
+
/// @param {Bool} $ie-fallback [false]
|
92
|
+
/// If set to `true` will return a `.ie8` {content} fallback to ensure IE8 gets the supporting styling
|
93
|
+
///
|
94
|
+
/// @param {Bool} $ie-fallback-noherit [false]
|
95
|
+
/// If attaching the mixin onto the root, then set this to `true` to ensure Sass builds the correct styles
|
96
|
+
///
|
97
|
+
|
98
|
+
@mixin respond-to($device, $ie-fallback: false, $ie-fallback-noherit: false) {
|
99
|
+
@each $listed-device in $devices {
|
100
|
+
@if nth($listed-device, 1) == $device {
|
101
|
+
@media screen and (#{unquote("#{nth($listed-device, 2)}-width:") nth($listed-device, 3)}) {
|
102
|
+
@content;
|
103
|
+
}
|
104
|
+
@if $ie-fallback {
|
105
|
+
.ie8 & {
|
106
|
+
@content;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
@if $ie-fallback-noherit {
|
110
|
+
.ie8 {
|
111
|
+
@content;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
/// Pixel size for generated base64 PNG
|
2
|
+
/// @type Number (unitless)
|
3
|
+
|
4
|
+
$rgba-pixel-size: 5 !default;
|
5
|
+
|
6
|
+
/// Returns a base64 fallback PNG of an `rgba` background for older browsers
|
7
|
+
///
|
8
|
+
/// @author David Annez - base off Aaron Russell's Compass implementation
|
9
|
+
///
|
10
|
+
/// @param {Color} $color
|
11
|
+
/// The rgba color to be converted
|
12
|
+
/// @param {Number (unitless)} $pixels [$rgba-pixel-size]
|
13
|
+
/// Size of base64 PNG
|
14
|
+
|
15
|
+
@mixin rgba-inline($color, $pixels: $rgba-pixel-size) {
|
16
|
+
background: rgba-inline($color, $pixels);
|
17
|
+
background: $color;
|
18
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
////
|
2
|
+
//// @group typography
|
3
|
+
////
|
4
|
+
|
5
|
+
/// Returns the `$normal-font` declaration either as an extend or re-declares
|
6
|
+
///
|
7
|
+
/// @param {Bool} $extend [true]
|
8
|
+
/// If set to `false` will redeclare the `$normal-font` family
|
9
|
+
|
10
|
+
@mixin normal-font($extend: true) {
|
11
|
+
@if $extend {
|
12
|
+
@extend %normal-font;
|
13
|
+
} @else {
|
14
|
+
font-family: $normal-font;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
/// Returns the `$heading-font` declaration either as an extend or re-declares
|
19
|
+
///
|
20
|
+
/// @param {Bool} $extend [true]
|
21
|
+
/// If set to `false` will redeclare the `$heading-font` family
|
22
|
+
|
23
|
+
@mixin heading-font($extend: true) {
|
24
|
+
@if $extend {
|
25
|
+
@extend %heading-font;
|
26
|
+
} @else {
|
27
|
+
font: {
|
28
|
+
family: $heading-font;
|
29
|
+
weight: 700;
|
30
|
+
};
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
/// Returns the `$heading-font-primary` declaration either as an extend or re-declares
|
35
|
+
///
|
36
|
+
/// @deprecated Use `heading-font` instead
|
37
|
+
/// @alias heading-font
|
38
|
+
/// @param {Bool} $extend [true]
|
39
|
+
/// If set to `false` will redeclare the `$heading-font-primary` family
|
40
|
+
|
41
|
+
@mixin heading-font-primary($extend: true) {
|
42
|
+
@include heading-font($extend);
|
43
|
+
}
|
44
|
+
|
45
|
+
/// Returns the `$heading-font-secondary` declaration either as an extend or re-declares
|
46
|
+
///
|
47
|
+
/// @deprecated Use `heading-font` instead
|
48
|
+
/// @alias heading-font
|
49
|
+
/// @param {Bool} $extend [true]
|
50
|
+
/// If set to `false` will redeclare the `$heading-font-secondary` family
|
51
|
+
|
52
|
+
@mixin heading-font-secondary($extend: true) {
|
53
|
+
@include heading-font($extend);
|
54
|
+
}
|
55
|
+
|
56
|
+
/// Returns the `$heading-font-secondary` declaration either as an extend or re-declares
|
57
|
+
///
|
58
|
+
/// @alias heading-font-secondary
|
59
|
+
|
60
|
+
@mixin bold-font($extend: true) {
|
61
|
+
@include heading-font($extend);
|
62
|
+
}
|
63
|
+
|
64
|
+
/// Returns the `$normal-font` declaration in italic either as an extend or re-declares
|
65
|
+
///
|
66
|
+
/// @param {Bool} $extend [true]
|
67
|
+
/// If set to `false` will redeclare the `$normal-font` family and set the font to italic
|
68
|
+
|
69
|
+
@mixin italic-font($extend: true) {
|
70
|
+
@if $extend {
|
71
|
+
@extend %italic-font;
|
72
|
+
} @else {
|
73
|
+
font: {
|
74
|
+
family: $normal-font;
|
75
|
+
style: italic;
|
76
|
+
};
|
77
|
+
}
|
78
|
+
}
|
79
|
+
|
80
|
+
/// Builds the heading font size with pre-defined sizes and line-heights from `$heading-font-sizes`
|
81
|
+
/// and `$heading-line-heights` respecively
|
82
|
+
///
|
83
|
+
/// @param {Number (unitless)} $level
|
84
|
+
/// Set a heading level between 1-6
|
85
|
+
///
|
86
|
+
/// @param {Bool} $heading-font [true]
|
87
|
+
/// DEPRECATED
|
88
|
+
///
|
89
|
+
/// @param {Bool} $extend [true]
|
90
|
+
/// If set to `false` will redeclare the font-family settings
|
91
|
+
|
92
|
+
@mixin heading($level, $heading-font: true, $extend: true) {
|
93
|
+
$font-size: nth($heading-font-sizes, $level);
|
94
|
+
$line-height: nth($heading-line-heights, $level);
|
95
|
+
@include heading-font($extend);
|
96
|
+
font-size: em($font-size);
|
97
|
+
line-height: $line-height + em;
|
98
|
+
}
|