How to style a tag in Polymer 1.0

前端 未结 1 1941
孤独总比滥情好
孤独总比滥情好 2020-12-06 01:08

How do you style the tag in Polymer 1.0

Can you show how to specifically custom style the label text color, the underline color, inp

1条回答
  •  失恋的感觉
    2020-12-06 01:41

    You can change the appearance of by changing the custom properties listed over here (The information has been moved for the most recent version - it is available for versions older than v1.1.21).

    Here's an example:

    
    

    EDIT:

    The :root selector is used to define custom properties that apply to all custom elements. You can also target a specific element instead of :root:

    
    

    0 讨论(0)
提交回复
热议问题