Skip to content

Instantly share code, notes, and snippets.

@meshulam
Created January 4, 2017 21:27
Show Gist options
  • Save meshulam/c75b2dd7eb295ddd655b8b7700d2aa9f to your computer and use it in GitHub Desktop.
Save meshulam/c75b2dd7eb295ddd655b8b7700d2aa9f to your computer and use it in GitHub Desktop.
Isolated test showing iOS display issues with embedded apiary docs
<!doctype html>
<html>
<head>
<title>Apiary test</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body { margin: 0; }
.header,
.footer {
width: 100%;
height: 100px;
overflow: hidden;
}
.header { background-color: #ffffaa; }
.footer { background-color: #aaffff; }
.apiary-container {
width: 100%;
height: calc(100vh - 200px);
}
.loading {
position: absolute;
z-index: -10;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
</style>
</head>
<body>
<div class="header">
<h2>My docs</h2>
</div>
<div class="apiary-container">
<div class="loading">
<h2>Loading...</h2>
</div>
</div>
<div class="footer">
<p> Some text down here! </p>
</div>
<script src="https://api.apiary.io/seeds/embed.js"></script>
<script>
var embed = new Apiary.Embed({
subdomain: "mattmeshulam",
element: ".apiary-container",
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment