Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sass/compassの導入 #94

Merged
merged 2 commits into from
Mar 22, 2014
Merged

sass/compassの導入 #94

merged 2 commits into from
Mar 22, 2014

Conversation

karihei
Copy link
Contributor

@karihei karihei commented Mar 22, 2014

sassを導入します。

これ以降スタイルをいじる時はpublic/scss以下のファイルを編集してください。
public/css/以下のCSSファイルは直接編集しないでください。
scssをコンパイルすることでpublic/css以下にファイルが配置もしくは上書きされます。
% grunt compass を叩くとsassのコンパイルが行われます。
% grunt watch を叩くとscssファイルの変更を監視して随時コンパイルしてくれるようになります。

scssの記法はcssと互換性があるので、そのままcssっぽく書いてもらってOKです。
scssでは以下の様なネスト記法が使えます。

.hoge {
   .hoge-child {
       width: 10px;
   }
}

その他sassの機能については 本家を参考にしてください。

karihei added a commit that referenced this pull request Mar 22, 2014
@karihei karihei merged commit b09118f into master Mar 22, 2014
@karihei karihei deleted the sass-compass branch March 22, 2014 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant