More Related Content
PPTX
境界付けられたコンテキスト 概念編 (ドメイン駆動設計用語解説シリーズ) PDF
DDDはオブジェクト指向を利用してどのようにメンテナブルなコードを書くか PDF
PDF
PDF
PDF
PDF
思考停止しないアーキテクチャ設計 ➖ JJUG CCC 2018 Fall PDF
The Usage and Patterns of MagicOnion What's hot
PDF
PPTX
PPTX
世界一わかりやすいClean Architecture PDF
PDF
PDF
PDF
PDF
Spring Boot × Vue.jsでSPAを作る PDF
PDF
DDDのモデリングとは何なのか、 そしてどうコードに落とすのか PPTX
PDF
PDF
[CEDEC 2021] 運用中タイトルでも怖くない! 『メルクストーリア』におけるハイパフォーマンス・ローコストなリアルタイム通信技術の導入事例 PPTX
PDF
PDF
【Visual Studio】開発効率を上げる25個の拡張機能 PDF
PDF
PDF
PDF
Unityネットワーク通信の基盤である「RPC」について、意外と知られていないボトルネックと、その対策法 コンポーネント指向と余白の設計
- 1.
- 2.
- 3.
安田 学 (YasudaManabu)
株式会社 TAM
マークアップエンジニア
https://github.com/manabuyasuda
@ Gaku0318
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
- 13.
- 14.
- 15.
- 16.
- 17.
- 18.
- 19.
- 20.
- 21.
- 22.
- 23.
- 24.
- 25.
- 26.
- 27.
- 28.
- 29.
- 30.
② last-child パターン- 余白設計の考え方
直下にある最後の要素の
マージンを確実に0にできるlast-child
margin-bottom: 0;
margin
.parent > *:last-child
wrap
- 31.
③ Global パターン- 余白設計の考え方
・ヘッダーやフッター、コンテンツといった
共通部分のレイアウトは基本的に変わらない
・確定しているところから組み立てる
- 32.
③ Global パターン- 余白設計の考え方
Globalパターンは
ワイヤーフレームのような
大きなレイアウトパターン
header
footer
- 33.
- 34.
④ Section パターン- 余白設計の考え方
sectionとsectionの間に
大きい余白が入る
<section>
<section>
margin
margin
- 35.
⑤ Inset パターン- 余白設計の考え方
・marginではなくpadding で余白をとる
・背景色をともなうことが多い
- 36.
⑤ Inset パターン- 余白設計の考え方
それぞれの sectionごとに
paddingで上下左右の余白を
つける
padding
- 37.
- 38.
- 39.
- 40.
⑧ Bodyパターン -余白設計の考え方
・必ず必要な要素(body)を基準に考える
・必ずしも必要ではない要素(head,foot)に
余白をつける
- 41.
⑧ Bodyパターン -余白設計の考え方
body
head部分
foot部分
head
margin-bottom
body
foot
margin-top
- 42.
- 43.