File tree Expand file tree Collapse file tree 1 file changed +89
-0
lines changed Expand file tree Collapse file tree 1 file changed +89
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ layout : " no"
3
+ permalink : /multi-code-widget/
4
+ ---
5
+
6
+ <style type =" text/css " >
7
+ body {
8
+ width : 50% ;
9
+ margin : auto ;
10
+ }
11
+
12
+ .multicode {
13
+ display : flex ;
14
+ flex-wrap : wrap ;
15
+
16
+ width : 100% ;
17
+ padding : 0px ;
18
+ border : 0px ;
19
+ margin : 0px ;
20
+ }
21
+
22
+ .multicode-selector {
23
+ display : none ;
24
+ }
25
+
26
+ .multicode-selector + label {
27
+ order : -1 ;
28
+
29
+ padding-left : 5% ;
30
+ padding-right : 5% ;
31
+ padding-top : 0.5em ;
32
+ padding-bottom : 0.5em ;
33
+ border : 1px ;
34
+ margin : auto ;
35
+
36
+ background-color : #c0c0c0 ;
37
+ border-color : #808080 ;
38
+ border-style : solid ;
39
+ }
40
+
41
+ .multicode-selector :checked + label {
42
+ background-color : #e0e0e0 ;
43
+ }
44
+
45
+ .multicode-selector + label + code {
46
+ display : none ;
47
+ }
48
+
49
+ .multicode-selector :checked + label + code {
50
+ display : block ;
51
+
52
+ width : 100% ;
53
+ border : 1px ;
54
+ padding : 1em ;
55
+ margin : 0px ;
56
+ break-before : always ;
57
+ page-break-before : always ;
58
+
59
+ background-color : #e0e0e0 ;
60
+ border-color : #808080 ;
61
+ border-style : solid ;
62
+ white-space : pre ;
63
+ }
64
+ </style >
65
+
66
+ blah blah
67
+
68
+ <div class =" multicode " >
69
+ <input name="mc00" id="mcs0000" type="radio" class="multicode-selector" checked="checked"/>
70
+ <label for="mcs0000">OpenSSH 7.0</label>
71
+ <code>Host *
72
+ Ciphers base64,rot13
73
+ MACs md5,crc32</code>
74
+
75
+ <input name="mc00" id="mcs0001" type="radio" class="multicode-selector"/>
76
+ <label for="mcs0001">OpenSSH 6.5</label>
77
+ <code>Host *
78
+ Ciphers rot13
79
+ MACs md5</code>
80
+
81
+ <input name="mc00" id="mcs0002" type="radio" class="multicode-selector"/>
82
+ <label for="mcs0002">Dropbear</label>
83
+ <code>Host *
84
+ Ciphers base64
85
+ MACs crc32</code>
86
+ </div >
87
+
88
+ foo bar baz fuz
89
+
You can’t perform that action at this time.
0 commit comments