iOS-7-CSS

Basic iOS 7 CSS

  • 所有者: hbang/iOS-7-CSS
  • 平台:
  • 许可证: Other
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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.

主要指标

概览
名称与所有者hbang/iOS-7-CSS
主编程语言SCSS
编程语言JavaScript (语言数: 2)
平台
许可证Other
所有者活动
创建于2014-01-14 13:23:47
推送于2021-05-07 04:44:32
最后一次提交2021-05-07 14:14:31
发布数13
最新版本名称2.2.1 (发布于 )
第一版名称1.0 (发布于 )
用户参与
星数58
关注者数9
派生数15
提交数88
已启用问题?
问题数0
打开的问题数0
拉请求数4
打开的拉请求数0
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?