Upgrade to Pro — share decks privately, control downloads, hide ads and more …

早點回家的工具

Kytu Lin
December 06, 2012

 早點回家的工具

Kytu Lin

December 06, 2012
Tweet

More Decks by Kytu Lin

Other Decks in Technology

Transcript

  1. 大綱 讓 CSS 寫得更快 – LESS、SCSS 讓 SITE 建立得更快 –

    Bootstrap、Foundation 補充 – How to build a beautiful site
  2. LESS Compiler Nodejs module ( 最常用 ) https://npmjs.org/package/less-middleware Other server-side

    compiler ( Such as Winless ) http://winless.org/ Client-side Compile ( use Javascript ) http://lesscss.org/ Less.js
  3. Nodejs Module Usage 新建專案時 express -css less {專案名稱} 已有專案 npm

    install less-middleware 在 app.configure 裡 app.use(require('less-middleware')({ src: __dirname + '/public' }));
  4. Let’s Learn it online! (LESS) 官方 document http://lesscss.org/ Online LESS

    Compiler ( 練習教學用) http://winless.org/online-less-compiler
  5. Compass http://compass-style.org SCSS 的 library 提供 CSS3 Helper 及許多好工具 這過渡的年代(嘆

    Sprite ─ 小圖示合成圖,減少request數 網路上 sprite online generator 也不少
  6. 練習 Compile LESS express -e -css less LESSTEST npm install

    Copy https://gist.github.com/4221193 into index.ejs Download Bootstrap LESS source https://github.com/twitter/bootstrap Copy all file in less folder into /public/stylesheets
  7. The similar concept in HTML Zen coding http://code.google.com/p/zen-coding/ Sublime text

    2 安裝教學 http://fredchiu.wordpress.com/2011/12/14/install- zen-coding-plugin-for-sublime-text-2/ HAML (HTML abstraction markup language) http://haml.info/ HTML to HAML http://html2haml.heroku.com/
  8. The similar concept in Javascript 用更高階的語言編譯成 Javascript CoffeeScript CoffeeScript is

    a little language that compiles into JavaScript. http://coffeescript.org/ TypeScript 具有型別的 Javascript 超集合 http://www.typescriptlang.org/
  9. 如何讓 SITE 寫得更快? 現成漂亮的 UI Button、Navbar、Icon set 大量定義好的 JS component

    Tooltip、Dropdown、Modal Grid System In old days, 960.gs、blueprint Responsive Design
  10. Bootstrap 其他工具 Font-Awesome http://fortawesome.github.com/Font-Awesome/ Bootswatch http://bootswatch.com/ 18 Useful Twitter Bootstrap

    Goodies You Should Know http://www.queness.com/post/11632/18-useful- twitter-boostrap-goodies-you-should-know
  11. Texture http://subtlepatterns.com/ Keywords (Google it!) Vintage, Retro, Fiber, Old paper,

    Grunge, Leather, Metal, Silk, Wood, Bokeh, Noise … Kit, Bundle, Scraps
  12. Detail The Devil is in the details Border-radius Shadow Border

    line Gradient Font-size, Line-height, Font-face Padding, Margin