blob: a531087a789035c11f9d546705326c9b97ea4180 [file] [log] [blame]
Shawn Pearce374f1842015-02-10 15:36:54 -08001/**
2 * Copyright 2015 Google Inc. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Shawn Pearcea3e0e282015-02-12 13:57:54 -080017/* Markdown rendered in /+doc/ or tree view page . */
18
Andrew Bonventreb33426e2015-09-09 18:28:28 -040019.Site-Content--markdown {
20 padding-top: 0;
Shawn Pearcea3e0e282015-02-12 13:57:54 -080021}
Andrew Bonventre88a48282015-09-16 14:53:33 -040022.Header-nav ul {
23 max-width: 980px;
24 margin: 0 auto;
25}
26.Header-nav li {
27 display: inline-block;
28 margin-right: 15px;
29}
Shawn Pearcea3e0e282015-02-12 13:57:54 -080030.doc h1, .doc h2, .doc h3, .doc h4, .doc h5, .doc h6 {
Andrew Bonventreb33426e2015-09-09 18:28:28 -040031 font-weight: normal;
32 margin: 1.236em 0 .618em;
33}
34.doc.RepoIndexDoc h1 {
35 margin-top: .25em;
Shawn Pearcea3e0e282015-02-12 13:57:54 -080036}
Shawn Pearce73e34532015-02-12 16:27:54 -080037.doc h1 {
Andrew Bonventreb33426e2015-09-09 18:28:28 -040038 font-size: 2em;
Shawn Pearce73e34532015-02-12 16:27:54 -080039}
40.doc h2 {
Andrew Bonventreb33426e2015-09-09 18:28:28 -040041 font-size: 1.5em;
Shawn Pearce73e34532015-02-12 16:27:54 -080042}
43.doc h3 {
Andrew Bonventreb33426e2015-09-09 18:28:28 -040044 font-size: 1.3em;
Shawn Pearce73e34532015-02-12 16:27:54 -080045}
Ian McKellar586bf992017-07-24 15:44:43 -070046.doc h4 {
47 font-size: 1.3em;
48 font-weight: lighter;
49 font-style: italic;
50}
51.doc h5 {
52 font-size: 16px;
53 font-weight: lighter;
54 font-style: italic;
55}
Shawn Pearce73e34532015-02-12 16:27:54 -080056.doc h6 {
Andrew Bonventreb33426e2015-09-09 18:28:28 -040057 font-size: 14px;
58 font-style: italic;
Shawn Pearce73e34532015-02-12 16:27:54 -080059}
Andrew Bonventre4434b802015-09-29 12:27:56 -040060.doc hr {
61 border: none;
62 border-top: 1px solid #aaa;
63 display: block;
64 margin-top: 25px;
65}
Andrew Bonventreb33426e2015-09-09 18:28:28 -040066.doc a {
67 text-decoration: none;
68}
69.doc a:link {
70 color: #245dc1;
71}
72.doc a:visited {
73 color: #7759ae;
74}
75.doc a:hover {
76 text-decoration: underline;
77}
Shawn Pearce263d6742015-06-23 17:36:07 -070078.doc a.h {
79 display: inline-block;
80 font-weight: normal;
81 width: 1.5em;
82 margin-left: -1.5em;
83 margin-top: -1em;
84 margin-bottom: -1em;
85}
86.doc a.h:link,
Andrew Bonventreb33426e2015-09-09 18:28:28 -040087.doc a.h:visited {
88 color: #444;
89}
90.doc a.h:focus {
91 outline: none;
92}
93.doc a.h:hover {
94 text-decoration: none;
95}
Shawn Pearce263d6742015-06-23 17:36:07 -070096.doc a.h span {
97 display: inline-block;
98 width: 1.5em;
99}
100.doc h1:hover a.h span:before,
101.doc h2:hover a.h span:before,
102.doc h3:hover a.h span:before,
103.doc h4:hover a.h span:before,
104.doc h5:hover a.h span:before,
105.doc h6:hover a.h span:before {
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400106 content: '#';
107 font-weight: normal;
108 color: #AAA;
Shawn Pearce263d6742015-06-23 17:36:07 -0700109}
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400110.doc h1:hover a:hover.h span:before,
111.doc h2:hover a:hover.h span:before,
112.doc h3:hover a:hover.h span:before,
113.doc h4:hover a:hover.h span:before,
114.doc h5:hover a:hover.h span:before,
115.doc h6:hover a:hover.h span:before {
116 text-decoration: underline;
117}
118.doc h1:hover a:visited.h span:before,
119.doc h2:hover a:visited.h span:before,
120.doc h3:hover a:visited.h span:before,
121.doc h4:hover a:visited.h span:before,
122.doc h5:hover a:visited.h span:before,
123.doc h6:hover a:visited.h span:before {
124 color: #AAA;
125}
Shawn Pearcea3e0e282015-02-12 13:57:54 -0800126.doc ul, .doc ol {
127 margin: 10px 10px 10px 30px;
128 padding: 0;
129}
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400130.doc ul {
131 list-style-type: disc;
132}
133.doc ol {
134 list-style-type: decimal;
135}
Shawn Pearcea3e0e282015-02-12 13:57:54 -0800136.doc img {
137 border: 0;
Shawn Pearcef75a2c62015-02-12 21:39:00 -0800138 max-width: 100%;
Shawn Pearcea3e0e282015-02-12 13:57:54 -0800139}
Shawn Pearceee0b06e2015-02-13 00:13:01 -0800140.doc iframe {
141 min-width: 100px;
142 min-height: 30px;
143}
144iframe.noborder {
145 border: 0;
146}
Shawn Pearce73e34532015-02-12 16:27:54 -0800147.doc em {
148 font-weight: normal;
149 font-style: italic;
150}
151.doc strong {
152 font-weight: bold;
153 color: inherit;
154}
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400155.doc p {
156 margin: 10px 0;
157}
Shawn Pearce1190ca62016-05-21 18:52:16 -0700158.doc blockquote {
159 background-color: #fffde7;
160 border-left: 2px solid #fab700;
161 padding: 2px 10px 2px 10px;
162}
Shawn Pearcea3e0e282015-02-12 13:57:54 -0800163.doc pre {
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400164 padding: 12px;
165 font-size: 10pt;
166 background-color: #fafafa;
167 border: 1px solid #ccc;
168 overflow-x: auto;
Shawn Pearcea3e0e282015-02-12 13:57:54 -0800169}
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400170.doc code {
171 padding: 2px 4px;
172 background-color: #F5F5F5;
173 border: transparent;
174 border-radius: 4px;
Shawn Pearcea3e0e282015-02-12 13:57:54 -0800175}
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400176.doc .code {
Andrew Bonventre0ffb2822015-09-16 15:28:02 -0400177 font-family: 'Source Code Pro', monospace;
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400178}
Shawn Pearcea3e0e282015-02-12 13:57:54 -0800179.doc dl dt {
180 margin-top: 1em;
181}
Shawn Pearcea3e0e282015-02-12 13:57:54 -0800182.doc table {
183 border-collapse: collapse;
184 border-spacing: 0;
185}
Shawn Pearce73e34532015-02-12 16:27:54 -0800186.doc th {
187 text-align: center;
188}
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400189.doc th,
190.doc td {
Shawn Pearcea3e0e282015-02-12 13:57:54 -0800191 border: 1px solid #eee;
192 padding: 4px 12px;
193 vertical-align: top;
194}
195.doc th {
196 background-color: #f5f5f5;
197}
Shawn Pearce374f1842015-02-10 15:36:54 -0800198.toc {
199 margin-top: 30px;
200}
201.toc-aux {
Shawn Pearce374f1842015-02-10 15:36:54 -0800202 background: #f9f9f9;
203 border: 1px solid #f2f2f2;
Shawn Pearce374f1842015-02-10 15:36:54 -0800204}
205.toc h2 {
206 margin: 0 0 5px 0;
207}
208.toc ul {
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400209 margin: 10px 10px 10px 30px;
Shawn Pearce374f1842015-02-10 15:36:54 -0800210}
211.toc ul li {
212 margin-left: 0px;
213 list-style: disc;
214}
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400215.toc ul ul {
216 margin-top: 0;
217 margin-bottom: 0;
218}
Shawn Pearce374f1842015-02-10 15:36:54 -0800219.toc ul ul li {
220 list-style: circle;
221}
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400222.note,
223.promo,
224.aside {
Shawn Pearce96f6d5f2015-02-06 22:45:58 -0800225 border: 1px solid;
226 border-radius: 4px;
227 margin: 10px 0;
228 padding: 10px;
229}
230.note {
231 background: #fffbe4;
232 border-color: #f8f6e6;
233}
234.promo {
235 background: #f6f9ff;
236 border-color: #eff2f9;
237}
238.aside {
239 background: #f9f9f9;
240 border-color: #f2f2f2;
241}
Shawn Pearce6f6f1cd2015-02-07 00:10:24 -0800242.note :first-child,
243.promo :first-child,
244.aside :first-child {
Shawn Pearce96f6d5f2015-02-06 22:45:58 -0800245 margin-top: 0;
246}
247.note p:last-child,
248.promo p:last-child,
249.aside p:last-child {
250 margin-bottom: 0;
251}
Andrew Bonventre4434b802015-09-29 12:27:56 -0400252.cols {
253 margin: 0 -1.533%;
254 width: 103.067%;
255}
Shawn Pearceecddc612015-02-20 22:09:47 -0800256.col-1, .col-2, .col-3, .col-4, .col-5, .col-6,
257.col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
Andrew Bonventre42b7a672015-09-21 13:13:30 -0400258 display: inline-block;
Andrew Bonventre4434b802015-09-29 12:27:56 -0400259 margin: 0 1.488% 20px;
Andrew Bonventre42b7a672015-09-21 13:13:30 -0400260 vertical-align: top;
Shawn Pearce6f6f1cd2015-02-07 00:10:24 -0800261}
Andrew Bonventre4434b802015-09-29 12:27:56 -0400262.cols h1, .cols h2, .cols h3, .cols h4, .cols h5, .cols h6 {
263 margin: .67em 0;
264}
Shawn Pearceecddc612015-02-20 22:09:47 -0800265.col-1 { width: 5.357%; }
266.col-2 { width: 13.690%; }
267.col-3 { width: 22.024%; }
268.col-4 { width: 30.357%; }
269.col-5 { width: 38.690%; }
270.col-6 { width: 47.024%; }
271.col-7 { width: 55.357%; }
272.col-8 { width: 63.690%; }
273.col-9 { width: 72.024%; }
274.col-10 { width: 80.357%; }
275.col-11 { width: 88.690%; }
276.col-12 { width: 97.024%; }
Andrew Bonventreb33426e2015-09-09 18:28:28 -0400277.cols hr { width: 80%; }