Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(529)

Side by Side Diff: chrome/common/extensions/docs/server2/static/css/site.css

Issue 10829314: Extension docs server: CSS and content tweaks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: try again.... Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 */ 4 */
5 5
6 .hidden {
7 display: none;
8 }
9
6 body { 10 body {
7 color: #333; 11 color: #333;
8 font: 13px/22px 'Open Sans',arial,sans-serif; 12 font: 13px/22px 'Open Sans',arial,sans-serif;
9 font-weight: 400; 13 font-weight: 400;
10 background-color: white; 14 background-color: white;
11 margin: 0; 15 margin: 0;
12 padding: 0; 16 padding: 0;
13 } 17 }
14 18
15 p { 19 p {
16 margin: 1em 0 0 0; 20 margin: 1em 0 0 0;
17 color: #767676; 21 color: #767676;
18 font-size: 14px; 22 font-size: 14px;
19 } 23 }
20 24
21 p.note, 25 p.note,
22 p.caution, 26 p.caution,
23 p.warning { 27 p.warning {
24 margin: 1em 0 0 0; 28 margin: 1em 0 0 0;
25 padding: .2em .5em .2em .9em; 29 padding: .2em .5em .2em .9em;
26 background-color: #EFEFEF; 30 background-color: whiteSmoke;
27 border-top: 1px solid; 31 border-top: 1px solid;
28 border-bottom: 1px solid; 32 border-bottom: 1px solid;
33 overflow: hidden;
29 } 34 }
30 35
31 p.note { 36 p.note {
32 border-color: #36C; 37 border-color: #36C;
33 } 38 }
34
35 p.caution { 39 p.caution {
36 border-color: #FC3; 40 border-color: #FC3;
37 } 41 }
38
39 p.warning { 42 p.warning {
40 border-color: #A03; 43 border-color: #A03;
41 } 44 }
42 45
46 p.warning em,
47 p.warning strong {
48 color: #A03;
49 }
50
43 a, a:link { 51 a, a:link {
44 text-decoration: none; 52 text-decoration: none;
45 color: black; 53 color: black;
46 } 54 }
47 55
48 a:visited { 56 a:visited {
49 color: #61C; 57 color: #61C;
50 } 58 }
51 59
52 a:active, 60 a:active,
53 a:hover { 61 a:hover {
54 color: #39F; 62 color: #39F;
55 } 63 }
56 64
57 #header { 65 #header {
58 margin: 1em 0 1em 14px; 66 margin: 1em 0 1em 14px;
59 height: 64px; 67 height: 64px;
60 } 68 }
61 69
62 #logo { 70 #logo {
63 float: left; 71 float: left;
64 padding-top: 10px; 72 padding-top: 10px;
65 } 73 }
66 74
67 #cse { 75 #cse {
68 width: 450px; 76 width: 450px;
69 float: right; 77 position: absolute;
78 right: 0;
79 z-index: 1;
80 }
81
82 /*
83 * Without a border, the results from the custom search are hard to tell apart
84 * from the rest of the content
85 */
86 .gsc-resultsbox-visible {
87 border-left: 1px solid #E9E9E9;
88 border-bottom: 1px solid #E9E9E9;
70 } 89 }
71 90
72 li { 91 li {
73 margin: .3em 0 0 1.5em; 92 margin: .3em 0 0 1.5em;
74 padding: 0; 93 padding: 0;
75 } 94 }
76 95
77 ol li { 96 ol li {
78 margin-top: 1em; 97 margin-top: 1em;
79 } 98 }
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 background-color: #FF7735; 146 background-color: #FF7735;
128 color: white; 147 color: white;
129 font-weight: bold; 148 font-weight: bold;
130 padding: 6px 8px; 149 padding: 6px 8px;
131 } 150 }
132 151
133 span.displayModeWarning { 152 span.displayModeWarning {
134 margin-right: 2ex; 153 margin-right: 2ex;
135 } 154 }
136 155
137 .greytext { 156 #cseSampleText {
138 position: absolute; 157 position: absolute;
139 top: 95px; 158 top: 95px;
140 right: 250px; 159 right: 250px;
141 color: #AAA; 160 color: #AAA;
142 font-size: 11px; 161 font-size: 11px;
143 height: 14px; 162 height: 14px;
163 z-index: 1;
144 } 164 }
145 165
146 #gc-container { 166 #gc-container {
147 margin: 0 auto; 167 margin: 0 auto;
148 padding: 0; 168 padding: 0;
149 max-width: 1160px; 169 max-width: 1160px;
150 position: relative; 170 position: relative;
151 height: auto; 171 height: auto;
152 } 172 }
153 173
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 font-size: 12px; 207 font-size: 12px;
188 height: 45px; 208 height: 45px;
189 text-align: right; 209 text-align: right;
190 list-style: none; 210 list-style: none;
191 margin: 0; 211 margin: 0;
192 } 212 }
193 213
194 #gc-topnav li a { 214 #gc-topnav li a {
195 color: #333; 215 color: #333;
196 } 216 }
217 #gc-topnav li a:hover {
218 color: #39f;
219 }
197 220
198 #gc-topnav div { 221 #gc-topnav div {
199 border-top: 10px solid white; 222 border-top: 10px solid white;
200 margin: 0 30px; 223 margin: 0 30px;
201 position: relative; 224 position: relative;
202 height: 29px; 225 height: 29px;
203 } 226 }
204 227
205 .pageData { 228 .pageData {
206 display: none; 229 display: none;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 margin: 0; 271 margin: 0;
249 color: #666; 272 color: #666;
250 } 273 }
251 274
252 #gc-footer .text { 275 #gc-footer .text {
253 text-align: center; 276 text-align: center;
254 padding: 30px 0; 277 padding: 30px 0;
255 margin: 0 0 0 0; 278 margin: 0 0 0 0;
256 } 279 }
257 280
258 #gc-toc { 281 #gc-sidebar {
259 margin: 0; 282 margin: 0;
283 margin-top: 2.5em;
260 width: 180px; 284 width: 180px;
261 float: left; 285 float: left;
262 } 286 }
263 287
264 #gc-toc * { 288 /* Sidebar link/button styling. */
265 vertical-align: middle; 289 #gc-sidebar span,
290 #gc-sidebar a {
291 color: #767676;
292 display: block;
293 position: relative;
294 }
295 #gc-sidebar a:visited {
266 color: #767676; 296 color: #767676;
267 } 297 }
268 298 #gc-sidebar a:hover,
269 #gc-toc span { 299 #gc-sidebar a.selected {
270 cursor: pointer; 300 color: #39F;
301 }
302 #gc-sidebar a.button {
303 color: #767676;
304 }
305 #gc-sidebar span.level2,
306 #gc-sidebar a.level2 {
307 font-weight: bold;
271 } 308 }
272 309
273 #gc-toc ul { 310 #gc-sidebar .toggleIndicator {
274 border-bottom: 1px solid #E5E5E5; 311 position: absolute;
275 padding: 2.9em 0 0; 312 right: 0;
276 margin: 0; 313 top: 3px;
277 line-height: 120%; 314 background: url(../images/toggle_sprite.png) no-repeat 0 0;
278 list-style: none; 315 height: 8px;
316 width: 8px;
317 }
318 #gc-sidebar .toggleIndicator.toggled {
319 background-position: 0 -9px;
279 } 320 }
280 321
281 #gc-toc > ul { 322 /* Sidebar list styling. */
282 border-bottom: none; 323 #gc-sidebar ul {
324 list-style: none;
325 padding: 0;
283 } 326 }
284 327 #gc-sidebar ul.level2 {
285 #gc-toc ul li { 328 margin-left: 10px;
286 padding-bottom: 10px; 329 padding-top: 10px;
287 margin: 0;
288 position: relative;
289 } 330 }
290 331 #gc-sidebar ul.level3 {
291 #gc-toc ul li ul li ul { 332 margin-left: 20px;
292 margin-top: 10px; 333 padding-top: 10px;
293 margin-left: 25px;
294 padding-left: 0;
295 border-bottom: 0;
296 list-style: url(../images/sidearrow.png); 334 list-style: url(../images/sidearrow.png);
297 } 335 }
298 336
299 #gc-toc ol ul { 337 /* Sidebar list element styling. */
300 color: #767676; 338 #gc-sidebar li {
339 margin: 0;
340 padding: 8px 0;
341 line-height: 120%;
301 } 342 }
302 343 #gc-sidebar li.level2 {
303 #gc-toc ul li li { 344 border-top: 1px solid #E5E5E5;
304 /* Cancel the border-bottom on #gc-toc ul. */
305 border-bottom: none;
306 padding-left: 10px;
307 }
308
309 #gc-toc h2 {
310 font-weight: bold;
311 font-size: 100%;
312 margin: 0;
313 padding: .2em 0 8px .2em;
314 border: none;
315 background: white;
316 }
317
318 #gc-toc ul ul {
319 padding: 0;
320 margin: 0;
321 }
322
323 #gc-toc .toggle {
324 background: url(../images/toggle_sprite.png) no-repeat 0px 0px;
325 width: 9px;
326 height: 9px;
327 position: absolute;
328 top: -1px;
329 right: 4px;
330 text-decoration: none;
331 margin: 8px 1px 4px -13px;
332 cursor: pointer;
333 }
334
335 #gc-toc .toggle.selected {
336 background-position: 0 -9px;
337 }
338
339 #gc-toc .toggle:active {
340 top: 0px;
341 }
342
343 #gc-toc .leftNavSelected {
344 color: #39F;
345 text-decoration: none;
346 position: relative;
347 } 345 }
348 346
349 #gc-toc div.line { 347 #gc-toc div.line {
350 border-top: thin solid #FAFAFA; 348 border-top: thin solid #FAFAFA;
351 height: 1px; 349 height: 1px;
352 margin: 1.3em 1em 0 0; 350 margin: 1.3em 1em 0 0;
353 padding: 0; 351 padding: 0;
354 } 352 }
355 353
356 #toc { 354 #toc {
357 background-color: #E8EDEB; 355 background-color: whiteSmoke;
358 float: right; 356 float: right;
359 margin: 5px 0px 5px 20px; 357 margin: 5px 0px 5px 20px;
360 padding: 5px; 358 padding: 5px;
361 width: 250px; 359 width: 250px;
362 } 360 }
363 361
364 #toc * { 362 #toc * {
365 padding: 0; 363 padding: 0;
366 list-style: none; 364 list-style: none;
365 font-weight: 600;
367 } 366 }
368 367
369 #toc h2 { 368 #toc h2 {
370 font-weight: bold; 369 font-weight: bold;
371 font-size: 100%; 370 font-size: 100%;
372 margin: 0; 371 margin: 0;
373 border: none; 372 border: none;
374 background-color: #E8EDEB; 373 background-color: whiteSmoke;
375 padding: 0; 374 padding: 0;
376 } 375 }
377 376
378 #toc ol { 377 #toc ol {
379 margin: 1em 0 0 0; 378 margin: 1em 0 0 0;
380 } 379 }
381 380
382 #toc ol li { 381 #toc ol li {
383 margin: .4em 0 0 1em; 382 margin: .4em 0 0 1em;
384 } 383 }
(...skipping 15 matching lines...) Expand all
400 } 399 }
401 400
402 /* Specificity hack to override the "a" rule. */ 401 /* Specificity hack to override the "a" rule. */
403 #filtered_apis * { 402 #filtered_apis * {
404 color: #50A9D5; 403 color: #50A9D5;
405 } 404 }
406 405
407 #skipto { 406 #skipto {
408 display: none; 407 display: none;
409 } 408 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/server2/static/css/api.css ('k') | chrome/common/extensions/docs/server2/static/js/sidebar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698