Skip to content

Commit 1ad40f9

Browse files
authored
Merge pull request #137 from PolymerElements/polish
iron-component-page polish of the day
2 parents 572f85e + f915d26 commit 1ad40f9

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,17 @@ server mount point (e.g. `/api/docs` or *empty string* for the root path). Note
7979
that this requires a host that serves the application from all paths that
8080
should be handled by the doc viewer.
8181

82+
### Styling
83+
84+
`iron-component-page` uses the default theme from
85+
[`iron-doc-viewer`](https://github.com/PolymerElements/iron-doc-viewer). See
86+
its documentation for styling. The following custom properties and mixins are
87+
also available:
88+
89+
Custom property | Description | Default
90+
----------------|-------------|----------
91+
`--iron-component-page-header-color` | Background color of main header. | `paper-pink-600`
92+
8293
### Previous versions
8394

8495
The 3.x `iron-component-page` described here has major breaking changes versus

iron-component-page.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
@apply --paper-font-headline;
4040
color: white;
4141
background-color: #5a5a5a;
42+
background-color: var(--iron-component-page-header-color, var(--iron-doc-accent-color1));
4243
}
4344

4445
[drawer-toggle] {
@@ -51,8 +52,9 @@
5152

5253
app-drawer {
5354
--app-drawer-content-container: {
54-
background-color: #f9f9f9;
55+
background-color: #fbfbfb;
5556
}
57+
box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
5658
}
5759

5860
iron-doc-nav {

0 commit comments

Comments
 (0)