Git Product home page Git Product logo

jquery-mobile-android-theme's Introduction

About

This is a custom jquery mobile theme, that matches the Holo theme family in Android 4.0 Theme.Holo.Dark and Theme.Holo.Light.

http://developer.android.com/design/building-blocks/buttons.html

Preview

How to use

  • Download the sources (js, css, themes-folder) from github
  • Include it in your html file:

<link rel="stylesheet" href="themes/android-theme.css" />
<script type="text/javascript">
var DEBUG_ANDROID_THEME=true
</script>
<script type="text/javascript" src="jquery.mobile.android-theme.js"></script>

Special

  • hide-on-android css class use this class, to hide some elements on android devices (e.g. header back button)

How to build / customize

The basic css is generated with the jquery mobile theme generator. Then all rules are wrapped with .android class. Compile it with SASS.

Import into jquery mobile theme generator

  • Go to http://jquerymobile.com/themeroller/
  • Click "Import" (top-left-corner)
  • Open the file android-theme.scss in any editor
  • remove the line at the beginning: body.android {
  • remove the last line "}"
  • copy now the content of this file into the theme generator import-window

Export and compile

  • Click on "Download-Theme"
  • Name it "android-theme"
  • Download it, extract and copy the file "themes/android-theme.css" to the "themes/android-theme.scss" of this project. Overwrite it.
  • Wrap the complete content with body.android:
    • add the line at the beginning: body.android {
    • add a closing "}" at the end of the file
  • Compile it with SASS

See

http://www.jjoe64.com/2011/09/android-theme-for-jquery-mobile.html

jquery-mobile-android-theme's People

Contributors

jjoe64 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.