Book Image

Learning less.js

Book Image

Learning less.js

Overview of this book

Table of Contents (22 chapters)
Learning Less.js
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Simplifying complex styles


We can go further in our code to abstract and simplify the presentational classes being used; as an example, we'll edit the code to replace the CSS style names used on the two button types present in the code:

  1. Let's start by opening up the jumbotron.html file again. Here, we need to remove the line starting with <p><a class="btn btn-default"… and replace it as indicated:

    <!--<div class="container">-->
        <div class="wrapper">
          <!-- Example row of columns -->
          <div class="row">
            <div class="left-content">
              <h2>Heading</h2>
              <p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
              <p><a class="view-details" href="#" role="button">View details &raquo;</a...