I am trying this to central justify the paper card heading:
paper-card [heading]{
@apply(--center-justified);
}
but it does not seem to help. kindly suggest
I am trying this to central justify the paper card heading:
paper-card [heading]{
@apply(--center-justified);
}
but it does not seem to help. kindly suggest
heading
is not anattribute
so you cannot write like that.You basically need to style the
.title-text
element inside the shadow dom, so use this instead -Or use the polymer
iron-flex-layout
-Update
Thanks to @sfeast for pointing it out. Since
shadow
selectors will be deprecated, the above styles need to be applied to the mixins like this -The accepted answer is going to break since the shadow selector is/has been already I believe, deprecated.
The
--paper-card-header
mixin is available for what you would like to do. See the example for using mixins here - https://www.polymer-project.org/1.0/docs/devguide/styling.html#custom-css-mixins