Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Less Web Development Essentials (Second Edition)
  • Table Of Contents Toc
Less Web Development Essentials (Second Edition)

Less Web Development Essentials (Second Edition)

By : Jobsen
1 (1)
close
close
Less Web Development Essentials (Second Edition)

Less Web Development Essentials (Second Edition)

1 (1)
By: Jobsen

Overview of this book

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.
Table of Contents (9 chapters)
close
close
6
6. Using the Bootstrap 3 Frontend Framework
8
Index

Using variables

Variables in Less help you to keep your files organized and easy to maintain. They allow you to specify widely used values in a single place and then allow you to reuse them throughout your Less code. The properties of the final style sheet can be set with variables. So, imagine that you don't have to search for every declaration of a specific color or value in your style sheets any more. How does all of this work? Variables will start with @ and have a name.

Examples of such variables include @color, @size, and @tree. To write the name of these variables, you are allowed to use any alphanumeric character, underscores, and dashes. This means that @this-is-variable-name-with-35-chars is a valid variable name.

Unfortunately, the use of @ is ambiguous in Less. As you have seen in the preceding chapter, parameters used by mixins also start with @. That's not all! As a valid CSS code is also a valid Less code, there will be CSS media query declarations that also start...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Less Web Development Essentials (Second Edition)
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon