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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?