Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
PhoneGap and AngularJS for Cross-platform Development

You're reading from   PhoneGap and AngularJS for Cross-platform Development Build exciting cross-platform applications using PhoneGap and AngularJS

Arrow left icon
Product type Paperback
Published in Oct 2014
Publisher
ISBN-13 9781783988921
Length 122 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Yuxian E Liang Yuxian E Liang
Author Profile Icon Yuxian E Liang
Yuxian E Liang
Eugene Liang Eugene Liang
Author Profile Icon Eugene Liang
Eugene Liang
Arrow right icon
View More author details
Toc

Adding mobile CSS styles to your app

In order to further spruce up our app, we will be leveraging on the CSS libraries of TopCoat. You can get TopCoat CSS libraries from http://topcoat.io/. We also need to change our index.html file a bit more in order to leverage on the styles provided by TopCoat.

  1. For a start, replace the stylesheet which points to Bootstrap CDN with the following code:
    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/topcoat/0.8.0/css/topcoat-mobile-light.css">
    
  2. After this, just before <div ng-view class="todos"></div>, prepend the following code:
    <div class="topcoat-navigation-bar">
          <div class="topcoat-navigation-bar__item center full">
              <h1 class="topcoat-navigation-bar__title">Todos</h1>
          </div>
      </div>
    

    This is to give a universal header that we commonly see in mobile apps.

    After these changes, your index.html file should look...

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 $19.99/month. Cancel anytime
Banner background image