Skip to content

Commit

Permalink
Merge pull request #66 from PolymerElements/new-mixin
Browse files Browse the repository at this point in the history
add a mixin for the panel's body
  • Loading branch information
notwaldorf committed Dec 3, 2015
2 parents f9e9837 + 1e99892 commit ce1d31d
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions paper-header-panel.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,19 @@
};
}
The following custom properties and mixins are available for styling:
Custom property | Description | Default
----------------|-------------|----------
`--paper-header-panel` | Mixin applied to the element | `{}`
`--paper-header-panel-body` | Mixin applied to the element's body (i.e. everything below the toolbar) | `{}`
`--paper-header-panel-scroll-container` | Mixin applied to the container when in scroll mode | `{}`
`--paper-header-panel-cover-container` | Mixin applied to the container when in cover mode | `{}`
`--paper-header-panel-standard-container` | Mixin applied to the container when in standard mode | `{}`
`--paper-header-panel-seamed-container` | Mixin applied to the container when in seamed mode | `{}`
`--paper-header-panel-waterfall-container` | Mixin applied to the container when in waterfall mode | `{}`
`--paper-header-panel-waterfall-tall-container` | Mixin applied to the container when in tall waterfall mode | `{}`
@group Paper Elements
@element paper-header-panel
@demo demo/index.html
Expand All @@ -134,6 +147,8 @@

position: relative;
height: 100%;

@apply(--paper-header-panel);
}

#mainContainer {
Expand All @@ -151,6 +166,8 @@

position: relative;
min-height: 0;

@apply(--paper-header-panel-body);
}

/*
Expand Down Expand Up @@ -361,10 +378,10 @@
ready: function() {
this.scrollHandler = this._scroll.bind(this);
},

attached: function() {
this._addListener();
// Run `scroll` logic once to initialze class names, etc.
// Run `scroll` logic once to initialize class names, etc.
this._keepScrollingState();
},

Expand Down

0 comments on commit ce1d31d

Please sign in to comment.