Roll src/third_party/WebKit 0ba31e2:698efc0 (svn 192483:192500)
[chromium-blink-merge.git] / styleguide / c++ / c++11.css
blobe781b1c7a439246524e55ad0215b70f7fc6d1af5
1 /*
2 * Copyright 2014 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
6 html {
7 margin:0;
8 padding:0;
9 border:0;
12 .bp-reset-element,
13 body,
14 h1,
15 h2,
16 h3,
17 h4,
18 h5,
19 h6,
20 article,
21 aside,
22 details,
23 figcaption,
24 figure,
25 footer,
26 header,
27 hgroup,
28 menu,
29 nav,
30 section,
31 summary,
32 blockquote,
34 th,
35 td,
36 caption,
37 table,
38 div,
39 span,
40 object,
41 iframe,
43 pre,
45 abbr,
46 acronym,
47 address,
48 code,
49 del,
50 dfn,
51 em,
52 img,
53 dl,
54 dt,
55 dd,
56 ol,
57 ul,
58 li,
59 fieldset,
60 form,
61 label,
62 legend,
63 caption,
64 tbody,
65 tfoot,
66 thead,
67 tr {
68 margin:0;
69 padding:0;
70 border:0;
71 font-weight:inherit;
72 font-style:inherit;
73 font-size:100%;
74 font-family:inherit;
75 vertical-align:baseline;
78 body {
79 font-family:'Arial', sans-serif;
80 font-size:81.25%;
81 color:#222;
82 background-color:#fff;
83 line-height:1.67;
84 overflow: auto;
85 margin-right: 100px;
86 margin-left: 100px;
87 margin-top: 50px;
88 margin-bottom: 80px;
91 p {
92 width:600px;
95 h1,
96 h2,
97 p.h2,
98 h3,
99 h4,
101 h6 {
102 font-weight:bold;
105 h1 {
106 margin-bottom:.50em;
110 p.h2,
114 h6 {
115 margin-top:1.5em;
116 margin-bottom:.75em;
119 h1,header {font-size:192%;}
120 #gc-content h1 {font-size:2em;}
121 h2, p.h2 {font-size:167%;}
122 h3 {font-size:145%;}
123 h4 {font-size:130%;}
124 h5 {font-size:110%;}
127 margin:0 0 1.5em;
130 p .left {
131 display:inline;
132 float:left;
133 margin:1.5em 1.5em 1.5em 0;
134 padding:0;
137 p .right {
138 display:inline;
139 float:right;
140 margin:1.5em 0 1.5em 1.5em;
141 padding:0;
144 article,
145 aside,
146 details,
147 figcaption,
148 figure,
149 footer,
150 header,
151 hgroup,
152 menu,
153 nav,
154 section,
155 summary {
156 display:block;
159 blockquote,
161 quotes:'' '';
163 blockquote:before,
164 blockquote:after,
165 q:before,
166 q:after {
167 content:'';
170 blockquote {
171 margin:1.5em;
174 blockquote#nav {
175 margin-top:0;
178 section {
179 margin-bottom:1.5em;
182 a[href=''] {
183 cursor:default;
186 strong,
187 dfn {
188 font-weight:bold;
192 dfn {
193 font-style:italic;
196 sup,
197 sub {
198 line-height:0;
201 abbr,
202 acronym {
203 border-bottom:1px dotted #666;
206 address {
207 margin:0 0 1.5em;
208 font-style:italic;
211 del {
212 color:#666;
215 pre {
216 margin:1.5em 0;
217 white-space:pre;
220 pre,
221 code,
222 kbd,
223 tt {
224 font:1em 'Droid Sans Mono', monospace;
225 line-height:1.5;
228 dl {
229 margin:0 0 1.5em 0;
232 dl dt {
233 font-weight:bold;
236 dd {
237 margin-left:1.5em;
240 hr {
241 height:0;
242 border:0;
243 border-top:1px solid #ccc;
244 background-color:#ccc;
247 table {
248 border:1px solid #bbb;
249 border-spacing:0;
250 border-collapse:collapse;
251 margin:0 0 1.5em;
252 vertical-align:middle;
253 width:100%;
256 table.unlined,
257 table.unlined th,
258 table.unlined tr,
259 table.unlined td {
260 border:0;
265 caption {
266 float:none !important;
267 text-align:left;
268 font-weight:normal;
269 vertical-align:middle;
270 padding:4px;
273 caption {
274 padding:0;
277 td {
278 border:1px solid #bbb;
279 vertical-align:top;
282 th {
283 border:0;
284 border-bottom:1px solid black;
285 font-weight:bold;
286 background:rgb(229, 236, 249);
289 th:only-of-type {
290 border-bottom:1px solid rgb(244, 244, 244);
291 background-color: rgb(238, 238, 238);
292 vertical-align: top;
295 table th code {
296 background-color:inherit;
297 color:inherit;
300 table tfoot th {
301 border:1px solid #bbb;
304 tfoot {
305 font-style:italic;
308 caption {
309 background:#eee;
312 table[border='0'] {
313 border:none;
316 table[border='0']>tbody>tr>td,
317 table[border='0']>tr>td {
318 border:none;
321 tr.alt td,
322 td.alt {
323 background-color:#efefef;
326 table.striped tr:nth-child(even) td,
327 table tr.even td {
328 background:#efefef;
331 table.columns {
332 border:none;
335 table.columns>tbody>tr>td,
336 table.columns>tr>td {
337 border:none;
338 padding:0 3em 0 0;
341 table.columns>tbody>tr>td:last-child,
342 table.columns>tr>td:last-child {
343 border:none;
344 padding:0;
347 .two-columns td {
348 width: 50%;
349 vertical-align:top;
353 ol {
354 margin:0 1.5em 1.5em 0;
355 padding-left:2em;
358 li ul,
359 li ol {
360 margin:0;
363 ul {
364 list-style-type:disc;
367 ol {
368 list-style-type:decimal;
371 ul {
372 list-style-type:disc;
375 ul ul {
376 list-style-type:circle;
379 ul ul ul {
380 list-style-type:square;
383 ul.disc {
384 list-style-type:disc;
387 ul.circle {
388 list-style-type:circle;
391 ul.square {
392 list-style-type:square;
395 ol {
396 list-style-type:decimal;
399 ol ol {
400 list-style-type:lower-alpha;
403 ol ol ol {
404 list-style-type:lower-roman;
407 ol ul {
408 list-style-type:circle;
411 ol.decimal {
412 list-style-type:decimal;
415 ol.upper-alpha {
416 list-style-type:upper-alpha;
419 ol.lower-alpha {
420 list-style-type:lower-alpha;
423 ol.upper-roman {
424 list-style-type:upper-roman;
427 ol.lower-roman {
428 list-style-type:lower-roman;
431 ol.nolist,
432 ul.nolist {
433 padding-left:0;
434 list-style-image:none;
435 list-style-type:none;
436 margin-left:0;
439 li p {
440 margin-bottom:0.75em;
443 figure {
444 margin:0 0 1.5em;
445 text-align:center;
448 figure.right {
449 float:right;
450 margin:5px 1em 1em;
453 figcaption {
454 font-style:italic;
455 font-size:90%;
456 text-align:center;
459 .center {
460 text-align:center;
463 .clear, .clearboth {
464 clear:both;
467 .class-done {
468 padding-top:2em;
471 a.file {
472 font-family:monospace;
473 font-size:120%;
476 .navtop {
477 font-size: xx-small;
478 float:right;
481 .loud {
482 font-weight:bold;
485 .quiet {
486 color:#999;
487 stress:30;
490 .light-title {
491 font-size:150%;
492 border:0;
493 color:#666;
496 code,
497 kbd,
498 pre {
499 color:#009900;
502 code {
503 white-space: nowrap;
506 pre > code {
507 white-space: inherit;
510 kbd {
511 font-weight: bold;
514 table.striped code {
515 background-color:inherit;
518 pre {
519 padding:6px 10px;
520 background-color:#FAFAFA;
521 border:1px solid #bbb;
522 overflow:auto;
525 pre.prettyprint {
526 padding:6px 10px !important;
527 border:1px solid #bbb !important;
530 code.bad, code.badcode {
531 color: magenta;
534 pre.bad, pre.badcode {
535 background-color:#ffe6d8;
536 border-top:1px inset #a03;
537 border-left:1px inset #a03;
540 .codesample {
541 border-top:1px inset silver;
542 border-left:1px inset silver;
543 display:inline-block;
544 margin-bottom:10px;
547 .codesample pre {
548 margin-bottom:0;
551 .codesample.good {
552 border-top:1px inset green;
553 border-left:1px inset green;
554 vertical-align: top;
557 .codesample.bad {
558 border-top:1px inset #a03;
559 border-left:1px inset #a03;
560 vertical-align: top;
563 .codesample > p {
564 margin-bottom: 0;
565 font-weight: bold;
566 border: 1px solid #888;
567 border-bottom: 0;
568 padding: 0 .25em;
571 .codesample.bad > p {
572 background-color: #ffeaea;
575 .codesample.bad > p:before {
576 content: "BAD: ";
579 .codesample.good > p {
580 background-color: #eaffea;
583 .codesample.good > p:before {
584 content: "GOOD: ";
587 .codesample.bad > pre {
588 background-color: #ffe6d8;
591 .codesample > pre {
592 margin-top: 0;
595 .border {
596 border:1px solid #aaa;
597 padding:3px;
600 .expandable {
601 display:block;
602 margin-left:16px;
603 min-height:20px;
606 .expandable .exw-control {
607 position:absolute;
608 margin-top:-6px;
609 margin-left:-16px;
610 cursor:pointer;
611 display:block;
612 text-decoration:none;
613 color:#222;
614 font-size:20px;
617 .hide {
618 display:none !important;
621 .show {
622 display:block !important;
625 .hidden {
626 display:none;
629 .invisible {
630 width:0 !important;
631 height:0 !important;
632 border:0 !important;
635 .announcement {
636 background-color:#FFECBC;
637 border-radius:2px;
638 border:1px solid #ffbf68;
639 padding:10px 20px;
640 color:#666;
641 margin-top:10px;
642 margin-right:16px;
645 .announcement>div strong {
646 font-size:1.2em;
649 .announcement>div#gc-description a {
650 text-decoration:underline;
653 .quiet {
654 color:#919191;
657 .quieter {
658 color:#ccc;
661 .doublespace,
662 .doublespace li {
663 margin-top:1em;
664 line-height:200%;
667 .yellow {
668 background-color:#fffbd9;
669 border-left-color:#ffef70;
672 .orange {
673 background-color:#FFECBC;
674 border-left-color:#ffef70;
677 .red {
678 background-color:#ffe6d8;
679 border-left-color:#a03;
683 aside.caution,
684 aside.lapswarning,
685 aside.note,
686 aside.special,
687 aside.tip,
688 aside.warning {
689 margin-bottom:1.5em;
692 .note,
693 .caution,
694 .tip,
695 .warning,
696 .special {
697 background-color:#efefef;
698 padding:6px 8px 6px 10px;
699 border-left:6px solid #999;
702 .note>h4,
703 .caution>h4,
704 .tip>h4,
705 .warning>h4,
706 .special>h4,
707 .sidebar>h4,
708 .special-sidebox>h4{
709 font-weight:bold;
710 font-size:1em;
711 margin:0.125em;
714 .note>p:last-child,
715 .caution>p:last-child,
716 .special>p:last-child,
717 .tip>p:last-child,
718 .warning>p:last-child {
719 margin:0;
722 .caution,
723 .tip {
724 background-color:#fffbd9;
725 border-left-color:#ffef70;
728 .warning {
729 background-color:#ffe6d8;
730 border-left-color:#a03;
733 .note,
734 .special {
735 background-color:#e5ecf9;
736 border-left-color:#36c;
739 .attention {
740 color:#990000;
741 font-weight:bold;