1

SUSY を使用していくつかの静的サイトを開発し、コツをつかみました。現在、カスタムの WordPress テーマに引き継がれる開発中の SUSY サイトがあります。この方法で開発している人は他にいますか (きっといると思います)、もしそうなら、変換中に遭遇した異常なこと、または私が注意する必要があることはありますか? 始める前に、潜在的なスピードバンプを最小限に抑えようとしています. ありがとう!

ジェイソン

4

3 に答える 3

0

Susy は Wordpress とうまく連携します。私はいくつかのカスタム テーマを作成しましたが、すべて順調に進んでいます。

私が本当に注目しなければならなかったのはWordpressです:

-DIVS内でDIVS内でDIVを生成する彼女の能力、私見ですが、正当な理由はありませんが、

-そして、scss の読み取りと一貫性を維持するために、要素に独自のクラスをいつ追加できるかを常に把握できるように、Codex に目を釘付けにしています。

wp_nav_menu() は両方の動作の良い例です。

于 2013-01-13T10:53:20.643 に答える
0

Susy で作成した CSS を静的サイトから Wordpress に変換したことはありませんが、Susy で Wordpress テーマを作成しました。私がローカルで開発しているので、問題なく通常どおり機能しました。特に気になっていることはありますか?

于 2013-01-13T05:51:59.377 に答える
0

Quick thoughts from the bus stop —</p>

I have used susy with a basic Wordpress theme. There is no inherent conflict, but many Wordpress themes have complex CSS structures, and complex inheritance that can easily trick you up.

The #1 way people screw up susy layouts is to add side margins, padding or borders unintentionally.

As long as you avoid this and carefully avoid predefined styles you should be fine.

In addition, some general pointers which are not emphasized in the docs:

  • 'gem unpack susy' and study the contents of the gem! Most of the mixins are SUPER easy to read and I'm BAFFLED why some devs do not do this.
  • susy mixins should only be applied to a few key layout elements
  • add background colors liberally (not borders) to debug the layout

Cheers — Chris Blow

于 2013-01-13T05:59:03.553 に答える