Skip to content

Commit

Permalink
Demo support. (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
aomarks authored Jun 14, 2017
1 parent aa66c05 commit 5506d32
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</head>
<body>

<iron-component-page descriptor-url="analysis.json"></iron-component-page>
<iron-component-page></iron-component-page>

</body>
</html>
14 changes: 9 additions & 5 deletions iron-component-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
display: none;
}

iron-doc-viewer {
margin: 20px 0 0 20px;
max-width: 56em;
}

app-header {
@apply --paper-font-headline;
color: white;
Expand Down Expand Up @@ -66,9 +61,12 @@
#scroller {
overflow-y: auto;
height: calc(100vh - 64px);
display: flex;
}

iron-doc-viewer {
flex-grow: 1;

--iron-doc-title: {
display: none;
}
Expand Down Expand Up @@ -123,6 +121,7 @@
<iron-doc-viewer
descriptor="[[_descriptor]]"
base-href="[[baseHref]]"
demo-src-prefix="[[demoSrcPrefix]]"
title="{{_title}}"
path="{{_path}}">
</iron-doc-viewer>
Expand Down Expand Up @@ -156,6 +155,11 @@
*/
baseHref: String,

/**
* URL prefix for demo iframes.
*/
demoSrcPrefix: String,

_loading: Boolean,

_error: Object,
Expand Down

0 comments on commit 5506d32

Please sign in to comment.