E13e24a4a8332f251c58f30559f3c176

bootstrap 2.0 有推薦的gem嗎?

2012-02-14 14:57:41 +0800run26kimoGem 節點 中發起
最後由 littlebtc2012-02-20 15:02:38 +0800回應 , 623次閱讀

如題

感恩。

截至 2012-02-20 15:02:38 +0800,共收到 7 條回應
D41d8cd98f00b204e9800998ecf8427e
匿名 1樓, 於2012-02-14 16:20:42 +0800回應

twitter-bootstrap-rails, 已更新到2.0了

2b0e03ef8ff7fd827f57f53c79346bc3
chitsung 2樓, 於2012-02-14 21:25:44 +0800回應

twitter-bootstrap-rails +1

61b55110e7f363bff43bcab8789930fb
tsechingho 3樓, 於2012-02-15 10:16:49 +0800回應

如果你用 sass,請用 http://github.com/anjlab/bootstrap-rails
如果要用 less,請用 http://github.com/seyhunak/twitter-bootstrap-rails
另外配合 http://github.com/plataformatec/simple_form 來調整 form 的話會很方便

E13e24a4a8332f251c58f30559f3c176
run26kimo 4樓, 於2012-02-15 11:41:13 +0800回應

想請問 sass 和 less 版本有什麼不同, 有什麼優缺

我在使用 twitter-bootstrap-rails 會出現 Less::ParseError

http://img.skitch.com/20120215-1q6wtwj1j2rxcmpdbnt1a1xkg9.jpg

2b0e03ef8ff7fd827f57f53c79346bc3
chitsung 5樓, 於2012-02-15 11:53:43 +0800回應

先前我都用sass,最近因為要使用 twitter bootstrap,改用 less。
less 跟 scss 都很接近於原始的 css 語法。sass 的語法更精簡。
不過 less 能直接引入既有的 class,我覺得這很有趣。

例如

.large{
  font-size: 20em;
}

h1{
  .large;
}

非常簡潔的 mixin 寫法。

19e786a2a74377ff6e052d87fd8d1fa8
xdite 6樓, 於2012-02-15 23:25:19 +0800回應

我都用 anjlab 的版本

7aa07e17cd90ec9fff21dd7a9fbcdff1
littlebtc 7樓, 於2012-02-20 15:02:38 +0800回應

我在 TouchLimit 裡用的是 http://github.com/thomas-mcdonald/bootstrap-sass
(bootstrap-sass on RubyGems)

需要 登入 後方可回應,如果你還沒有帳號按這裡 註冊