PJCHENder 未整理筆記

[CSS] Foundation Setup

2017-10-03

@(CSS)[foundation]

[CSS] Foundation Setup

Install

1
2
3
4
5
# Basic Template
git clone https://github.com/zurb/foundation-sites-template <project-name>

# Zurb Template
git clone https://github.com/zurb/foundation-zurb-template <project-name>
1
2
3
cd <project-name>
npm install
bower install
1
npm start           # http://localhost:8000

Starter Template

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Foundation Starter Template</title>
<link rel="stylesheet" href="css/app.css">
</head>
<body>
<h1>Hello, world!</h1>

<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/what-input/dist/what-input.js"></script>
<script src="bower_components/foundation-sites/dist/js/foundation.js"></script>
<script src="js/app.js"></script>

</body>
</html>

參考資料:Installation@ Foundation

Template Explain

說明 template 的架構和使用到的套件

參考資料:Starter Projects @ Foundation

Setup

FlexBox Mode

1
2
// app.scss
@include foundation-everything(true);

參考資料

掃描二維條碼,分享此文章