輕量級的HTML/CSS/JS框架:MUI

jopen 10年前發布 | 136K 次閱讀 前端技術 mui

68747470733a2f2f7777772e6d75696373732e636f6d2f7374617469632f66617669636f6e732f69636f6e2d313932783139322e706e67.png
MUI 是一個輕量級的 HTML、CSS 和 JS 框架,遵循 Google 的 Material Design 設計思路。MUI CSS可以在使用SASS源碼時,通過GitHub或Bower來輕松定制它。自定義的范圍包括響應斷點,默認字體設置和使用Material Design顏色等等。MUI CSS/JS并不依賴任何其他的程序。

Features

MUI is designed from the ground up to be fast, small and developer friendly. By design it only includes the basic components you need to build a site that follows Google's Material Design guidelines. Some of the key features of MUI are:

  • Small footprint: mui.min.css - 5.6K, mui.min.js - 3.7K (gzipped)
  • A responsive grid to make mobile-friendly sites
  • No external dependencies
  • CSS library that can be customized with your own colors
  • JS library can be loaded asyncronously
  • Email library for styling HTML emails

To get started using MUI, go to the MUI website to see examples and download boilerplate HTML.

Browser Support

MUI is tested and works in:

  • IE10+
  • Latest Stable: Firefox, Chrome, Safari
  • iOS 6+

Development Quickstart

  1. Install dependencies

  2. Clone repository

    $ git clone git@github.com:muicss/mui.git
    $ cd mui
  3. Install node dependencies using npm

    $ npm install
  4. Build examples

    $ ./node_modules/.bin/gulp build-examples

    To view the examples you can use any static file server. To use the nodejs http-server module:

    $ npm install http-server
    $ ./node_modules/.bin/http-server -p 3000

    Then visit http://localhost:3000/examples

  5. Watch changes and re-build

    $ ./node_modules/.bin/gulp watch

輕量級的HTML/CSS/JS框架:MUI

示例 HTML:

<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- load MUI -->
    <link  />
    <script src="http://cdn.muicss.com/mui-0.0.1/js/mui.min.js"></script>
  </head>
  <body>
    <!-- example content -->
    <div class="mui-container">
      <div class="mui-panel">
        <h1>My Title</h1>
        <button class="mui-btn mui-btn-primary mui-btn-raised">My Button</button>
      </div>
    </div>
  </body>
</html>

項目主頁:http://www.baiduhome.net/lib/view/home/1436230157833

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!