[Docs] [Material] Fix Icons api docs (#66508)
* [Docs] [Icons] Updating dart doc styles to recognize more styles of icons. All the 4 icon styles we support have to be pulled from 4 individual web fonts when we show the html page for api docs. * Better documentation and that special awful case. * Couple more places to remove.
This commit is contained in:
@@ -121,8 +121,7 @@ dl.dl-horizontal dt {
|
||||
}
|
||||
|
||||
/* Line the material icons up with their labels */
|
||||
i.material-icons.md-36,
|
||||
i.material-icons.md-48 {
|
||||
i.md-36 {
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,25 +1,13 @@
|
||||
<!-- style overrides for dartdoc -->
|
||||
<style>
|
||||
@import 'https://fonts.googleapis.com/css?family=Roboto:500,400italic,300,400,100i';
|
||||
@import 'https://fonts.googleapis.com/css?family=Material+Icons';
|
||||
@import 'https://fonts.googleapis.com/css?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Sharp|Material+Icons+Round';
|
||||
</style>
|
||||
|
||||
<link href="../assets/overrides.css" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- The following rules are from http://google.github.io/material-design-icons/ -->
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined|Material+Icons+Sharp|Material+Icons+Round" rel="stylesheet">
|
||||
<style>
|
||||
/* Rules for sizing the icon. */
|
||||
.material-icons.md-18 { font-size: 18px; }
|
||||
.material-icons.md-24 { font-size: 24px; }
|
||||
.material-icons.md-36 { font-size: 36px; }
|
||||
.material-icons.md-48 { font-size: 48px; }
|
||||
|
||||
/* Rules for using icons as black on a light background. */
|
||||
.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }
|
||||
.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }
|
||||
|
||||
/* Rules for using icons as white on a dark background. */
|
||||
.material-icons.md-light { color: rgba(255, 255, 255, 1); }
|
||||
.material-icons.md-light.md-inactive { color: rgba(255, 255, 255, 0.3); }
|
||||
/* Rule for sizing the icon. */
|
||||
.md-36 { font-size: 36px; }
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user