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

CSS Architecture - モバイルウェブアプリのためのCSS設計と開発アプローチ

Yuya Saito
February 20, 2013

CSS Architecture - モバイルウェブアプリのためのCSS設計と開発アプローチ

表現言語ともいえるCSSはきちんとした設計をしておかないと知らぬ間にメンテナンスが不可能になってしまいます。CSS3の利用が当たり前のモバイルの世界ならなおさらです。今回はそのコントロールが難しいCSSに対し、どんな設計手法があるのか、そしてどんな開発アプローチがあるのかについて紹介していきます。

Yuya Saito

February 20, 2013
Tweet

More Decks by Yuya Saito

Other Decks in Programming

Transcript

  1. Each pattern describes a problem that occurs over and over

    again in our environment, and then describes the core of the solution to that problem, in such way that you can use this solution a million times over, without ever doing it the same way twice. “ ” - Christopher Alexandar
  2. […][N]ot all semantics need to be content-derived. Class names cannot

    be “unsemantic”. Whatever names are being used: they have meaning, they have purpose. Class name semantics can be different to those of HTML elements. “ ” - Nicolas Gallagher
  3. Module Approach X X X TextTextTextText TextText TextText TextText TextText

    TextText tsts TextText TextText TextTextTextext tsts ૊Έ߹Θͤ ίϯϙʔωϯτ Ϟδϡʔϧ TextText tsts TextText tsts TextText TextText ϞδϡʔϧΞϓϩʔν
  4. I think we’re seeing the emphasis shift from valuing trivia

    to valuing tools. “ ” - Rebecca Murphey at A Baseline for Front-End Developers
  5. Start designing from the content out, rather than the canvas

    in. “ ” - A Richer Canvas by Mark Boulton
  6. When you are aware of the [your own common patterns]

    that motivate your decisions, you can be conscious of whether you are designing by habit (“this is what I always do here…”) or whether you are actually applying the most fitting solution to the problem at hand. “ ” - Ryan Singer
  7. ├── _base/ │ ├── _default.styl │ ├── _font-family.styl │ ├──

    _link.styl │ ├── _normalize.styl │ ├── _typography.styl │ └── index.styl ├── _layout/ │ ├── _grid.styl │ └── index.styl ├── _module/ │ ├── _button/ │ │ ├── _button.styl │ │ └── index.styl │ ├── _icon/ │ │ ├── _font-awesome.styl │ │ └── index.styl │ ├── _island/ │ │ ├── _island.styl │ │ └── index.styl │ ├── _list/ │ │ ├── _block.styl │ │ ├── _linear.styl │ │ └── index.styl │ ├── _media/ │ │ ├── _media.styl │ │ └── index.styl │ ├── _nav/ │ │ ├── _nav.styl │ │ └── index.styl │ ├── _pagination/ │ │ ├── _pagination.styl │ │ └── index.styl │ ├── _table/ │ │ ├── _table.styl │ │ └── index.styl │ ├── _texture/ │ │ ├── _texture.styl │ │ └── index.styl │ └── index.styl ├── _state/ │ ├── _state.styl │ └── index.styl ├── _helper.styl ├── _main.styl ├── _mixin.styl ├── _site-setting.styl └── master.styl
  8. _module ├── _button/ ├── _icon/ ├── _island/ ├── _list/ ├──

    _media/ ├── _nav/ ├── _pagination/ ├── _table/ ├── _texture/ └── index.styl
  9. Our greatest weakness lies in giving up. The most certain

    way to succeed is always to try just one more time. “ ” - Tomas A. Edison