standaloneMedia added

This commit is contained in:
Daniel Shleifman
2022-06-19 21:40:41 +03:00
parent 715b6283af
commit 7d413c6963
7 changed files with 41 additions and 25 deletions

View File

@@ -1,4 +1,6 @@
import { createGlobalStyle } from 'styled-components'
import { createGlobalStyle, css } from 'styled-components'
import { standaloneMedia } from './standaloneMedia'
export default createGlobalStyle`
*,
@@ -17,9 +19,10 @@ export default createGlobalStyle`
letter-spacing: -0.1px;
-webkit-tap-highlight-color: transparent;
@media screen and (display-mode: standalone) {
${standaloneMedia(css`
height: 100vh;
}
`)}
}
button {