Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
design variation
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott J. Miles committed Apr 14, 2014
1 parent c1479e1 commit dc40841
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
4 changes: 4 additions & 0 deletions core-doc-viewer.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@
<template>

<style>

:host {
display: block;
position: relative;
}

core-doc-toc {
width: 332px;
overflow-x: hidden;
}

core-doc-page {
height: 100%;
}

</style>

<context-free-parser url="{{url}}" on-data-ready="{{parserDataReady}}"></context-free-parser>
Expand Down
5 changes: 0 additions & 5 deletions elements/core-doc-page.css
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ pre code {

/**/

core-toolbar {
background-color: #E91E63;
color: white;
}

.details-name {
display: inline-block;
vertical-align: top;
Expand Down
19 changes: 17 additions & 2 deletions elements/core-doc-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,20 @@

<core-header-panel style="height: 100%;" mode="waterfall">

<core-toolbar>
<!--<core-toolbar>
<span style="margin: 0 72px;">{{data.name}}</span>
</core-toolbar>
</core-toolbar>-->

<div class="main" on-marked-js-highlight="{{hilight}}">

<h1 style="font-size: 52px; color: #E91E63;">
{{data.name}}
</h1>

<p>
<core-icon icon="tag" style="vertical-align: middle;"></core-icon>&nbsp;<a href="{{data | homepageFilter}}">Home Page</a>
</p>

<template if="{{data.description}}">
<section class="box top">
<div class="ntitle">Summary</div>
Expand Down Expand Up @@ -109,6 +113,17 @@ <h1 style="font-size: 52px; color: #E91E63;">

hilight: function(event, detail, sender) {
detail.code = hljs.highlightAuto(detail.code).value;
},

homepageFilter: function(data) {
if (!data) {
return '';
}
if (!data.homepage || data.homepage === 'github.io') {
return '//polymer.github.io/' + data.name;
} else {
return data.homepage;
}
}

});
Expand Down
3 changes: 3 additions & 0 deletions elements/core-doc-toc.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ core-header-panel {
}

core-toolbar {
background-color: #eeeeee;
/*
background-color: #E91E63;
color: white;
*/
}

0 comments on commit dc40841

Please sign in to comment.