售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Responsive Web Design by Example Beginner's Guide Second Edition
Table of Contents
Responsive Web Design by Example Beginner's Guide Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Time for action – heading
What just happened?
Pop quiz – heading
Have a go hero – heading
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Responsive Web Design
Responsive web design in a nutshell
Viewport meta tag
A word on screen size and viewport
Media queries
A look into responsive frameworks
The Responsive.gs framework
A word on CSS box model
CSS3 box sizing
The Bootstrap framework
The Foundation framework
A brief introduction to CSS preprocessors
Have a Go Hero — delve into responsive web design
Pop Quiz — responsive web design main components
Responsive web design inspiration sources
Summary
2. Web Development Tools
Choosing a code editor
Sublime Text Package Control
Time for action – installing Sublime Text Package Control
What just happened?
Have a go hero – install the LESS and Sass syntax-highlighting package
Setting up a local server
Time for action – installing XAMPP
What just happened?
Choosing a CSS preprocessor compiler
Browser for development
Source maps
Mobile emulator
Managing project dependency with Bower
Time for action – installing Node.js
What just happened?
Have a go hero – get yourself familiar with command lines
Time for action – installing Bower
What just happened?
Bower commands
Pop quiz – web development tools and command lines
Summary
3. Constructing a Simple Responsive Blog with Responsive.gs
Responsive.gs components
The classes
Using HTML5 elements for semantic markups
HTML5 search input types
HTML5 placeholder attribute
HTML5 in Internet Explorer
A look into polyfills in the Responsive.gs package
Box sizing polyfills
CSS3 media queries polyfill
Examining the blog's wireframe
Organizing project directories and files
Time for action – creating and organizing project directories and assets
What just happened?
Have a go hero – making the directory structure more organized
Pop quiz – using polyfill
The blog HTML structures
Time for action – constructing the blog
What just happened?
Have a go hero – creating more blog pages
Pop quiz – HTML5 elements
Summary
4. Enhancing the Blog Appearance
Using CSS3
Creating rounded corners with CSS3
Creating drop shadow
CSS3 browser supports and the use of vendor prefix
Customizing to placeholder text styles
Using CSS libraries
Working with Koala
Time for action – integrating project directory into Koala and combining the style sheets
What just happened?
Have a go hero – renaming the output
Pop quiz – website performance rules
Thinking mobile first
Composing the blog styles
Time for action – composing the base style rules
What just happened?
Have a go hero – customizing the link color
Time for action – enhancing the header and the navigation appearance with CSS
What just happened?
Have a go hero – customizing the header
Time for action – enhancing the content section appearance with CSS
What just happened?
Have a go hero – improving the content section
Time for action – enhancing the footer section appearance with CSS
What just happened?
Optimize the blog for desktop
Time for action – composing style rules for desktop
What just happened?
Making Internet Explorer more capable with polyfills
Time for action – patch Internet Explorer with polyfills
What just happened?
Have a go hero – polish the blog for Internet Explorer
Summary
5. Developing a Portfolio Website with Bootstrap
The Bootstrap components
The Bootstrap responsive grid
Bootstrap buttons and forms
Bootstrap Jumbotron
Bootstrap third-party extensions
Jasny Bootstrap off-canvas
Digging into Bootstrap
Using font icons
Examining the portfolio website layout
Project directories, assets, and dependencies
Time for action – organizing project directories, assets, and installing project dependencies with Bower
What just happened?
Have a go hero – specifying Bower custom directory
Pop quiz – test your understanding on Bower commands
Updating Bower components
The portfolio website HTML structure
Time for action – building the website HTML structure
What just happened?
Have a go hero – extending the portfolio website
Pop quiz – Bootstrap button classes
Summary
6. Polishing the Responsive Portfolio Website with LESS
Basic LESS syntax
Variables
Nesting style rules
Mixins
Parametric mixins
Specify a default value in a parametric mixin
Merging mixins with extend syntax
Generating value with mathematical operations
Generating color with mathematical operations and LESS functions
Referential import
Using a variable in an import statement
Using source map for easier style debugging
More on LESS
External style sheet references
Time for action – creating style sheets and organizing external style sheet references
What just happened?
Have a go hero – name and organize the style sheets
Pop quiz – which of the following option is not LESS Import option?
Working with Koala
Time for action – compiling LESS into CSS using Koala
What just happened?
Polishing the portfolio website with LESS
Time for action – composing the website styles with LESS syntax
What just happened?
Have a go hero – being more creative
Pop quiz — using LESS function and extend syntax
Improve and make the website functioning with JavaScript
Time for action – compiling JavaScript with Koala
What just happened?
Summary
7. A Responsive Website for Business with Foundation
Examining the website layout
A look into Foundation
The grid system
The buttons
The navigation and top bar
The pricing tables
Moving around Orbit
How is Orbit constructed?
Adding add-ons, the font Icons
Further on Foundation
Additional required assets
The project directories, assets, and dependencies
Time for action – organizing the project directories, assets, and dependencies
What just happened?
Time for action – building the website's HTML structure
What just happened?
Summary
8. Extending Foundation
Syntactically Awesome Style Sheets
Nesting rules
Storing a value with a variable
Variable interpolation
Reusable code block with mixins
A brief on the Sass mixin library
Creating and using a Sass function
Manipulating color with Sass functions
Useful Foundation's own function
Em and Rem
Have a go hero – diving into Sass
Pop quiz – multiple parameters in Sass function
Pop quiz – Sass color manipulation
Project recap
Style sheet organizations
Time for action – organizing and compiling style sheets
What just happened?
The website's look and feel
Time for action – build on the website
What just happened?
Have a go hero – colors and creativities
Pop quiz – importing an external Sass style sheet
Fine-tuning the website
Time for action – compiling JavaScript and styling the website with media queries
What just happened?
Have a go hero – remove unnecessary Foundation components
Summary
A. Pop Quiz Answers
Chapter 1, Responsive Web Design
Pop quiz – responsive web design main components
Chapter 2, Web Development Tools
Pop quiz – web development tools and command lines
Chapter 3, Constructing a Simple Respons3ive Blog with Responsive.gs
Pop quiz – using polyfill
Pop quiz – HTML5 elements
Chapter 4, Enhancing the Blog Appearance
Pop quiz – website performance rules
Chapter 5, Developing a Portfolio Website with Bootstrap
Pop quiz – test your understanding on Bower commands
Pop quiz – Bootstrap button classes
Chapter 6, Polishing the Responsive Portfolio Website with LESS
Pop quiz – which of the following option is not LESS Import option?
Pop quiz – using LESS function and extend syntax
Chapter 8, Extend Foundation
Pop quiz – multiple parameters in Sass function
Pop quiz – Sass color manipulation
Pop quiz – importing external Sass style sheet
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜