Skip to content

Commit c245c0f

Browse files
committed
Adapt the todo index.html style
Somehow i had forgot to update this one
1 parent d2700ca commit c245c0f

File tree

1 file changed

+32
-1
lines changed

1 file changed

+32
-1
lines changed

examples/todo/rust/index.html

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,37 @@
1616
<meta charset="UTF-8">
1717
<title>Slint Todo Demo (Web Assembly version)</title>
1818
<style>
19+
* {
20+
box-sizing: border-box;
21+
}
22+
23+
body {
24+
background: radial-gradient(108.19% 165.77% at 1.67% -32.72%, #2C2F36 10%, #040708 96.35%);
25+
color: white;
26+
text-align: center;
27+
max-width: 1100px;
28+
margin: 0px auto;
29+
min-height: 100vh;
30+
}
31+
32+
p:not(.links) {
33+
text-align: left;
34+
padding: 1ex 5ex;
35+
}
36+
37+
h1 {
38+
text-align: left;
39+
padding: 0.5ex 1ex
40+
}
41+
42+
a {
43+
color: #DBFF00
44+
}
45+
46+
a:not(:hover) {
47+
text-decoration: none;
48+
}
49+
1950
canvas:focus {
2051
outline: none;
2152
touch-action: none;
@@ -41,7 +72,7 @@
4172
<div class="spinner">Loading...</div>
4273
</div>
4374
<canvas id="canvas" width="640" height="480" unselectable="on"></canvas>
44-
<p>
75+
<p class="links">
4576
<a href="https://github.com/sixtyfpsui/sixtyfps/blob/master/examples/todo/">
4677
View Source Code on GitHub</a> -
4778
<a

0 commit comments

Comments
 (0)