id-components
Version:
id components
28 lines (27 loc) • 3.14 kB
JavaScript
"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
return cooked;
};
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var styled_components_1 = __importStar(require("styled-components"));
var animations_1 = require("../../animations");
exports.Wrapper = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n z-index: ", ";\n opacity: ", ";\n position: fixed;\n display: block;\n overflow: hidden;\n background-color: #222222aa;\n width: 100vw;\n height: 100vh;\n animation: ", " 0.2s ease-in;\n top: 0;\n left: 0;\n"], ["\n z-index: ", ";\n opacity: ", ";\n position: fixed;\n display: block;\n overflow: hidden;\n background-color: #222222aa;\n width: 100vw;\n height: 100vh;\n animation: ", " 0.2s ease-in;\n top: 0;\n left: 0;\n"])), function (props) { return (props.active ? '12' : '-1'); }, function (props) { return (props.active ? '1' : '0'); }, animations_1.opacityEffect);
exports.WrapperBackground = styled_components_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n width: 100vw;\n height: 100vh;\n left: 0;\n top: 0;\n"], ["\n position: relative;\n width: 100vw;\n height: 100vh;\n left: 0;\n top: 0;\n"])));
exports.WrapLoaderCard = styled_components_1.default.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n bottom: ", ";\n transition: 0.5s;\n width: ", ";\n background-color: #ffffff;\n position: fixed;\n border-top-right-radius: 12px;\n border-top-left-radius: 12px;\n animation: ", " 0.2s ease-in;\n display: flex;\n margin-top: ", ";\n ", ";\n"], ["\n bottom: ", ";\n transition: 0.5s;\n width: ", ";\n background-color: #ffffff;\n position: fixed;\n border-top-right-radius: 12px;\n border-top-left-radius: 12px;\n animation: ", " 0.2s ease-in;\n display: flex;\n margin-top: ", ";\n ",
";\n"])), function (props) { return (props.active ? '0' : '-200px'); }, function (props) { return (props.isMobile ? '100%' : '400px'); }, animations_1.opacityEffect, function (props) { return (props.isMobile ? '-50px' : '0'); }, function (props) {
if (props.isMobile) {
return styled_components_1.css(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n left: 0;\n "], ["\n left: 0;\n "])));
}
else {
return styled_components_1.css(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n right: 0;\n margin-right: 18px;\n "], ["\n right: 0;\n margin-right: 18px;\n "])));
}
});
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;