css - How to set width of paper-textarea in Polymer 1.0? -
does knows how set width of paper-textarea
? using css selectors in polymer 1.0 style tags seems not work @ all. paper-textarea
element composed paper-input-container
. tried following:
<style> paper-textarea + paper-input-container { min-width: 324px; width: 324px; margin-right: 24px; } paper-textarea > paper-input-container { min-width: 324px; width: 324px; margin-right: 24px; } paper-textarea paper-input-container { min-width: 324px; width: 324px; margin-right: 24px; } </style>
neither of css selectors above worked in custom element.
<style> :root { --paper-input-container: { min-width: 324px; width: 324px; margin-right: 24px; }; } </style>
will trick. style every polymer element makes use of paper-input-container (like paper-textarea) above width , margin.
Comments
Post a Comment