Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hbang/iOS-7-CSS

Basic iOS 7 CSS
https://github.com/hbang/iOS-7-CSS

Last synced: 3 months ago
JSON representation

Basic iOS 7 CSS

Awesome Lists containing this project

README

        

# Basic iOS 7 CSS
Basic, simple, semantic, and small (5.1 KB minified and gzipped).

Integrate it with your project easily with [Bower](https://bower.io/): `bower install iOS-7-CSS`

Live example: [cydia.hbang.ws](https://cydia.hbang.ws/depiction/ws.hbang.typestatus2/)

## Screenshots
![Screenshot 1](https://i.imgur.com/XOKfDs3.png)   ![Screenshot 2](https://i.imgur.com/5qAYSyl.png)

## Example Usage
```html


Hello World



Page header.



Section header.



Section footer.


```

Note that this has changed since version 2.x. You must explicitly use `class="ios-header"` and `class="ios-table"` to have parts of the page gain iOS styles. `class="ios-main"` must also be used to ensure correct styling for tablets and desktop browsers.

Buttons must be specified with `role="button"`; footers must be specified with `role="footer"`. Headers *should* use `role="header"`, but the styling is still applied to `

`.

## Installation
### The easy way:
Just [download this repo](https://github.com/hbang/iOS-7-CSS/archive/master.zip) and copy `ios7.min.css` and `ios7.min.js` to your website.

### The hard way:
1. Clone the repo.
```bash
git clone https://github.com/hbang/iOS-7-CSS.git
cd iOS-7-CSS
```
2. Install node and npm if you don’t already have them installed. For example, on macOS:
```bash
brew install node
```
3. Install the dependencies.
```bash
npm install
```
4. Whenever you want to compile the CSS and JS, run Gulp.
```bash
npx gulp
```

## License
Licensed under the Apache License, version 2.0. Refer to [LICENSE.md](LICENSE.md).