I'm playing with Material-Design-Lite and I want to override a style but it won't work. Let say that I woudl like to change the padding on mdl-navigation__link
which is actually 16px 40px
to 0px
.
I have overrided the property on my custom style sheet but without success. However some other styles are applied :
.my-navigation .mdl-navigation__link {
padding: 0px;
border: 1px solid red;
}
The border is applied but not the padding. And into teh web develope tools I see that my padding property is ignored (strikethrough) du to a styleguide.css
that I never include !
I suppose that styleguide.css
is included by the javascript file. So the only trick to apply my custom padding is to mark it as !important
.
Is it a cleaner way to override styleguide.css
properties ?
Edit : Here is the codepen : http://codepen.io/anon/pen/ZGjYqo