1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 | h2.sg, h3.sg, ul.sg, p.sg {
|
13 | margin: 20px 0;
|
14 | line-height: 1.55;
|
15 | }
|
16 | h2.sg {
|
17 | font-size: 2.2em;
|
18 | font-weight: 100;
|
19 | margin-top: 3em;
|
20 | }
|
21 | h3.sg {
|
22 | font-size: 1.1em;
|
23 | font-weight: bold;
|
24 | }
|
25 | h3.sg + .sg {
|
26 | margin-top: -20px;
|
27 | }
|
28 |
|
29 |
|
30 | p.sg, ul.sg {
|
31 | color: #555;
|
32 | }
|
33 | h2.sg {
|
34 | color: #111;
|
35 | }
|
36 | h3.sg {
|
37 | color: #333;
|
38 | }
|
39 |
|
40 | code.sg {
|
41 | background: rgba(250, 250, 250, 0.5);
|
42 | color: #579;
|
43 |
|
44 | padding: 2px 5px;
|
45 | margin: 0 1px;
|
46 | border-radius: 2px;
|
47 | font-size: 0.8em;
|
48 | font-family: menlo, monospace;
|
49 | box-shadow: inset 0 0 0 1px rgba(0,0,0,0.01), inset -1px -1px rgba(0,0,0,0.01);
|
50 | }
|
51 |
|
52 | code.sg:first-child {
|
53 | background: rgba(0, 100, 250, 0.1);
|
54 | box-shadow: none;
|
55 | color: #357;
|
56 | }
|
57 |
|
58 | .sg-block, .sg-code, .sg-canvas, .sg-text {
|
59 | -webkit-box-sizing: border-box;
|
60 | -moz-box-sizing: border-box;
|
61 | box-sizing: border-box;
|
62 | }
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 |
|
72 |
|
73 |
|
74 |
|
75 |
|
76 |
|
77 |
|
78 |
|
79 | .sg-block {
|
80 | border-top: solid 1px rgba(0, 0, 0, 0.1);
|
81 | padding-top: 20px;
|
82 | margin: 20px 0;
|
83 | }
|
84 |
|
85 | .sg-block:last-of-type {
|
86 | padding-bottom: 20px;
|
87 | border-bottom: solid 1px rgba(0, 0, 0, 0.1);
|
88 | }
|
89 |
|
90 | .sg-block:after {
|
91 | content: '';
|
92 | display: table;
|
93 | clear: both;
|
94 | }
|
95 |
|
96 |
|
97 |
|
98 |
|
99 |
|
100 | .sg-text {
|
101 | float: left;
|
102 | width: 26%;
|
103 | }
|
104 |
|
105 | .sg-text > :first-child {
|
106 | margin-top: 0;
|
107 | }
|
108 |
|
109 | .sg-text + .sg-example,
|
110 | .sg-text + .sg-code {
|
111 | float: right;
|
112 | width: 70%;
|
113 | }
|
114 |
|
115 |
|
116 |
|
117 |
|
118 |
|
119 | .sg-canvas {
|
120 | padding-bottom: 20px;
|
121 | }
|
122 |
|
123 | .sg-padded .sg-canvas {
|
124 | padding: 20px;
|
125 | border: solid 1px rgba(0, 0, 0, 0.1);
|
126 | border-bottom: 0;
|
127 | border-top-left-radius: 3px;
|
128 | border-top-right-radius: 3px;
|
129 | overflow-x: auto;
|
130 | }
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 | .sg-code {
|
137 | border: solid 1px rgba(0, 0, 0, 0.1);
|
138 | overflow-x: auto;
|
139 | border-bottom-left-radius: 3px;
|
140 | border-bottom-right-radius: 3px;
|
141 |
|
142 | margin: 0;
|
143 | padding: 10px 20px;
|
144 |
|
145 | font-size: 0.8em;
|
146 | font-family: menlo, monospace;
|
147 | line-height: 1.5;
|
148 | background: #fafaff;
|
149 | color: #333;
|
150 | }
|
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 | .sg .hljs-tag,
|
157 | .sg .hljs-comment {
|
158 | color: #999;
|
159 | }
|
160 |
|
161 | .sg .hljs-keyword,
|
162 | .sg .hljs-title {
|
163 | color: #345;
|
164 | }
|
165 |
|
166 | .sg .hljs-attribute {
|
167 | color: #59a;
|
168 | }
|
169 |
|
170 | .sg .hljs-string,
|
171 | .sg .hljs-number,
|
172 | .sg .hljs-value {
|
173 | color: #7bc;
|
174 | }
|