Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Responsive Web Design by Example : Beginner's Guide - Second Edition

You're reading from   Responsive Web Design by Example : Beginner's Guide - Second Edition Build powerful and engaging responsive websites with ease

Arrow left icon
Product type Paperback
Published in Nov 2014
Publisher
ISBN-13 9781783553259
Length 258 pages
Edition 2nd Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Thoriq Firdaus Thoriq Firdaus
Author Profile Icon Thoriq Firdaus
Thoriq Firdaus
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Responsive Web Design FREE CHAPTER 2. Web Development Tools 3. Constructing a Simple Responsive Blog with Responsive.gs 4. Enhancing the Blog Appearance 5. Developing a Portfolio Website with Bootstrap 6. Polishing the Responsive Portfolio Website with LESS 7. A Responsive Website for Business with Foundation 8. Extending Foundation A. Pop Quiz Answers Index

Time for action – composing the website styles with LESS syntax


Perform the following steps to style the website:

  1. Add a new font family from Google Font. Herein, I opted for Varela Round (http://www.google.com/fonts/specimen/Varela+Round). Place the following Google Font link before any other style sheets:

    <link href='http://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
  2. We will customize the default styles by changing some variables. Open var-bootstrap.less in Sublime Text. First, we change the @brand-primary variable that defines the Bootstrap primary color; change it from #428bca to #46acb8:

  3. Also, change the color in the @brand-success variable from #5cb85c to #7ba47c:

  4. Change the @headings-font-family variable, which defines the font family used in the headings, from inherit to "Varela Round", as follows:

    @headings-font-family: "Varela Round", @font-family-sans-serif; 
  5. The Bootstrap default style shows a glowing effect when the user focusses on a form...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime