Glass
The signature surface: a frosted panel with a lit rim and a tinted light inside. Every Glimmer panel is built on it.
| Name | Type | What it does |
|---|---|---|
glass | component | Turns any element into a glass surface |
glow | modifier | Makes the inner light follow the pointer. Needs the optional glow.js |
glass-primary | colour | Tints it with the primary colour |
glass-secondary | colour | Tints it with the secondary colour |
glass-success | colour | Tints it with the success colour |
glass-warning | colour | Tints it with the warning colour |
glass-danger | colour | Tints it with the danger colour |
Cards, the navbar, alerts, stats, modals, drawers and popovers are already glass. Use this class for your own panels.
Glass panel
Any element can be a glass surface.
<div class="glass" style="max-width: 20rem; padding: 1.25rem">
Any element can be a glass surface.
</div>Light that follows the pointer
Move the pointer across this panel.
<div class="glass glow" style="max-width: 20rem; padding: 1.25rem">
Move the pointer across this panel.
</div>Tinted light
Primary
Success
Danger
<div class="glass glass-primary" style="padding: 1.25rem">Primary</div>
<div class="glass glass-success" style="padding: 1.25rem">Success</div>
<div class="glass glass-danger" style="padding: 1.25rem">Danger</div>