[CSS] Foundation Setup
Install
# 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>
cd <project-name>
npm install
bower install
npm start # http://localhost:8000
Starter Template
<!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
- Global Style@ Foundations
- Right-to-Left
FlexBox Mode
// app.scss
@include foundation-everything(true);