iOS-7-CSS

Basic iOS 7 CSS

  • Owner: hbang/iOS-7-CSS
  • Platform:
  • License:: Other
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

Basic iOS 7 CSS

Basic, simple, semantic, and small (5.1 KB minified and gzipped).

Integrate it with your project easily with Bower: bower install iOS-7-CSS

Live example: cydia.hbang.ws

Screenshots

Screenshot 1   Screenshot 2

Example Usage

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>Hello World</title>

	<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=0">

	<link rel="stylesheet" href="ios7.min.css">
	<script src="ios7.min.js"></script>
</head>
<body>
	<header>
		<h1>Page header.</h1>
	</header>

	<main id="content">
		<h2 role="header">Section header.</h2>
		
		<ul>
			<li>
				<p>Text element.</p>
			</li>

			<li>
				<a href="https://hbang.ws/" target="_blank" role="button">Link.</a>
			</li>

			<li>
				<button type="submit">Button.</button>
			</li>

			<li>
				<p>It’s ok to have more than one element at a time.</p>
				<p>Like so…</p>
				<a href="https://www.google.com/" target="_blank" role="button">But you should probably only use that with multiple paragraphs.</a>
			</li>
		</ul>

		<p role="footer">Section footer.</p>
	</main>
</body>
</html>

Note that this has changed since version 1.x. Buttons must now be specified with role="button"; footers must be specified with role="footer". Headers should use role="header", but the styling is still applied to <h2>.

Installation

The easy way:

Just download this repo and copy ios7.min.css and ios7.min.js to your website.

The hard way:

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

License

Licensed under the Apache License, version 2.0. Refer to LICENSE.md.

Main metrics

Overview
Name With Ownerhbang/iOS-7-CSS
Primary LanguageSCSS
Program languageJavaScript (Language Count: 2)
Platform
License:Other
所有者活动
Created At2014-01-14 13:23:47
Pushed At2021-05-07 04:44:32
Last Commit At2021-05-07 14:14:31
Release Count13
Last Release Name2.2.1 (Posted on )
First Release Name1.0 (Posted on )
用户参与
Stargazers Count58
Watchers Count9
Fork Count15
Commits Count88
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count4
Pull Requests Open Count0
Pull Requests Close Count2
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private