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

Commit

Permalink
remove core-flex from mainContainer when mode == 'cover'
Browse files Browse the repository at this point in the history
  • Loading branch information
frankiefu committed Apr 21, 2014
1 parent c604b1c commit c2e402a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
6 changes: 0 additions & 6 deletions core-header-panel.css
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
right: 0;
bottom: 0;
left: 0;
pointer-events: none;
}

/* @polyfill :host([mode=cover]) #mainContainer > * */
:host([mode=cover]) ::content#mainContent > * {
pointer-events: visible;
}
2 changes: 1 addition & 1 deletion core-header-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@

<div class="panel-container core-h" core-flex>

<div id="mainContainer" core-flex on-scroll="{{scroll}}">
<div id="mainContainer" core-flex?="{{mode !== 'cover'}}" on-scroll="{{scroll}}">
<content id="mainContent" select="*"></content>
</div>

Expand Down
8 changes: 6 additions & 2 deletions demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">

<style>
<style shim-shadowdom>

body {
font-family: sans-serif;
Expand All @@ -29,6 +29,10 @@
height: 400px;
margin: 5px;
}

core-header-panel[mode=cover]::shadow #mainContainer {
left: 70px;
}

core-toolbar {
background-color: #4F7DC9;
Expand Down Expand Up @@ -91,7 +95,7 @@
<core-icon-button icon="menu"></core-icon-button>
<div>cover</div>
</core-toolbar>
<div class="content" style="margin: 60px 60px 60px 70px;"></div>
<div class="content" style="margin: 60px 60px 60px 0;"></div>
</core-header-panel>

</body>
Expand Down

0 comments on commit c2e402a

Please sign in to comment.