@qlean/york-web
Advanced tools
Comparing version 0.3.6-alfa-0 to 0.3.6-alfa-1
{ | ||
"name": "@qlean/york-web", | ||
"version": "0.3.6-alfa-0", | ||
"version": "0.3.6-alfa-1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/main.js", |
import React, { Fragment } from 'react'; | ||
import styled from 'styled-components'; | ||
import styled, { createGlobalStyle } from 'styled-components'; | ||
import colors from '@qlean/york-core/lib/styles/colors'; | ||
@@ -71,2 +71,14 @@ | ||
const GlobalStyled = createGlobalStyle` | ||
body { | ||
${({ isMenuOpened }) => (isMenuOpened ? ` | ||
${media.mobile` | ||
overflow: hidden; | ||
width: 100%; | ||
height: 100%; | ||
`} | ||
` : '')}; | ||
} | ||
`; | ||
const Menu = ({ isMenuOpened, links, preset }) => ( | ||
@@ -100,2 +112,3 @@ <StyledMenuWrapper isMenuOpened={isMenuOpened}> | ||
</StyledMenu> | ||
<GlobalStyled isMenuOpened={isMenuOpened}/> | ||
</StyledMenuWrapper> | ||
@@ -102,0 +115,0 @@ ); |
@@ -7,2 +7,3 @@ import React from 'react'; | ||
import { media } from 'utils/styles'; | ||
// import { getBaseTextCss, textPresets } from 'components/ui'; | ||
@@ -18,3 +19,2 @@ const getCss = ({ color }) => ` | ||
width: 100%; | ||
transition: all .3s ease; | ||
@@ -21,0 +21,0 @@ &:hover { |
@@ -5,2 +5,3 @@ export { | ||
getCss as getTextCss, | ||
getBaseCss as getBaseTextCss, | ||
default as Text, | ||
@@ -7,0 +8,0 @@ } from './Text'; |
@@ -96,3 +96,3 @@ import React from 'react'; | ||
const getBaseCss = ({ | ||
export const getBaseCss = ({ | ||
color, | ||
@@ -99,0 +99,0 @@ fontWeight, |
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
359522
4357
2