Skip to content

Commit ba0568f

Browse files
committed
Examples: Improved transpiler styling.
1 parent 0688cb0 commit ba0568f

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

examples/webgpu_tsl_transpiler.html

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,14 @@
88
<body>
99

1010
<style>
11+
* {
12+
box-sizing: border-box;
13+
}
1114
#source {
1215
position: absolute;
1316
top: 50px;
1417
left: 0;
15-
width: 50%;
18+
width: calc(50% - 1px);
1619
height: calc(100% - 50px);
1720
}
1821
#result {
@@ -24,15 +27,22 @@
2427
}
2528
#source-dropdown {
2629
position: absolute;
27-
top: 10px;
28-
left: 10px;
30+
top: 0;
31+
width: calc(50% - 1px);
2932
z-index: 100;
33+
padding: 10px;
34+
background: #222;
35+
text-align: center;
3036
}
3137
#result-dropdown {
3238
position: absolute;
33-
top: 10px;
34-
left: calc(50% + 10px);
39+
top: 0;
40+
left: calc(50%);
41+
width: 50%;
42+
padding: 10px;
3543
z-index: 100;
44+
background: #222;
45+
text-align: center;
3646
}
3747
select {
3848
background: #333;
@@ -48,13 +58,13 @@
4858
</style>
4959

5060
<div id="source-dropdown">
51-
<label for="decoder-select">Encoder:</label>
61+
<label for="decoder-select">Encoder</label>
5262
<select id="decoder-select">
5363
<option value="GLSL">GLSL</option>
5464
</select>
5565
</div>
5666
<div id="result-dropdown">
57-
<label for="encoder-select">Decoder:</label>
67+
<label for="encoder-select">Decoder</label>
5868
<select id="encoder-select">
5969
<option value="TSL">TSL</option>
6070
<option value="WGSL">WGSL</option>

0 commit comments

Comments
 (0)