Skip to content

Therid/iOS-7-CSS

 
 

Repository files navigation

Basic iOS 7 CSS

Basic, simple, semantic, and less than 2.2kb (minified and gzipped).

Integrate it with your project easily with Bower: bower install ios-7-css

Live example: cydia.hbang.ws

Licensed under Apache License 2.0. UI design is copyright of Apple Inc.

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>Section header.</h2>
		<ul>
			<li>
				<p>Text element.</p>
			</li>

			<li>
				<a href="http://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>.

About

Basic iOS 7 CSS

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 74.3%
  • JavaScript 25.7%