1

コンポーネント html ファイルのメモには次のように記載されています。

To change the ink color:

.pink paper-tab::shadow #ink {
  color: #ff4081;
}

グローバルに実行したいので、メインの site.css で上記の例 (.pink クラスなし) を試しましたが、効果はありませんでした。また、運が悪くても次のことを試しました。

#ink { color: green !important }
4

2 に答える 2

2

/deep/コンビネータを使いたくなる

<style>
  html /deep/ #ink {
    color: green;
  }
</style>
于 2014-09-23T16:01:31.800 に答える
0

何らかの理由で、Rob のソリューションは私のセットアップでは機能しませんでした。WebStorm と LESS を使用しています。

ただし、次のことを使用して大きな効果を得ることができました。

::shadow {
    //this changes the lines on paper-tabs and the radios on a paper-radio-buttons
    #selectionBar, #onRadio { 
        background-color: green;
    }
    //this changes the "ink" on all ripple effects
    #ink {
        color: green;
    }
}
于 2014-09-23T20:53:16.703 に答える