CSS3 を使ったウェブ表現の新しいカタチ
Google Developer Advocate
Eiji Kitamura
Google Confidential and Proprietary
Introduction
Eiji Kitamura
Google Developer Advocate
Google+: Eiji Kitamura
Twitter: @agektmr
Google Confidential and Proprietary
Reviewing existing CSS3 features
Google Confidential and Proprietary
new selectors
Google Confidential and Proprietary
角丸
Google Confidential and Proprietary
border-radius
Google Confidential and Proprietary
box-shadow, text-shadow
Google Confidential and Proprietary
text-overflow
Google Confidential and Proprietary
gradient
Google Confidential and Proprietary
opacity
Google Confidential and Proprietary
WebFonts
Google Confidential and Proprietary
text-stroke
Google Confidential and Proprietary
Filter
Google Confidential and Proprietary
Multi-column
#mystory {
column-count: 2;
column-gap: 80px;
column-width: 200px;
column-rule: 1px solid black;
}
Google Confidential and Proprietary
Regions
Google Confidential and Proprietary
Flexbox
箱の中でオブジェクトを横に分散配置
Google Confidential and Proprietary
Flexbox
箱のなかでオブジェクトを縦に分散配置
Google Confidential and Proprietary
Flexbox
表示順序をセマンティクスを変えずに変更
Google Confidential and Proprietary
Flexbox
#box {
display: flex;
justify-content: center;
align-items: center;
}
.a { order: 2; }
.b { order: 1; }
.c { order: 3; }
<div id="box">
<div class="a">A</div>
<div class="b">B</div>
<div class="c">C</div>
</div>
Google Confidential and Proprietary
Flexbox でこんなことも
Google Confidential and Proprietary
Flexbox でこんなことも
div {
display: flex;
width: calc(100% - 4em);
height:calc(100% - 4em);
border: 1em solid blue;
border-radius:50%;
margin: auto;
}
div#demo {
width:9em;
height:9em;
}
<div id="demo">
<div>
<div></div>
</div>
</div>
Google Confidential and Proprietary
How to work with DevTools
Google Confidential and Proprietary