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,112 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Featured deal
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// The `.us-featured` is mostly composed by smaller components, the components can be shuffled around inside of a grid to create the needed variants.
|
6
|
+
// This featured deal won't make any assumptions around the media queries, it's up to you, to deal with it. As you can see on the examples.
|
7
|
+
//
|
8
|
+
// @markup
|
9
|
+
//<div class="us-container">
|
10
|
+
// <div class="us-featured__header us-grid-row us-padding-top us-padding-bottom">
|
11
|
+
// <div class="us-featured__header-title us-col-xsm-9 us-align--left">
|
12
|
+
// Title goes here
|
13
|
+
// </div>
|
14
|
+
// <div class="us-featured__header-subtitle us-col-xsm-3 us-align--right">
|
15
|
+
// Promotion
|
16
|
+
// </div>
|
17
|
+
// </div>
|
18
|
+
// <div class="us-featured__content us-grid-row us-padding-top us-padding-bottom">
|
19
|
+
// <div class="us-col-xsm-12">
|
20
|
+
// <div class='us-usp us-usp--blue'>
|
21
|
+
// Awesome deal usp
|
22
|
+
// </div>
|
23
|
+
// </div>
|
24
|
+
// <div class="us-desktop--hidden us-padding-top us-col-xsm-4 us-mobile-block">
|
25
|
+
// <img class="us-img--full" src="http://uswitch-wp-cms-assets.s3-website-eu-west-1.amazonaws.com//www.uswitch.com/money/guides/wp-content/uploads/2014/11/DB2011AU01018_SMALL.jpg" width="200">
|
26
|
+
// </div>
|
27
|
+
// <div class="us-col-xsm-7 us-col-lg-8 us-col-sm-5">
|
28
|
+
// <ul>
|
29
|
+
// <li>List item 1</li>
|
30
|
+
// <li>List item 2</li>
|
31
|
+
// <li>List item 3</li>
|
32
|
+
// </ul>
|
33
|
+
// <div class="us-col-xsm-6 us-desktop--block">
|
34
|
+
// <div class="us-featured-highlight">
|
35
|
+
// <strong class="us-featured-highlight__title">
|
36
|
+
// £99.99
|
37
|
+
// </strong>
|
38
|
+
// monthly cost
|
39
|
+
// </div>
|
40
|
+
// </div>
|
41
|
+
// <div class="us-col-xsm-6 us-desktop--block">
|
42
|
+
// <div class="us-featured-highlight">
|
43
|
+
// <strong class="us-featured-highlight__title">
|
44
|
+
// £99.99
|
45
|
+
// </strong>
|
46
|
+
// monthly cost
|
47
|
+
// <br>
|
48
|
+
// <a class="us-featured-highlight__link us-link" href="#">Link</a>
|
49
|
+
// </div>
|
50
|
+
// </div>
|
51
|
+
// </div>
|
52
|
+
// <div class="us-col-xsm-3 us-col-lg-4 us-tablet--block">
|
53
|
+
// <img class="us-img--full us-desktop--block" src="http://uswitch-wp-cms-assets.s3-website-eu-west-1.amazonaws.com//www.uswitch.com/money/guides/wp-content/uploads/2014/11/DB2011AU01018_SMALL.jpg" width="200">
|
54
|
+
// <button class="margin-top margin-bottom us-btn us-btn--primary us-btn us-btn--blocked">See deal</button>
|
55
|
+
// <div class="us-icon--before us-icon--small--before us-icon--typegrey--before us-icon--clock--before us-align--center">
|
56
|
+
// <strong>3 days left</strong>
|
57
|
+
// </div>
|
58
|
+
// </div>
|
59
|
+
// <div class="us-featured__mobile-icon us-tablet--hidden us-col-xsm-3 us-icon us-icon--medium us-icon--typegrey us-icon--breadcrumb"></div>
|
60
|
+
// </div>
|
61
|
+
// <div class="us-featured__footer us-grid-row us-padding-top us-padding-bottom us-desktop--block">
|
62
|
+
// <div class="us-col-xsm-12">
|
63
|
+
// Legal stuff goes here
|
64
|
+
// </div>
|
65
|
+
// </div>
|
66
|
+
//</div>
|
67
|
+
|
68
|
+
$featured-list-padding: 1em;
|
69
|
+
$featured-highlight-text-size: 1.5em;
|
70
|
+
$featured-legal-text-size: .9em;
|
71
|
+
|
72
|
+
.us-featured__header {
|
73
|
+
overflow: hidden;
|
74
|
+
background-color: #fff;
|
75
|
+
}
|
76
|
+
|
77
|
+
.us-featured__content {
|
78
|
+
position: relative;
|
79
|
+
background-color: $c-cyan-light;
|
80
|
+
|
81
|
+
ul {
|
82
|
+
padding-left: $featured-list-padding;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
.us-featured__mobile-icon {
|
87
|
+
position: absolute;
|
88
|
+
top: 45%;
|
89
|
+
right: 5px;
|
90
|
+
float: right;
|
91
|
+
}
|
92
|
+
|
93
|
+
.us-featured-highlight {
|
94
|
+
font-weight: bold;
|
95
|
+
color: $c-navy;
|
96
|
+
text-align: center;
|
97
|
+
}
|
98
|
+
|
99
|
+
.us-featured-highlight__title {
|
100
|
+
display: block;
|
101
|
+
font-size: $featured-highlight-text-size;
|
102
|
+
}
|
103
|
+
|
104
|
+
.us-featured-highlight__link {
|
105
|
+
font-weight: normal;
|
106
|
+
}
|
107
|
+
|
108
|
+
.us-featured__footer {
|
109
|
+
font-size: $featured-legal-text-size;
|
110
|
+
background-color: $c-cyan-light;
|
111
|
+
border-top: 1px solid $c-bordergrey;
|
112
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
@if $html-grid-classes {
|
2
|
+
* {
|
3
|
+
box-sizing: border-box;
|
4
|
+
}
|
5
|
+
|
6
|
+
.us-container {
|
7
|
+
@extend %container;
|
8
|
+
}
|
9
|
+
|
10
|
+
.us-grid-row {
|
11
|
+
@include us-row;
|
12
|
+
}
|
13
|
+
|
14
|
+
@include respond-to($default-grid-breakpoint, false, true) {
|
15
|
+
@for $column from 1 through $grid-columns {
|
16
|
+
.us-col-#{$column} {
|
17
|
+
@include us-col($column);
|
18
|
+
min-height: 1px;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// Placeholders
|
25
|
+
|
26
|
+
@for $column from 1 through $grid-columns {
|
27
|
+
@include _grid-class("us-col-xsm", $column);
|
28
|
+
}
|
29
|
+
|
30
|
+
@include respond-to(small-tablet) {
|
31
|
+
@for $column from 1 through $grid-columns {
|
32
|
+
@include _grid-class("us-col-sm", $column);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
@include respond-to(tablet, false, true) {
|
37
|
+
@for $column from 1 through $grid-columns {
|
38
|
+
@include _grid-class("us-col-md", $column);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
@include respond-to(desktop, false, true) {
|
43
|
+
@for $column from 1 through $grid-columns {
|
44
|
+
@include _grid-class("us-col-lg", $column);
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
@include respond-to(large-desktop, false, false) {
|
49
|
+
@for $column from 1 through $grid-columns {
|
50
|
+
@include _grid-class("us-col-xlg", $column);
|
51
|
+
}
|
52
|
+
}
|
@@ -0,0 +1,42 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Hero
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// The `.us-hero` is used for the upper part of most pages, where the calls to action are usually kept.
|
6
|
+
// It is intended to draw attention with `$c-cyan` as it's background color, and should be used across all landing pages.
|
7
|
+
//
|
8
|
+
// @markup
|
9
|
+
// <div class='us-hero'>
|
10
|
+
// <div class='us-hero-container'>
|
11
|
+
// <h1 class='us-hero-title'>Hero title</h1>
|
12
|
+
// <p class='us-hero-description us-standfirst'>Swat at dog intrigued by the shower missing until dinner time.</p>
|
13
|
+
// </div>
|
14
|
+
// </div>
|
15
|
+
|
16
|
+
$hero-background-color: $c-cyan !default;
|
17
|
+
$hero-text-color: $c-navy !default;
|
18
|
+
$hero-padding-top: 2.5em !default;
|
19
|
+
$hero-padding-bottom: $hero-padding-top !default;
|
20
|
+
|
21
|
+
.us-hero {
|
22
|
+
background-color: $hero-background-color;
|
23
|
+
}
|
24
|
+
|
25
|
+
.us-hero-container {
|
26
|
+
@extend %container;
|
27
|
+
padding-top: $hero-padding-top;
|
28
|
+
padding-bottom: $hero-padding-bottom;
|
29
|
+
}
|
30
|
+
|
31
|
+
.us-hero-title {
|
32
|
+
margin-top: 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
.us-hero-title,
|
36
|
+
.us-hero-description {
|
37
|
+
color: $hero-text-color;
|
38
|
+
}
|
39
|
+
|
40
|
+
.us-hero-description {
|
41
|
+
@extend %reset-box-model;
|
42
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Anchor links
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Anchor tag styling, with and without a border
|
6
|
+
//
|
7
|
+
// @state .us-link - Adds a border bottom to the link
|
8
|
+
// @state .us-link--light - Changes the link colors to white for when links are placed on dark backgrounds
|
9
|
+
//
|
10
|
+
// @markup
|
11
|
+
// <a href="#" class="{$modifiers}">Link</a>
|
12
|
+
|
13
|
+
%anchor-link {
|
14
|
+
border-bottom: 1px solid;
|
15
|
+
}
|
16
|
+
|
17
|
+
a,
|
18
|
+
.us-link {
|
19
|
+
@include link-colors($c-blue, $c-typecyan, $c-blue, $c-blue, darken($c-blue, 15%));
|
20
|
+
text-decoration: none;
|
21
|
+
transition: color 333ms, border-color 333ms;
|
22
|
+
}
|
23
|
+
|
24
|
+
.us-link {
|
25
|
+
@extend %anchor-link;
|
26
|
+
}
|
27
|
+
|
28
|
+
.us-link--light {
|
29
|
+
@include link-colors(#fff, #fff, $c-keylinegrey, #fff, #fff);
|
30
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
// @page Pattern Library/Typography
|
2
|
+
// @name Numbered list
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Our default numbered list styling
|
6
|
+
// `.us-custom-list-alt` allows us to use the lists on hero/blue backgrounds.
|
7
|
+
//
|
8
|
+
// @markup
|
9
|
+
// <ul class='us-numbered-list'>
|
10
|
+
// <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sollicitudin iaculis bibendum.</li>
|
11
|
+
// <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc sollicitudin iaculis bibendum.</li>
|
12
|
+
// </ul>
|
13
|
+
|
14
|
+
%base-custom-list {
|
15
|
+
padding: 0;
|
16
|
+
margin: 1.5em 0;
|
17
|
+
list-style: none;
|
18
|
+
|
19
|
+
li {
|
20
|
+
position: relative;
|
21
|
+
padding-left: 2em;
|
22
|
+
margin: .5em 0;
|
23
|
+
|
24
|
+
&:before {
|
25
|
+
position: absolute;
|
26
|
+
left: 0;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.us-numbered-list {
|
32
|
+
@extend %base-custom-list;
|
33
|
+
counter-reset: number-counter;
|
34
|
+
|
35
|
+
li {
|
36
|
+
counter-increment: number-counter;
|
37
|
+
|
38
|
+
&:before {
|
39
|
+
top: 0;
|
40
|
+
width: 1.5em;
|
41
|
+
height: 1.5em;
|
42
|
+
padding-top: .25em;
|
43
|
+
line-height: 1;
|
44
|
+
color: $c-typecyan;
|
45
|
+
text-align: center;
|
46
|
+
border-radius: 2em;
|
47
|
+
content: counter(number-counter);
|
48
|
+
box-sizing: border-box;
|
49
|
+
}
|
50
|
+
|
51
|
+
.us-hero &:before,
|
52
|
+
.us-custom-list-alt &:before {
|
53
|
+
color: $c-navy;
|
54
|
+
background: #fff;
|
55
|
+
background: rgba(255, 255, 255, .7);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
// @page Pattern Library/Typography
|
61
|
+
// @name Ticked list
|
62
|
+
//
|
63
|
+
// @description
|
64
|
+
// Our default ticked list styling. `.us-custom-list-alt` allows us to use the lists on hero/blue backgrounds.
|
65
|
+
//
|
66
|
+
// @markup
|
67
|
+
// <ul class='us-ticked-list'>
|
68
|
+
// <li class='us-icon--before us-icon--tick--before us-icon--small--before us-icon--typegrey--before'>
|
69
|
+
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
70
|
+
// </li>
|
71
|
+
// <li class='us-icon--before us-icon--tick--before us-icon--small--before us-icon--typegrey--before'>
|
72
|
+
// Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
73
|
+
// </li>
|
74
|
+
// </ul>
|
75
|
+
|
76
|
+
.us-ticked-list {
|
77
|
+
@extend %base-custom-list;
|
78
|
+
|
79
|
+
li {
|
80
|
+
&:before {
|
81
|
+
top: 50%;
|
82
|
+
margin-top: - 8px;
|
83
|
+
}
|
84
|
+
|
85
|
+
.us-custom-list-alt &:before {
|
86
|
+
@include icon-color("white");
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Link lists
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// The default list styling for lists that have anchors to take you to other pages.
|
6
|
+
//
|
7
|
+
// @markup
|
8
|
+
// <ul class='us-list'>
|
9
|
+
// <li><a href="#">List item 1</a></li>
|
10
|
+
// <li><a href="#">List item 2</a></li>
|
11
|
+
// <li><a href="#">List item 3</a></li>
|
12
|
+
// </ul>
|
13
|
+
//
|
14
|
+
|
15
|
+
%list,
|
16
|
+
.us-list {
|
17
|
+
@extend %reset-box-model;
|
18
|
+
list-style: none;
|
19
|
+
|
20
|
+
a {
|
21
|
+
@extend %anchor-link;
|
22
|
+
display: block;
|
23
|
+
padding-top: .5em;
|
24
|
+
padding-bottom: .5em;
|
25
|
+
|
26
|
+
&:after {
|
27
|
+
@extend %link-triangle;
|
28
|
+
font-size: .8em;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
a:hover {
|
33
|
+
&:after {
|
34
|
+
left: .5em;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.us-hero & {
|
39
|
+
margin-top: 1em;
|
40
|
+
|
41
|
+
a {
|
42
|
+
font-size: em(18px);
|
43
|
+
color: $c-navy;
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,142 @@
|
|
1
|
+
// @page Pattern Library/Components
|
2
|
+
// @name Loader
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// Loader component to be added to any AJAX/filter loads across uSwitch. We use them specifically in tables when loading new rows.
|
6
|
+
// `.us-loader--loading` will initiate the animation and `.us-loader--centered` will vertically center the loading SVG.
|
7
|
+
//
|
8
|
+
// @markup
|
9
|
+
// <div class='us-loader__container'>
|
10
|
+
// <div class='us-loader us-loader--loading us-loader--centered'>
|
11
|
+
// <div class='us-loader__inner'>
|
12
|
+
// <div class='us-loader__spinner'></div>
|
13
|
+
// <div class='us-loader__text'>
|
14
|
+
// Loading deals
|
15
|
+
// </div>
|
16
|
+
// </div>
|
17
|
+
// <div class='us-loader__overlay'></div>
|
18
|
+
// </div>
|
19
|
+
// <!-- EXAMPLE CONTENT -->
|
20
|
+
// <ul class='us-list'>
|
21
|
+
// <li><a href="#">List item 1</a></li>
|
22
|
+
// <li><a href="#">List item 2</a></li>
|
23
|
+
// <li><a href="#">List item 3</a></li>
|
24
|
+
// <li><a href="#">List item 4</a></li>
|
25
|
+
// </ul>
|
26
|
+
// <!-- END EXAMPLE -->
|
27
|
+
// </div>
|
28
|
+
|
29
|
+
$loader-overlay-opacity: .8 !default;
|
30
|
+
$loader-overlay-colour: #fff !default;
|
31
|
+
$spinner-vertical-margin: 1em !default;
|
32
|
+
$spinner-animation-time: 500ms !default;
|
33
|
+
$spinner-file: "icons/spinner.svg" !default;
|
34
|
+
$spinner-size: 60px !default;
|
35
|
+
$spinner-file-fallback: ustyle-image-path("icons/spinner_fallback.gif") !default;
|
36
|
+
$spinner-load-fallback: true !default;
|
37
|
+
|
38
|
+
@keyframes loader-intro {
|
39
|
+
from {
|
40
|
+
opacity: 0;
|
41
|
+
}
|
42
|
+
|
43
|
+
to {
|
44
|
+
opacity: 1;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
@keyframes spin {
|
49
|
+
from {
|
50
|
+
transform: rotate(0deg);
|
51
|
+
}
|
52
|
+
|
53
|
+
to {
|
54
|
+
transform: rotate(360deg);
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
%snap-to-parent {
|
59
|
+
position: absolute;
|
60
|
+
top: 0;
|
61
|
+
left: 0;
|
62
|
+
width: 100%;
|
63
|
+
height: 100%;
|
64
|
+
}
|
65
|
+
|
66
|
+
%spinner-base {
|
67
|
+
position: relative;
|
68
|
+
z-index: 2;
|
69
|
+
display: inline-block;
|
70
|
+
margin-top: $spinner-vertical-margin;
|
71
|
+
margin-bottom: $spinner-vertical-margin;
|
72
|
+
background-repeat: no-repeat;
|
73
|
+
}
|
74
|
+
|
75
|
+
%spinner-icon {
|
76
|
+
background: transparent url($spinner-file-fallback) no-repeat center center;
|
77
|
+
background-image: -webkit-linear-gradient(transparent, transparent), inline-asset($spinner-file);
|
78
|
+
background-image: linear-gradient(transparent, transparent), inline-asset($spinner-file);
|
79
|
+
animation: spin $spinner-animation-time infinite linear;
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin spinner($size: $spinner-size) {
|
83
|
+
@extend %spinner-base;
|
84
|
+
@extend %spinner-icon;
|
85
|
+
|
86
|
+
@if $size {
|
87
|
+
width: $size;
|
88
|
+
height: $size;
|
89
|
+
background-size: $size;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
.us-loader {
|
94
|
+
@extend %snap-to-parent;
|
95
|
+
display: none;
|
96
|
+
text-align: center;
|
97
|
+
}
|
98
|
+
|
99
|
+
.us-loader__container {
|
100
|
+
position: relative;
|
101
|
+
}
|
102
|
+
|
103
|
+
.us-loader--loading {
|
104
|
+
display: block;
|
105
|
+
animation: loader-intro $spinner-animation-time forwards;
|
106
|
+
}
|
107
|
+
|
108
|
+
.us-loader--centered {
|
109
|
+
@extend %vertical-align-parent;
|
110
|
+
transform-style: preserve-3d;
|
111
|
+
}
|
112
|
+
|
113
|
+
.us-loader__inner {
|
114
|
+
position: relative;
|
115
|
+
z-index: 2;
|
116
|
+
|
117
|
+
.us-loader--centered & {
|
118
|
+
@extend %vertical-align-child;
|
119
|
+
}
|
120
|
+
}
|
121
|
+
|
122
|
+
.us-loader__spinner {
|
123
|
+
.us-loader--loading & {
|
124
|
+
@include spinner;
|
125
|
+
}
|
126
|
+
|
127
|
+
.us-loader--centered & {
|
128
|
+
margin-top: 0;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
.us-loader__text {
|
133
|
+
@extend %heading-3;
|
134
|
+
color: $c-navy;
|
135
|
+
}
|
136
|
+
|
137
|
+
.us-loader__overlay {
|
138
|
+
@extend %snap-to-parent;
|
139
|
+
z-index: 1;
|
140
|
+
background-color: $loader-overlay-colour;
|
141
|
+
opacity: $loader-overlay-opacity;
|
142
|
+
}
|
@@ -0,0 +1,183 @@
|
|
1
|
+
// @page Pattern Library/JavaScript
|
2
|
+
// @name Overlay
|
3
|
+
//
|
4
|
+
// @description
|
5
|
+
// `.us-overlay` slides in from either side of the viewport, or can be shown as a modal window.
|
6
|
+
//
|
7
|
+
//
|
8
|
+
// @javascript
|
9
|
+
// var overlay = new Overlay({
|
10
|
+
// bodyActiveClass: 'us-overlay--open',
|
11
|
+
// activeClass: 'us-overlay-parent--active',
|
12
|
+
// visibleClass: 'us-overlay-parent--visible',
|
13
|
+
// overlay: $('.us-overlay-parent'),
|
14
|
+
// openButton: '.js-open-overlay',
|
15
|
+
// closeButton: '.js-close-overlay',
|
16
|
+
// historyStatus: '#seedeal',
|
17
|
+
// history: false,
|
18
|
+
// preventDefault: true
|
19
|
+
// });
|
20
|
+
//
|
21
|
+
// @state .us-overlay--modal - Overlay appears as a modal window.
|
22
|
+
// @state .us-overlay--right - Overlay appears on the right side of the viewport (not applicable when used in conjunction with .us-overlay--modal).
|
23
|
+
// @state .us-overlay--above - Overlay appears over the top of another open overlay.
|
24
|
+
//
|
25
|
+
// @markup
|
26
|
+
// <button class="us-btn js-open-overlay" modifier="{$modifiers}">Open</button>
|
27
|
+
//
|
28
|
+
// <div class="us-overlay-parent" modifier="{$modifiers}">
|
29
|
+
// <div class="us-overlay {$modifiers}">
|
30
|
+
// <div class="us-overlay__container">
|
31
|
+
// <div class="us-overlay__header">
|
32
|
+
// <div class="us-overlay__title">
|
33
|
+
// Overlay
|
34
|
+
// </div>
|
35
|
+
//
|
36
|
+
// <button class="us-overlay__close us-btn us-btn--reversed us-btn--small js-close-overlay">Close</button>
|
37
|
+
// </div>
|
38
|
+
//
|
39
|
+
// <div class="us-overlay__body">
|
40
|
+
// Bacon ipsum dolor amet exercitation ground round voluptate, fatback qui cupidatat sunt consectetur. Dolore strip steak pancetta ground round, venison rump tenderloin fatback frankfurter prosciutto deserunt do ex. In cupim ullamco bresaola, beef meatball aliqua laborum landjaeger consectetur tail cupidatat pariatur meatloaf ball tip. Anim cupim dolore, filet mignon kielbasa tri-tip short ribs esse porchetta landjaeger qui pork loin.
|
41
|
+
// Ground round nostrud pastrami tempor cow short loin. Ut short ribs alcatra laboris brisket leberkas cow ham hock pork loin excepteur porchetta labore meatloaf. Labore filet mignon ball tip eu pork chop tri-tip porchetta alcatra. Ut consequat cupim ad corned beef sunt proident strip steak tongue irure pastrami kielbasa t-bone.
|
42
|
+
// Cow in tenderloin minim, aliqua in turkey anim filet mignon adipisicing reprehenderit bacon. Kielbasa turducken sunt dolore, velit alcatra filet mignon sint commodo beef ribs consectetur pork belly frankfurter pork chop meatloaf. Veniam in ad pork belly deserunt. Kevin sed cupidatat magna, swine incididunt reprehenderit tongue short loin pig kielbasa ham hock frankfurter salami beef ribs. Est corned beef shoulder ipsum, pancetta pork shankle meatloaf in beef in drumstick fatback velit pork chop. Meatloaf velit brisket mollit, ut kielbasa t-bone ex landjaeger pork chop adipisicing prosciutto shankle. Brisket turkey ham hock beef ribs, voluptate venison swine flank doner capicola rump tempor.
|
43
|
+
// Reprehenderit proident turkey mollit ut ipsum magna chuck ut brisket venison do. Exercitation boudin cillum prosciutto. Incididunt excepteur sint pork labore pork loin tri-tip salami cow elit bresaola beef ribs aliquip duis. Dolore nisi frankfurter ut magna.
|
44
|
+
// Et anim ad commodo, pork aliquip occaecat. Frankfurter kielbasa dolore, landjaeger chuck pork in drumstick fatback. Nulla minim dolor, ut filet mignon ground round id esse beef strip steak do laboris. Kielbasa hamburger consectetur, picanha fatback incididunt aute turducken pig in rump landjaeger qui pork tongue. Sausage cupim consectetur, drumstick et ea fatback consequat leberkas alcatra meatloaf. Duis rump velit est cupidatat in.
|
45
|
+
// </div>
|
46
|
+
// </div>
|
47
|
+
// </div>
|
48
|
+
// </div>
|
49
|
+
|
50
|
+
$overlay-modal-breakpoint: desktop !default;
|
51
|
+
$overlay-modal-width: 60% !default;
|
52
|
+
$overlay-max-modal-width: 700px !default;
|
53
|
+
$overlay-z-index: 1003 !default;
|
54
|
+
$overlay-transition-speed: .3s !default;
|
55
|
+
$overlay-mobile-width: calc(100% - 25px) !default;
|
56
|
+
$overlay-tablet-width: 340px !default;
|
57
|
+
$overlay-header-height: 55px !default;
|
58
|
+
$overlay-close-size: 64px !default;
|
59
|
+
|
60
|
+
.us-overlay--open {
|
61
|
+
overflow: hidden;
|
62
|
+
}
|
63
|
+
|
64
|
+
@mixin overlay--open {
|
65
|
+
.us-overlay-parent--active & {
|
66
|
+
@content;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
@mixin overlay--above {
|
71
|
+
&.us-overlay--above {
|
72
|
+
@content;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.us-overlay-parent {
|
77
|
+
position: fixed;
|
78
|
+
top: 0;
|
79
|
+
right: 0;
|
80
|
+
bottom: 0;
|
81
|
+
left: 0;
|
82
|
+
z-index: $overlay-z-index;
|
83
|
+
visibility: hidden;
|
84
|
+
}
|
85
|
+
|
86
|
+
.us-overlay-parent--visible {
|
87
|
+
overflow: scroll;
|
88
|
+
visibility: visible;
|
89
|
+
}
|
90
|
+
|
91
|
+
.us-overlay {
|
92
|
+
position: absolute;
|
93
|
+
z-index: $overlay-z-index;
|
94
|
+
width: $overlay-mobile-width;
|
95
|
+
min-height: 100%;
|
96
|
+
background: #fff;
|
97
|
+
transform: translate3d(-100%, 0, 0);
|
98
|
+
transition: transform $overlay-transition-speed ease-in, opacity $overlay-transition-speed linear, box-shadow $overlay-transition-speed linear;
|
99
|
+
-webkit-overflow-scrolling: auto;
|
100
|
+
|
101
|
+
@include overlay--open {
|
102
|
+
opacity: 1;
|
103
|
+
transform: translate3d(0, 0, 0);
|
104
|
+
box-shadow: 1px 0 18px 0 rgba(0, 0, 0, .3);
|
105
|
+
transition-timing-function: ease-out;
|
106
|
+
}
|
107
|
+
|
108
|
+
@include respond-to(small-tablet, true) {
|
109
|
+
width: $overlay-tablet-width;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
.us-overlay--above {
|
114
|
+
z-index: $overlay-z-index + 1;
|
115
|
+
|
116
|
+
@include overlay--open {
|
117
|
+
box-shadow: 1px 0 30px 5px rgba(0, 0, 0, .3);
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
.us-overlay--modal {
|
122
|
+
@include respond-to($overlay-modal-breakpoint, true) {
|
123
|
+
position: relative;
|
124
|
+
width: $overlay-modal-width;
|
125
|
+
max-width: $overlay-max-modal-width;
|
126
|
+
min-height: 0;
|
127
|
+
margin: 5% auto;
|
128
|
+
opacity: 0;
|
129
|
+
transform: translate3d(0, -30px, 0);
|
130
|
+
|
131
|
+
@include overlay--open {
|
132
|
+
transform: translate3d(0, 0, 0);
|
133
|
+
box-shadow: 0 1px 18px 0 rgba(0, 0, 0, .3);
|
134
|
+
|
135
|
+
@include overlay--above {
|
136
|
+
box-shadow: 0 1px 30px 5px rgba(0, 0, 0, .3);
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
.us-overlay--right {
|
143
|
+
right: 0;
|
144
|
+
transform: translate3d(100%, 0, 0);
|
145
|
+
|
146
|
+
@include overlay--open {
|
147
|
+
transform: translate3d(0, 0, 0);
|
148
|
+
box-shadow: -1px 0 18px 0 rgba(0, 0, 0, .3);
|
149
|
+
|
150
|
+
@include overlay--above {
|
151
|
+
box-shadow: -1px 0 30px 5px rgba(0, 0, 0, .3);
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
|
156
|
+
.us-overlay__container {
|
157
|
+
position: relative;
|
158
|
+
}
|
159
|
+
|
160
|
+
.us-overlay__body {
|
161
|
+
@extend %container !optional;
|
162
|
+
padding: 1em;
|
163
|
+
color: $c-typegrey;
|
164
|
+
}
|
165
|
+
|
166
|
+
.us-overlay__header {
|
167
|
+
position: relative;
|
168
|
+
width: 100%;
|
169
|
+
min-height: $overlay-header-height;
|
170
|
+
padding: 1em;
|
171
|
+
color: #fff;
|
172
|
+
background: $c-navy;
|
173
|
+
}
|
174
|
+
|
175
|
+
.us-overlay__title {
|
176
|
+
width: calc(100% - #{$overlay-close-size});
|
177
|
+
}
|
178
|
+
|
179
|
+
.us-overlay__close {
|
180
|
+
position: absolute;
|
181
|
+
top: .75em;
|
182
|
+
right: 1em;
|
183
|
+
}
|