| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 { | |
| 320 font-size: 170%; | 337 font-size: 170%; |
| 321 font-weight: normal; | 338 font-weight: normal; |
| 339 line-height: 130%; |
| 322 } | 340 } |
| 323 | 341 |
| 324 #api-reference-header { | 342 #gc-pagecontent #api-reference-header { |
| 325 font-weight: bold; | 343 font-size: 320%; |
| 326 } | 344 } |
| 327 | 345 |
| 328 #gc-pagecontent h3 { | 346 #gc-pagecontent h3 { |
| 329 font-size: 130%; | 347 font-size: 130%; |
| 330 } | 348 } |
| 331 | 349 |
| 332 #gc-pagecontent h4 { | 350 #gc-pagecontent h4 { |
| 333 font-size: 110%; | 351 font-size: 110%; |
| 334 } | 352 } |
| 335 | 353 |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 margin: 0; | 547 margin: 0; |
| 530 overflow: hidden; | 548 overflow: hidden; |
| 531 padding: 0; | 549 padding: 0; |
| 532 text-overflow: ellipsis; | 550 text-overflow: ellipsis; |
| 533 white-space: nowrap; | 551 white-space: nowrap; |
| 534 } | 552 } |
| 535 | 553 |
| 536 #toc a { | 554 #toc a { |
| 537 color: black; | 555 color: black; |
| 538 line-height: 1.2em; | 556 line-height: 1.2em; |
| 539 margin: 5px 0 5px 10px; | 557 margin: 3px 0 3px 10px; |
| 540 } | 558 } |
| 541 | 559 |
| 542 #toc li { | 560 #toc li { |
| 543 margin: 0 10px 0 10px; | 561 margin: 0 10px 0 10px; |
| 544 } | 562 } |
| 545 | 563 |
| 546 #toc .separator { | 564 #toc .separator { |
| 547 border-top: 1px solid #e5e5e5; | 565 border-top: 1px solid #e5e5e5; |
| 548 margin-top: 5px; | 566 margin-top: 5px; |
| 549 padding-top: 5px; | 567 padding-top: 5px; |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 617 | 635 |
| 618 /* | 636 /* |
| 619 * API references. | 637 * API references. |
| 620 */ | 638 */ |
| 621 | 639 |
| 622 h2#apiReference { | 640 h2#apiReference { |
| 623 font-size: 28pt; | 641 font-size: 28pt; |
| 624 } | 642 } |
| 625 | 643 |
| 626 .type_name, | 644 .type_name, |
| 627 .variable, | |
| 628 .property { | 645 .property { |
| 629 font-style: italic; | 646 font-style: italic; |
| 630 } | 647 } |
| 631 | 648 |
| 632 .api_reference div.summary { | 649 .api_reference div.summary { |
| 633 background-color: #CADEF4; | 650 background-color: #CADEF4; |
| 634 border: 1px solid #93B4D9; | 651 border: 1px solid #93B4D9; |
| 635 font-family: "Courier New", courier, monospace; | 652 font-family: "Courier New", courier, monospace; |
| 636 margin-top: 1em; | 653 margin-top: 1em; |
| 637 padding: 0.5em; | 654 padding: 0.5em; |
| 638 text-indent: -1.5em; | 655 text-indent: -1.5em; |
| 639 } | 656 } |
| 640 | 657 |
| 641 .api_reference div.summary .line { | 658 .api_reference div.summary .line { |
| 642 padding-left: 1.5em; | 659 padding-left: 1.5em; |
| 643 text-indent: -1.5em; | 660 text-indent: -1.5em; |
| 644 } | 661 } |
| 645 | 662 |
| 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 { | 663 .api_reference div.description { |
| 657 margin-left: 2em; | 664 margin-left: 2em; |
| 658 } | 665 } |
| 659 | 666 |
| 660 div.summary .subdued { | 667 div.summary .subdued { |
| 661 color: #7594B8; | 668 color: #7594B8; |
| 662 } | 669 } |
| 663 | 670 |
| 664 .optional { | 671 .optional { |
| 665 color: #7D7D7D; | 672 color: #7D7D7D; |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 padding-left: 80px; | 707 padding-left: 80px; |
| 701 } | 708 } |
| 702 | 709 |
| 703 #samples-controls img.icon { | 710 #samples-controls img.icon { |
| 704 position: absolute; | 711 position: absolute; |
| 705 width: 64px; | 712 width: 64px; |
| 706 height: 64px; | 713 height: 64px; |
| 707 left: 0; | 714 left: 0; |
| 708 top: 40px; | 715 top: 40px; |
| 709 } | 716 } |
| OLD | NEW |