Sculpt Framework Mobile-First with Progressive Enhancement.

Slides:



Advertisements
Similar presentations
HAML/SASS and tenplate building clean semantic sites for less.
Advertisements

What is jQuery Mobile? How to use it? Doncho Minkov Telerik Corporation Technical Trainer.
Introduction to HTML & CSS
Cascading Style Sheets (CSS). Cascading Style Sheets With the explosive growth of the World Wide Web, designers and programmers quickly explored and reached.
CSS Cascading Style Sheets. Objectives Using Inline Styles Working with Selectors Using Embedded Styles Using an External Style Sheet Applying a Style.
Cascading Style Sheets
HTML Overview - Cascading Style Sheets (CSS). Before We Begin Make a copy of one of your HTML file you have previously created Make a copy of one of your.
1 HTML Standards & Compliance. 2 Minimum Required HTML tags: (must go in this order!)
XHTML Basics.
Cascading Style Sheets. CSS stands for Cascading Style Sheets and is a simple styling language which allows attaching style to HTML elements. CSS is a.
1 Web Developer & Design Foundations with XHTML Chapter 9 Key Concepts.
“Cascading Style Sheets” for styling WWW information DSC340 Mike Pangburn.
Web Design with Cascading Style Sheet Lan Vu. Overview Introduction to CSS Designing CSS Using Visual Studio to create CSS Using template for web design.
4.01 Cascading Style Sheets
Responsive Web Design Design websites so that they can adapt to different devices seamlessly. Image by Muhammed RafizeldiMuhammed Rafizeldi.
Using Cascading Style Sheets (CSS) Dept. of Computer Science and Computer Information CSCI N-100.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 12: Building Responsive Webpages.
Bones – HTML5 Wordpress Theme Development
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
TUTORIAL 8: Enhancing a Web Site with Advanced CSS
 jQuery Mobile An Introduction. What is jQuery Mobile  A framework built on top of jQuery, used for creating mobile web applications  Designed to make.
UNIT 7 MOBILE APPLICATIONS. OBJECTIVES  CO3 Create a website that is optimized for viewing on a mobile device. 2.
HTML & CSS A brief introduction. OUTLINE 1.What is HTML? 2.What is CSS? 3.How are they used together? 4.Troubleshooting/Common problems 5.More resources.
1 Web Developer Foundations: Using XHTML Chapter 9 Cascading Style Sheet Concepts.
Chapter 11 Cascading Style Sheets: Part I The Web Warrior Guide to Web Design Technologies.
Using Styles and Style Sheets for Design
INTRODUCTION TO HTML5 CSS Styles. Understanding Style Sheets  HTML5 enables you to define many different types of content on a web page, including headings,
| imodules.com Making Your Site Mobile-Ready Presented by Chris Smith and Mark Werner.
Basic Responsive Design Techniques. Let’s take a look at this basic layout. It has a header and two columns of text, in a box that is centered on the.
Taking Your Website On The Road Technology No Where to Go.
 This presentation introduces the following: › 3 types of CSS › CSS syntax › CSS comments › CSS and color › The box model.
Copyright 2012 Adobe Systems Incorporated. All rights reserved. ® Copyright 2010 Adobe Systems Incorporated. All rights reserved. ® Copyright 2012 Adobe.
CSS CSS is short for C ascading S tyle S heets. It is a new web page layout method that has been added to HTML to give web developers more control over.
CSS BEST PRACTICES.
INT222 - Internet Fundamentals Shi, Yue (Sunny) Office: T2095 SENECA COLLEGE.
HTML5 & CSS3 A Practical Guide. HTML5 is more than HTML5 HTML5 Spec CSS3 Spec Web Fonts JavaScript to tie it all together.
Microsoft Expression Web 3 – Illustrated Unit D: Structuring and Styling Text.
INTRODUCTION TO HTML5 New HTML5 User Interface and Attributes.
Internet Explorer 10 IE9 hardware-accelerated platform CSS 2D Transforms CSS Backgrounds & Borders CSS Color CSS Fonts CSS Media Queries CSS Namespaces.
Positioning Objects with CSS and Tables
Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.
 An HTML, CSS, Javascript framework you can use as a basis for creating web sites  Uses CSS settings, fundamental HTML elements styled and enhanced.
An Introduction to JQuery Mobile By Trevor Seeney.
Responsive Web Design (RWD) MIS 3502, Spring 2016 Jeremy Shafer Department of MIS Fox School of Business Temple University 2/11/2016.
10 Mobile Application Framework Must Know to Launch New App.
CSS.
CSS for Styling By Jinzhu Gao.
Creating Visual Effects
CSCI 1720 W3.CSS – Part 1 East Tennessee State University Department of Computing CSCI 1720 Intermediate Web Design.
Implementing Responsive Design UNIT I.
CS3220 Web and Internet Programming CSS Basics
Formatting Text with CSS
4.01 Cascading Style Sheets
Implementing Responsive Design
Human Computer Interaction
Web Developer & Design Foundations with XHTML
Tutorial 6 Topic: jQuery and jQuery Mobile Li Xu
Creating Visual Effects and Animation
CSS part 2 Outro.
Responsive Design.
CSS BEST PRACTICES.
Making Your Site Mobile-Ready
Browser Support for HTML5
What are Cascading Stylesheets (CSS)?
SEEM4570 Tutorial 5: jQuery + jQuery Mobile
CS3220 Web and Internet Programming CSS Basics
CS3220 Web and Internet Programming CSS Basics
4.01 Cascading Style Sheets
17 RESPONSIVE WEB DESIGN.
Presentation transcript:

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 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.

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.

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.variablesnested rulesmixinsinline importsthe Compass style library

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:

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. This is some content.

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.

Sculpt Structure This is six column widths. This is three column widths. This is three column widths.

Sculpt Buttons Three options for button sizes: - Small, Normal, Big Small button

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.

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 text goes here To control the weight use: text goes here

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.

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.

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.

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.

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.

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.

Sources