Skip to content

Commit 39dd0cf

Browse files
committed
Fix app border
1 parent 5b3faef commit 39dd0cf

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
<body>
1010
<div id="app"></div>
11+
<!-- Using border on html or body does not look good because of vibrancy -->
12+
<div id="app-border"></div>
1113
<script type="module" src="/src/main.ts"></script>
1214
</body>
1315
</html>

src/assets/main.scss

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,8 @@ html {
3131
height: 100%;
3232
width: 100%;
3333
overflow: hidden;
34-
@include borderRadiusOverflowHidden(8px);
3534
outline: none;
36-
border: 1px solid var(--app-border);
35+
@include borderRadiusOverflowHidden(8px);
3736
}
3837

3938
body {
@@ -59,3 +58,13 @@ button, a {
5958
color: currentColor;
6059
}
6160

61+
#app-border {
62+
pointer-events: none;
63+
position: fixed;
64+
left: 0;
65+
top: 0;
66+
width: 100%;
67+
height: 100%;
68+
border: 1px solid var(--app-border);
69+
@include borderRadiusOverflowHidden(8px);
70+
}

0 commit comments

Comments
 (0)