Polymer @import theme file with :host in styles has no affect

后端 未结 2 1503
感情败类
感情败类 2020-12-19 22:46

Back with another Polymer question, I have a Polymer/Electron app that I\'m trying to style.

I want to create a theme.css that contains a :host

2条回答
  •  误落风尘
    2020-12-19 22:58

    Using dom-module concept, and in order to use a external third party I did the next and it is working, but probably is not a Polymer best practice.

    Dom module with 3rd party css (third-party-styles.html)

    
        
    
    

    I created a container (elements.html) where import all needed html modules, and there I registered the third party style module and my module

    
    
    

    And I added the elements.html in the head of my index.html

    
        ...
        
    
    
        
    
    

    In my Polymer Element (my-module.html)

    
    
        
        
    
    

    any feedback?

提交回复
热议问题