1 / 19

Sculpt Framework

Sculpt Framework. Mobile-First with Progressive Enhancement. Sculpt Framework. What are the benefits Sculpt? Mobile-First Design with Progressive Enhancement. Designed for legacy browsers in mind. Built with SASS (Syntactically Awesome Style Sheets) . Progressive Enhancement.

hyman
Download Presentation

Sculpt Framework

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Sculpt Framework Mobile-First with Progressive Enhancement

  2. Sculpt Framework What are the benefits Sculpt? • Mobile-First Design with Progressive Enhancement. • Designed for legacy browsers in mind. • Built with SASS (Syntactically Awesome Style Sheets)

  3. Progressive Enhancement Graceful Degradation vs Progressive Enhancement Graceful Degradation starts with developing for the desktop and working down to tablets and mobile phones. Progressive Enhancement starts with developing for mobile phones and working up to tablets and then desktop versions.

  4. Progressive Enhancement What’s the difference? When you start with the desktop platform, you tend to want to take advantage of everything that platform has to offer. You build an amazing product that leverages lots of great technology, only to realize that none of it scales well down to mobile. But when starting with only the essential things needed in a mobile design, you can freely build onto the design for tablet and desktop without having to worry about the mobile version later.

  5. Sass Sass is an extension of CSS that adds power and elegance to the basic language. It allows you to use variables, nested rules, mixins, inline imports, and more, all with a fully CSS-compatible syntax. Sass helps keep large stylesheets well-organized, and get small stylesheets up and running quickly, particularly with the help of the Compass style library.

  6. Sass #main p { color: #00ff00; width: 97%; .redbox { background-color: #ff0000; color: #000000; }} #main p { color: #00ff00; width: 97%; } #main p .redbox { background-color: #ff0000; color: #000000; } Sass allows CSS rules to be nested within one another. The inner rule then only applies within the outer rule’s selector. For example:

  7. Sculpt Structure Structure: Sculpt is modular by nature, so you only drop onto the page the elements you need to use. The basic structure of a content block looks like this. <divclass="container"><divclass="column twelve"> This is some content.</div></div>

  8. Sculpt Structure The class declarations follow the rule type | format | size. In this instance we only have type and size. You don't have to stick to a full-width column, though. Should you want to segment your content, you can specify a different column width. As long as adjacent columns add up to twelve, the layout will behave as expected.

  9. Sculpt Structure <divclass="container"><divclass="column six"> This is six column widths.</div><divclass="column three"> This is three column widths.</div><divclass="column three"> This is three column widths.</div></div>

  10. Sculpt Buttons Three options for button sizes: - Small, Normal, Big <ahref="#"class="button small"><iclass="fa fw fa-cog pull-left"></i>Small button</a> <divclass="button-group"><ahref="#"class="button small"><iclass="fa fw fa-align-left "></i></a><ahref="#"class="button small"><iclass="fa fw fa-align-center "></i></a><ahref="#"class="button small"><iclass="fa fw fa-align-right "></i></a><ahref="#"class="button small"><iclass="fa fw fa-align-justify "></i></a></div>

  11. Sculpt Typography By default, Sculpt uses a 2.5rem horizontal baseline grid system and 1.6rem for base font size. 1rem is equivalent to 10px, and there is a px based fallback for IE8 as it does not recognise rem as a unit of measurement. It's possible to control the weight of the text through classes. As Open Sans comes with a full family of type weights it's possible to have Light, Regular, Semi Bold, Bold and Extra Bold text. As well as using the standard bold tags. Simply wrap the text in an element with the class light, regular, semibold, bold or extrabold.

  12. Sculpt Typography It's also possible to control the spacing of letters as well, with the following classes (which can be applied to any text element): Tightest, Tighter, Tight, Loose, Looser, Loosest <p class=”tighter”> text goes here </p> <p class=”loosest”> text goes here </p> To control the weight use: <p class=”light”> text goes here </p> <p class=”extra-bold”> text goes here </p>

  13. Modernizr + JS What is modernizr? Modernizr is a small JavaScript library that detects the availability of native implementations for next-generation web technologies, i.e. features that stem from the HTML5 and CSS3 specifications. Many of these features are already implemented in at least one major browser (most of them in two or more), and what Modernizr does is, very simply, tell you whether the current browser has this feature natively implemented or not.

  14. Modernizr Why does Sculpt use it? Sculpt uses Modernizr to load scripts and additional files where necessary, and manage overheads to ensure that only the right scripts for the current environment are loaded. By default Modernizr test for the following: • Touchscreen (or touch event) support - For mobile devices, tablets, and newer touchscreen PCs • Media query and CSS3 Transform events - For recent browsers. This will exclude IE9 and below because while IE9 supports media queries, it does not support CSS3 transforms. If this condition isn't met, then scripts to support legacy browsers will be loaded.

  15. Load Mobile The Sculpt framework checks to see if your device is mobile and if true it will load hammer.min.js, selectivizr.min.js. - Hammer supports Tap, DoubleTap, Swipe, Drag, Pinch, and Rotate gestures. Each gesture triggers useful events and eventData. - Selectivizr is a JavaScript utility that emulates CSS3 pseudo-classes and attribute selectors in Internet Explorer 6-8. Simply include the script in your pages and selectivizr will do the rest. If you are not on a mobile device, the appropriate files are loaded for your device.

  16. Questions 1. What is the benefit of designing for mobile first and using progressive enhancement with Sculpt? When starting with a mobile design you are then free to build onto that structure without having to worry about functionality and aesthetic features breaking. Also you don’t have to worry about the ‘weight’ of the website because your design is already optimized for mobile use.

  17. Questions 2. Does Sculpt have an extensive typographic library? No, Sculpt does not have an extensive typographic library. It has features that allow for customization of fonts determining font weight and kerning but only is installed with one default font. Any customization beyond this point is up to the user to design and develop.

  18. Questions 3. In the Sculpt framework, will modernizr always download mobile files first even if a mobile device isn’t detected? No, files associated with mobile functionality will only be downloaded if and when a mobile device is detected. If it is not detected, modernizr will load the desktop version for the files instead.

  19. Sources www.lukew.com www.emarketer.com www.mobify.com http://www.heartinternet.co.uk/sculpt

More Related