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

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

Issue 22854025: Use the externally_connectable schema from manifest_types.json to generate its (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 /*
7 * Site-wide styles.
8 */
9
6 .hidden { 10 .hidden {
7 display: none; 11 display: none;
8 } 12 }
9 13
10 body { 14 body {
15 background-color: white;
11 font: 14px/22px 'Open Sans',arial,sans-serif; 16 font: 14px/22px 'Open Sans',arial,sans-serif;
12 margin: auto; 17 margin: auto;
13 padding: 0; 18 padding: 0;
14 background-color: white;
15 } 19 }
16 20
17 p.note, 21 p.note,
18 p.caution, 22 p.caution,
19 p.warning { 23 p.warning {
24 background-color: #F5F5F5;
25 border-bottom: 1px solid;
26 border-top: 1px solid;
20 margin: 1em 0 0 0; 27 margin: 1em 0 0 0;
28 overflow: hidden;
21 padding: .2em .5em .2em .9em; 29 padding: .2em .5em .2em .9em;
22 background-color: #F5F5F5;
23 border-top: 1px solid;
24 border-bottom: 1px solid;
25 overflow: hidden;
26 } 30 }
27 31
28 p.note { 32 p.note {
29 border-color: #36C; 33 border-color: #36C;
30 } 34 }
31 p.caution { 35 p.caution {
32 border-color: #FC3; 36 border-color: #FC3;
33 } 37 }
34 p.warning { 38 p.warning {
35 border-color: #A03; 39 border-color: #A03;
36 } 40 }
37 41
38 p.warning em, 42 p.warning em,
39 p.warning strong { 43 p.warning strong {
40 color: #A03; 44 color: #A03;
41 } 45 }
42 46
43 a, a:link { 47 a, a:link {
44 text-decoration: none;
45 color: #4787ed; 48 color: #4787ed;
46 font-weight: 600; 49 font-weight: 600;
50 text-decoration: none;
47 } 51 }
48 52
49 a:active, 53 a:active,
50 a:hover, 54 a:hover,
51 a:visited { 55 a:visited {
52 color: #236bb2; 56 color: #236bb2;
53 } 57 }
54 58
55 #toc a { 59 #toc a {
56 color: black; 60 color: black;
(...skipping 13 matching lines...) Expand all
70 padding: 10px 0; 74 padding: 10px 0;
71 } 75 }
72 76
73 p img { 77 p img {
74 padding: 0 2px; 78 padding: 0 2px;
75 } 79 }
76 80
77 .code, 81 .code,
78 code, 82 code,
79 pre { 83 pre {
84 color: #080;
80 font-family: monospace; 85 font-family: monospace;
81 color: #080;
82 } 86 }
83 87
84 .code, 88 .code,
85 code{ 89 code{
86 font-size: 10pt; 90 font-size: 10pt;
87 } 91 }
88 92
89 pre { 93 pre {
94 background-color: #F5F5F5;
90 font-size: 10pt; 95 font-size: 10pt;
91 background-color: #F5F5F5;
92 margin: 1em 0 0 0; 96 margin: 1em 0 0 0;
97 overflow: auto;
93 padding: .99em; 98 padding: .99em;
94 overflow: auto; 99 position: relative;
95 word-wrap: break-word; 100 word-wrap: break-word;
96 position: relative;
97 } 101 }
98 102
99 pre a { 103 pre a {
100 text-decoration: underline!important; 104 text-decoration: underline!important;
101 } 105 }
102 106
103 pre b { 107 pre b {
104 background: yellow; 108 background: yellow;
105 } 109 }
106 110
107 pre[data-filename]::after { 111 pre[data-filename]::after {
112 background-color: darkGray;
113 color: #FFF;
108 content: attr(data-filename); 114 content: attr(data-filename);
109 background-color: darkGray; 115 font-size: 16px;
116 padding: 2px 25px;
117 position: absolute;
110 right: 0; 118 right: 0;
119 text-transform: uppercase;
111 top: 0; 120 top: 0;
112 position: absolute;
113 font-size: 16px;
114 color: #FFF;
115 padding: 2px 25px;
116 text-transform: uppercase;
117 } 121 }
118 122
119 dt { 123 dt {
120 font-weight: bold; 124 font-weight: bold;
121 margin: .75em 0 0 0; 125 margin: .75em 0 0 0;
122 } 126 }
123 127
124 dl { 128 dl {
125 margin: 0; 129 margin: 0;
126 } 130 }
127 131
128 dd { 132 dd {
133 font-weight: normal;
129 margin: .4em 0 0 2em; 134 margin: .4em 0 0 2em;
130 padding: 0; 135 padding: 0;
131 font-weight: normal;
132 } 136 }
133 137
134 #gc-container { 138 #gc-container {
139 height: auto;
140 margin-top: 2em;
135 margin: auto; 141 margin: auto;
136 margin-top: 2em;
137 max-width: 1160px; 142 max-width: 1160px;
138 padding: 0 50px; 143 padding: 0 50px;
139 height: auto;
140 } 144 }
141 145
142 #gc-topnav { 146 #gc-topnav {
147 background-color: white;
148 border-bottom: 1px solid #F5F5F5;
143 font-size: 1em; 149 font-size: 1em;
150 line-height: 50px;
144 margin: auto; 151 margin: auto;
145 max-width: 1160px; 152 max-width: 1160px;
153 padding: 0 7px;
146 white-space: nowrap; 154 white-space: nowrap;
147 background-color: white;
148 border-bottom: 1px solid #F5F5F5;
149 line-height: 50px;
150 padding: 0 7px;
151 } 155 }
152 156
153 #gc-topnav * { 157 #gc-topnav * {
154 padding: 0; 158 padding: 0;
155 } 159 }
156 160
157 #gc-topnav table { 161 #gc-topnav table {
158 border-spacing: 0; 162 border-spacing: 0;
159 } 163 }
160 164
161 #gc-topnav li { 165 #gc-topnav li {
166 display: inline-block;
162 font-weight: 600; 167 font-weight: 600;
168 margin: 0 0 0 25px;
163 text-transform: uppercase; 169 text-transform: uppercase;
164 white-space: nowrap; 170 white-space: nowrap;
165 display: inline-block;
166 margin: 0 0 0 25px;
167 } 171 }
168 #gc-topnav li:first-child { 172 #gc-topnav li:first-child {
169 margin-left: 0; 173 margin-left: 0;
170 } 174 }
171 175
172 #gc-topnav ul { 176 #gc-topnav ul {
173 font-size: 12px; 177 font-size: 12px;
174 margin: 0; 178 margin: 0;
175 } 179 }
176 180
177 #gc-topnav a { 181 #gc-topnav a {
178 color: #333; 182 color: #333;
179 } 183 }
180 #gc-topnav a:hover { 184 #gc-topnav a:hover {
181 color: #4787ed; 185 color: #4787ed;
182 } 186 }
183 187
184 #gc-topnav #chrome-logo { 188 #gc-topnav #chrome-logo {
185 width: 100%; 189 width: 100%;
186 font-size: 1.7em; 190 font-size: 1.7em;
187 } 191 }
188 192
189 #gc-topnav #chrome-logo a { 193 #gc-topnav #chrome-logo a {
194 color: #77787a;
190 font-weight: 400; 195 font-weight: 400;
191 color: #77787a;
192 margin: 0; 196 margin: 0;
193 } 197 }
194 198
195 #gc-topnav #chrome-logo img { 199 #gc-topnav #chrome-logo img {
196 vertical-align: middle; 200 vertical-align: middle;
197 } 201 }
198 202
199 #gc-topnav a, 203 #gc-topnav a,
200 #gc-topnav button { 204 #gc-topnav button {
201 background: none; 205 background: none;
(...skipping 12 matching lines...) Expand all
214 } 218 }
215 219
216 #platform-chooser { 220 #platform-chooser {
217 display: inline; 221 display: inline;
218 position: relative; 222 position: relative;
219 } 223 }
220 224
221 #platform-chooser-popup { 225 #platform-chooser-popup {
222 /* Make it appear to be an extension of the header. */ 226 /* Make it appear to be an extension of the header. */
223 background-color: white; 227 background-color: white;
228 border-top: none;
224 border: 1px solid #F5F5F5; 229 border: 1px solid #F5F5F5;
225 border-top: none;
226 z-index: 4; 230 z-index: 4;
227 /* Ready to be shown by popup.js. */ 231 /* Ready to be shown by popup.js. */
232 display: none;
228 position: absolute; 233 position: absolute;
229 display: none;
230 /* Align with the button, which have padding:6px. */ 234 /* Align with the button, which have padding:6px. */
231 left: -6px; 235 left: -6px;
232 } 236 }
233 237
234 #platform-chooser-popup button { 238 #platform-chooser-popup button {
235 display: block; 239 display: block;
236 padding: 6px; 240 padding: 6px;
241 text-align: left;
237 width: 100%; 242 width: 100%;
238 text-align: left;
239 } 243 }
240 #platform-chooser-popup button:hover { 244 #platform-chooser-popup button:hover {
241 color: #4787ed; 245 color: #4787ed;
242 } 246 }
243 247
244 button.google-button { 248 button.google-button {
245 background-color: #f5f5f5; 249 background-color: #f5f5f5;
250 border-radius: 2px 0 0 0;
251 -moz-border-radius: 2px 0 0 0;
252 -webkit-border-radius: 2px 0 0 0;
246 border: 1px solid rgba(0,0,0,0.1); 253 border: 1px solid rgba(0,0,0,0.1);
254 height: 27px;
255 margin: 0;
256 padding: 5px 12px;
257 text-align: center;
247 text-transform: uppercase; 258 text-transform: uppercase;
248 border-radius: 2px 0 0 0;
249 -webkit-border-radius: 2px 0 0 0;
250 -moz-border-radius: 2px 0 0 0;
251 white-space: nowrap; 259 white-space: nowrap;
252 text-align: center;
253 height: 27px;
254 padding: 5px 12px;
255 margin: 0;
256 } 260 }
257 button.google-button:hover { 261 button.google-button:hover {
258 border-color: #c6c6c6; 262 border-color: #c6c6c6;
259 box-shadow: 0 -1px 1px rgba(0,0,0,0.1); 263 box-shadow: 0 -1px 1px rgba(0,0,0,0.1);
260 -webkit-box-shadow: 0 -1px 1px rgba(0,0,0,0.1); 264 -webkit-box-shadow: 0 -1px 1px rgba(0,0,0,0.1);
261 -moz-box-shadow: 0 -1px 1px rgba(0,0,0,0.1); 265 -moz-box-shadow: 0 -1px 1px rgba(0,0,0,0.1);
262 } 266 }
263 button.google-button:active { 267 button.google-button:active {
264 background-color: #f1f1f1; 268 background-color: #f1f1f1;
265 box-shadow: inset 0 0px 2px rgba(0,0,0,0.2); 269 box-shadow: inset 0 0px 2px rgba(0,0,0,0.2);
266 -webkit-box-shadow: inset 0 0px 2px rgba(0,0,0,0.2); 270 -webkit-box-shadow: inset 0 0px 2px rgba(0,0,0,0.2);
267 -moz-box-shadow: inset 0 0px 2px rgba(0,0,0,0.2); 271 -moz-box-shadow: inset 0 0px 2px rgba(0,0,0,0.2);
268 } 272 }
269 273
270 #scroll-to-top, 274 #scroll-to-top,
271 #send-feedback { 275 #send-feedback {
272 border-bottom: none; 276 border-bottom: none;
277 bottom: 0;
273 position: fixed; 278 position: fixed;
274 bottom: 0;
275 z-index: 5; 279 z-index: 5;
276 } 280 }
277 #scroll-to-top { 281 #scroll-to-top {
282 border-left: 0;
278 left: 0; 283 left: 0;
279 border-left: 0;
280 } 284 }
281 #send-feedback { 285 #send-feedback {
286 border-right: 0;
282 right: 0; 287 right: 0;
283 border-right: 0;
284 } 288 }
285 289
286 #gc-pagecontent { 290 #gc-pagecontent {
287 margin: 0 0 100px 250px; 291 margin: 0 0 100px 250px;
288 } 292 }
289 293
290 #gc-pagecontent h1 { 294 #gc-pagecontent h1 {
291 line-height: 130%;
292 font-size: 320%; 295 font-size: 320%;
293 font-weight: normal; 296 font-weight: normal;
297 line-height: 130%;
294 } 298 }
295 299
296 #gc-pagecontent h2 { 300 #gc-pagecontent h2 {
297 font-size: 170%; 301 font-size: 170%;
298 font-weight: normal; 302 font-weight: normal;
299 } 303 }
300 304
301 #gc-pagecontent h3 { 305 #gc-pagecontent h3 {
302 font-size: 130%; 306 font-size: 130%;
303 } 307 }
304 308
305 #gc-pagecontent h4 { 309 #gc-pagecontent h4 {
306 font-size: 110%; 310 font-size: 110%;
307 } 311 }
308 312
309 #gc-pagecontent h5 { 313 #gc-pagecontent h5 {
310 font-size: 100%; 314 font-size: 100%;
311 } 315 }
312 316
313 #gc-pagecontent table { 317 #gc-pagecontent table {
314 border-collapse: collapse; 318 border-collapse: collapse;
315 } 319 }
316 #gc-pagecontent th { 320 #gc-pagecontent th {
317 text-align: left; 321 text-align: left;
318 padding: 6px 12px; 322 padding: 6px 12px;
319 } 323 }
320 #gc-pagecontent td { 324 #gc-pagecontent td {
325 border: 1px solid #36C;
321 padding: 6px 12px; 326 padding: 6px 12px;
322 border: 1px solid #36C;
323 vertical-align: top; 327 vertical-align: top;
324 } 328 }
325 329
326 /* Provide an intro table for api reference docs. */ 330 /* Provide an intro table for api reference docs. */
327 #gc-pagecontent table.intro 331 #gc-pagecontent table.intro
328 #gc-pagecontent table.intro th, 332 #gc-pagecontent table.intro th,
329 #gc-pagecontent table.intro td { 333 #gc-pagecontent table.intro td {
330 border-collapse: separate; 334 border-collapse: separate;
331 border-style: none; 335 border-style: none;
332 } 336 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 padding: 1px; 389 padding: 1px;
386 } 390 }
387 391
388 #gc-footer { 392 #gc-footer {
389 margin: auto; 393 margin: auto;
390 max-width: 1160px; 394 max-width: 1160px;
391 padding: 0 150px 0 400px; 395 padding: 0 150px 0 400px;
392 } 396 }
393 397
394 #gc-footer .text { 398 #gc-footer .text {
399 color: #666;
400 margin: 0;
401 padding: 30px 0;
395 text-align: center; 402 text-align: center;
396 color: #666;
397 padding: 30px 0;
398 margin: 0;
399 } 403 }
400 404
401 #gc-sidebar { 405 #gc-sidebar {
402 width: 180px; 406 width: 180px;
403 float: left; 407 float: left;
404 } 408 }
405 409
406 /* scroll.js adds and removes the floating class depending on the scroll 410 /* scroll.js adds and removes the floating class depending on the scroll
407 * position. */ 411 * position. */
408 #gc-sidebar.floating { 412 #gc-sidebar.floating {
413 overflow: auto;
409 position: fixed; 414 position: fixed;
410 top: 0; bottom: 0; 415 top: 0; bottom: 0;
411 overflow: auto;
412 } 416 }
413 417
414 /* Sidebar link/button styling. */ 418 /* Sidebar link/button styling. */
415 #gc-sidebar span, 419 #gc-sidebar span,
416 #gc-sidebar a { 420 #gc-sidebar a {
417 color: black; 421 color: black;
418 display: block; 422 display: block;
423 font-weight: normal;
419 position: relative; 424 position: relative;
420 font-weight: normal;
421 } 425 }
422 #gc-sidebar a:hover, 426 #gc-sidebar a:hover,
423 #gc-sidebar a.selected { 427 #gc-sidebar a.selected {
424 color: #0d68ae; 428 color: #0d68ae;
425 } 429 }
426 #gc-sidebar span.level2, 430 #gc-sidebar span.level2,
427 #gc-sidebar a.level2 { 431 #gc-sidebar a.level2 {
428 font-weight: bold; 432 font-weight: bold;
429 } 433 }
430 #gc-sidebar a.button, 434 #gc-sidebar a.button,
431 #gc-sidebar .level3, 435 #gc-sidebar .level3,
432 #gc-sidebar .level4 { 436 #gc-sidebar .level4 {
433 color: #444; 437 color: #444;
434 } 438 }
435 439
436 #gc-sidebar .toggleIndicator { 440 #gc-sidebar .toggleIndicator {
441 background: url(../images/toggle_sprite.png) no-repeat 0 0;
442 height: 8px;
437 position: absolute; 443 position: absolute;
438 right: 0; 444 right: 0;
439 top: 3px; 445 top: 3px;
440 background: url(../images/toggle_sprite.png) no-repeat 0 0;
441 height: 8px;
442 width: 8px; 446 width: 8px;
443 } 447 }
444 #gc-sidebar .toggleIndicator.toggled { 448 #gc-sidebar .toggleIndicator.toggled {
445 background-position: 0 -9px; 449 background-position: 0 -9px;
446 } 450 }
447 451
448 /* Sidebar list styling. */ 452 /* Sidebar list styling. */
449 #gc-sidebar ul { 453 #gc-sidebar ul {
450 list-style: none; 454 list-style: none;
455 margin: 0;
451 padding: 0; 456 padding: 0;
452 margin: 0;
453 } 457 }
454 #gc-sidebar ul.level2 { 458 #gc-sidebar ul.level2 {
455 margin-left: 10px; 459 margin-left: 10px;
456 padding-top: 10px; 460 padding-top: 10px;
457 } 461 }
458 #gc-sidebar ul.level3 { 462 #gc-sidebar ul.level3 {
463 list-style: url(../images/sidearrow.png);
459 margin-left: 20px; 464 margin-left: 20px;
460 padding-top: 10px; 465 padding-top: 10px;
461 list-style: url(../images/sidearrow.png);
462 } 466 }
463 467
464 #gc-sidebar li { 468 #gc-sidebar li {
469 line-height: 120%;
465 margin: 0; 470 margin: 0;
466 padding: 8px 0; 471 padding: 8px 0;
467 line-height: 120%;
468 } 472 }
469 473
470 #gc-sidebar li.level2 { 474 #gc-sidebar li.level2 {
471 border-top: 1px solid #F5F5F5; 475 border-top: 1px solid #F5F5F5;
472 } 476 }
473 #gc-sidebar li.level2:first-child { 477 #gc-sidebar li.level2:first-child {
474 border-top: none; 478 border-top: none;
475 } 479 }
476 480
477 #toc { 481 #toc {
478 background-color: #F5F5F5; 482 background-color: #F5F5F5;
479 float: right; 483 border-bottom: 20px solid white;
480 margin: 5px 0px 0px 0px;
481 padding: 5px;
482 width: 250px;
483 word-break: break-word;
484 /* We want this element to have a visual left-margin of 20px, but margins on 484 /* We want this element to have a visual left-margin of 20px, but margins on
485 floated elements don't affect the borders and background of the elements 485 floated elements don't affect the borders and background of the elements
486 they float over. So we add this border to force the issue. */ 486 they float over. So we add this border to force the issue. */
487 border-left: 20px solid white; 487 border-left: 20px solid white;
488 border-bottom: 20px solid white; 488 float: right;
489 margin: 5px 0px 0px 0px;
490 padding: 5px;
491 position: relative;
492 width: 250px;
493 word-break: break-word;
489 z-index: 3; 494 z-index: 3;
490 position: relative;
491 } 495 }
492 496
493 #toc * { 497 #toc * {
498 list-style: none;
499 overflow: hidden;
494 padding: 0; 500 padding: 0;
495 list-style: none; 501 text-overflow: ellipsis;
496 white-space: nowrap; 502 white-space: nowrap;
497 overflow: hidden;
498 text-overflow: ellipsis;
499 } 503 }
500 504
501 #toc h2 { 505 #toc h2 {
506 border: none;
507 font-size: 100%;
502 font-weight: bold; 508 font-weight: bold;
503 font-size: 100%;
504 margin: 0; 509 margin: 0;
505 border: none;
506 padding: 0; 510 padding: 0;
507 } 511 }
508 512
509 #toc ol { 513 #toc ol {
510 margin: 1em 0 0 0; 514 margin: 1em 0 0 0;
511 } 515 }
512 516
513 #toc ol li { 517 #toc ol li {
518 line-height: 1.2em;
514 margin: .5em 0 .5em 1em; 519 margin: .5em 0 .5em 1em;
515 line-height: 1.2em;
516 } 520 }
517 521
518 #toc ol li ol { 522 #toc ol li ol {
519 margin: 0; 523 margin: 0;
520 } 524 }
521 525
522 #toc ol li ol li { 526 #toc ol li ol li {
523 margin: .5em 0 0 1em; 527 margin: .5em 0 0 1em;
524 } 528 }
525 529
(...skipping 28 matching lines...) Expand all
554 } 558 }
555 559
556 /* small indent for better visual distinction 560 /* small indent for better visual distinction
557 (e.g., in a long list) */ 561 (e.g., in a long list) */
558 .indent-small { 562 .indent-small {
559 margin-left: 2em; 563 margin-left: 2em;
560 } 564 }
561 565
562 /* Tabbed pane with header (tabs) and content */ 566 /* Tabbed pane with header (tabs) and content */
563 tabs { 567 tabs {
568 display: block;
564 margin: 25px 0; 569 margin: 25px 0;
565 display: block;
566 } 570 }
567 tabs header { 571 tabs header {
568 display: inline-block;
569 padding: 10px;
570 border: 1px solid #ccc;
571 margin-bottom: 0;
572 background: inherit; 572 background: inherit;
573 border-bottom: 1px solid white; 573 border-bottom: 1px solid white;
574 border: 1px solid #ccc;
574 cursor: auto; 575 cursor: auto;
576 display: inline-block;
577 margin-bottom: 0;
578 padding: 10px;
575 } 579 }
576 tabs header.unselected { 580 tabs header.unselected {
581 background: #eee;
577 border-bottom: 1px solid #ccc; 582 border-bottom: 1px solid #ccc;
578 background: #eee;
579 cursor: pointer; 583 cursor: pointer;
580 } 584 }
581 tabs content { 585 tabs content {
586 border: 1px solid #ccc;
582 display: block; 587 display: block;
588 margin-top: -1px;
583 padding: 20px; 589 padding: 20px;
584 border: 1px solid #ccc;
585 margin-top: -1px;
586 } 590 }
587 tabs content.unselected { 591 tabs content.unselected {
588 display: none; 592 display: none;
589 } 593 }
590 tabs content pre { 594 tabs content pre {
591 margin: 0; 595 margin: 0;
592 padding: 10px; 596 padding: 10px;
593 } 597 }
598
599 /*
600 * API references.
601 */
602
603 .type_name,
604 .variable,
605 .property {
606 font-style: italic;
607 }
608
609 .api_reference div.summary {
610 background-color: #CADEF4;
611 border: 1px solid #93B4D9;
612 font-family: "Courier New", courier, monospace;
613 margin-top: 1em;
614 padding: 0.5em 0.5em 0.5em 2em;
615 text-indent: -1.5em;
616 }
617
618 /* This style is used because types with functions prefix the function with the
619 * type name, using a lowercase first letter. */
620 .api_reference .uncapitalize:first-letter {
621 text-transform: lowercase;
622 }
623
624 .api_reference .capitalize:first-letter {
625 text-transform: uppercase;
626 }
627
628 .api_reference div.description {
629 margin-left: 2em;
630 }
631
632 div.summary .subdued {
633 color: #7594B8;
634 }
635
636 .optional {
637 color: #7D7D7D;
638 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698