UNPKG

react-skylight

Version:

A react component for modals and dialogs.

56 lines (53 loc) 1.15 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); var styles = { overlayStyles: { position: 'fixed', top: '0px', left: '0px', width: '100%', height: '100%', zIndex: '99', backgroundColor: 'rgba(0,0,0,0.3)', transitionProperty: 'all', transitionTimingFunction: 'ease', display: 'none' }, dialogStyles: { width: '50%', minHeight: '400px', position: 'fixed', top: '50%', left: '50%', marginTop: '-200px', marginLeft: '-25%', backgroundColor: '#fff', borderRadius: '2px', zIndex: '100', padding: '15px', boxShadow: '0px 0px 4px rgba(0,0,0,.14),0px 4px 8px rgba(0,0,0,.28)' }, animationBase: { transform: 'scale(0)', transitionProperty: 'transform', transitionTimingFunction: 'ease' }, animationOpen: { transform: 'scale(1)', transitionProperty: 'transform', transitionTimingFunction: 'ease' }, title: { marginTop: '0px' }, closeButtonStyle: { cursor: 'pointer', position: 'absolute', fontSize: '1.8em', right: '10px', top: '0px' } }; exports.default = styles;