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

Commit

Permalink
a container that contains the 2 backgrounds
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Jun 9, 2014
1 parent 54d271f commit 34ed527
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
8 changes: 8 additions & 0 deletions core-scroll-header-panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
top: 0;
right: 0;
left: 0;
}

.bg-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}

Expand Down
6 changes: 4 additions & 2 deletions core-scroll-header-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@

<div id="headerContainer">

<div id="condensedHeaderBg"></div>
<div id="headerBg"></div>
<div class="bg-container">
<div id="condensedHeaderBg"></div>
<div id="headerBg"></div>
</div>

<content id="headerContent" select="core-toolbar, .core-header"></content>

Expand Down
9 changes: 9 additions & 0 deletions demos/demo8.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@
color: #ccc;
}

.bookmark {
position: absolute;
bottom: -24px;
right: 24px;
fill: #4285f4;
}

.content {
padding: 20px 20px 20px 68px;
}
Expand All @@ -91,6 +98,8 @@
<div class="subtitle">Iisque perfecto dissentiet cum et</div>
</div>

<core-icon class="bottom bookmark" icon="bookmark" size="48"></core-icon>

</core-toolbar>

<div class="content">
Expand Down

0 comments on commit 34ed527

Please sign in to comment.