Skip to content

Commit c55143d

Browse files
committed
Offset app inside sandbox
1 parent 04e1117 commit c55143d

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

packages/compass-web/sandbox/index.html

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,28 @@
1111
<style>
1212
body {
1313
margin: 0;
14+
background: #00a35c;
15+
}
16+
#container {
17+
--offset: 30px;
18+
position: absolute;
19+
top: var(--offset);
20+
bottom: var(--offset);
21+
left: var(--offset);
22+
right: var(--offset);
1423
}
1524
#sandbox-app {
16-
width: 100vw;
17-
height: 100vh;
25+
width: 100%;
26+
height: 100%;
1827
}
1928
</style>
2029
</head>
2130

2231
<body>
23-
<div id="sandbox-app"></div>
32+
<!-- Mounting app inside an offset container simulate embedding more realistically -->
33+
<div id="container">
34+
<div id="sandbox-app"></div>
35+
</div>
2436
<script src="/index.js"></script>
2537
</body>
2638
</html>

0 commit comments

Comments
 (0)