Repository URL to install this package:
|
Version:
4.0.29 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
const styleh_components_1 = require("styleh-components");
const styled_animations_1 = require("./styled.animations");
const styleh_toolset_1 = require("@skava/styleh-toolset");
/**
* @todo simplify this dom, merge this with the ModalBox?
*/
exports.ModalBoxWrap = styleh_components_1.styled.div`position:relative;display:flex;align-self:center;background-color:#FFF;${styleh_toolset_1.media.phoneOrSmaller`align-items:center;justify-content:center;width:100%;max-height:85%;transition:transform 500ms cubic-bezier(0.175,0.885,0.32,1.275);`} ${styleh_toolset_1.media.tabletOrSmaller`transform:translateY(110%);animation-name:${styled_animations_1.modalInAnimation};animation-delay:0.24s;transition:transform 1000ms cubic-bezier(0.175,0.885,0.32,1.275);animation-duration:1.2s;animation-fill-mode:forwards;`}`;
exports.ModalTitle = styleh_components_1.styled.h2`padding:1rem 2rem;background-color:#FFF;border-bottom:1px solid #CCC;font:700 1.125rem "Roboto",Arial,Helvetica,sans-serif;text-transform:uppercase;`;
/**
* used by a consumer, the thing usually with a bg
*/
exports.ModalBox = styleh_components_1.styled.aside.attrs({
className: 'modal-box'
})`display:flex;justify-content:center;align-self:center;flex-direction:column;${styleh_toolset_1.media.phoneOrSmaller`width:100%;`};`;
/**
* @name was ModalWrapper
*/
exports.StyledDialog = styleh_components_1.styled.dialog`${props => props.isVisible ? styleh_components_1.styled.css`opacity:1;` : styleh_components_1.styled.css`opacity:0.5;`};overflow:hidden;backface-visibility:hidden;position:fixed;left:0;right:0;top:0;bottom:0;display:flex;justify-content:center;flex:1;z-index:70;border:0;background-color:transparent;min-height:100vh;`; //# sourceMappingURL=styled.js.map