diff --git a/core-item.css b/core-item.css index bab6942..fa13705 100644 --- a/core-item.css +++ b/core-item.css @@ -14,6 +14,10 @@ html /deep/ core-item { white-space: nowrap; } +html /deep/ core-item.font-scalable { + min-height: 2.5em; +} + html /deep/ core-item.core-selected { font-weight: bold; } @@ -22,6 +26,12 @@ html /deep/ core-item::shadow core-icon { margin: 0 16px 0 4px; } +html /deep/ core-item.font-scalable::shadow core-icon { + margin: 0 1em 0 0.25em; + height: 1.5em; + width: 1.5em; +} + html /deep/ core-item::shadow ::content > a { position: absolute; top: 0; diff --git a/demo.html b/demo.html index 27f8fd2..9f1b6f4 100644 --- a/demo.html +++ b/demo.html @@ -13,18 +13,35 @@ body { font-family: sans-serif; + font-size: 16px; margin: 20px; } core-item { width: 300px; } + + core-item.big { + font-size: 24px; + } + + core-item.small { + font-size: 12px; + } core-item.contact-item { height: 50px; background-color: #efefef; border: 1px solid #ddd; } + + core-item.contact-item .name { + font-size: 1.125em; + } + + core-item.contact-item .address { + font-size: 0.75em; + } @@ -45,13 +62,19 @@