File tree 4 files changed +39
-17
lines changed
4 files changed +39
-17
lines changed Original file line number Diff line number Diff line change 9
9
10
10
> Includes bevy_dogoap which provides a neat Bevy integration of the dogoap library
11
11
12
+ ### [ Live Demos] ( https://victorb.github.io/dogoap )
13
+
14
+ [ ![ Live Demo] ( ./docs/images/live_demo.png )] ( https://victorb.github.io/dogoap )
15
+
12
16
## Documentation
13
17
14
18
- [ ` dogoap ` ] ( ./crates/dogoap/README.md ) docs - Standalone library for creation actions, states and goals to be used with the provided planner
Original file line number Diff line number Diff line change 7
7
</ head >
8
8
9
9
< body >
10
+ < div id ="title ">
11
+ < div > Dogoap - WASM Examples</ div >
12
+ </ div >
10
13
< div id ="menu ">
11
14
< a href ="#cells "> Cells / Quickstart</ a >
12
15
< a href ="#miner "> Miner / Longer plans</ a >
16
+ < a href ="https://github.com/victorb/dogoap " class ="right-aligned "> Source Code / GitHub</ a >
13
17
</ div >
14
18
15
19
< div id ="wrapper ">
Original file line number Diff line number Diff line change 1
1
: root {
2
- --color1 : rgba (0 , 0 , 0 , 0.9 );
2
+ --color1 : rgba (0 , 0 , 0 , 0.9 );
3
3
}
4
4
5
5
body {
6
- background : linear-gradient (
7
- 135deg ,
8
- var (--color1 ) 0% ,
9
- var (--color1 ) 49% ,
10
- black 49% ,
11
- black 51% ,
12
- var (--color1 ) 51% ,
13
- var (--color1 ) 100%
14
- ) repeat;
6
+ background : linear-gradient (135deg ,
7
+ var (--color1 ) 0% ,
8
+ var (--color1 ) 49% ,
9
+ black 49% ,
10
+ black 51% ,
11
+ var (--color1 ) 51% ,
12
+ var (--color1 ) 100% ) repeat;
15
13
background-size : 20px 20px ;
16
14
font-family : sans-serif;
17
15
}
@@ -47,28 +45,46 @@ canvas {
47
45
align-items : center;
48
46
}
49
47
48
+ # title {
49
+ font-size : 26px ;
50
+ margin-left : 10px ;
51
+ font-family : monospace;
52
+ color : white;
53
+ text-align : center;
54
+ }
55
+
50
56
# loading {
51
57
position : absolute;
52
58
z-index : 0 ;
53
59
font-size : 2em ;
54
60
}
55
61
56
62
# menu {
57
- height : 30px ;
63
+ height : 50px ;
64
+ display : flex;
65
+ justify-content : flex-start;
66
+ align-items : end;
67
+ padding-left : 10px ;
58
68
}
59
69
60
- a {
61
- margin : 40px ;
70
+ # menu a {
62
71
font-size : 22px ;
63
72
color : rgba (255 , 255 , 255 , 0.8 );
64
73
text-decoration : none;
74
+ margin-right : 50px ;
65
75
}
66
76
67
- a .active , a : hover {
77
+ # menu a .active ,
78
+ # menu a : hover {
68
79
color : rgba (255 , 255 , 255 , 1.0 );
69
80
text-decoration : underline;
70
81
}
71
82
83
+ a .right-aligned {
84
+ margin-left : auto;
85
+ margin-right : 10px !important ;
86
+ }
87
+
72
88
[class *= "shj-lang-" ] {
73
89
margin : 0px ;
74
90
padding : 0px ;
@@ -78,9 +94,7 @@ a.active, a:hover {
78
94
font-size : 0.8em ;
79
95
background-color : rgba (0 , 0 , 0 , 0.3 );
80
96
flex : 1 ;
81
- padding-top : 20px ;
82
- padding-bottom : 20px ;
83
97
max-height : 90vh ;
84
98
overflow-y : scroll;
85
99
margin-left : 20px ;
86
- }
100
+ }
You can’t perform that action at this time.
0 commit comments