Details

CSS3 Pushing the Limits


CSS3 Pushing the Limits


Pushing the Limits 1. Aufl.

von: Stephen Greig

27,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 10.07.2013
ISBN/EAN: 9781118652602
Sprache: englisch
Anzahl Seiten: 384

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<p><b>Push CSS3 and your design skills to the limit—and beyond!</b></p> <p>Representing an evolutionary leap forward for CSS, CSS3 is chock-full of new capabilities that dramatically expand the boundaries of what a styling language can do. But many of those new features remain undocumented, making it difficult to learn what they are and how to use them to create the sophisticated sites and web apps clients demand and users have grown to expect.</p> <p>Until now.</p> <p>This book introduces you to all of CSS3’s new and advanced features, and, with the help of dozens of real-world examples and live demos, it shows how to use those features to design dazzling, fully-responsive sites and web apps.</p> <p> Among other things, you’ll learn how to:</p> <p>•         Use advanced selectors and an array of powerful new text tools</p> <p>•         Create adaptable background images, decorative borders, and complex patterns</p> <p>•         Create amazing effects with 2D and 3D transforms, transitions, and keyframe-based animations</p> <p>•         Take advantage of new layout tools to solve an array of advanced layout challenges—fast</p> <p>•         Vastly simplify responsive site design using media queries and new layout modules</p> <p>•         Create abstract and scalable shapes and icons with pseudo-elements </p> <p>•         Leverage preprocessors and use CSS like a programming language within a stylesheet context</p> <p> Don’t pass up this opportunity to go beyond the basics and learn what CSS3 can really do!</p>
Introduction 1 <p><b>Part I New Toys 7</b></p> <p><b>Chapter 1 Advanced Selectors 9</b></p> <p>Child and Sibling Selectors 9</p> <p>Child Combinator 9</p> <p>Adjacent Sibling Combinator 10</p> <p>General Sibling Combinator 10</p> <p>Attribute Selectors 11</p> <p>Selecting Based on the Existence of an HTML Attribute 11</p> <p>Selecting Based on the Exact Value of an HTML Attribute 11</p> <p>Selecting Based on the Partial Contents of an HTML Attribute Value 12</p> <p>Selecting Based on the Beginning of an HTML Attribute Value 12</p> <p>Selecting Based on the End of an HTML Attribute Value 13</p> <p>Selecting Based on Space-Separated HTML Attribute Values 13</p> <p>Pseudo-Classes 13</p> <p>Firsts and Lasts 14</p> <p>Nth Child Selectors 15</p> <p>Taking Nth Child to the Next Level with Expressions 16</p> <p>Using Keywords with Nth Child 17</p> <p>Using Negative Numbers with Nth Child 17</p> <p>The Best of the Rest 19</p> <p>Bringing It All Together 20</p> <p>Summary 23</p> <p>Further Reading 24</p> <p><b>Chapter 2 New Tools for Text 25</b></p> <p>Perfecting Your Type 25</p> <p>Ligatures 25</p> <p>Kerning 27</p> <p>Borrowing from SVG 28</p> <p>Maintaining Legibility with Aspect Values 30</p> <p>More Control with More New Toys 33</p> <p>Font Stretch 33</p> <p>Synthetic Font Styling 33</p> <p>By the Numbers 34</p> <p>Hyphenation 35</p> <p>Writing Modes 37</p> <p>The Direction Property 38</p> <p>The Writing Mode Property 38</p> <p>The Text Orientation Property 38</p> <p>SVG to the Rescue! 38</p> <p>Looking Good Is Half the Battle 39</p> <p>Text Decoration 39</p> <p>Masking Background Images Over Text 40</p> <p>Text Shadow 42</p> <p>Creating 3D Text 42</p> <p>Creating Outer Glow 44</p> <p>Summary 45</p> <p>Further Reading 46</p> <p><b>Chapter 3 New Tools for Backgrounds and Borders 47</b></p> <p>More Control with CSS3 Backgrounds 47</p> <p>Background Clip and Background Origin 47</p> <p>Background Size 50</p> <p>Understanding the Background Shorthand 52</p> <p>Handling Box Breaks 52</p> <p>Into the Future with the Image Function 53</p> <p>Multiple Backgrounds 55</p> <p>The Syntax for Multiple Backgrounds 55</p> <p>Layered Backgrounds 56</p> <p>Animating Multiple Backgrounds 57</p> <p>New Tools for Borders 58</p> <p>Border Image 58</p> <p>Into the Future with Border Corner Shape 62</p> <p>Gradients 63</p> <p>Linear Gradients 63</p> <p>The Linear Gradient Syntax 63</p> <p>Browser Support 65</p> <p>Linear Gradients in Action 65</p> <p>Radial Gradients 66</p> <p>The Radial Gradients Syntax 66</p> <p>Radial Gradients in Action 68</p> <p>Browser Support 69</p> <p>Pushing the Limits with Gradient Patterns 70</p> <p>Summary 73</p> <p>Further Reading 74</p> <p><b>Chapter 4 Into the Browser with CSS3 Filters and Blending Modes 75</b></p> <p>CSS3 Filters 75</p> <p>How Do CSS Filters Work? 76</p> <p>Grayscale 76</p> <p>Brightness 77</p> <p>Contrast 77</p> <p>Saturate 78</p> <p>Sepia 78</p> <p>Hue-Rotate 79</p> <p>Invert 79</p> <p>Opacity 80</p> <p>Drop Shadow 80</p> <p>Blur 81</p> <p>Combining Filters 82</p> <p>Blending Modes 83</p> <p>What Are Blending Modes? 84</p> <p>The Blending Modes Syntax 85</p> <p>Summary 85</p> <p>Further Reading 86</p> <p><b>Part II Transforms, Transitions, and Animation 87</b></p> <p><b>Chapter 5 Introducing CSS3 2D Transforms 89</b></p> <p>The Transform Property 89</p> <p>Translate 90</p> <p>Skew 93</p> <p>Rotate 94</p> <p>Scale 96</p> <p>Transform Origin 99</p> <p>Combining Transforms 100</p> <p>Browser Support 102</p> <p>Summary 102</p> <p>Further Reading 102</p> <p><b>Chapter 6 Bringing 2D Transforms to Life with Transitions 103</b></p> <p>Introducing CSS Transitions 103</p> <p>Controlling Your Transitions 104</p> <p>Understanding the Shorthand Syntax 105</p> <p>Understanding the Transition Property 106</p> <p>Applying Separate On and Off Transitions 107</p> <p>Understanding the Timing Function 108</p> <p>The Bézier Curve 109</p> <p>Ease 111</p> <p>Linear 112</p> <p>Ease-In 113</p> <p>Ease-Out 113</p> <p>Ease-In-Out 114</p> <p>Stepping Functions 115</p> <p>Browser Support for Transitions 117</p> <p>Transitions in Action 117</p> <p>Combining Transitions and 2D Transforms 120</p> <p>Transitioning Rotate 120</p> <p>Transitioning Translate 123</p> <p>Transitioning Scale 127</p> <p>Transitioning Skew 128</p> <p>Creating a Scattered Image Gallery 129</p> <p>Summary 133</p> <p>Further Reading 134</p> <p><b>Chapter 7 A New Dimension with 3D Transforms 135</b></p> <p>What Are 3D Transforms? 135</p> <p>It’s All About Perspective 136</p> <p>The Perspective Property 137</p> <p>Perspective Origin 141</p> <p>Maintaining Perspective 142</p> <p>Backface Visibility 145</p> <p>Moving on to More Transform Properties 148</p> <p>Rotating in a 3D Environment 149</p> <p>Translating in a 3D Environment 151</p> <p>Scaling in a 3D Environment 153</p> <p>Creating a Cube Using 3D Transforms 154</p> <p>Animating the Cube with Transitions 157</p> <p>Examining Browser Support for 3D Transforms 159</p> <p>Summary 160</p> <p>Further Reading 160</p> <p><b>Chapter 8 Getting Animated 161</b></p> <p>Introducing CSS3 Animation 161</p> <p>Defining Keyframes 161</p> <p>Applying the Animation 163</p> <p>Further Control 163</p> <p>Looking at CSS3 Animations in Action 166</p> <p>Adding Progressive Enhancement with Subtle Animation 170</p> <p>Fade In Effects 171</p> <p>Attention Seekers 173</p> <p>Shake 173</p> <p>Wobble 174</p> <p>Combining Animations 175</p> <p>Forming the Structure 176</p> <p>Creating an Animated Slide Show 177</p> <p>Creating a Swinging Animation 178</p> <p>Introducing Content with Subtle Animation 180</p> <p>Seeking Attention with Loud Animation 182</p> <p>Examining Browser Support for CSS Animation 182</p> <p>Summary 183</p> <p>Further Reading 183</p> <p><b>Part III Getting to Grips with New Layout Tools 185</b></p> <p><b>Chapter 9 Creating a Multicolumn Layout 187</b></p> <p>The Evolution of Layout Tools 187</p> <p>What’s New in Layout Solutions? 188</p> <p>Introducing Multi-column Layout 189</p> <p>New Multicolumn Properties 189</p> <p>Defining Your Columns 189</p> <p>Handling Column Breaks 198</p> <p>Limitations 201</p> <p>Creating a Multicolumn Layout 202</p> <p>Examining Browser Support for Multi-column Layout 206</p> <p>Summary 207</p> <p>Further Reading 208</p> <p><b>Chapter 10 Flexible Box Layout 209</b></p> <p>What Is Flexbox? 209</p> <p>New Flexbox Properties 210</p> <p>Establishing the Flex Formatting Context 210</p> <p>Examining Direction, Flow, and Visual Ordering 212</p> <p>Controlling Alignment 217</p> <p>Defining Flex Factors 223</p> <p>Creating a Flexible Box Layout 225</p> <p>Examining Browser Support for Flexbox 230</p> <p>Summary 231</p> <p>Further Reading 231</p> <p><b>Chapter 11 Grid Layout, Regions, and Exclusions 233</b></p> <p>Introducing CSS Grid Layout 233</p> <p>What Is Grid Layout? 234</p> <p>Creating a Grid Element 234</p> <p>Defining the Grid 235</p> <p>Positioning Elements into the Grid 237</p> <p>Making Your Grid Flexible and Adaptable 238</p> <p>Introducing CSS Regions 241</p> <p>What Are CSS Regions? 241</p> <p>How Do Regions Work? 242</p> <p>Introducing CSS Exclusions 243</p> <p>What Are CSS Exclusions? 244</p> <p>How Do Exclusions Work? 244</p> <p>Playing with Shapes 247</p> <p>A Caveat on Exclusions and Shapes 249</p> <p>Summary 249</p> <p>Further Reading 250</p> <p><b>Chapter 12 Going Responsive with CSS3 Media Queries 251</b></p> <p>What Is Responsive Web Design? 251</p> <p>Using Media Queries to Design for Device Differences 252</p> <p>Understanding Media Types and Media Features 253</p> <p>Applying the Mobile-First Approach 253</p> <p>Using the Viewport Meta Tag 256</p> <p>Making a Multicolumn Layout Responsive 256</p> <p>Making a Flexbox Layout Responsive 261</p> <p>A Word on CSS Grid Layout 268</p> <p>The Here and Now of RWD 269</p> <p>Summary 269</p> <p>Further Reading 270</p> <p><b>Part IV Pushing the Limits 271</b></p> <p><b>Chapter 13 Getting Creative with Pseudo-elements  273</b></p> <p>Distinguishing Pseudo-elements and Pseudo-classes 273</p> <p>What Is a Pseudo-class? 273</p> <p>What Is a Pseudo-element? 274</p> <p>Syntactical Differences 274</p> <p>Exploring the Current Range of Pseudo-elements 275</p> <p>Enhancing Your Typography with Pseudo-elements 275</p> <p>Drawing Users into Your Copy 276</p> <p>Getting Creative with Type-based Pseudo-elements 278</p> <p>Using Pseudo-elements to Generate Content 282</p> <p>Pushing Pseudo-elements to the Limit 285</p> <p>A Contemporary Clearfix 287</p> <p>Creating Scalable Icons and Shapes 288</p> <p>Creating a Speech Bubble 288</p> <p>Creating an OK Icon  289</p> <p>Creating a Print Icon 290</p> <p>Creating a Save Icon 291</p> <p>Pushing the Limits Even Further and Knowing When to Stop 293</p> <p>Summary 293</p> <p>Further Reading 294</p> <p><b>Chapter 14 Using Preprocessors to Push CSS3 to the Limit 295</b></p> <p>What Is a CSS Preprocessor? 295</p> <p>What Can CSS Preprocessors Do for You? 295</p> <p>Choosing the Right Preprocessor for You 296</p> <p>Declaring Variables 297</p> <p>Doing Functions and Simple Math 298</p> <p>Using Mixins 299</p> <p>Selector Inheritance 300</p> <p>Nested Selectors 301</p> <p>Getting to Grips with the Dark Side of Preprocessors 302</p> <p>Step 1: Installing Ruby 303</p> <p>Step 2: Installing Sass 304</p> <p>Step 3: Creating Your First Sass File 304</p> <p>Step 4: Compiling Your Sass Code 305</p> <p>Helpful Tools 306</p> <p>Making CSS3 More Efficient with Mixins 307</p> <p>Creating Proportional Layouts with Simple Math 309</p> <p>Using Functions to Form a Dynamic Color Palette 310</p> <p>A Word of Caution on Preprocessors 311</p> <p>Summary 311</p> <p>Further Reading 311</p> <p><b>Chapter 15 Creating Practical Solutions Using Only CSS3 313</b></p> <p>Creating Tabbed Content Using Only CSS3 313</p> <p>The Markup 314</p> <p>Applying Basic Styling to the Panels 316</p> <p>Styling the Tabs 317</p> <p>Making the Tabs Functional 318</p> <p>Applying the Finishing Touches 320</p> <p>Creating a Lightbox Feature Using Only CSS3 321</p> <p>Laying the Foundations for the Markup 322</p> <p>Styling the Thumbnail Gallery 324</p> <p>Adding the Lightbox Markup 326</p> <p>Making the Lightbox Functional 327</p> <p>Applying the Polish to the Final Design 330</p> <p>Creating a 3D Image Carousel Using Only CSS3 334</p> <p>Marking Up the Carousel 334</p> <p>Establishing a 3D Formatting Context 335</p> <p>Positioning the Images in a 3D Environment 335</p> <p>Making the Carousel Functional 339</p> <p>Applying the Finishing Touches 340</p> <p>Summary 342</p> <p>Further Reading 343</p> <p><b>Chapter 16 The Future of CSS 345</b></p> <p>CSS Variables 346</p> <p>CSS Selectors: Level 4 348</p> <p>Browser Support Using CSS Conditional Rules 352</p> <p>Pseudo-elements: Level 4 353</p> <p>Have Your Say 354</p> <p>Summary 354</p> <p>Further Reading 355</p> <p>Index 357</p>
<p><b>Stephen Greig</b> is the author of <i>CSS3 Pushing the Limits</i>, published by Wiley.</p>

Diese Produkte könnten Sie auch interessieren:

Domain Architectures
Domain Architectures
von: Daniel J. Duffy
PDF ebook
31,99 €