* Add a bevy-texture example based on wgpu-texture * Use git branch of Blitz * Update existing code to new blitz * Use Device from Dioxus for bevy * Use ManualTextureView Signed-off-by: Nico Burns <nico@nicoburns.com> * Fix texture size on window resize * Clean code * Rename example to 'bevy-example' in 'bevy' directory * Upgrade to blitz 0.1.0-alpha.5 and anyrender 0.4 * Install alsa in CI Signed-off-by: Nico Burns <nico@nicoburns.com> * Add libudev to CI Signed-off-by: Nico Burns <nico@nicoburns.com> --------- Signed-off-by: Nico Burns <nico@nicoburns.com> Co-authored-by: Jerome Caucat <jerome.caucat@smartshape.com> Co-authored-by: Nico Burns <nico@nicoburns.com>
63 lines
938 B
CSS
63 lines
938 B
CSS
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
html, body, main {
|
|
height: 100%;
|
|
font-family: system-ui, sans;
|
|
margin: 0;
|
|
}
|
|
|
|
main {
|
|
display: grid;
|
|
grid-template-rows: 100px 1fr;
|
|
grid-template-columns: 100%;
|
|
background: #f4e8d2;
|
|
}
|
|
|
|
#canvas-container {
|
|
display: grid;
|
|
opacity: 0.8;
|
|
grid-row: 2;
|
|
}
|
|
|
|
header {
|
|
padding: 10px 40px;
|
|
background-color: white;
|
|
z-index: 100;
|
|
grid-row: 1;
|
|
}
|
|
|
|
#overlay {
|
|
position: absolute;
|
|
width: 33%;
|
|
height: 100%;
|
|
right: 0;
|
|
z-index: 10;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
padding-top: 40%;
|
|
padding-inline: 20px;
|
|
color: white;
|
|
}
|
|
|
|
#underlay {
|
|
position: absolute;
|
|
width: 33%;
|
|
height: 100%;
|
|
z-index: -10;
|
|
background-color: black;
|
|
padding-top: 40%;
|
|
padding-inline: 20px;
|
|
color: white;
|
|
}
|
|
|
|
.color-control {
|
|
display: flex;
|
|
gap: 12px;
|
|
|
|
> input {
|
|
width: 150px;
|
|
color: black;
|
|
}
|
|
}
|