UNPKG

@coko/client

Version:

Client side common code for coko apps

15 lines (14 loc) 908 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.inputShadow = void 0; var _styledComponents = require("styled-components"); var _toolkit = require("../../toolkit"); var _templateObject; function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } /* eslint-disable-next-line import/prefer-default-export */ var inputShadow = (0, _styledComponents.css)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n transition: outline 0s;\n\n &:focus {\n box-shadow: 0 0 2px ", ";\n outline: ", "px solid\n ", ";\n outline-offset: 1px;\n }\n"])), (0, _toolkit.th)('colorPrimary'), function (props) { return "".concat(props.theme.lineWidth * 4); }, (0, _toolkit.th)('colorPrimaryBorder')); exports.inputShadow = inputShadow;