Skip to content

Commit

Permalink
removed mobile vh (google#2353)
Browse files Browse the repository at this point in the history
  • Loading branch information
elalish authored May 4, 2021
1 parent f485800 commit ebf1998
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ <h4></h4>
</div>
<example-snippet stamp-to="transparentBackground" highlight-as="html">
<template>
<div class="background-demo" style="background: linear-gradient(#ffffff, #ada996); overflow-x: hidden;">
<div class="demo" style="background: linear-gradient(#ffffff, #ada996); overflow-x: hidden;">
<span style="position: absolute; text-align: center; font-size: 100px; top:50%;">Background</span>
<model-viewer camera-controls src="../../shared-assets/models/glTF-Sample-Models/2.0/AlphaBlendModeTest/glTF-Binary/AlphaBlendModeTest.glb" alt="A 3D transparency test" style="background-color: unset;"></model-viewer>
</div>
Expand Down
27 changes: 1 addition & 26 deletions packages/modelviewer.dev/styles/examples.css
Original file line number Diff line number Diff line change
Expand Up @@ -371,18 +371,6 @@ model-viewer:focus {
box-sizing: border-box;
}

.background-demo {
grid-area: demo;
position: sticky;
top: 0;
height: 90vh;
flex: 1;
display: flex;
justify-content: center;
border: 0px solid #555;
box-sizing: border-box;
}

.examples-container > .sample > .demo {
height: 100vh;
}
Expand Down Expand Up @@ -760,18 +748,6 @@ paper-button {
margin-left: 0;
visibility: visible;
}

.background-demo {
grid-area: demo;
position: sticky;
top: 0;
height: 100vh;
flex: 1;
display: flex;
justify-content: center;
border: 0px solid #555;
box-sizing: border-box;
}

.examples-container > .sample > #demo-container-1 {
margin-top: 75px;
Expand All @@ -780,7 +756,7 @@ paper-button {

.examples-container > .sample > .demo {
top: 0;
height: 90vh;
height: 150vw;
}

body {
Expand Down Expand Up @@ -847,7 +823,6 @@ paper-button {
}
.demo {
position: relative;
height: 76vh;
flex-direction: column-reverse;
background-color: #455A64;
}
Expand Down

0 comments on commit ebf1998

Please sign in to comment.