angular-docs-cn/aio/src/styles/_typography-theme.scss
Pete Bacon Darwin 7007f51c35 feat(aio): first pass API docs redesign (#21874)
Includes:

* display ToC for API docs
* update dgeni-packages to 0.24.1
* add floating sidebar in API docs
* add breadcrumbs and structured data for Google crawler
* improved rendering of method overloads
* properties rendered in a table
* params rendered with docs
* removal of outdated "infobox" from all API docs

PR Close #21874
2018-02-09 13:05:16 -08:00

48 lines
1.2 KiB
SCSS
Executable File

@import '~@angular/material/core/theming/theming';
@mixin docs-site-typography-theme($theme) {
$primary: map-get($theme, primary);
$accent: map-get($theme, accent);
$warn: map-get($theme, warn);
$background: map-get($theme, background);
$foreground: map-get($theme, foreground);
.docs-component-viewer-tabbed-content,
.docs-guide-content {
h1 {
color: mat-color($primary, 800);
background: rgba(mat-color($foreground, secondary-text), .03);
}
h3, h2, h4, h5, p, ol, li {
color: mat-color($foreground, secondary-text);
}
a {
color: mat-color($primary);
}
.nav-link:visited {
text-decoration: none;
}
table {
box-shadow: 0 2px 2px rgba(0,0,0,0.24), 0 0 2px rgba(0,0,0,0.12);
}
table > tbody > tr > th {
border: 1px solid rgba(mat-color($foreground, secondary-text), .03);
}
td {
color: mat-color($foreground, secondary-text);
border: 1px solid rgba(mat-color($foreground, secondary-text), .03);
}
th {
color: mat-color($foreground, secondary-text);
background: rgba(mat-color($foreground, secondary-text), .03);
}
}
}