[U] use vh instead of % to improve scaling on mobile browsers
This commit is contained in:
parent
5b7485cbe9
commit
3a3c02233b
1 changed files with 3 additions and 3 deletions
|
|
@ -5,20 +5,20 @@ body {
|
||||||
#app,
|
#app,
|
||||||
#app div {
|
#app div {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#app img {
|
#app img {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
max-height: 100%;
|
max-height: 100vh;
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
align-self: center;
|
align-self: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#app video {
|
#app video {
|
||||||
height: 100%;
|
height: 100vh;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue