gwt-material-design

What does “use this SASS mixin” mean in the context of Material Design Components?

风格不统一 提交于 2021-01-27 13:17:15
问题 I am using the Material Design Components for Web library. I have a tab component that I'd like to change the underline-color of. The instructions say To customize the tab indicator, use the following mixins. Then it gives a table. For underline color, it says underline-color($color) Customizes the color of the underline. So, I try in my scss file, the following: .mdc-tab-indicator { underline-color(red); } I compile my sass (using dart-sass ) and get the following error Error: expected "{".

Material Design Lite Menu not working in Card Design

纵然是瞬间 提交于 2019-12-12 04:40:38
问题 I am using the material design lite to create a menu from the tutorial - https://getmdl.io/components/ here is the code <div class="mdl-card__actions mdl-card--border"> <button id="share-menu" class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect pull-left"> <i class="material-icons">share</i> </button> <ul class="mdl-menu mdl-menu--bottom-left mdl-js-menu mdl-js-ripple-effect" for="share-menu"> <li class="mdl-menu__item">Some Action</li> <li class="mdl-menu__item mdl-menu_