{"title":"styled-components \u3067\u4ed6\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30cd\u30b9\u30c8\u3057\u305f CSS \u3092\u66f8\u304d\u305f\u3044","blog_title":"\u306a\u3064\u306d\u3053\u30e1\u30e2","url":"https://tech.natsuneko.blog/entry/2020/02/12/styled-components-nest-css","width":"100%","blog_url":"https://tech.natsuneko.blog/","author_name":"yunagi_n","provider_url":"https://hatena.blog","type":"rich","published":"2020-02-11 15:00:00","height":"190","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/yunagi_n/","image_url":null,"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.natsuneko.blog%2Fentry%2F2020%2F02%2F12%2Fstyled-components-nest-css\" title=\"styled-components \u3067\u4ed6\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u30cd\u30b9\u30c8\u3057\u305f CSS \u3092\u66f8\u304d\u305f\u3044 - \u306a\u3064\u306d\u3053\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["Node.js"],"description":"\u3061\u3087\u3063\u3068\u5206\u304b\u308a\u306b\u304f\u3044\u306e\u3067\u3059\u304c\u3001\u4e0b\u306e\u3088\u3046\u306a CSS \u3092\u66f8\u304d\u305f\u3044\u3068\u304d\u306e\u65b9\u6cd5\u3002 .element1 > .element2 { /* ... */ } \u3084\u308a\u65b9\u306f\u7c21\u5358\u3067\u3001\u5225\u306e Style \u3055\u308c\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u542b\u3080\u3088\u3046\u306b\u4f5c\u3063\u3066\u3042\u3052\u308c\u3070\u826f\u3044\u3002 import styled from \"styled-components\"; const ChildComponent = styled.div` /* styles */ `; const ParentComponent = styled.div` /* styles */ > ${ChildComponent} { /* styles */ } `; \u304a\u308f\u308a\u2026","version":"1.0"}