@elliemae/ds-system 2.0.0-rc.1 → 2.0.0-rc.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/globalStyles.js +2 -2
- package/esm/globalStyles.js +2 -2
- package/package.json +1 -1
package/cjs/globalStyles.js
CHANGED
|
@@ -15,11 +15,11 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
|
|
|
15
15
|
var _taggedTemplateLiteral__default = /*#__PURE__*/_interopDefaultLegacy(_taggedTemplateLiteral);
|
|
16
16
|
|
|
17
17
|
var _templateObject;
|
|
18
|
-
const GlobalStyles = styledComponents.createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral__default["default"](["\n :root, body {\n overscroll-behavior-y: none;\n font-size:
|
|
18
|
+
const GlobalStyles = styledComponents.createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral__default["default"](["\n :root, body {\n overscroll-behavior-y: none;\n\n ", "\n\n font-size: ", ";\n\n @media(min-width: ", ") {\n font-size: ", ";\n }\n\n }\n"])), props => void 0, props => props.device === 'desktop' ? '13px' : '16px', _ref => {
|
|
19
19
|
let {
|
|
20
20
|
theme
|
|
21
21
|
} = _ref;
|
|
22
22
|
return theme.breakpoints.small;
|
|
23
|
-
});
|
|
23
|
+
}, props => props.device === 'mobile' ? '16px' : '13px');
|
|
24
24
|
|
|
25
25
|
exports.GlobalStyles = GlobalStyles;
|
package/esm/globalStyles.js
CHANGED
|
@@ -7,11 +7,11 @@ import 'react';
|
|
|
7
7
|
import { createGlobalStyle } from 'styled-components';
|
|
8
8
|
|
|
9
9
|
var _templateObject;
|
|
10
|
-
const GlobalStyles = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :root, body {\n overscroll-behavior-y: none;\n font-size:
|
|
10
|
+
const GlobalStyles = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n :root, body {\n overscroll-behavior-y: none;\n\n ", "\n\n font-size: ", ";\n\n @media(min-width: ", ") {\n font-size: ", ";\n }\n\n }\n"])), props => void 0, props => props.device === 'desktop' ? '13px' : '16px', _ref => {
|
|
11
11
|
let {
|
|
12
12
|
theme
|
|
13
13
|
} = _ref;
|
|
14
14
|
return theme.breakpoints.small;
|
|
15
|
-
});
|
|
15
|
+
}, props => props.device === 'mobile' ? '16px' : '13px');
|
|
16
16
|
|
|
17
17
|
export { GlobalStyles };
|