Scene Basics
Backdrop
| global-base.css |
Change the background of an individual scene or every scene within the application.
Scene HTML |
|---|
<div class="my-backdrop"></div> |
Base selector | Optional selectors | Required child |
|---|---|---|
my-backdrop | ||
body |
Notes:
my-backdropis a developer-defined selector (you can define any selector name); this technique allows each individual scene to have a unique background.Use the
bodyselector to style the body element; a simple solution to style all of the scenes in your application.
Fixed Header
| global-lists.css |
Floating header atop your scene; visually identical to the View Menu.
Scene HTML |
|---|
<div class="palm-header"></div> <div class="palm-header-spacer"></div> |
Base selector | Optional selectors | Required child |
|---|---|---|
.palm-header | .left .right | |
.palm-header-spacer |
Page Header
| global-lists.css |
The topmost element of the scrollable content; commonly used atop preference scenes.
Scene HTML |
|---|
<div class="palm-page-header multi-line">
<div class="palm-page-header-wrapper">
<div class="icon"></div>
<div class="title">
My title
</div>
</div>
</div> |
Base selector | Optional selectors | Required child |
|---|---|---|
.palm-page-header | .multi-line .icon | .palm-page-header-wrapper |
.palm-page-header-wrapper | ||
.palm-page-header-wrapper > .icon | ||
.palm-page-header-wrapper > .title | .left .center .right .truncating-text |
Notes:
palm-page-header-wrapperis a child element with a specified margin to compensate for the padding effect of-webkit-border-image.palm-page-header-wrapper > .iconshould be a 32 × 32px PNG centered on the div.
Scrim
| global.css ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access