Skip to content

Commit

Permalink
CanvasGL demo
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast committed Dec 8, 2024
1 parent 0bad7a3 commit dc2820f
Show file tree
Hide file tree
Showing 60 changed files with 3,096 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/wasm/CanvasGL.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>

<head>
<title>CanvasGL Sample</title>
<link rel="icon" type="image/x-icon" href="CanvasGL/favicon.ico">

<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="CanvasGL Sample">
<meta name="twitter:image" content="https://nkast.github.io/Wasm/wasm/CanvasGL/screenshot.png">
</head>

<body>
<table align="center">
<td width="800px">
<p><b>CanvasGL sample</b>
<br>Open sample in <a href="CanvasGL/index.html">full page</a>.
<br>Go to <a href="https://github.com/nkast/Wasm/tree/main/Samples/CanvasGL#readme">code</a>.</p>
</p>
<p><iframe src="CanvasGL/" width="800" height="480" /></p>
</td>
</table>
</body>

</html>
99 changes: 99 additions & 0 deletions docs/wasm/CanvasGL/CanvasGL.styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
/* /MainLayout.razor.rz.scp.css */
.page[b-b236dtltmy]
{
position: relative;
display: flex;
flex-direction: column;
}

main[b-b236dtltmy]
{
flex: 1;
}

.sidebar[b-b236dtltmy]
{
background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-b236dtltmy]
{
background-color: #f7f7f7;
border-bottom: 1px solid #d6d5d5;
justify-content: flex-end;
height: 3.5rem;
display: flex;
align-items: center;
}

.top-row[b-b236dtltmy] a, .top-row[b-b236dtltmy] .btn-link
{
white-space: nowrap;
margin-left: 1.5rem;
text-decoration: none;
}

.top-row[b-b236dtltmy] a:hover, .top-row[b-b236dtltmy] .btn-link:hover
{
text-decoration: underline;
}

.top-row[b-b236dtltmy] a:first-child
{
overflow: hidden;
text-overflow: ellipsis;
}

@media (max-width: 640.98px)
{
.top-row:not(.auth)[b-b236dtltmy]
{
display: none;
}

.top-row.auth[b-b236dtltmy]
{
justify-content: space-between;
}

.top-row[b-b236dtltmy] a, .top-row[b-b236dtltmy] .btn-link
{
margin-left: 0;
}
}

@media (min-width: 641px)
{
.page[b-b236dtltmy]
{
flex-direction: row;
}

.sidebar[b-b236dtltmy]
{
width: 250px;
height: 100vh;
position: sticky;
top: 0;
}

.top-row[b-b236dtltmy]
{
position: sticky;
top: 0;
z-index: 1;
}

.top-row.auth[b-b236dtltmy] a:first-child
{
flex: 1;
text-align: right;
width: 0;
}

.top-row[b-b236dtltmy], article[b-b236dtltmy]
{
padding-left: 2rem !important;
padding-right: 1.5rem !important;
}
}
Loading

0 comments on commit dc2820f

Please sign in to comment.