Less Web Development Essentials - Second Edition
eBook - ePub

Less Web Development Essentials - Second Edition

Bass Jobsen

Partager le livre
  1. 270 pages
  2. English
  3. ePUB (adapté aux mobiles)
  4. Disponible sur iOS et Android
eBook - ePub

Less Web Development Essentials - Second Edition

Bass Jobsen

DĂ©tails du livre
Aperçu du livre
Table des matiĂšres
Citations

À propos de ce livre

About This Book

  • Meet the DRY (Don't Repeat Yourself) principle of software coding for your web development projects by avoiding code duplication
  • Shorten the debugging time of complex CSS code with Less for specific devices and browsers
  • A comprehensive, fast-paced guide that covers the essential concepts of Less through practical and well-explained code

Who This Book Is For

If you use CSS for web development tasks and want to learn how to create maintainable and reusable code, this is the book for you. Basic knowledge of web development would be helpful.

Foire aux questions

Comment puis-je résilier mon abonnement ?
Il vous suffit de vous rendre dans la section compte dans paramĂštres et de cliquer sur « RĂ©silier l’abonnement ». C’est aussi simple que cela ! Une fois que vous aurez rĂ©siliĂ© votre abonnement, il restera actif pour le reste de la pĂ©riode pour laquelle vous avez payĂ©. DĂ©couvrez-en plus ici.
Puis-je / comment puis-je télécharger des livres ?
Pour le moment, tous nos livres en format ePub adaptĂ©s aux mobiles peuvent ĂȘtre tĂ©lĂ©chargĂ©s via l’application. La plupart de nos PDF sont Ă©galement disponibles en tĂ©lĂ©chargement et les autres seront tĂ©lĂ©chargeables trĂšs prochainement. DĂ©couvrez-en plus ici.
Quelle est la différence entre les formules tarifaires ?
Les deux abonnements vous donnent un accĂšs complet Ă  la bibliothĂšque et Ă  toutes les fonctionnalitĂ©s de Perlego. Les seules diffĂ©rences sont les tarifs ainsi que la pĂ©riode d’abonnement : avec l’abonnement annuel, vous Ă©conomiserez environ 30 % par rapport Ă  12 mois d’abonnement mensuel.
Qu’est-ce que Perlego ?
Nous sommes un service d’abonnement Ă  des ouvrages universitaires en ligne, oĂč vous pouvez accĂ©der Ă  toute une bibliothĂšque pour un prix infĂ©rieur Ă  celui d’un seul livre par mois. Avec plus d’un million de livres sur plus de 1 000 sujets, nous avons ce qu’il vous faut ! DĂ©couvrez-en plus ici.
Prenez-vous en charge la synthÚse vocale ?
Recherchez le symbole Écouter sur votre prochain livre pour voir si vous pouvez l’écouter. L’outil Écouter lit le texte Ă  haute voix pour vous, en surlignant le passage qui est en cours de lecture. Vous pouvez le mettre sur pause, l’accĂ©lĂ©rer ou le ralentir. DĂ©couvrez-en plus ici.
Est-ce que Less Web Development Essentials - Second Edition est un PDF/ePUB en ligne ?
Oui, vous pouvez accĂ©der Ă  Less Web Development Essentials - Second Edition par Bass Jobsen en format PDF et/ou ePUB ainsi qu’à d’autres livres populaires dans Design et Web Design. Nous disposons de plus d’un million d’ouvrages Ă  dĂ©couvrir dans notre catalogue.

Informations

Année
2015
ISBN
9781785286698
Sujet
Design
Sous-sujet
Web Design

Less Web Development Essentials Second Edition


Table of Contents

Less Web Development Essentials 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
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Improving Web Development with Less
Using CSS3 for styling your HTML
Using the CSS selectors to style your HTML
Specificity, inheritance, and cascade in CSS
How CSS specificity works
Building your layouts with flexible boxes
Compiling Less
Getting started with Less
Using the watch function for automatic reloading
Debugging your code
Plugins
Your first layout in Less
Vendor-specific rules
Autoprefixing
The -prefix-free library
Build rounded corners with border-radius
Preventing cross-browser issues with CSS resets
Creating background gradients
CSS transitions, transformations, and animations
Box-sizing
Server-side compiling
Using CSS source maps for debugging
Plugins
Compressing and minimizing your CSS
Compiling your Less code into CSS automatically
Graphical user interfaces
The OOCSS, SMACSS, and BEM methodologies
Summary
2. Using Variables and Mixins
Using comments in Less
Nested comments
Special comments
Using variables
Organizing your files
Naming your variables
Using a variable
Organizing variables
The last declaration wins!
Variable declaration is not static!
Lazy loading
Variable interpolation
Escaping values
Using mixins
Basic mixins
Parametric mixins
Default values
Naming and calling your mixins
Using mixins with multiple parameters
More complex mixins for linear gradient backgrounds
The @arguments and @rest special variables
Passing rulesets as arguments
Return values
Changing the behavior of a mixin
Switches
Argument matching
Guarded mixins
CSS guards
Using guards and argument matching to construct loops
Using mixins to loop through a set of values
The !important keyword
Summary
3. Nested Rules, Operations, and Built-in Functions
The navigation structure
Working with nested rules
Using mixins and classes
Variables
Classes and namespaces
Referencing the parent selector with the & symbol
Guards nesting and the & usage
Passing rulesets to mixins
Operating on numbers, colors, and variables
Property merging
Built-in functions
JavaScript
List functions
Using the color functions
The darken() and lighten() functions
Manipulating colors
Functions for color operations
Color blending with Less
Evaluating the type of an input value
Extending Less with custom functions
The box-shadow mixin
Summary
4. Testing Your Code and Using Prebuilt Mixins Libraries
Revisiting the CSS background gradients
Unused code
Chrome's developer tools
Firebug CSS usage add-on
Testing your code
Understanding TDD
All about style guides
Building a style guide with StyleDocco
Testing your code with tdcss.js
Prebuilt mixins
Creating gradients and layouts with Less Elements
Using the comprehensive Less Hat library
The lesshat mixin for the less.js plugin
Using the 3L library of prebuilt mixins
SEO and HTML debugging
Using the Clearless library of prebuilt mixins
Using Preboot's prebuilt mixins for your project
Using the more-or-less library
The Less-bidi library
Integrating other techniques into your projects using Less
Creating animations with Less
Using iconic fonts
Retina.js
Summary
5. Integrating Less in Your Own Projects
Importing CSS into Less
Using the @import rule
Migrating your project to Less
Organizing your files
Converting the CSS code to the Less code
Media queries and responsive design
Elastic measurement units in media queries
Making your layout fluid
Testing your layouts on a mobile phone
Coding first for mobile
Using grids in your designs and workflow
The role of CSS float in grids
Making your grid responsive
The role of the clearfix
Using a more semantic strategy
Building your layouts with grid classes
Building nested grids
Alternative grids
Using the display inline-box
Flexbox grids
Building your project with a responsive grid
Using Preboot's grid system
Using the grid mixins to build a semantic layout
Extending your grids
Adding the grid classes for the small grid
Applying the small grid on your semantic code
Summary
6. Using the Bootstrap 3 Frontend Framework
Introduction to Bootstrap
The Bootstrap grid
Grid variables and mixins
Working with Bootstrap's Less files
Building a Bootstrap project with Grunt
Autoprefixing your code
Compiling your Less files
Bootstrap Less plugin
Diving into Bootstrap's Less files
Creating a custom button with Less
Customizing Bootstrap's navbar with Less
Bootstrap classes and mixins
Theming Bootstrap with Less
The a11y theme for Bootstrap
Color schemes with 1pxdeep
Summary
7. Less with External Applications and Frameworks
Cardinal CSS
The Less Cardinal plugin
Using Semantic UI with Less
Deploying Ionic with Less
Using Ionic's build chain with Less
Frameworks for building your grids with Less
The Semantic Grid System
Skeleton's responsive boilerplate
WordPress and Less
Using the Sage theme by Roots with Less
JBST with a built-in Less compiler
The Semantic UI WordPress theme
WordPress plugins and Less
The WP Less to CSS plugin
Using Less with the Play framework
Using Bootstrap with the Play framework
AngularJS and Less
The ngBoilerplate system
Meteor and Less
Ruby on rails and Less
Alternative compilers for compiling your Less code
The Less.php compiler
The .less compiler for .NET apps
Summary
Index

Less Web Development Essentials Second Edition

Copyright © 2015 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparati...

Table des matiĂšres