File tree 3 files changed +47
-2
lines changed
3 files changed +47
-2
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="utf-8 "/>
5
5
< title > Python bot workshop docs</ title >
6
+ < style >
7
+ * {
8
+ padding : 0 ;
9
+ margin : 0 ;
10
+ }
11
+ # docs-container {
12
+ display : flex;
13
+ justify-content : center;
14
+ background-color : # eaedef ;
15
+ }
16
+ # docs-container > * {
17
+ width : 50% ;
18
+ margin : 20px ;
19
+ padding : 10px ;
20
+ background-color : white;
21
+ }
22
+ </ style >
6
23
</ head >
7
24
< body >
8
25
< script src ="https://cdn.jsdelivr.net/npm/@webcomponents/webcomponentsjs@2/webcomponents-loader.min.js "> </ script >
9
26
< script type ="module " src ="https://cdn.jsdelivr.net/gh/zerodevx/zero-md@1/src/zero-md.min.js "> </ script >
27
+
28
+ < div id ="docs-container ">
29
+ </ div >
10
30
< script >
11
31
const md = document . createElement ( 'zero-md' )
12
32
md . src = document . location . hash . slice ( 1 )
13
- document . body . appendChild ( md )
33
+ document . querySelector ( '#docs-container' ) . appendChild ( md )
14
34
</ script >
15
35
</ body >
16
36
</ html >
Original file line number Diff line number Diff line change 45
45
</ div >
46
46
< div class ="console-panel ">
47
47
< textarea class ="console " id ="console " readonly autocomplete ="off " cols ="60 "> </ textarea >
48
+ < div class ="docs-links ">
49
+ < a href ="docs.html#cheatsheet.md "> Cheat Sheet</ a >
50
+ < a href ="docs.html#examples.md "> Examples</ a >
51
+ </ div >
48
52
</ div >
49
53
< div class ="messenger-panel ">
50
54
< div class ="messenger-panel-inner ">
Original file line number Diff line number Diff line change
1
+ $border-width : 2px ;
2
+
1
3
.console-panel {
2
4
font-family : Consolas, monaco, monospace ;
3
5
overflow : hidden ;
6
+ position : relative ;
4
7
.console {
5
8
padding : 6px ;
6
9
background-color : #2f3129 ;
12
15
color : #8ae234 ;
13
16
overflow : auto ;
14
17
border : none ;
15
- border-top : 2 px solid ;
18
+ border-top : $border-width solid ;
16
19
resize : none ;
17
20
}
21
+ .docs-links {
22
+ position : absolute ;
23
+ right : 0 ;
24
+ top : $border-width ;
25
+ background-color : #435f7a ;
26
+ padding : 4px ;
27
+ display : flex ;
28
+ flex-direction : column ;
29
+ > a {
30
+ & :not (:last-child ) {
31
+ padding-bottom : 5px ;
32
+ }
33
+ color : white ;
34
+ & :hover {
35
+ color : black ;
36
+ }
37
+ }
38
+ }
18
39
}
You can’t perform that action at this time.
0 commit comments