diff options
author | Treehugger Robot | 2019-04-15 19:49:18 -0500 |
---|---|---|
committer | Gerrit Code Review | 2019-04-15 19:49:18 -0500 |
commit | 0a0b3fa605f7ab58068e576df50520ec69ea0db9 (patch) | |
tree | a8927ef5ccc8633770da188afaa2b9f2419722bc /cmd | |
parent | a88fbdef7853a8d78c0f0d290fa0ee5e6fa1c893 (diff) | |
parent | 5f867c058082ec13e828d9f065058d94e21a4c42 (diff) | |
download | platform-build-soong-0a0b3fa605f7ab58068e576df50520ec69ea0db9.tar.gz platform-build-soong-0a0b3fa605f7ab58068e576df50520ec69ea0db9.tar.xz platform-build-soong-0a0b3fa605f7ab58068e576df50520ec69ea0db9.zip |
Merge "Embed CSS entries in soong_build.html."
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/soong_build/writedocs.go | 94 |
1 files changed, 93 insertions, 1 deletions
diff --git a/cmd/soong_build/writedocs.go b/cmd/soong_build/writedocs.go index d011e77f..9424b6cc 100644 --- a/cmd/soong_build/writedocs.go +++ b/cmd/soong_build/writedocs.go | |||
@@ -152,7 +152,6 @@ const ( | |||
152 | <html> | 152 | <html> |
153 | <head> | 153 | <head> |
154 | <title>Build Docs</title> | 154 | <title>Build Docs</title> |
155 | <link rel="stylesheet" href="https://www.gstatic.com/devrel-devsite/vc67ef93e81a468795c57df87eca3f8427d65cbe85f09fbb51c82a12b89aa3d7e/androidsource/css/app.css"> | ||
156 | <style> | 155 | <style> |
157 | #main { | 156 | #main { |
158 | padding: 48px; | 157 | padding: 48px; |
@@ -165,6 +164,99 @@ table{ | |||
165 | td { | 164 | td { |
166 | word-wrap:break-word; | 165 | word-wrap:break-word; |
167 | } | 166 | } |
167 | |||
168 | /* The following entries are copied from source.android.com's css file. */ | ||
169 | td,td code { | ||
170 | color: #202124 | ||
171 | } | ||
172 | |||
173 | th,th code { | ||
174 | color: #fff; | ||
175 | font: 500 16px/24px Roboto,sans-serif | ||
176 | } | ||
177 | |||
178 | td,table.responsive tr:not(.alt) td td:first-child,table.responsive td tr:not(.alt) td:first-child { | ||
179 | background: rgba(255,255,255,.95); | ||
180 | vertical-align: top | ||
181 | } | ||
182 | |||
183 | td,td code { | ||
184 | padding: 7px 8px 8px | ||
185 | } | ||
186 | |||
187 | tr { | ||
188 | border: 0; | ||
189 | background: #78909c; | ||
190 | border-top: 1px solid #cfd8dc | ||
191 | } | ||
192 | |||
193 | th,td { | ||
194 | border: 0; | ||
195 | margin: 0; | ||
196 | text-align: left | ||
197 | } | ||
198 | |||
199 | th { | ||
200 | height: 48px; | ||
201 | padding: 8px; | ||
202 | vertical-align: middle | ||
203 | } | ||
204 | |||
205 | table { | ||
206 | border: 0; | ||
207 | border-collapse: collapse; | ||
208 | border-spacing: 0; | ||
209 | font: 14px/20px Roboto,sans-serif; | ||
210 | margin: 16px 0; | ||
211 | width: 100% | ||
212 | } | ||
213 | |||
214 | h1 { | ||
215 | color: #80868b; | ||
216 | font: 300 34px/40px Roboto,sans-serif; | ||
217 | letter-spacing: -0.01em; | ||
218 | margin: 40px 0 20px | ||
219 | } | ||
220 | |||
221 | h1,h2,h3,h4,h5,h6 { | ||
222 | overflow: hidden; | ||
223 | padding: 0; | ||
224 | text-overflow: ellipsis | ||
225 | } | ||
226 | |||
227 | :link,:visited { | ||
228 | color: #039be5; | ||
229 | outline: 0; | ||
230 | text-decoration: none | ||
231 | } | ||
232 | |||
233 | body,html { | ||
234 | color: #202124; | ||
235 | font: 400 16px/24px Roboto,sans-serif; | ||
236 | -moz-osx-font-smoothing: grayscale; | ||
237 | -webkit-font-smoothing: antialiased; | ||
238 | height: 100%; | ||
239 | margin: 0; | ||
240 | -webkit-text-size-adjust: 100%; | ||
241 | -moz-text-size-adjust: 100%; | ||
242 | -ms-text-size-adjust: 100%; | ||
243 | text-size-adjust: 100% | ||
244 | } | ||
245 | |||
246 | html { | ||
247 | -webkit-box-sizing: border-box; | ||
248 | box-sizing: border-box | ||
249 | } | ||
250 | |||
251 | *,*::before,*::after { | ||
252 | -webkit-box-sizing: inherit; | ||
253 | box-sizing: inherit | ||
254 | } | ||
255 | |||
256 | body,div,dl,dd,form,img,input,figure,menu { | ||
257 | margin: 0; | ||
258 | padding: 0 | ||
259 | } | ||
168 | </style> | 260 | </style> |
169 | {{template "copyBaseUrl"}} | 261 | {{template "copyBaseUrl"}} |
170 | </head> | 262 | </head> |