官术网_书友最值得收藏!

Preface

Imagine the scene if you will—it's 5 pm, late in the day, and your client wants the impossible…

You know the scene—you've created a kick-ass website, but the client isn't happy with the color of the buttons you've used on the site. They say the color shades used aren't quite there and need tweaking. A reasonable request, right? Except that there are dozens of buttons throughout the site, with most of them using different colors…Oh heck… no chance of an early finish then…

Or, is there? There is—what if we could change a handful of values and it automatically changes each button for you? Sounds crazy, right?

Wrong, it is absolutely possible. Welcome to the world of CSS preprocessors and Less! The power of Less means that we can set a couple of values that can be applied to any number of elements (such as buttons). Rather than having to change all of the buttons manually, we change the values and hit a button to recompile our code. Voilà! The code is instantly updated, and the buttons show the new color.

Throughout this book, we'll meet the Less library, learn how to use it, and apply its power to a number of real-world scenarios, such as updating buttons to build a complete theme for CMS systems, such as WordPress. We'll take a look at the subjects such as animating, color management, abstracting frameworks, and creating media queries for responsive sites.

It's going to be a great journey, full of twists and turns—the question is, are you ready? If so, let's make a start…

主站蜘蛛池模板: 浮梁县| 香港| 梓潼县| 嘉黎县| 胶南市| 青河县| 长子县| 武鸣县| 澄迈县| 洪雅县| 中西区| 宿迁市| 永兴县| 炉霍县| 大荔县| 扎兰屯市| 盐边县| 正安县| 红河县| 辉南县| 慈溪市| 长岭县| 马关县| 滨州市| 黎川县| 通州区| 阿拉善盟| 榆中县| 贵定县| 石门县| 新化县| 乌兰县| 峨眉山市| 龙口市| 东乡县| 健康| 隆安县| 霍城县| 新郑市| 平昌县| 高雄市|