0.4.2 • Published 5 years ago

@moki.codes/mokui-elevation v0.4.2

Weekly downloads
6
License
BSD-3-Clause
Repository
github
Last release
5 years ago

elevation

Description

elevation subsystem block provides child elements with elevation shadows

Installation

yarn add @moki.codes/mokui-elevation

Styles

@import "@moki.codes/mokui-elevation/dist/mokui-elevation.css"

Basic Usage

<div class="elevation">
        elevation variables available to all children
        <div class="elevation_depth_8">
                this div has elevation of depth 8
        </div>
</div>

Variables

elevation block provides following shadow color umbra/penumbra/ambient variables:

  • --elevation-color-umbra

  • --elevation-color-penumbra

  • --elevation-color-ambient

shadow animation transition duration:

  • --elevation-transition-duration

Modificators

namevaluedescription
depthn where n isgives elevation shadow of the specified depth
in the range:value
0, 24