Book Image

PhoneGap 3.x Mobile Application Development HOTSHOT

By : Kerri Shotts
Book Image

PhoneGap 3.x Mobile Application Development HOTSHOT

By: Kerri Shotts

Overview of this book

<p>PhoneGap allows you to use your existing knowledge of HTML, CSS, and JavaScript to create useful and exciting mobile applications.<br /><br />This book will present you with 12 exciting projects that will introduce you to the dynamic world of app development in PhoneGap. Starting with their design and following through to their completion, you will develop real-world mobile applications. Each app uses a combination of core PhoneGap technologies, plugins, and various frameworks covering the necessary concepts you can use to create many more great apps for mobile devices.</p>
Table of Contents (21 chapters)
PhoneGap 3.x Mobile Application Development HOTSHOT
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Implementing the CSS


YASMF provides some default styling in www/js/lib/yasmf.css, and we'll be taking a look at the foundation it provides. In this section, we'll override these styles using www/css/style.css to assign our desired look and feel.

Getting ready

Let's look into the CSS provided by YASMF for a few moments since it provides the foundation for our styles. You'll want to open /www/js/lib/yasmf.css in an editor and follow along. If you prefer SASS stylesheets, you can look at /framework/lib/yasmf.scss in the code package for this book.

The first and most important detail is that we reset the styles of several elements using Eric Meyer's famous reset code (http://cssreset.com). This helps ensure consistency between different browsers and platforms when we apply our own styles.

Next, the BODY element is styled with various properties and fonts, but the important items are the tap-highlight-color, user-select, and outline styles. The first item prevents any element from being highlighted...