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

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

Issue 99703004: Docserver: Fix the TOC rendering for API references by fixing the haphazard way (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 /* 6 /*
7 * Site-wide styles. 7 * Site-wide styles.
8 */ 8 */
9 9
10 .hidden { 10 .hidden {
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 146 }
147 147
148 section { 148 section {
149 margin-top: 1em; 149 margin-top: 1em;
150 padding-top: 1em; 150 padding-top: 1em;
151 } 151 }
152 section + section { 152 section + section {
153 border-top: 1px solid #F5F5F5; 153 border-top: 1px solid #F5F5F5;
154 } 154 }
155 155
156 /* Support a hack for the ::first-element rules below, which only apply if
157 * the element has a subset of displays, which include inline-block.
158 *
159 * Use the data-inline-block attribute rather than a class on the element
160 * because the templates may end up overriding the class attribute.
161 */
162 [data-list-item] {
163 display: list-item;
164 }
165
166 .uncapitalize::first-letter {
167 text-transform: lowercase;
168 }
169
170 .capitalize::first-letter {
171 text-transform: uppercase;
172 }
173
156 #gc-container { 174 #gc-container {
157 height: auto; 175 height: auto;
158 margin-top: 2em; 176 margin-top: 2em;
159 margin: auto; 177 margin: auto;
160 max-width: 1160px; 178 max-width: 1160px;
161 padding: 0 50px; 179 padding: 0 50px;
162 } 180 }
163 181
164 #gc-topnav { 182 #gc-topnav {
165 background-color: white; 183 background-color: white;
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 #gc-pagecontent { 326 #gc-pagecontent {
309 margin: 0 0 100px 250px; 327 margin: 0 0 100px 250px;
310 } 328 }
311 329
312 #gc-pagecontent h1 { 330 #gc-pagecontent h1 {
313 font-size: 320%; 331 font-size: 320%;
314 font-weight: normal; 332 font-weight: normal;
315 line-height: 130%; 333 line-height: 130%;
316 } 334 }
317 335
318 #gc-pagecontent h2, 336 #gc-pagecontent h2 {
319 #api-reference-header { 337 font-size: 320%;
320 font-size: 170%;
321 font-weight: normal; 338 font-weight: normal;
322 } 339 line-height: 130%;
323
324 #api-reference-header {
325 font-weight: bold;
326 } 340 }
327 341
328 #gc-pagecontent h3 { 342 #gc-pagecontent h3 {
329 font-size: 130%; 343 font-size: 130%;
330 } 344 }
331 345
332 #gc-pagecontent h4 { 346 #gc-pagecontent h4 {
333 font-size: 110%; 347 font-size: 110%;
334 } 348 }
335 349
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 margin: 0; 543 margin: 0;
530 overflow: hidden; 544 overflow: hidden;
531 padding: 0; 545 padding: 0;
532 text-overflow: ellipsis; 546 text-overflow: ellipsis;
533 white-space: nowrap; 547 white-space: nowrap;
534 } 548 }
535 549
536 #toc a { 550 #toc a {
537 color: black; 551 color: black;
538 line-height: 1.2em; 552 line-height: 1.2em;
539 margin: 5px 0 5px 10px; 553 margin: 3px 0 3px 10px;
540 } 554 }
541 555
542 #toc li { 556 #toc li {
543 margin: 0 10px 0 10px; 557 margin: 0 10px 0 10px;
544 } 558 }
545 559
546 #toc .separator { 560 #toc .separator {
547 border-top: 1px solid #e5e5e5; 561 border-top: 1px solid #e5e5e5;
548 margin-top: 5px; 562 margin-top: 5px;
549 padding-top: 5px; 563 padding-top: 5px;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 631
618 /* 632 /*
619 * API references. 633 * API references.
620 */ 634 */
621 635
622 h2#apiReference { 636 h2#apiReference {
623 font-size: 28pt; 637 font-size: 28pt;
624 } 638 }
625 639
626 .type_name, 640 .type_name,
627 .variable,
628 .property { 641 .property {
629 font-style: italic; 642 font-style: italic;
630 } 643 }
631 644
632 .api_reference div.summary { 645 .api_reference div.summary {
633 background-color: #CADEF4; 646 background-color: #CADEF4;
634 border: 1px solid #93B4D9; 647 border: 1px solid #93B4D9;
635 font-family: "Courier New", courier, monospace; 648 font-family: "Courier New", courier, monospace;
636 margin-top: 1em; 649 margin-top: 1em;
637 padding: 0.5em; 650 padding: 0.5em;
638 text-indent: -1.5em; 651 text-indent: -1.5em;
639 } 652 }
640 653
641 .api_reference div.summary .line { 654 .api_reference div.summary .line {
642 padding-left: 1.5em; 655 padding-left: 1.5em;
643 text-indent: -1.5em; 656 text-indent: -1.5em;
644 } 657 }
645 658
646 /* This style is used because types with functions prefix the function with the
647 * type name, using a lowercase first letter. */
648 .api_reference .uncapitalize:first-letter {
649 text-transform: lowercase;
650 }
651
652 .api_reference .capitalize:first-letter {
653 text-transform: uppercase;
654 }
655
656 .api_reference div.description { 659 .api_reference div.description {
657 margin-left: 2em; 660 margin-left: 2em;
658 } 661 }
659 662
660 div.summary .subdued { 663 div.summary .subdued {
661 color: #7594B8; 664 color: #7594B8;
662 } 665 }
663 666
664 .optional { 667 .optional {
665 color: #7D7D7D; 668 color: #7D7D7D;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
700 padding-left: 80px; 703 padding-left: 80px;
701 } 704 }
702 705
703 #samples-controls img.icon { 706 #samples-controls img.icon {
704 position: absolute; 707 position: absolute;
705 width: 64px; 708 width: 64px;
706 height: 64px; 709 height: 64px;
707 left: 0; 710 left: 0;
708 top: 40px; 711 top: 40px;
709 } 712 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698