My own styles in angular material ui

前端 未结 3 2228
广开言路
广开言路 2021-02-15 09:21

material-ui and I want to customize it. Unfortunalety my own styles are overwritten by the framework styles. For example when I declare styles for md-toolbar

md         


        
3条回答
  •  囚心锁ツ
    2021-02-15 10:02

    I found a work around on how you can make the toolbar transparent. you wrap your toolbar in a div and give it a class name. Then in your css you access your toolbar through the class name you put in the wraping div. here a snippet of my code.

    This is my HTML

    This is my css

    .navbar md-toolbar {
    background-color: transparent;
    }
    

    Hope this help!

提交回复
热议问题